├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── documentation.md │ ├── feature_request.md │ └── question.md └── workflows │ ├── lint.yml │ ├── release.yml │ └── tests_and_coverage.yml ├── .gitignore ├── .readthedocs.yaml ├── .ruff.toml ├── LICENSE ├── README.md ├── cantok ├── __init__.py ├── errors.py ├── py.typed ├── tokens │ ├── __init__.py │ ├── abstract │ │ ├── __init__.py │ │ ├── abstract_token.py │ │ ├── cancel_cause.py │ │ ├── coroutine_wrapper.py │ │ └── report.py │ ├── condition_token.py │ ├── counter_token.py │ ├── default_token.py │ ├── simple_token.py │ └── timeout_token.py └── types.py ├── docs ├── assets │ ├── favicon.ico │ ├── logo_1.png │ ├── logo_2.png │ ├── logo_3.png │ ├── logo_4.png │ ├── logo_5.png │ ├── logo_6.png │ └── presentation_1.pptx ├── ecosystem │ ├── about_ecosystem.md │ └── projects │ │ ├── regular_functions_calling.md │ │ └── subprocess_management.md ├── index.md ├── installation.md ├── quick_start.md ├── the_pattern.md ├── types_of_tokens │ ├── ConditionToken.md │ ├── CounterToken.md │ ├── DefaultToken.md │ ├── SimpleToken.md │ └── TimeoutToken.md └── what_are_tokens │ ├── cancel_and_read_the_status.md │ ├── embedding.md │ ├── exceptions.md │ ├── in_general.md │ ├── summation.md │ └── waiting.md ├── mkdocs.yml ├── pyproject.toml ├── requirements_dev.txt └── tests ├── __init__.py ├── examples ├── __init__.py └── test_examples.py └── units ├── __init__.py ├── test_errors.py └── tokens ├── __init__.py ├── abstract ├── __init__.py ├── test_abstract_token.py ├── test_coroutine_wrapper.py └── test_report.py ├── test_condition_token.py ├── test_counter_token.py ├── test_default_token.py ├── test_simple_token.py └── test_timeout_token.py /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/documentation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.github/ISSUE_TEMPLATE/documentation.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.github/ISSUE_TEMPLATE/question.md -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/tests_and_coverage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.github/workflows/tests_and_coverage.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.gitignore -------------------------------------------------------------------------------- /.readthedocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.readthedocs.yaml -------------------------------------------------------------------------------- /.ruff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/.ruff.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/README.md -------------------------------------------------------------------------------- /cantok/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/__init__.py -------------------------------------------------------------------------------- /cantok/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/errors.py -------------------------------------------------------------------------------- /cantok/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cantok/tokens/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cantok/tokens/abstract/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cantok/tokens/abstract/abstract_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/tokens/abstract/abstract_token.py -------------------------------------------------------------------------------- /cantok/tokens/abstract/cancel_cause.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/tokens/abstract/cancel_cause.py -------------------------------------------------------------------------------- /cantok/tokens/abstract/coroutine_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/tokens/abstract/coroutine_wrapper.py -------------------------------------------------------------------------------- /cantok/tokens/abstract/report.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/tokens/abstract/report.py -------------------------------------------------------------------------------- /cantok/tokens/condition_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/tokens/condition_token.py -------------------------------------------------------------------------------- /cantok/tokens/counter_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/tokens/counter_token.py -------------------------------------------------------------------------------- /cantok/tokens/default_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/tokens/default_token.py -------------------------------------------------------------------------------- /cantok/tokens/simple_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/tokens/simple_token.py -------------------------------------------------------------------------------- /cantok/tokens/timeout_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/tokens/timeout_token.py -------------------------------------------------------------------------------- /cantok/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/cantok/types.py -------------------------------------------------------------------------------- /docs/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/assets/favicon.ico -------------------------------------------------------------------------------- /docs/assets/logo_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/assets/logo_1.png -------------------------------------------------------------------------------- /docs/assets/logo_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/assets/logo_2.png -------------------------------------------------------------------------------- /docs/assets/logo_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/assets/logo_3.png -------------------------------------------------------------------------------- /docs/assets/logo_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/assets/logo_4.png -------------------------------------------------------------------------------- /docs/assets/logo_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/assets/logo_5.png -------------------------------------------------------------------------------- /docs/assets/logo_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/assets/logo_6.png -------------------------------------------------------------------------------- /docs/assets/presentation_1.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/assets/presentation_1.pptx -------------------------------------------------------------------------------- /docs/ecosystem/about_ecosystem.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/ecosystem/about_ecosystem.md -------------------------------------------------------------------------------- /docs/ecosystem/projects/regular_functions_calling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/ecosystem/projects/regular_functions_calling.md -------------------------------------------------------------------------------- /docs/ecosystem/projects/subprocess_management.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/ecosystem/projects/subprocess_management.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/installation.md -------------------------------------------------------------------------------- /docs/quick_start.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/quick_start.md -------------------------------------------------------------------------------- /docs/the_pattern.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/the_pattern.md -------------------------------------------------------------------------------- /docs/types_of_tokens/ConditionToken.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/types_of_tokens/ConditionToken.md -------------------------------------------------------------------------------- /docs/types_of_tokens/CounterToken.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/types_of_tokens/CounterToken.md -------------------------------------------------------------------------------- /docs/types_of_tokens/DefaultToken.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/types_of_tokens/DefaultToken.md -------------------------------------------------------------------------------- /docs/types_of_tokens/SimpleToken.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/types_of_tokens/SimpleToken.md -------------------------------------------------------------------------------- /docs/types_of_tokens/TimeoutToken.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/types_of_tokens/TimeoutToken.md -------------------------------------------------------------------------------- /docs/what_are_tokens/cancel_and_read_the_status.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/what_are_tokens/cancel_and_read_the_status.md -------------------------------------------------------------------------------- /docs/what_are_tokens/embedding.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/what_are_tokens/embedding.md -------------------------------------------------------------------------------- /docs/what_are_tokens/exceptions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/what_are_tokens/exceptions.md -------------------------------------------------------------------------------- /docs/what_are_tokens/in_general.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/what_are_tokens/in_general.md -------------------------------------------------------------------------------- /docs/what_are_tokens/summation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/what_are_tokens/summation.md -------------------------------------------------------------------------------- /docs/what_are_tokens/waiting.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/docs/what_are_tokens/waiting.md -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/mkdocs.yml -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements_dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/requirements_dev.txt -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/examples/test_examples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/examples/test_examples.py -------------------------------------------------------------------------------- /tests/units/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/units/test_errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/units/test_errors.py -------------------------------------------------------------------------------- /tests/units/tokens/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/units/tokens/abstract/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/units/tokens/abstract/test_abstract_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/units/tokens/abstract/test_abstract_token.py -------------------------------------------------------------------------------- /tests/units/tokens/abstract/test_coroutine_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/units/tokens/abstract/test_coroutine_wrapper.py -------------------------------------------------------------------------------- /tests/units/tokens/abstract/test_report.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/units/tokens/abstract/test_report.py -------------------------------------------------------------------------------- /tests/units/tokens/test_condition_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/units/tokens/test_condition_token.py -------------------------------------------------------------------------------- /tests/units/tokens/test_counter_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/units/tokens/test_counter_token.py -------------------------------------------------------------------------------- /tests/units/tokens/test_default_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/units/tokens/test_default_token.py -------------------------------------------------------------------------------- /tests/units/tokens/test_simple_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/units/tokens/test_simple_token.py -------------------------------------------------------------------------------- /tests/units/tokens/test_timeout_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pomponchik/cantok/HEAD/tests/units/tokens/test_timeout_token.py --------------------------------------------------------------------------------