@levencode/deploom 0.0.0-stage → 0.2.21-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +40 -3
- package/THIRD_PARTY_NOTICES/CPython/CPython-third-party-license.rst +1183 -0
- package/THIRD_PARTY_NOTICES/CPython/LICENSE.txt +645 -0
- package/THIRD_PARTY_NOTICES/CPython/bzip2-1.0.8/LICENSE +42 -0
- package/THIRD_PARTY_NOTICES/CPython/expat-2.8.5/AUTHORS +10 -0
- package/THIRD_PARTY_NOTICES/CPython/expat-2.8.5/COPYING +21 -0
- package/THIRD_PARTY_NOTICES/CPython/hacl-star-bb3d0dc8d9d15a5cd51094d5b69e70aa09005ff0/LICENSE +201 -0
- package/THIRD_PARTY_NOTICES/CPython/libb2-0.98.1/COPYING +117 -0
- package/THIRD_PARTY_NOTICES/CPython/libffi-3.4.4/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/CPython/libffi-3.4.4/LICENSE-BUILDTOOLS +353 -0
- package/THIRD_PARTY_NOTICES/CPython/mpdecimal-4.0.0/COPYRIGHT.txt +23 -0
- package/THIRD_PARTY_NOTICES/CPython/official-embed.spdx.json +433 -0
- package/THIRD_PARTY_NOTICES/CPython/openssl-3.5.9/AUTHORS.md +53 -0
- package/THIRD_PARTY_NOTICES/CPython/openssl-3.5.9/LICENSE.txt +177 -0
- package/THIRD_PARTY_NOTICES/CPython/sqlite-3.50.4.0/public-domain.txt +32 -0
- package/THIRD_PARTY_NOTICES/CPython/xz-5.2.5/AUTHORS +27 -0
- package/THIRD_PARTY_NOTICES/CPython/xz-5.2.5/COPYING +65 -0
- package/THIRD_PARTY_NOTICES/CPython/xz-5.2.5/COPYING.GPLv2 +339 -0
- package/THIRD_PARTY_NOTICES/CPython/xz-5.2.5/COPYING.GPLv3 +674 -0
- package/THIRD_PARTY_NOTICES/CPython/xz-5.2.5/COPYING.LGPLv2.1 +502 -0
- package/THIRD_PARTY_NOTICES/CPython/zlib-1.3.1/LICENSE +22 -0
- package/THIRD_PARTY_NOTICES/CPython/zlib-1.3.1/README +117 -0
- package/THIRD_PARTY_NOTICES/PyJWT/pyjwt-2.15.1.dist-info/licenses/AUTHORS.rst +7 -0
- package/THIRD_PARTY_NOTICES/PyJWT/pyjwt-2.15.1.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/PyYAML/pyyaml-6.0.3.dist-info/licenses/LICENSE +20 -0
- package/THIRD_PARTY_NOTICES/annotated-types/annotated_types-0.8.0.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/anyio/anyio-4.15.1.dist-info/licenses/LICENSE +20 -0
- package/THIRD_PARTY_NOTICES/attrs/attrs-26.1.0.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/certifi/certifi-2026.10.23.dist-info/licenses/LICENSE +20 -0
- package/THIRD_PARTY_NOTICES/cffi/cffi-2.1.1.dist-info/licenses/LICENSE +23 -0
- package/THIRD_PARTY_NOTICES/charset-normalizer/charset_normalizer-3.5.2.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/click/click-8.5.0.dist-info/licenses/LICENSE.txt +28 -0
- package/THIRD_PARTY_NOTICES/cryptography/cryptography-50.0.2.dist-info/licenses/LICENSE +3 -0
- package/THIRD_PARTY_NOTICES/cryptography/cryptography-50.0.2.dist-info/licenses/LICENSE.APACHE +202 -0
- package/THIRD_PARTY_NOTICES/cryptography/cryptography-50.0.2.dist-info/licenses/LICENSE.BSD +27 -0
- package/THIRD_PARTY_NOTICES/deploom-mcp/deploom_mcp-0.2.21.dist-info/licenses/LICENSE +202 -0
- package/THIRD_PARTY_NOTICES/h11/h11-0.16.0.dist-info/licenses/LICENSE.txt +22 -0
- package/THIRD_PARTY_NOTICES/httpcore2/httpcore2-2.16.0.dist-info/licenses/LICENSE.md +28 -0
- package/THIRD_PARTY_NOTICES/httpx2/httpx2-2.16.0.dist-info/licenses/LICENSE.md +13 -0
- package/THIRD_PARTY_NOTICES/idna/idna-3.20.dist-info/licenses/LICENSE.md +31 -0
- package/THIRD_PARTY_NOTICES/jsonschema/jsonschema-4.26.0.dist-info/licenses/COPYING +19 -0
- package/THIRD_PARTY_NOTICES/jsonschema-specifications/jsonschema_specifications-2025.9.1.dist-info/licenses/COPYING +19 -0
- package/THIRD_PARTY_NOTICES/mcp/mcp-2.3.0.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/mcp-types/mcp_types-2.3.0.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/opentelemetry-api/opentelemetry_api-1.45.2.dist-info/licenses/LICENSE +201 -0
- package/THIRD_PARTY_NOTICES/pycparser/pycparser-3.12.dist-info/licenses/LICENSE +27 -0
- package/THIRD_PARTY_NOTICES/pydantic/pydantic-2.14.2.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/pydantic_core/pydantic_core-2.50.2.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/python-dateutil/python_dateutil-3.0.0.dist-info/licenses/LICENSE +54 -0
- package/THIRD_PARTY_NOTICES/python-multipart/python_multipart-0.0.32.dist-info/licenses/LICENSE.txt +202 -0
- package/THIRD_PARTY_NOTICES/pywin32/adodbapi/license.txt +505 -0
- package/THIRD_PARTY_NOTICES/pywin32/pythonwin/license.txt +30 -0
- package/THIRD_PARTY_NOTICES/pywin32/win32/license.txt +30 -0
- package/THIRD_PARTY_NOTICES/pywin32/win32com/License.txt +30 -0
- package/THIRD_PARTY_NOTICES/referencing/referencing-0.37.0.dist-info/licenses/COPYING +19 -0
- package/THIRD_PARTY_NOTICES/requests/requests-2.34.2.dist-info/licenses/LICENSE +175 -0
- package/THIRD_PARTY_NOTICES/requests/requests-2.34.2.dist-info/licenses/NOTICE +2 -0
- package/THIRD_PARTY_NOTICES/rpds-py/rpds_py-2026.9.1.dist-info/licenses/LICENSE +19 -0
- package/THIRD_PARTY_NOTICES/semantic-version/semantic_version-2.10.0.dist-info/LICENSE +22 -0
- package/THIRD_PARTY_NOTICES/six/six-1.17.0.dist-info/LICENSE +18 -0
- package/THIRD_PARTY_NOTICES/sse-starlette/sse_starlette-3.6.0.dist-info/licenses/AUTHORS +10 -0
- package/THIRD_PARTY_NOTICES/sse-starlette/sse_starlette-3.6.0.dist-info/licenses/LICENSE +27 -0
- package/THIRD_PARTY_NOTICES/starlette/starlette-1.10.0.dist-info/licenses/LICENSE.md +27 -0
- package/THIRD_PARTY_NOTICES/truststore/truststore-0.10.5.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/typing-inspection/typing_inspection-0.4.4.dist-info/licenses/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES/typing_extensions/typing_extensions-4.16.0.dist-info/licenses/LICENSE +279 -0
- package/THIRD_PARTY_NOTICES/tzdata/tzdata-2026.6.dist-info/licenses/LICENSE +16 -0
- package/THIRD_PARTY_NOTICES/tzdata/tzdata-2026.6.dist-info/licenses/licenses/LICENSE_APACHE +201 -0
- package/THIRD_PARTY_NOTICES/urllib3/urllib3-2.8.0.dist-info/licenses/LICENSE.txt +21 -0
- package/THIRD_PARTY_NOTICES/uvicorn/uvicorn-0.54.0.dist-info/licenses/LICENSE.md +27 -0
- package/THIRD_PARTY_NOTICES/z3-solver/BUILD-INFO.txt +3 -0
- package/THIRD_PARTY_NOTICES/z3-solver/GCC-COPYRIGHT.txt +1532 -0
- package/THIRD_PARTY_NOTICES/z3-solver/GCC-GPL-3.txt +674 -0
- package/THIRD_PARTY_NOTICES/z3-solver/GCC-RUNTIME-EXCEPTION.txt +73 -0
- package/THIRD_PARTY_NOTICES/z3-solver/MinGW-COPYRIGHT.txt +998 -0
- package/THIRD_PARTY_NOTICES/z3-solver/Z3-LICENSE.txt +10 -0
- package/THIRD_PARTY_NOTICES/z3-solver/compiler-copyright.txt +1714 -0
- package/bin/client-config.cjs +86 -0
- package/bin/deploom.cjs +223 -0
- package/bin/launch.cjs +71 -0
- package/bin/verify-runtime.cjs +42 -0
- package/package.json +41 -6
- package/runtime/LICENSE.txt +645 -0
- package/runtime/Lib/site-packages/00_deploom_runtime.pth +1 -0
- package/runtime/Lib/site-packages/PyWin32.chm +0 -0
- package/runtime/Lib/site-packages/_cffi_backend.cp313-win_amd64.pyd +0 -0
- package/runtime/Lib/site-packages/_yaml/__init__.py +33 -0
- package/runtime/Lib/site-packages/adodbapi/__init__.py +82 -0
- package/runtime/Lib/site-packages/adodbapi/ado_consts.py +283 -0
- package/runtime/Lib/site-packages/adodbapi/adodbapi.py +1153 -0
- package/runtime/Lib/site-packages/adodbapi/apibase.py +723 -0
- package/runtime/Lib/site-packages/adodbapi/examples/db_print.py +72 -0
- package/runtime/Lib/site-packages/adodbapi/examples/db_table_names.py +21 -0
- package/runtime/Lib/site-packages/adodbapi/examples/xls_read.py +41 -0
- package/runtime/Lib/site-packages/adodbapi/examples/xls_write.py +41 -0
- package/runtime/Lib/site-packages/adodbapi/is64bit.py +34 -0
- package/runtime/Lib/site-packages/adodbapi/license.txt +505 -0
- package/runtime/Lib/site-packages/adodbapi/process_connect_string.py +137 -0
- package/runtime/Lib/site-packages/adodbapi/readme.txt +88 -0
- package/runtime/Lib/site-packages/adodbapi/schema_table.py +16 -0
- package/runtime/Lib/site-packages/adodbapi/setup.py +68 -0
- package/runtime/Lib/site-packages/adodbapi/test/adodbapitest.py +1547 -0
- package/runtime/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +184 -0
- package/runtime/Lib/site-packages/adodbapi/test/dbapi20.py +879 -0
- package/runtime/Lib/site-packages/adodbapi/test/is64bit.py +34 -0
- package/runtime/Lib/site-packages/adodbapi/test/setuptestframework.py +98 -0
- package/runtime/Lib/site-packages/adodbapi/test/test_adodbapi_dbapi20.py +195 -0
- package/runtime/Lib/site-packages/adodbapi/test/tryconnection.py +30 -0
- package/runtime/Lib/site-packages/annotated_types/__init__.py +416 -0
- package/runtime/Lib/site-packages/annotated_types/py.typed +0 -0
- package/runtime/Lib/site-packages/annotated_types/test_cases.py +146 -0
- package/runtime/Lib/site-packages/annotated_types-0.8.0.dist-info/METADATA +295 -0
- package/runtime/Lib/site-packages/annotated_types-0.8.0.dist-info/RECORD +7 -0
- package/runtime/Lib/site-packages/annotated_types-0.8.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/annotated_types-0.8.0.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/anyio/__init__.py +154 -0
- package/runtime/Lib/site-packages/anyio/_backends/__init__.py +0 -0
- package/runtime/Lib/site-packages/anyio/_backends/_asyncio.py +3201 -0
- package/runtime/Lib/site-packages/anyio/_backends/_trio.py +1473 -0
- package/runtime/Lib/site-packages/anyio/_core/__init__.py +0 -0
- package/runtime/Lib/site-packages/anyio/_core/_asyncio_selector_thread.py +167 -0
- package/runtime/Lib/site-packages/anyio/_core/_concurrency_utils.py +156 -0
- package/runtime/Lib/site-packages/anyio/_core/_contextmanagers.py +200 -0
- package/runtime/Lib/site-packages/anyio/_core/_eventloop.py +240 -0
- package/runtime/Lib/site-packages/anyio/_core/_exceptions.py +205 -0
- package/runtime/Lib/site-packages/anyio/_core/_fileio.py +1045 -0
- package/runtime/Lib/site-packages/anyio/_core/_futures.py +191 -0
- package/runtime/Lib/site-packages/anyio/_core/_resources.py +18 -0
- package/runtime/Lib/site-packages/anyio/_core/_signals.py +29 -0
- package/runtime/Lib/site-packages/anyio/_core/_sockets.py +1011 -0
- package/runtime/Lib/site-packages/anyio/_core/_streams.py +52 -0
- package/runtime/Lib/site-packages/anyio/_core/_subprocesses.py +196 -0
- package/runtime/Lib/site-packages/anyio/_core/_synchronization.py +778 -0
- package/runtime/Lib/site-packages/anyio/_core/_tasks.py +464 -0
- package/runtime/Lib/site-packages/anyio/_core/_tempfile.py +615 -0
- package/runtime/Lib/site-packages/anyio/_core/_testing.py +82 -0
- package/runtime/Lib/site-packages/anyio/_core/_typedattr.py +85 -0
- package/runtime/Lib/site-packages/anyio/_lazyimport.py +176 -0
- package/runtime/Lib/site-packages/anyio/abc/__init__.py +63 -0
- package/runtime/Lib/site-packages/anyio/abc/_eventloop.py +428 -0
- package/runtime/Lib/site-packages/anyio/abc/_resources.py +39 -0
- package/runtime/Lib/site-packages/anyio/abc/_sockets.py +401 -0
- package/runtime/Lib/site-packages/anyio/abc/_streams.py +237 -0
- package/runtime/Lib/site-packages/anyio/abc/_subprocesses.py +82 -0
- package/runtime/Lib/site-packages/anyio/abc/_tasks.py +223 -0
- package/runtime/Lib/site-packages/anyio/abc/_testing.py +79 -0
- package/runtime/Lib/site-packages/anyio/from_thread.py +588 -0
- package/runtime/Lib/site-packages/anyio/functools.py +400 -0
- package/runtime/Lib/site-packages/anyio/itertools.py +629 -0
- package/runtime/Lib/site-packages/anyio/lowlevel.py +228 -0
- package/runtime/Lib/site-packages/anyio/py.typed +0 -0
- package/runtime/Lib/site-packages/anyio/pytest_plugin.py +404 -0
- package/runtime/Lib/site-packages/anyio/streams/__init__.py +0 -0
- package/runtime/Lib/site-packages/anyio/streams/buffered.py +201 -0
- package/runtime/Lib/site-packages/anyio/streams/file.py +157 -0
- package/runtime/Lib/site-packages/anyio/streams/memory.py +326 -0
- package/runtime/Lib/site-packages/anyio/streams/stapled.py +160 -0
- package/runtime/Lib/site-packages/anyio/streams/text.py +176 -0
- package/runtime/Lib/site-packages/anyio/streams/tls.py +436 -0
- package/runtime/Lib/site-packages/anyio/to_interpreter.py +246 -0
- package/runtime/Lib/site-packages/anyio/to_process.py +269 -0
- package/runtime/Lib/site-packages/anyio/to_thread.py +80 -0
- package/runtime/Lib/site-packages/anyio-4.15.1.dist-info/METADATA +108 -0
- package/runtime/Lib/site-packages/anyio-4.15.1.dist-info/RECORD +53 -0
- package/runtime/Lib/site-packages/anyio-4.15.1.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/anyio-4.15.1.dist-info/entry_points.txt +2 -0
- package/runtime/Lib/site-packages/anyio-4.15.1.dist-info/licenses/LICENSE +20 -0
- package/runtime/Lib/site-packages/anyio-4.15.1.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/attr/__init__.py +104 -0
- package/runtime/Lib/site-packages/attr/__init__.pyi +389 -0
- package/runtime/Lib/site-packages/attr/_cmp.py +160 -0
- package/runtime/Lib/site-packages/attr/_cmp.pyi +13 -0
- package/runtime/Lib/site-packages/attr/_compat.py +99 -0
- package/runtime/Lib/site-packages/attr/_config.py +31 -0
- package/runtime/Lib/site-packages/attr/_funcs.py +497 -0
- package/runtime/Lib/site-packages/attr/_make.py +3406 -0
- package/runtime/Lib/site-packages/attr/_next_gen.py +674 -0
- package/runtime/Lib/site-packages/attr/_typing_compat.pyi +15 -0
- package/runtime/Lib/site-packages/attr/_version_info.py +89 -0
- package/runtime/Lib/site-packages/attr/_version_info.pyi +9 -0
- package/runtime/Lib/site-packages/attr/converters.py +162 -0
- package/runtime/Lib/site-packages/attr/converters.pyi +19 -0
- package/runtime/Lib/site-packages/attr/exceptions.py +95 -0
- package/runtime/Lib/site-packages/attr/exceptions.pyi +17 -0
- package/runtime/Lib/site-packages/attr/filters.py +72 -0
- package/runtime/Lib/site-packages/attr/filters.pyi +6 -0
- package/runtime/Lib/site-packages/attr/py.typed +0 -0
- package/runtime/Lib/site-packages/attr/setters.py +79 -0
- package/runtime/Lib/site-packages/attr/setters.pyi +20 -0
- package/runtime/Lib/site-packages/attr/validators.py +750 -0
- package/runtime/Lib/site-packages/attr/validators.pyi +140 -0
- package/runtime/Lib/site-packages/attrs/__init__.py +72 -0
- package/runtime/Lib/site-packages/attrs/__init__.pyi +314 -0
- package/runtime/Lib/site-packages/attrs/converters.py +3 -0
- package/runtime/Lib/site-packages/attrs/exceptions.py +3 -0
- package/runtime/Lib/site-packages/attrs/filters.py +3 -0
- package/runtime/Lib/site-packages/attrs/py.typed +0 -0
- package/runtime/Lib/site-packages/attrs/setters.py +3 -0
- package/runtime/Lib/site-packages/attrs/validators.py +3 -0
- package/runtime/Lib/site-packages/attrs-26.1.0.dist-info/METADATA +199 -0
- package/runtime/Lib/site-packages/attrs-26.1.0.dist-info/RECORD +35 -0
- package/runtime/Lib/site-packages/attrs-26.1.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/attrs-26.1.0.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/certifi/__init__.py +4 -0
- package/runtime/Lib/site-packages/certifi/__main__.py +12 -0
- package/runtime/Lib/site-packages/certifi/cacert.pem +3885 -0
- package/runtime/Lib/site-packages/certifi/core.py +83 -0
- package/runtime/Lib/site-packages/certifi/py.typed +0 -0
- package/runtime/Lib/site-packages/certifi/tests/__init__.py +0 -0
- package/runtime/Lib/site-packages/certifi/tests/test_certify.py +18 -0
- package/runtime/Lib/site-packages/certifi-2026.10.23.dist-info/METADATA +79 -0
- package/runtime/Lib/site-packages/certifi-2026.10.23.dist-info/RECORD +12 -0
- package/runtime/Lib/site-packages/certifi-2026.10.23.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/certifi-2026.10.23.dist-info/licenses/LICENSE +20 -0
- package/runtime/Lib/site-packages/certifi-2026.10.23.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/cffi/__init__.py +14 -0
- package/runtime/Lib/site-packages/cffi/_cffi_errors.h +135 -0
- package/runtime/Lib/site-packages/cffi/_cffi_gen_src.py +216 -0
- package/runtime/Lib/site-packages/cffi/_cffi_include.h +397 -0
- package/runtime/Lib/site-packages/cffi/_embedding.h +512 -0
- package/runtime/Lib/site-packages/cffi/_imp_emulation.py +83 -0
- package/runtime/Lib/site-packages/cffi/_shimmed_dist_utils.py +45 -0
- package/runtime/Lib/site-packages/cffi/api.py +960 -0
- package/runtime/Lib/site-packages/cffi/backend_ctypes.py +1120 -0
- package/runtime/Lib/site-packages/cffi/cffi_opcode.py +187 -0
- package/runtime/Lib/site-packages/cffi/commontypes.py +82 -0
- package/runtime/Lib/site-packages/cffi/cparser.py +1014 -0
- package/runtime/Lib/site-packages/cffi/error.py +31 -0
- package/runtime/Lib/site-packages/cffi/ffiplatform.py +113 -0
- package/runtime/Lib/site-packages/cffi/gen_src.py +5 -0
- package/runtime/Lib/site-packages/cffi/lock.py +30 -0
- package/runtime/Lib/site-packages/cffi/model.py +617 -0
- package/runtime/Lib/site-packages/cffi/parse_c_type.h +181 -0
- package/runtime/Lib/site-packages/cffi/pkgconfig.py +121 -0
- package/runtime/Lib/site-packages/cffi/recompiler.py +1586 -0
- package/runtime/Lib/site-packages/cffi/setuptools_ext.py +231 -0
- package/runtime/Lib/site-packages/cffi/vengine_cpy.py +1058 -0
- package/runtime/Lib/site-packages/cffi/vengine_gen.py +679 -0
- package/runtime/Lib/site-packages/cffi/verifier.py +306 -0
- package/runtime/Lib/site-packages/cffi-2.1.1.dist-info/METADATA +67 -0
- package/runtime/Lib/site-packages/cffi-2.1.1.dist-info/RECORD +31 -0
- package/runtime/Lib/site-packages/cffi-2.1.1.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/cffi-2.1.1.dist-info/entry_points.txt +5 -0
- package/runtime/Lib/site-packages/cffi-2.1.1.dist-info/licenses/LICENSE +23 -0
- package/runtime/Lib/site-packages/cffi-2.1.1.dist-info/top_level.txt +2 -0
- package/runtime/Lib/site-packages/charset_normalizer/__init__.py +48 -0
- package/runtime/Lib/site-packages/charset_normalizer/__main__.py +6 -0
- package/runtime/Lib/site-packages/charset_normalizer/api.py +934 -0
- package/runtime/Lib/site-packages/charset_normalizer/cd.cp313-win_amd64.pyd +0 -0
- package/runtime/Lib/site-packages/charset_normalizer/cd.py +467 -0
- package/runtime/Lib/site-packages/charset_normalizer/cli/__init__.py +8 -0
- package/runtime/Lib/site-packages/charset_normalizer/cli/__main__.py +363 -0
- package/runtime/Lib/site-packages/charset_normalizer/constant.py +2497 -0
- package/runtime/Lib/site-packages/charset_normalizer/legacy.py +79 -0
- package/runtime/Lib/site-packages/charset_normalizer/md.cp313-win_amd64.pyd +0 -0
- package/runtime/Lib/site-packages/charset_normalizer/md.py +1065 -0
- package/runtime/Lib/site-packages/charset_normalizer/models.py +387 -0
- package/runtime/Lib/site-packages/charset_normalizer/py.typed +0 -0
- package/runtime/Lib/site-packages/charset_normalizer/utils.py +452 -0
- package/runtime/Lib/site-packages/charset_normalizer/version.py +8 -0
- package/runtime/Lib/site-packages/charset_normalizer-3.5.2.dist-info/METADATA +892 -0
- package/runtime/Lib/site-packages/charset_normalizer-3.5.2.dist-info/RECORD +21 -0
- package/runtime/Lib/site-packages/charset_normalizer-3.5.2.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/charset_normalizer-3.5.2.dist-info/entry_points.txt +2 -0
- package/runtime/Lib/site-packages/charset_normalizer-3.5.2.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/charset_normalizer-3.5.2.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/click/__init__.py +144 -0
- package/runtime/Lib/site-packages/click/_compat.py +590 -0
- package/runtime/Lib/site-packages/click/_termui_impl.py +972 -0
- package/runtime/Lib/site-packages/click/_textwrap.py +188 -0
- package/runtime/Lib/site-packages/click/_utils.py +36 -0
- package/runtime/Lib/site-packages/click/_winconsole.py +297 -0
- package/runtime/Lib/site-packages/click/core.py +3799 -0
- package/runtime/Lib/site-packages/click/decorators.py +627 -0
- package/runtime/Lib/site-packages/click/exceptions.py +378 -0
- package/runtime/Lib/site-packages/click/formatting.py +320 -0
- package/runtime/Lib/site-packages/click/globals.py +67 -0
- package/runtime/Lib/site-packages/click/parser.py +533 -0
- package/runtime/Lib/site-packages/click/py.typed +0 -0
- package/runtime/Lib/site-packages/click/shell_completion.py +801 -0
- package/runtime/Lib/site-packages/click/termui.py +1014 -0
- package/runtime/Lib/site-packages/click/testing.py +798 -0
- package/runtime/Lib/site-packages/click/types.py +1422 -0
- package/runtime/Lib/site-packages/click/utils.py +688 -0
- package/runtime/Lib/site-packages/click-8.5.0.dist-info/METADATA +83 -0
- package/runtime/Lib/site-packages/click-8.5.0.dist-info/RECORD +22 -0
- package/runtime/Lib/site-packages/click-8.5.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/click-8.5.0.dist-info/licenses/LICENSE.txt +28 -0
- package/runtime/Lib/site-packages/cryptography/__about__.py +17 -0
- package/runtime/Lib/site-packages/cryptography/__init__.py +13 -0
- package/runtime/Lib/site-packages/cryptography/cobblestone.py +21 -0
- package/runtime/Lib/site-packages/cryptography/exceptions.py +52 -0
- package/runtime/Lib/site-packages/cryptography/fernet.py +240 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/__init__.py +13 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/_oid.py +373 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/asn1/__init__.py +47 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/asn1/asn1.py +533 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/backends/__init__.py +13 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/backends/openssl/__init__.py +9 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/backends/openssl/backend.py +309 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/__init__.py +5 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/__init__.pyi +67 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/_openssl.pyi +8 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/asn1.pyi +7 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/cobblestone.pyi +33 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/declarative_asn1.pyi +133 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/exceptions.pyi +17 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/ocsp.pyi +117 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi +82 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/aead.pyi +189 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi +38 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/cmac.pyi +18 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/dh.pyi +51 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/dsa.pyi +41 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ec.pyi +52 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi +13 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed448.pyi +13 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hashes.pyi +30 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hmac.pyi +22 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hpke.pyi +109 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/kdf.pyi +205 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/keys.pyi +34 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/keywrap.pyi +28 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/mldsa.pyi +35 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/mlkem.pyi +18 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi +15 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/rsa.pyi +55 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi +13 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x448.pyi +13 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs12.pyi +52 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs7.pyi +50 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/test_support.pyi +23 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust/x509.pyi +313 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/_rust.pyd +0 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/openssl/__init__.py +5 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/openssl/_conditional.py +199 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/bindings/openssl/binding.py +107 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/decrepit/__init__.py +5 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/__init__.py +5 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/algorithms.py +145 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/modes.py +53 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/__init__.py +5 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/_asymmetric.py +19 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/_cipheralgorithm.py +60 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/_modes.py +105 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/_serialization.py +136 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__init__.py +5 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/dh.py +253 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py +179 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/ec.py +369 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/ed25519.py +116 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/ed448.py +143 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/mldsa.py +505 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/mlkem.py +278 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/padding.py +141 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py +295 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/types.py +94 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/utils.py +28 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/x25519.py +134 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/x448.py +137 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/ciphers/__init__.py +27 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/ciphers/aead.py +23 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/ciphers/algorithms.py +138 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/ciphers/base.py +146 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/ciphers/modes.py +192 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/cmac.py +10 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/constant_time.py +14 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/hashes.py +357 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/hmac.py +13 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/hpke.py +27 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/kdf/__init__.py +32 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/kdf/argon2.py +17 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/kdf/concatkdf.py +16 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/kdf/hkdf.py +16 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/kdf/kbkdf.py +26 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/kdf/pbkdf2.py +13 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/kdf/scrypt.py +19 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/kdf/x963kdf.py +13 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/keywrap.py +25 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/padding.py +69 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/poly1305.py +11 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/serialization/__init__.py +85 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/serialization/base.py +16 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/serialization/pkcs12.py +176 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/serialization/pkcs7.py +412 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/serialization/ssh.py +1615 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/twofactor/__init__.py +9 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/twofactor/hotp.py +101 -0
- package/runtime/Lib/site-packages/cryptography/hazmat/primitives/twofactor/totp.py +56 -0
- package/runtime/Lib/site-packages/cryptography/py.typed +0 -0
- package/runtime/Lib/site-packages/cryptography/utils.py +136 -0
- package/runtime/Lib/site-packages/cryptography/x509/__init__.py +270 -0
- package/runtime/Lib/site-packages/cryptography/x509/base.py +834 -0
- package/runtime/Lib/site-packages/cryptography/x509/certificate_transparency.py +35 -0
- package/runtime/Lib/site-packages/cryptography/x509/extensions.py +2533 -0
- package/runtime/Lib/site-packages/cryptography/x509/general_name.py +281 -0
- package/runtime/Lib/site-packages/cryptography/x509/name.py +489 -0
- package/runtime/Lib/site-packages/cryptography/x509/ocsp.py +379 -0
- package/runtime/Lib/site-packages/cryptography/x509/oid.py +37 -0
- package/runtime/Lib/site-packages/cryptography/x509/verification.py +34 -0
- package/runtime/Lib/site-packages/cryptography-50.0.2.dist-info/METADATA +111 -0
- package/runtime/Lib/site-packages/cryptography-50.0.2.dist-info/RECORD +120 -0
- package/runtime/Lib/site-packages/cryptography-50.0.2.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/cryptography-50.0.2.dist-info/licenses/LICENSE +3 -0
- package/runtime/Lib/site-packages/cryptography-50.0.2.dist-info/licenses/LICENSE.APACHE +202 -0
- package/runtime/Lib/site-packages/cryptography-50.0.2.dist-info/licenses/LICENSE.BSD +27 -0
- package/runtime/Lib/site-packages/cryptography-50.0.2.dist-info/sboms/cryptography-rust.cyclonedx.json +1365 -0
- package/runtime/Lib/site-packages/cryptography-50.0.2.dist-info/sboms/sbom.json +43 -0
- package/runtime/Lib/site-packages/dateutil/__init__.py +26 -0
- package/runtime/Lib/site-packages/dateutil/_common.py +43 -0
- package/runtime/Lib/site-packages/dateutil/_tzdata_impl.py +147 -0
- package/runtime/Lib/site-packages/dateutil/_version.py +4 -0
- package/runtime/Lib/site-packages/dateutil/easter.py +89 -0
- package/runtime/Lib/site-packages/dateutil/parser/__init__.py +61 -0
- package/runtime/Lib/site-packages/dateutil/parser/_parser.py +1613 -0
- package/runtime/Lib/site-packages/dateutil/parser/isoparser.py +416 -0
- package/runtime/Lib/site-packages/dateutil/relativedelta.py +596 -0
- package/runtime/Lib/site-packages/dateutil/rrule.py +1764 -0
- package/runtime/Lib/site-packages/dateutil/tz/__init__.py +60 -0
- package/runtime/Lib/site-packages/dateutil/tz/_common.py +419 -0
- package/runtime/Lib/site-packages/dateutil/tz/_factories.py +80 -0
- package/runtime/Lib/site-packages/dateutil/tz/_tzfile.py +1428 -0
- package/runtime/Lib/site-packages/dateutil/tz/_tzpath.py +104 -0
- package/runtime/Lib/site-packages/dateutil/tz/tz.py +1472 -0
- package/runtime/Lib/site-packages/dateutil/tz/win.py +370 -0
- package/runtime/Lib/site-packages/dateutil/tzwin.py +2 -0
- package/runtime/Lib/site-packages/dateutil/utils.py +71 -0
- package/runtime/Lib/site-packages/dateutil/zoneinfo/__init__.py +233 -0
- package/runtime/Lib/site-packages/dateutil/zoneinfo/rebuild.py +42 -0
- package/runtime/Lib/site-packages/deploom_mcp/__init__.py +7 -0
- package/runtime/Lib/site-packages/deploom_mcp/__main__.py +7 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/VERSION +1 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/analyze_verification_telemetry.py +426 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/artifact_integrity.py +468 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/baseline_cohort_inference.py +352 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/baseline_constraint_verifier.py +5903 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/baseline_performance_summary.py +270 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/baseline_repair_handoff.py +208 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi54_branch_search.py +225 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi55_resolver_overrides.py +244 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi56_causal_anytime_search.py +285 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi57_yarn1_resolver_seed.py +622 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi581_probe_budget_and_cohort.py +194 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi582_pre_run_closure.py +168 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi583_duplicate_fallback_control.py +43 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi58_bounded_causal_search.py +193 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi58_reuse_economics.py +44 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi591_unified_cohort_handoff.py +214 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi59_transitive_override_search.py +525 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi_anytime.py +313 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_psi_progressive_baseline.py +166 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_v_predicate_search.py +427 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_v_predicate_state.py +385 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_v_prepared_artifact.py +1094 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_v_recovery.py +916 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_vex_storage.py +352 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/block_vf_active_search.py +167 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/bounded_telemetry.py +68 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/checkpoint_build_upgrade.py +158 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/checkpoint_index_recovery.py +63 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/cli_io.py +30 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/cohort_action_cost.py +50 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/cohort_attempt_telemetry.py +131 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/cohort_conflict_regions.py +114 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/cohort_size_policy.py +22 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/cohort_telemetry_report.py +105 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/constraint_cache.py +757 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/constraint_verify.py +669 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/cross_process_io.py +135 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/delivery_audit_recovery.py +53 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/delivery_git_status.py +62 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/delivery_source_identity.py +196 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/delivery_worktree.py +53 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/dependency-knowledge.schema.json +61 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/dependency_audit_branch.py +651 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/dependency_compatibility_evidence.py +364 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/dependency_interaction.py +60 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/dependency_live_roadmap_generator.py +28192 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/dependency_live_roadmap_worker.py +162 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/dependency_release_branch.py +407 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/deploom_failure.py +619 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/document_locales/en.json +83 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/document_locales/ru.json +83 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/draft_decision_contract.py +159 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/draft_input_identity.py +218 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/draft_npm_preflight.py +171 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/draft_publication_guard.py +68 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/frontend_source_policy.py +54 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/git_hook_policy.py +102 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/git_identity.py +65 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/io_governor.py +124 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_adaptive_budget.py +109 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_audit_policy.py +79 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_checkpoint_publication.py +90 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_cohort_planner.py +378 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_cohort_review.py +98 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_delivery.py +701 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_delivery_checkout.py +59 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_delivery_notes.py +228 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_delivery_preflight.py +112 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_delivery_submodules.py +31 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_discovery_checkpoint.py +94 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_migration.py +6249 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_progress.py +52 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_registry_metadata.py +98 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_registry_yarn.py +127 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_restart.py +70 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_resume.py +73 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_scope_expansion.py +101 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_stage_checkpoint.py +211 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_state_transaction.py +124 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_target_deferrals.py +61 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_task.py +1411 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/iterative_trial_workspace.py +54 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/lockfile_consistency.py +1242 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/lockfile_preflight.py +102 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/manual_dependency_audit.py +2081 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/materialization_retention.py +148 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/materialized_workspace_verifier.py +320 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/migration_documents.py +506 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/migration_research.py +158 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/migration_validation.py +231 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/npm_bundle_obligations.py +240 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/npm_platform_obligations.py +256 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/npm_semver_batch.py +111 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/npm_shared_transition.py +88 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/osv_offline.py +105 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/package_manager_profile.py +331 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/package_manager_telemetry.py +73 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/peer_solver_goal.py +109 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/peer_solver_model.py +304 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/peer_solver_transition.py +308 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/peer_solver_z3.py +300 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/planning_cache.py +180 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/prepared_workspace_fastpath.py +1528 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/project_execution_environment.py +105 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/project_runtime.py +433 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/project_topology.py +813 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/proven_dependency_state.py +234 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/registry_advisory_evidence.py +202 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/registry_candidate_diagnostics.py +334 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/registry_metadata_cache.py +233 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/registry_request_context.py +36 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/reparse_materialization.py +335 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/resolution_inventory.py +481 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/resolved_dependency_state.py +820 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/run_tool_tests.py +69 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/run_writer_lock.py +78 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/runtime_metrics.py +185 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/scoped_source_policy.py +111 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/security_workspace_scope.py +136 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/settings.schema.json +1229 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/snapshot_compaction.py +288 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/source_snapshot.py +2635 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/source_snapshot_storage.py +96 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/standalone_build_outputs.py +167 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/storage_capacity.py +19 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/storage_cleanup_inventory.py +379 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/storage_maintenance_control.py +84 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/storybook_release_policy.py +37 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/substrate_identity.py +129 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/validate_dependency_regression.py +402 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/validate_dependency_update.py +920 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_experiment_registry.py +299 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_identity_diagnostics.py +38 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_invocation.py +145 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_linux_pid_namespace.py +134 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_observability.py +857 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_process_supervisor.py +790 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_proof.py +1526 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_source_closure.py +337 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_stage_checkpoint.py +367 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_storage_maintenance.py +298 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/verification_workspace_backend.py +398 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/windows_unc.py +48 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/worker_runtime_state.py +26 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_glob.py +208 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_health_evidence.py +145 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_health_policy.py +142 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_noise.py +83 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_npm_lock_delta.py +351 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_npm_obligations.py +190 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_npm_preflight.py +535 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_npm_transitive_override.py +239 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_peer_model.py +936 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/workspace_registry_metadata.py +73 -0
- package/runtime/Lib/site-packages/deploom_mcp/_core/yarn_berry.py +151 -0
- package/runtime/Lib/site-packages/deploom_mcp/audit_evidence.py +186 -0
- package/runtime/Lib/site-packages/deploom_mcp/audit_server.py +57 -0
- package/runtime/Lib/site-packages/deploom_mcp/audit_worker.py +738 -0
- package/runtime/Lib/site-packages/deploom_mcp/blueprint.py +1344 -0
- package/runtime/Lib/site-packages/deploom_mcp/decision_followups.py +384 -0
- package/runtime/Lib/site-packages/deploom_mcp/decisions.py +485 -0
- package/runtime/Lib/site-packages/deploom_mcp/dependency_audit.py +237 -0
- package/runtime/Lib/site-packages/deploom_mcp/distribution.py +51 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_artifact_scope.py +65 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_candidate.py +174 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_candidate_worker.py +30 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_check_bindings.py +236 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_choice_contract.py +79 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_choice_issuance.py +58 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_choice_lineage.py +115 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_choice_profile.py +38 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_choice_worker.py +66 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_contract.py +173 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_core_integrity.py +28 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_current_proof_boundary.py +41 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_current_proof_budget.py +135 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_current_proof_process.py +137 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_current_read_trace.py +66 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_delta_trial.py +413 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_execution_environment.py +71 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_execution_registry.py +207 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_final_authorization.py +133 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_final_auxiliary.py +114 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_final_candidate.py +102 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_final_checkpoint.py +342 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_final_materialization.py +150 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_final_resource_policy.py +49 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_final_transaction.py +243 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_final_worker.py +19 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_frozen_candidate.py +187 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_generated_outputs.py +94 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_historical_checkpoint.py +220 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_historical_lineage.py +97 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_invocation_adapter.py +179 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_lock_scope.py +476 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_published_edges.py +263 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_report.py +134 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_shared_scope.py +36 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_tap_nyc_execution.py +153 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_tap_nyc_input.py +174 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_tap_nyc_outputs.py +64 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_tap_nyc_spawn.py +66 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_tool_cache.py +146 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_tools.py +90 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_verifier_bridge.py +293 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_windows_file_swap.py +233 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_windows_tree_swap.py +105 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_worker.py +103 -0
- package/runtime/Lib/site-packages/deploom_mcp/goal_workspace_observation.py +49 -0
- package/runtime/Lib/site-packages/deploom_mcp/migration_evidence.py +191 -0
- package/runtime/Lib/site-packages/deploom_mcp/migration_sources.py +217 -0
- package/runtime/Lib/site-packages/deploom_mcp/migration_usage.cjs +91 -0
- package/runtime/Lib/site-packages/deploom_mcp/migration_usage.py +76 -0
- package/runtime/Lib/site-packages/deploom_mcp/migration_worker.py +56 -0
- package/runtime/Lib/site-packages/deploom_mcp/planning_registry.py +130 -0
- package/runtime/Lib/site-packages/deploom_mcp/process_runner.py +313 -0
- package/runtime/Lib/site-packages/deploom_mcp/project_capabilities.py +103 -0
- package/runtime/Lib/site-packages/deploom_mcp/proxy_settings.py +60 -0
- package/runtime/Lib/site-packages/deploom_mcp/public_cache.py +152 -0
- package/runtime/Lib/site-packages/deploom_mcp/py.typed +0 -0
- package/runtime/Lib/site-packages/deploom_mcp/registry_projection.py +313 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/release-manifest.json +176 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/scripts/check_skill.py +36 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/scripts/install_skill.py +280 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/scripts/skill_integrity.py +95 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/SKILL.md +281 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/contract.json +20 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/examples/blocked-upgrade.md +37 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/examples/plan-only.md +20 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/examples/yellow-exclude-react.md +29 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/references/blueprint-contract.md +160 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/references/evidence-report.md +150 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/references/execution-policy.md +143 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/references/goal-and-migration-evidence.md +124 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/references/npm-workspaces.md +241 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/references/preflight.md +75 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/references/verification-policy.md +77 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/skills/deploom-upgrade/scripts/validate_evidence.py +264 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/upgrade-blueprint.schema.json +1080 -0
- package/runtime/Lib/site-packages/deploom_mcp/resources/workspace-upgrade-blueprint.schema.json +1770 -0
- package/runtime/Lib/site-packages/deploom_mcp/server.py +1345 -0
- package/runtime/Lib/site-packages/deploom_mcp/shared_records.py +75 -0
- package/runtime/Lib/site-packages/deploom_mcp/standalone_audit_guard.cjs +71 -0
- package/runtime/Lib/site-packages/deploom_mcp/target_assessment.py +185 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_acceptance.py +311 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_candidate_policy.py +123 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_delivery_apply.py +149 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_edits.py +413 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_finalize.py +85 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_goal_request.py +95 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_input_io.py +123 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_inventory.py +428 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_migration_card.py +343 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_native_intent.py +155 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_plan_details.py +172 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_plan_snapshot.py +429 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_policy_delivery.py +88 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_policy_request.py +139 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_source_delivery.py +138 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_tools.py +313 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_upgrade.py +237 -0
- package/runtime/Lib/site-packages/deploom_mcp/workspace_verification_attempt.py +127 -0
- package/runtime/Lib/site-packages/deploom_mcp/yarn_candidate_audit.py +72 -0
- package/runtime/Lib/site-packages/deploom_mcp-0.2.21.dist-info/METADATA +85 -0
- package/runtime/Lib/site-packages/deploom_mcp-0.2.21.dist-info/RECORD +272 -0
- package/runtime/Lib/site-packages/deploom_mcp-0.2.21.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/deploom_mcp-0.2.21.dist-info/entry_points.txt +4 -0
- package/runtime/Lib/site-packages/deploom_mcp-0.2.21.dist-info/licenses/LICENSE +202 -0
- package/runtime/Lib/site-packages/deploom_mcp-0.2.21.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/h11/__init__.py +62 -0
- package/runtime/Lib/site-packages/h11/_abnf.py +132 -0
- package/runtime/Lib/site-packages/h11/_connection.py +659 -0
- package/runtime/Lib/site-packages/h11/_events.py +369 -0
- package/runtime/Lib/site-packages/h11/_headers.py +282 -0
- package/runtime/Lib/site-packages/h11/_readers.py +250 -0
- package/runtime/Lib/site-packages/h11/_receivebuffer.py +153 -0
- package/runtime/Lib/site-packages/h11/_state.py +365 -0
- package/runtime/Lib/site-packages/h11/_util.py +135 -0
- package/runtime/Lib/site-packages/h11/_version.py +16 -0
- package/runtime/Lib/site-packages/h11/_writers.py +145 -0
- package/runtime/Lib/site-packages/h11/py.typed +1 -0
- package/runtime/Lib/site-packages/h11-0.16.0.dist-info/METADATA +202 -0
- package/runtime/Lib/site-packages/h11-0.16.0.dist-info/RECORD +17 -0
- package/runtime/Lib/site-packages/h11-0.16.0.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/h11-0.16.0.dist-info/licenses/LICENSE.txt +22 -0
- package/runtime/Lib/site-packages/h11-0.16.0.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/httpcore2/__init__.py +141 -0
- package/runtime/Lib/site-packages/httpcore2/_api.py +95 -0
- package/runtime/Lib/site-packages/httpcore2/_async/__init__.py +39 -0
- package/runtime/Lib/site-packages/httpcore2/_async/connection.py +208 -0
- package/runtime/Lib/site-packages/httpcore2/_async/connection_pool.py +440 -0
- package/runtime/Lib/site-packages/httpcore2/_async/http11.py +357 -0
- package/runtime/Lib/site-packages/httpcore2/_async/http2.py +582 -0
- package/runtime/Lib/site-packages/httpcore2/_async/http_proxy.py +357 -0
- package/runtime/Lib/site-packages/httpcore2/_async/interfaces.py +160 -0
- package/runtime/Lib/site-packages/httpcore2/_async/socks_proxy.py +327 -0
- package/runtime/Lib/site-packages/httpcore2/_backends/__init__.py +0 -0
- package/runtime/Lib/site-packages/httpcore2/_backends/anyio.py +149 -0
- package/runtime/Lib/site-packages/httpcore2/_backends/auto.py +50 -0
- package/runtime/Lib/site-packages/httpcore2/_backends/base.py +97 -0
- package/runtime/Lib/site-packages/httpcore2/_backends/mock.py +143 -0
- package/runtime/Lib/site-packages/httpcore2/_backends/sync.py +235 -0
- package/runtime/Lib/site-packages/httpcore2/_backends/trio.py +157 -0
- package/runtime/Lib/site-packages/httpcore2/_exceptions.py +84 -0
- package/runtime/Lib/site-packages/httpcore2/_models.py +490 -0
- package/runtime/Lib/site-packages/httpcore2/_ssl.py +40 -0
- package/runtime/Lib/site-packages/httpcore2/_sync/__init__.py +39 -0
- package/runtime/Lib/site-packages/httpcore2/_sync/connection.py +208 -0
- package/runtime/Lib/site-packages/httpcore2/_sync/connection_pool.py +440 -0
- package/runtime/Lib/site-packages/httpcore2/_sync/http11.py +357 -0
- package/runtime/Lib/site-packages/httpcore2/_sync/http2.py +582 -0
- package/runtime/Lib/site-packages/httpcore2/_sync/http_proxy.py +357 -0
- package/runtime/Lib/site-packages/httpcore2/_sync/interfaces.py +160 -0
- package/runtime/Lib/site-packages/httpcore2/_sync/socks_proxy.py +327 -0
- package/runtime/Lib/site-packages/httpcore2/_synchronization.py +338 -0
- package/runtime/Lib/site-packages/httpcore2/_trace.py +105 -0
- package/runtime/Lib/site-packages/httpcore2/_utils.py +65 -0
- package/runtime/Lib/site-packages/httpcore2/py.typed +0 -0
- package/runtime/Lib/site-packages/httpcore2-2.16.0.dist-info/METADATA +785 -0
- package/runtime/Lib/site-packages/httpcore2-2.16.0.dist-info/RECORD +36 -0
- package/runtime/Lib/site-packages/httpcore2-2.16.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/httpcore2-2.16.0.dist-info/licenses/LICENSE.md +28 -0
- package/runtime/Lib/site-packages/httpx2/__init__.py +130 -0
- package/runtime/Lib/site-packages/httpx2/__version__.py +5 -0
- package/runtime/Lib/site-packages/httpx2/_alias.py +71 -0
- package/runtime/Lib/site-packages/httpx2/_api.py +532 -0
- package/runtime/Lib/site-packages/httpx2/_auth.py +335 -0
- package/runtime/Lib/site-packages/httpx2/_client.py +2236 -0
- package/runtime/Lib/site-packages/httpx2/_config.py +221 -0
- package/runtime/Lib/site-packages/httpx2/_content.py +237 -0
- package/runtime/Lib/site-packages/httpx2/_cookies.py +74 -0
- package/runtime/Lib/site-packages/httpx2/_decoders.py +458 -0
- package/runtime/Lib/site-packages/httpx2/_exceptions.py +380 -0
- package/runtime/Lib/site-packages/httpx2/_main.py +483 -0
- package/runtime/Lib/site-packages/httpx2/_models.py +1274 -0
- package/runtime/Lib/site-packages/httpx2/_multipart.py +284 -0
- package/runtime/Lib/site-packages/httpx2/_sse.py +226 -0
- package/runtime/Lib/site-packages/httpx2/_status_codes.py +189 -0
- package/runtime/Lib/site-packages/httpx2/_transports/__init__.py +27 -0
- package/runtime/Lib/site-packages/httpx2/_transports/asgi.py +178 -0
- package/runtime/Lib/site-packages/httpx2/_transports/base.py +83 -0
- package/runtime/Lib/site-packages/httpx2/_transports/default.py +400 -0
- package/runtime/Lib/site-packages/httpx2/_transports/mock.py +40 -0
- package/runtime/Lib/site-packages/httpx2/_transports/wsgi.py +145 -0
- package/runtime/Lib/site-packages/httpx2/_types.py +86 -0
- package/runtime/Lib/site-packages/httpx2/_urlparse.py +502 -0
- package/runtime/Lib/site-packages/httpx2/_urls.py +689 -0
- package/runtime/Lib/site-packages/httpx2/_utils.py +282 -0
- package/runtime/Lib/site-packages/httpx2/py.typed +0 -0
- package/runtime/Lib/site-packages/httpx2/websockets/__init__.py +57 -0
- package/runtime/Lib/site-packages/httpx2/websockets/_api.py +1676 -0
- package/runtime/Lib/site-packages/httpx2/websockets/_exceptions.py +55 -0
- package/runtime/Lib/site-packages/httpx2/websockets/_ping.py +43 -0
- package/runtime/Lib/site-packages/httpx2/websockets/_transport.py +289 -0
- package/runtime/Lib/site-packages/httpx2-2.16.0.dist-info/METADATA +230 -0
- package/runtime/Lib/site-packages/httpx2-2.16.0.dist-info/RECORD +37 -0
- package/runtime/Lib/site-packages/httpx2-2.16.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/httpx2-2.16.0.dist-info/entry_points.txt +2 -0
- package/runtime/Lib/site-packages/httpx2-2.16.0.dist-info/licenses/LICENSE.md +13 -0
- package/runtime/Lib/site-packages/idna/__init__.py +47 -0
- package/runtime/Lib/site-packages/idna/__main__.py +6 -0
- package/runtime/Lib/site-packages/idna/cli.py +132 -0
- package/runtime/Lib/site-packages/idna/codec.py +225 -0
- package/runtime/Lib/site-packages/idna/compat.py +43 -0
- package/runtime/Lib/site-packages/idna/core.py +863 -0
- package/runtime/Lib/site-packages/idna/idnadata.py +1933 -0
- package/runtime/Lib/site-packages/idna/intranges.py +55 -0
- package/runtime/Lib/site-packages/idna/package_data.py +1 -0
- package/runtime/Lib/site-packages/idna/py.typed +0 -0
- package/runtime/Lib/site-packages/idna/uts46data.py +17117 -0
- package/runtime/Lib/site-packages/idna-3.20.dist-info/METADATA +176 -0
- package/runtime/Lib/site-packages/idna-3.20.dist-info/RECORD +16 -0
- package/runtime/Lib/site-packages/idna-3.20.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/idna-3.20.dist-info/entry_points.txt +3 -0
- package/runtime/Lib/site-packages/idna-3.20.dist-info/licenses/LICENSE.md +31 -0
- package/runtime/Lib/site-packages/isapi/PyISAPI_loader.dll +0 -0
- package/runtime/Lib/site-packages/isapi/README.txt +7 -0
- package/runtime/Lib/site-packages/isapi/__init__.py +39 -0
- package/runtime/Lib/site-packages/isapi/doc/isapi.html +92 -0
- package/runtime/Lib/site-packages/isapi/install.py +809 -0
- package/runtime/Lib/site-packages/isapi/isapicon.py +121 -0
- package/runtime/Lib/site-packages/isapi/samples/README.txt +20 -0
- package/runtime/Lib/site-packages/isapi/samples/advanced.py +218 -0
- package/runtime/Lib/site-packages/isapi/samples/redirector.py +116 -0
- package/runtime/Lib/site-packages/isapi/samples/redirector_asynch.py +85 -0
- package/runtime/Lib/site-packages/isapi/samples/redirector_with_filter.py +162 -0
- package/runtime/Lib/site-packages/isapi/samples/test.py +195 -0
- package/runtime/Lib/site-packages/isapi/simple.py +73 -0
- package/runtime/Lib/site-packages/isapi/test/README.txt +3 -0
- package/runtime/Lib/site-packages/isapi/test/extension_simple.py +114 -0
- package/runtime/Lib/site-packages/isapi/threaded_extension.py +193 -0
- package/runtime/Lib/site-packages/jsonschema/__init__.py +120 -0
- package/runtime/Lib/site-packages/jsonschema/__main__.py +6 -0
- package/runtime/Lib/site-packages/jsonschema/_format.py +546 -0
- package/runtime/Lib/site-packages/jsonschema/_keywords.py +449 -0
- package/runtime/Lib/site-packages/jsonschema/_legacy_keywords.py +449 -0
- package/runtime/Lib/site-packages/jsonschema/_types.py +204 -0
- package/runtime/Lib/site-packages/jsonschema/_typing.py +29 -0
- package/runtime/Lib/site-packages/jsonschema/_utils.py +355 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/__init__.py +5 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/const_vs_enum.py +30 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/contains.py +28 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/import_benchmark.py +31 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/issue232/issue.json +2653 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/issue232.py +25 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/json_schema_test_suite.py +12 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/nested_schemas.py +56 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/subcomponents.py +42 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/unused_registry.py +35 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/useless_applicator_schemas.py +106 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/useless_keywords.py +32 -0
- package/runtime/Lib/site-packages/jsonschema/benchmarks/validator_creation.py +14 -0
- package/runtime/Lib/site-packages/jsonschema/cli.py +292 -0
- package/runtime/Lib/site-packages/jsonschema/exceptions.py +490 -0
- package/runtime/Lib/site-packages/jsonschema/protocols.py +230 -0
- package/runtime/Lib/site-packages/jsonschema/tests/__init__.py +0 -0
- package/runtime/Lib/site-packages/jsonschema/tests/_suite.py +285 -0
- package/runtime/Lib/site-packages/jsonschema/tests/fuzz_validate.py +50 -0
- package/runtime/Lib/site-packages/jsonschema/tests/test_cli.py +904 -0
- package/runtime/Lib/site-packages/jsonschema/tests/test_deprecations.py +432 -0
- package/runtime/Lib/site-packages/jsonschema/tests/test_exceptions.py +759 -0
- package/runtime/Lib/site-packages/jsonschema/tests/test_format.py +91 -0
- package/runtime/Lib/site-packages/jsonschema/tests/test_jsonschema_test_suite.py +262 -0
- package/runtime/Lib/site-packages/jsonschema/tests/test_types.py +221 -0
- package/runtime/Lib/site-packages/jsonschema/tests/test_utils.py +138 -0
- package/runtime/Lib/site-packages/jsonschema/tests/test_validators.py +2573 -0
- package/runtime/Lib/site-packages/jsonschema/tests/typing/__init__.py +0 -0
- package/runtime/Lib/site-packages/jsonschema/tests/typing/test_all_concrete_validators_match_protocol.py +38 -0
- package/runtime/Lib/site-packages/jsonschema/validators.py +1410 -0
- package/runtime/Lib/site-packages/jsonschema-4.26.0.dist-info/METADATA +170 -0
- package/runtime/Lib/site-packages/jsonschema-4.26.0.dist-info/RECORD +43 -0
- package/runtime/Lib/site-packages/jsonschema-4.26.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/jsonschema-4.26.0.dist-info/entry_points.txt +2 -0
- package/runtime/Lib/site-packages/jsonschema-4.26.0.dist-info/licenses/COPYING +19 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/__init__.py +12 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/_core.py +38 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft201909/metaschema.json +42 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/applicator +56 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/content +17 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/core +57 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/format +14 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data +37 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/validation +98 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft202012/metaschema.json +58 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/applicator +48 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/content +17 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/core +51 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation +14 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion +14 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data +37 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated +15 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/validation +98 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft3/metaschema.json +172 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft4/metaschema.json +149 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft6/metaschema.json +153 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/schemas/draft7/metaschema.json +166 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/tests/__init__.py +0 -0
- package/runtime/Lib/site-packages/jsonschema_specifications/tests/test_jsonschema_specifications.py +41 -0
- package/runtime/Lib/site-packages/jsonschema_specifications-2025.9.1.dist-info/METADATA +54 -0
- package/runtime/Lib/site-packages/jsonschema_specifications-2025.9.1.dist-info/RECORD +28 -0
- package/runtime/Lib/site-packages/jsonschema_specifications-2025.9.1.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/jsonschema_specifications-2025.9.1.dist-info/licenses/COPYING +19 -0
- package/runtime/Lib/site-packages/jwt/__init__.py +78 -0
- package/runtime/Lib/site-packages/jwt/algorithms.py +1121 -0
- package/runtime/Lib/site-packages/jwt/api_jwk.py +196 -0
- package/runtime/Lib/site-packages/jwt/api_jws.py +485 -0
- package/runtime/Lib/site-packages/jwt/api_jwt.py +595 -0
- package/runtime/Lib/site-packages/jwt/exceptions.py +113 -0
- package/runtime/Lib/site-packages/jwt/help.py +66 -0
- package/runtime/Lib/site-packages/jwt/jwk_set_cache.py +47 -0
- package/runtime/Lib/site-packages/jwt/jwks_client.py +333 -0
- package/runtime/Lib/site-packages/jwt/py.typed +0 -0
- package/runtime/Lib/site-packages/jwt/types.py +69 -0
- package/runtime/Lib/site-packages/jwt/utils.py +146 -0
- package/runtime/Lib/site-packages/jwt/warnings.py +11 -0
- package/runtime/Lib/site-packages/mcp/__init__.py +145 -0
- package/runtime/Lib/site-packages/mcp/cli/__init__.py +6 -0
- package/runtime/Lib/site-packages/mcp/cli/claude.py +170 -0
- package/runtime/Lib/site-packages/mcp/cli/cli.py +486 -0
- package/runtime/Lib/site-packages/mcp/client/__init__.py +44 -0
- package/runtime/Lib/site-packages/mcp/client/__main__.py +81 -0
- package/runtime/Lib/site-packages/mcp/client/_input_required.py +127 -0
- package/runtime/Lib/site-packages/mcp/client/_memory.py +109 -0
- package/runtime/Lib/site-packages/mcp/client/_probe.py +114 -0
- package/runtime/Lib/site-packages/mcp/client/_transport.py +21 -0
- package/runtime/Lib/site-packages/mcp/client/auth/__init__.py +22 -0
- package/runtime/Lib/site-packages/mcp/client/auth/exceptions.py +10 -0
- package/runtime/Lib/site-packages/mcp/client/auth/extensions/__init__.py +0 -0
- package/runtime/Lib/site-packages/mcp/client/auth/extensions/client_credentials.py +416 -0
- package/runtime/Lib/site-packages/mcp/client/auth/extensions/identity_assertion.py +216 -0
- package/runtime/Lib/site-packages/mcp/client/auth/oauth2.py +793 -0
- package/runtime/Lib/site-packages/mcp/client/auth/utils.py +442 -0
- package/runtime/Lib/site-packages/mcp/client/caching.py +387 -0
- package/runtime/Lib/site-packages/mcp/client/client.py +985 -0
- package/runtime/Lib/site-packages/mcp/client/context.py +5 -0
- package/runtime/Lib/site-packages/mcp/client/extension.py +196 -0
- package/runtime/Lib/site-packages/mcp/client/session.py +1506 -0
- package/runtime/Lib/site-packages/mcp/client/session_group.py +453 -0
- package/runtime/Lib/site-packages/mcp/client/sse.py +171 -0
- package/runtime/Lib/site-packages/mcp/client/stdio.py +355 -0
- package/runtime/Lib/site-packages/mcp/client/streamable_http.py +793 -0
- package/runtime/Lib/site-packages/mcp/client/subscriptions.py +282 -0
- package/runtime/Lib/site-packages/mcp/os/__init__.py +1 -0
- package/runtime/Lib/site-packages/mcp/os/posix/__init__.py +1 -0
- package/runtime/Lib/site-packages/mcp/os/posix/utilities.py +63 -0
- package/runtime/Lib/site-packages/mcp/os/win32/__init__.py +1 -0
- package/runtime/Lib/site-packages/mcp/os/win32/utilities.py +292 -0
- package/runtime/Lib/site-packages/mcp/py.typed +0 -0
- package/runtime/Lib/site-packages/mcp/server/__init__.py +7 -0
- package/runtime/Lib/site-packages/mcp/server/__main__.py +24 -0
- package/runtime/Lib/site-packages/mcp/server/_otel.py +72 -0
- package/runtime/Lib/site-packages/mcp/server/_streamable_http_modern.py +526 -0
- package/runtime/Lib/site-packages/mcp/server/apps.py +241 -0
- package/runtime/Lib/site-packages/mcp/server/auth/__init__.py +1 -0
- package/runtime/Lib/site-packages/mcp/server/auth/errors.py +5 -0
- package/runtime/Lib/site-packages/mcp/server/auth/handlers/__init__.py +1 -0
- package/runtime/Lib/site-packages/mcp/server/auth/handlers/authorize.py +221 -0
- package/runtime/Lib/site-packages/mcp/server/auth/handlers/metadata.py +29 -0
- package/runtime/Lib/site-packages/mcp/server/auth/handlers/register.py +154 -0
- package/runtime/Lib/site-packages/mcp/server/auth/handlers/revoke.py +87 -0
- package/runtime/Lib/site-packages/mcp/server/auth/handlers/token.py +275 -0
- package/runtime/Lib/site-packages/mcp/server/auth/json_response.py +10 -0
- package/runtime/Lib/site-packages/mcp/server/auth/middleware/__init__.py +1 -0
- package/runtime/Lib/site-packages/mcp/server/auth/middleware/auth_context.py +46 -0
- package/runtime/Lib/site-packages/mcp/server/auth/middleware/bearer_auth.py +165 -0
- package/runtime/Lib/site-packages/mcp/server/auth/middleware/client_auth.py +119 -0
- package/runtime/Lib/site-packages/mcp/server/auth/provider.py +380 -0
- package/runtime/Lib/site-packages/mcp/server/auth/routes.py +261 -0
- package/runtime/Lib/site-packages/mcp/server/auth/settings.py +70 -0
- package/runtime/Lib/site-packages/mcp/server/caching.py +85 -0
- package/runtime/Lib/site-packages/mcp/server/connection.py +493 -0
- package/runtime/Lib/site-packages/mcp/server/context.py +194 -0
- package/runtime/Lib/site-packages/mcp/server/elicitation.py +191 -0
- package/runtime/Lib/site-packages/mcp/server/extension.py +185 -0
- package/runtime/Lib/site-packages/mcp/server/fastmcp.py +16 -0
- package/runtime/Lib/site-packages/mcp/server/lowlevel/__init__.py +3 -0
- package/runtime/Lib/site-packages/mcp/server/lowlevel/helper_types.py +11 -0
- package/runtime/Lib/site-packages/mcp/server/lowlevel/server.py +852 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/__init__.py +61 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/context.py +391 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/exceptions.py +76 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/prompts/__init__.py +4 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/prompts/base.py +213 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/prompts/manager.py +67 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/resolve.py +846 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/resources/__init__.py +26 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/resources/base.py +43 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/resources/resource_manager.py +137 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/resources/templates.py +248 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/resources/types.py +230 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/server.py +1418 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/tools/__init__.py +4 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/tools/base.py +213 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/tools/tool_manager.py +87 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/utilities/__init__.py +1 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/utilities/context_injection.py +68 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/utilities/func_metadata.py +655 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/utilities/logging.py +39 -0
- package/runtime/Lib/site-packages/mcp/server/mcpserver/utilities/types.py +101 -0
- package/runtime/Lib/site-packages/mcp/server/models.py +17 -0
- package/runtime/Lib/site-packages/mcp/server/request_state.py +454 -0
- package/runtime/Lib/site-packages/mcp/server/runner.py +872 -0
- package/runtime/Lib/site-packages/mcp/server/session.py +489 -0
- package/runtime/Lib/site-packages/mcp/server/sse.py +287 -0
- package/runtime/Lib/site-packages/mcp/server/stdio.py +217 -0
- package/runtime/Lib/site-packages/mcp/server/streamable_http.py +1135 -0
- package/runtime/Lib/site-packages/mcp/server/streamable_http_manager.py +427 -0
- package/runtime/Lib/site-packages/mcp/server/subscriptions.py +254 -0
- package/runtime/Lib/site-packages/mcp/server/transport_security.py +183 -0
- package/runtime/Lib/site-packages/mcp/server/validation.py +93 -0
- package/runtime/Lib/site-packages/mcp/shared/__init__.py +0 -0
- package/runtime/Lib/site-packages/mcp/shared/_callable_inspection.py +33 -0
- package/runtime/Lib/site-packages/mcp/shared/_compat.py +19 -0
- package/runtime/Lib/site-packages/mcp/shared/_context_streams.py +119 -0
- package/runtime/Lib/site-packages/mcp/shared/_httpx_utils.py +222 -0
- package/runtime/Lib/site-packages/mcp/shared/_otel.py +60 -0
- package/runtime/Lib/site-packages/mcp/shared/_request_clock.py +81 -0
- package/runtime/Lib/site-packages/mcp/shared/_stream_protocols.py +49 -0
- package/runtime/Lib/site-packages/mcp/shared/auth.py +258 -0
- package/runtime/Lib/site-packages/mcp/shared/auth_utils.py +80 -0
- package/runtime/Lib/site-packages/mcp/shared/context.py +85 -0
- package/runtime/Lib/site-packages/mcp/shared/direct_dispatcher.py +337 -0
- package/runtime/Lib/site-packages/mcp/shared/dispatcher.py +283 -0
- package/runtime/Lib/site-packages/mcp/shared/exceptions.py +119 -0
- package/runtime/Lib/site-packages/mcp/shared/extension.py +28 -0
- package/runtime/Lib/site-packages/mcp/shared/inbound.py +595 -0
- package/runtime/Lib/site-packages/mcp/shared/jsonrpc_dispatcher.py +856 -0
- package/runtime/Lib/site-packages/mcp/shared/memory.py +33 -0
- package/runtime/Lib/site-packages/mcp/shared/message.py +63 -0
- package/runtime/Lib/site-packages/mcp/shared/metadata_utils.py +46 -0
- package/runtime/Lib/site-packages/mcp/shared/path_security.py +176 -0
- package/runtime/Lib/site-packages/mcp/shared/peer.py +240 -0
- package/runtime/Lib/site-packages/mcp/shared/subscriptions.py +111 -0
- package/runtime/Lib/site-packages/mcp/shared/tool_name_validation.py +129 -0
- package/runtime/Lib/site-packages/mcp/shared/transport_context.py +45 -0
- package/runtime/Lib/site-packages/mcp/shared/uri_template.py +1116 -0
- package/runtime/Lib/site-packages/mcp/types/__init__.py +31 -0
- package/runtime/Lib/site-packages/mcp/types/jsonrpc.py +13 -0
- package/runtime/Lib/site-packages/mcp/types/methods.py +13 -0
- package/runtime/Lib/site-packages/mcp/types/version.py +13 -0
- package/runtime/Lib/site-packages/mcp-2.3.0.dist-info/METADATA +172 -0
- package/runtime/Lib/site-packages/mcp-2.3.0.dist-info/RECORD +130 -0
- package/runtime/Lib/site-packages/mcp-2.3.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/mcp-2.3.0.dist-info/entry_points.txt +2 -0
- package/runtime/Lib/site-packages/mcp-2.3.0.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/mcp_types/__init__.py +453 -0
- package/runtime/Lib/site-packages/mcp_types/_types.py +2198 -0
- package/runtime/Lib/site-packages/mcp_types/_v2025_11_25/__init__.py +3391 -0
- package/runtime/Lib/site-packages/mcp_types/_v2026_07_28/__init__.py +3617 -0
- package/runtime/Lib/site-packages/mcp_types/_wire_base.py +9 -0
- package/runtime/Lib/site-packages/mcp_types/jsonrpc.py +148 -0
- package/runtime/Lib/site-packages/mcp_types/methods.py +746 -0
- package/runtime/Lib/site-packages/mcp_types/py.typed +0 -0
- package/runtime/Lib/site-packages/mcp_types/version.py +74 -0
- package/runtime/Lib/site-packages/mcp_types-2.3.0.dist-info/METADATA +43 -0
- package/runtime/Lib/site-packages/mcp_types-2.3.0.dist-info/RECORD +13 -0
- package/runtime/Lib/site-packages/mcp_types-2.3.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/mcp_types-2.3.0.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/multipart/__init__.py +38 -0
- package/runtime/Lib/site-packages/multipart/decoders.py +1 -0
- package/runtime/Lib/site-packages/multipart/exceptions.py +1 -0
- package/runtime/Lib/site-packages/multipart/multipart.py +1 -0
- package/runtime/Lib/site-packages/opentelemetry/_logs/__init__.py +47 -0
- package/runtime/Lib/site-packages/opentelemetry/_logs/_internal/__init__.py +484 -0
- package/runtime/Lib/site-packages/opentelemetry/_logs/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/_logs/severity/__init__.py +44 -0
- package/runtime/Lib/site-packages/opentelemetry/attributes/__init__.py +243 -0
- package/runtime/Lib/site-packages/opentelemetry/attributes/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/baggage/__init__.py +122 -0
- package/runtime/Lib/site-packages/opentelemetry/baggage/propagation/__init__.py +179 -0
- package/runtime/Lib/site-packages/opentelemetry/baggage/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/context/__init__.py +147 -0
- package/runtime/Lib/site-packages/opentelemetry/context/context.py +65 -0
- package/runtime/Lib/site-packages/opentelemetry/context/contextvars_context.py +43 -0
- package/runtime/Lib/site-packages/opentelemetry/context/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/environment_variables/__init__.py +72 -0
- package/runtime/Lib/site-packages/opentelemetry/environment_variables/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/metrics/__init__.py +121 -0
- package/runtime/Lib/site-packages/opentelemetry/metrics/_internal/__init__.py +892 -0
- package/runtime/Lib/site-packages/opentelemetry/metrics/_internal/instrument.py +540 -0
- package/runtime/Lib/site-packages/opentelemetry/metrics/_internal/observation.py +51 -0
- package/runtime/Lib/site-packages/opentelemetry/metrics/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/propagate/__init__.py +171 -0
- package/runtime/Lib/site-packages/opentelemetry/propagate/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/propagators/_envcarrier.py +94 -0
- package/runtime/Lib/site-packages/opentelemetry/propagators/composite.py +78 -0
- package/runtime/Lib/site-packages/opentelemetry/propagators/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/propagators/textmap.py +181 -0
- package/runtime/Lib/site-packages/opentelemetry/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/trace/__init__.py +661 -0
- package/runtime/Lib/site-packages/opentelemetry/trace/propagation/__init__.py +37 -0
- package/runtime/Lib/site-packages/opentelemetry/trace/propagation/tracecontext.py +126 -0
- package/runtime/Lib/site-packages/opentelemetry/trace/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/trace/span.py +616 -0
- package/runtime/Lib/site-packages/opentelemetry/trace/status.py +68 -0
- package/runtime/Lib/site-packages/opentelemetry/util/_decorator.py +75 -0
- package/runtime/Lib/site-packages/opentelemetry/util/_importlib_metadata.py +61 -0
- package/runtime/Lib/site-packages/opentelemetry/util/_once.py +36 -0
- package/runtime/Lib/site-packages/opentelemetry/util/_providers.py +42 -0
- package/runtime/Lib/site-packages/opentelemetry/util/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry/util/re.py +93 -0
- package/runtime/Lib/site-packages/opentelemetry/util/types.py +28 -0
- package/runtime/Lib/site-packages/opentelemetry/version/__init__.py +4 -0
- package/runtime/Lib/site-packages/opentelemetry/version/py.typed +0 -0
- package/runtime/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/METADATA +43 -0
- package/runtime/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/RECORD +47 -0
- package/runtime/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/entry_points.txt +15 -0
- package/runtime/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/licenses/LICENSE +201 -0
- package/runtime/Lib/site-packages/pycparser/__init__.py +98 -0
- package/runtime/Lib/site-packages/pycparser/_ast_gen.py +385 -0
- package/runtime/Lib/site-packages/pycparser/_c_ast.cfg +268 -0
- package/runtime/Lib/site-packages/pycparser/ast_transforms.py +201 -0
- package/runtime/Lib/site-packages/pycparser/c_ast.py +1670 -0
- package/runtime/Lib/site-packages/pycparser/c_generator.py +866 -0
- package/runtime/Lib/site-packages/pycparser/c_lexer.py +861 -0
- package/runtime/Lib/site-packages/pycparser/c_parser.py +2759 -0
- package/runtime/Lib/site-packages/pycparser-3.12.dist-info/METADATA +286 -0
- package/runtime/Lib/site-packages/pycparser-3.12.dist-info/RECORD +13 -0
- package/runtime/Lib/site-packages/pycparser-3.12.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/pycparser-3.12.dist-info/licenses/LICENSE +27 -0
- package/runtime/Lib/site-packages/pycparser-3.12.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/pydantic/__init__.py +461 -0
- package/runtime/Lib/site-packages/pydantic/_internal/__init__.py +0 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_config.py +408 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_core_metadata.py +97 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_core_utils.py +156 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_dataclasses.py +327 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_decorators.py +906 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_decorators_v1.py +174 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_discriminated_union.py +510 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_docs_extraction.py +128 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_fields.py +910 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_forward_ref.py +23 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_generate_schema.py +2984 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_generics.py +556 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_git.py +27 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_import_utils.py +20 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_known_annotated_metadata.py +405 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_mock_val_ser.py +237 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_model_construction.py +833 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_namespace_utils.py +299 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_repr.py +122 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_schema_gather.py +49 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_schema_generation_shared.py +126 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_serializers.py +59 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_signature.py +193 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_type_refs.py +128 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_typing_extra.py +502 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_utils.py +433 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_validate_call.py +141 -0
- package/runtime/Lib/site-packages/pydantic/_internal/_validators.py +541 -0
- package/runtime/Lib/site-packages/pydantic/_migration.py +317 -0
- package/runtime/Lib/site-packages/pydantic/alias_generators.py +62 -0
- package/runtime/Lib/site-packages/pydantic/aliases.py +136 -0
- package/runtime/Lib/site-packages/pydantic/annotated_handlers.py +123 -0
- package/runtime/Lib/site-packages/pydantic/class_validators.py +5 -0
- package/runtime/Lib/site-packages/pydantic/color.py +605 -0
- package/runtime/Lib/site-packages/pydantic/config.py +1295 -0
- package/runtime/Lib/site-packages/pydantic/dataclasses.py +385 -0
- package/runtime/Lib/site-packages/pydantic/datetime_parse.py +5 -0
- package/runtime/Lib/site-packages/pydantic/decorator.py +5 -0
- package/runtime/Lib/site-packages/pydantic/deprecated/__init__.py +0 -0
- package/runtime/Lib/site-packages/pydantic/deprecated/class_validators.py +257 -0
- package/runtime/Lib/site-packages/pydantic/deprecated/config.py +72 -0
- package/runtime/Lib/site-packages/pydantic/deprecated/copy_internals.py +224 -0
- package/runtime/Lib/site-packages/pydantic/deprecated/decorator.py +286 -0
- package/runtime/Lib/site-packages/pydantic/deprecated/json.py +142 -0
- package/runtime/Lib/site-packages/pydantic/deprecated/parse.py +81 -0
- package/runtime/Lib/site-packages/pydantic/deprecated/tools.py +104 -0
- package/runtime/Lib/site-packages/pydantic/env_settings.py +5 -0
- package/runtime/Lib/site-packages/pydantic/error_wrappers.py +5 -0
- package/runtime/Lib/site-packages/pydantic/errors.py +185 -0
- package/runtime/Lib/site-packages/pydantic/experimental/__init__.py +1 -0
- package/runtime/Lib/site-packages/pydantic/experimental/arguments_schema.py +44 -0
- package/runtime/Lib/site-packages/pydantic/experimental/missing_sentinel.py +29 -0
- package/runtime/Lib/site-packages/pydantic/experimental/pipeline.py +684 -0
- package/runtime/Lib/site-packages/pydantic/fields.py +2065 -0
- package/runtime/Lib/site-packages/pydantic/functional_serializers.py +461 -0
- package/runtime/Lib/site-packages/pydantic/functional_validators.py +920 -0
- package/runtime/Lib/site-packages/pydantic/generics.py +5 -0
- package/runtime/Lib/site-packages/pydantic/json.py +5 -0
- package/runtime/Lib/site-packages/pydantic/json_schema.py +3261 -0
- package/runtime/Lib/site-packages/pydantic/main.py +1947 -0
- package/runtime/Lib/site-packages/pydantic/mypy.py +1469 -0
- package/runtime/Lib/site-packages/pydantic/networks.py +1417 -0
- package/runtime/Lib/site-packages/pydantic/parse.py +5 -0
- package/runtime/Lib/site-packages/pydantic/plugin/__init__.py +190 -0
- package/runtime/Lib/site-packages/pydantic/plugin/_loader.py +58 -0
- package/runtime/Lib/site-packages/pydantic/plugin/_schema_validator.py +152 -0
- package/runtime/Lib/site-packages/pydantic/py.typed +0 -0
- package/runtime/Lib/site-packages/pydantic/root_model.py +189 -0
- package/runtime/Lib/site-packages/pydantic/schema.py +5 -0
- package/runtime/Lib/site-packages/pydantic/tools.py +5 -0
- package/runtime/Lib/site-packages/pydantic/type_adapter.py +780 -0
- package/runtime/Lib/site-packages/pydantic/types.py +3405 -0
- package/runtime/Lib/site-packages/pydantic/typing.py +5 -0
- package/runtime/Lib/site-packages/pydantic/utils.py +5 -0
- package/runtime/Lib/site-packages/pydantic/v1/__init__.py +131 -0
- package/runtime/Lib/site-packages/pydantic/v1/_hypothesis_plugin.py +391 -0
- package/runtime/Lib/site-packages/pydantic/v1/annotated_types.py +72 -0
- package/runtime/Lib/site-packages/pydantic/v1/class_validators.py +361 -0
- package/runtime/Lib/site-packages/pydantic/v1/color.py +494 -0
- package/runtime/Lib/site-packages/pydantic/v1/config.py +191 -0
- package/runtime/Lib/site-packages/pydantic/v1/dataclasses.py +503 -0
- package/runtime/Lib/site-packages/pydantic/v1/datetime_parse.py +248 -0
- package/runtime/Lib/site-packages/pydantic/v1/decorator.py +264 -0
- package/runtime/Lib/site-packages/pydantic/v1/env_settings.py +350 -0
- package/runtime/Lib/site-packages/pydantic/v1/error_wrappers.py +161 -0
- package/runtime/Lib/site-packages/pydantic/v1/errors.py +646 -0
- package/runtime/Lib/site-packages/pydantic/v1/fields.py +1253 -0
- package/runtime/Lib/site-packages/pydantic/v1/generics.py +400 -0
- package/runtime/Lib/site-packages/pydantic/v1/json.py +112 -0
- package/runtime/Lib/site-packages/pydantic/v1/main.py +1130 -0
- package/runtime/Lib/site-packages/pydantic/v1/mypy.py +950 -0
- package/runtime/Lib/site-packages/pydantic/v1/networks.py +747 -0
- package/runtime/Lib/site-packages/pydantic/v1/parse.py +66 -0
- package/runtime/Lib/site-packages/pydantic/v1/py.typed +0 -0
- package/runtime/Lib/site-packages/pydantic/v1/schema.py +1163 -0
- package/runtime/Lib/site-packages/pydantic/v1/tools.py +92 -0
- package/runtime/Lib/site-packages/pydantic/v1/types.py +1213 -0
- package/runtime/Lib/site-packages/pydantic/v1/typing.py +627 -0
- package/runtime/Lib/site-packages/pydantic/v1/utils.py +807 -0
- package/runtime/Lib/site-packages/pydantic/v1/validators.py +768 -0
- package/runtime/Lib/site-packages/pydantic/v1/version.py +38 -0
- package/runtime/Lib/site-packages/pydantic/validate_call_decorator.py +121 -0
- package/runtime/Lib/site-packages/pydantic/validators.py +5 -0
- package/runtime/Lib/site-packages/pydantic/version.py +113 -0
- package/runtime/Lib/site-packages/pydantic/warnings.py +130 -0
- package/runtime/Lib/site-packages/pydantic-2.14.2.dist-info/METADATA +1602 -0
- package/runtime/Lib/site-packages/pydantic-2.14.2.dist-info/RECORD +111 -0
- package/runtime/Lib/site-packages/pydantic-2.14.2.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/pydantic-2.14.2.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/pydantic_core/__init__.py +193 -0
- package/runtime/Lib/site-packages/pydantic_core/_pydantic_core/__init__.pyi +1118 -0
- package/runtime/Lib/site-packages/pydantic_core/_pydantic_core/_schema_gather.pyi +34 -0
- package/runtime/Lib/site-packages/pydantic_core/_pydantic_core.cp313-win_amd64.pyd +0 -0
- package/runtime/Lib/site-packages/pydantic_core/core_schema.py +5092 -0
- package/runtime/Lib/site-packages/pydantic_core/py.typed +0 -0
- package/runtime/Lib/site-packages/pydantic_core-2.50.2.dist-info/METADATA +171 -0
- package/runtime/Lib/site-packages/pydantic_core-2.50.2.dist-info/RECORD +11 -0
- package/runtime/Lib/site-packages/pydantic_core-2.50.2.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/pydantic_core-2.50.2.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/pydantic_core-2.50.2.dist-info/sboms/pydantic-core.cyclonedx.json +3889 -0
- package/runtime/Lib/site-packages/pyjwt-2.15.1.dist-info/METADATA +94 -0
- package/runtime/Lib/site-packages/pyjwt-2.15.1.dist-info/RECORD +19 -0
- package/runtime/Lib/site-packages/pyjwt-2.15.1.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/pyjwt-2.15.1.dist-info/licenses/AUTHORS.rst +7 -0
- package/runtime/Lib/site-packages/pyjwt-2.15.1.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/pyjwt-2.15.1.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/python_dateutil-3.0.0.dist-info/METADATA +204 -0
- package/runtime/Lib/site-packages/python_dateutil-3.0.0.dist-info/RECORD +27 -0
- package/runtime/Lib/site-packages/python_dateutil-3.0.0.dist-info/WHEEL +6 -0
- package/runtime/Lib/site-packages/python_dateutil-3.0.0.dist-info/licenses/LICENSE +54 -0
- package/runtime/Lib/site-packages/python_dateutil-3.0.0.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/python_dateutil-3.0.0.dist-info/zip-safe +1 -0
- package/runtime/Lib/site-packages/python_multipart/__init__.py +35 -0
- package/runtime/Lib/site-packages/python_multipart/decoders.py +185 -0
- package/runtime/Lib/site-packages/python_multipart/exceptions.py +34 -0
- package/runtime/Lib/site-packages/python_multipart/multipart.py +1925 -0
- package/runtime/Lib/site-packages/python_multipart/py.typed +0 -0
- package/runtime/Lib/site-packages/python_multipart-0.0.32.dist-info/METADATA +43 -0
- package/runtime/Lib/site-packages/python_multipart-0.0.32.dist-info/RECORD +13 -0
- package/runtime/Lib/site-packages/python_multipart-0.0.32.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/python_multipart-0.0.32.dist-info/licenses/LICENSE.txt +202 -0
- package/runtime/Lib/site-packages/pythoncom.py +4 -0
- package/runtime/Lib/site-packages/pywin32-311.dist-info/METADATA +233 -0
- package/runtime/Lib/site-packages/pywin32-311.dist-info/RECORD +477 -0
- package/runtime/Lib/site-packages/pywin32-311.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/pywin32-311.dist-info/entry_points.txt +3 -0
- package/runtime/Lib/site-packages/pywin32-311.dist-info/top_level.txt +93 -0
- package/runtime/Lib/site-packages/pywin32.pth +7 -0
- package/runtime/Lib/site-packages/pywin32.version.txt +1 -0
- package/runtime/Lib/site-packages/pywin32_system32/pythoncom313.dll +0 -0
- package/runtime/Lib/site-packages/pywin32_system32/pywintypes313.dll +0 -0
- package/runtime/Lib/site-packages/pyyaml-6.0.3.dist-info/METADATA +59 -0
- package/runtime/Lib/site-packages/pyyaml-6.0.3.dist-info/RECORD +24 -0
- package/runtime/Lib/site-packages/pyyaml-6.0.3.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/pyyaml-6.0.3.dist-info/licenses/LICENSE +20 -0
- package/runtime/Lib/site-packages/pyyaml-6.0.3.dist-info/top_level.txt +2 -0
- package/runtime/Lib/site-packages/referencing/__init__.py +7 -0
- package/runtime/Lib/site-packages/referencing/_attrs.py +31 -0
- package/runtime/Lib/site-packages/referencing/_attrs.pyi +21 -0
- package/runtime/Lib/site-packages/referencing/_core.py +739 -0
- package/runtime/Lib/site-packages/referencing/exceptions.py +165 -0
- package/runtime/Lib/site-packages/referencing/jsonschema.py +642 -0
- package/runtime/Lib/site-packages/referencing/py.typed +0 -0
- package/runtime/Lib/site-packages/referencing/retrieval.py +94 -0
- package/runtime/Lib/site-packages/referencing/tests/__init__.py +0 -0
- package/runtime/Lib/site-packages/referencing/tests/test_core.py +1057 -0
- package/runtime/Lib/site-packages/referencing/tests/test_exceptions.py +34 -0
- package/runtime/Lib/site-packages/referencing/tests/test_jsonschema.py +382 -0
- package/runtime/Lib/site-packages/referencing/tests/test_referencing_suite.py +66 -0
- package/runtime/Lib/site-packages/referencing/tests/test_retrieval.py +106 -0
- package/runtime/Lib/site-packages/referencing/typing.py +61 -0
- package/runtime/Lib/site-packages/referencing-0.37.0.dist-info/METADATA +64 -0
- package/runtime/Lib/site-packages/referencing-0.37.0.dist-info/RECORD +19 -0
- package/runtime/Lib/site-packages/referencing-0.37.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/referencing-0.37.0.dist-info/licenses/COPYING +19 -0
- package/runtime/Lib/site-packages/requests/__init__.py +219 -0
- package/runtime/Lib/site-packages/requests/__version__.py +14 -0
- package/runtime/Lib/site-packages/requests/_internal_utils.py +51 -0
- package/runtime/Lib/site-packages/requests/_types.py +183 -0
- package/runtime/Lib/site-packages/requests/adapters.py +748 -0
- package/runtime/Lib/site-packages/requests/api.py +180 -0
- package/runtime/Lib/site-packages/requests/auth.py +354 -0
- package/runtime/Lib/site-packages/requests/certs.py +18 -0
- package/runtime/Lib/site-packages/requests/compat.py +113 -0
- package/runtime/Lib/site-packages/requests/cookies.py +625 -0
- package/runtime/Lib/site-packages/requests/exceptions.py +162 -0
- package/runtime/Lib/site-packages/requests/help.py +134 -0
- package/runtime/Lib/site-packages/requests/hooks.py +48 -0
- package/runtime/Lib/site-packages/requests/models.py +1180 -0
- package/runtime/Lib/site-packages/requests/packages.py +23 -0
- package/runtime/Lib/site-packages/requests/py.typed +0 -0
- package/runtime/Lib/site-packages/requests/sessions.py +920 -0
- package/runtime/Lib/site-packages/requests/status_codes.py +128 -0
- package/runtime/Lib/site-packages/requests/structures.py +130 -0
- package/runtime/Lib/site-packages/requests/utils.py +1155 -0
- package/runtime/Lib/site-packages/requests-2.34.2.dist-info/METADATA +120 -0
- package/runtime/Lib/site-packages/requests-2.34.2.dist-info/RECORD +26 -0
- package/runtime/Lib/site-packages/requests-2.34.2.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/requests-2.34.2.dist-info/licenses/LICENSE +175 -0
- package/runtime/Lib/site-packages/requests-2.34.2.dist-info/licenses/NOTICE +2 -0
- package/runtime/Lib/site-packages/requests-2.34.2.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/rpds/__init__.py +5 -0
- package/runtime/Lib/site-packages/rpds/__init__.pyi +79 -0
- package/runtime/Lib/site-packages/rpds/py.typed +0 -0
- package/runtime/Lib/site-packages/rpds/rpds.cp313-win_amd64.pyd +0 -0
- package/runtime/Lib/site-packages/rpds_py-2026.9.1.dist-info/METADATA +99 -0
- package/runtime/Lib/site-packages/rpds_py-2026.9.1.dist-info/RECORD +9 -0
- package/runtime/Lib/site-packages/rpds_py-2026.9.1.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/rpds_py-2026.9.1.dist-info/licenses/LICENSE +19 -0
- package/runtime/Lib/site-packages/rpds_py-2026.9.1.dist-info/sboms/rpds-py.cyclonedx.json +680 -0
- package/runtime/Lib/site-packages/semantic_version/__init__.py +18 -0
- package/runtime/Lib/site-packages/semantic_version/base.py +1449 -0
- package/runtime/Lib/site-packages/semantic_version/django_fields.py +107 -0
- package/runtime/Lib/site-packages/semantic_version-2.10.0.dist-info/LICENSE +22 -0
- package/runtime/Lib/site-packages/semantic_version-2.10.0.dist-info/METADATA +324 -0
- package/runtime/Lib/site-packages/semantic_version-2.10.0.dist-info/RECORD +8 -0
- package/runtime/Lib/site-packages/semantic_version-2.10.0.dist-info/WHEEL +6 -0
- package/runtime/Lib/site-packages/semantic_version-2.10.0.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/six-1.17.0.dist-info/LICENSE +18 -0
- package/runtime/Lib/site-packages/six-1.17.0.dist-info/METADATA +43 -0
- package/runtime/Lib/site-packages/six-1.17.0.dist-info/RECORD +6 -0
- package/runtime/Lib/site-packages/six-1.17.0.dist-info/WHEEL +6 -0
- package/runtime/Lib/site-packages/six-1.17.0.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/six.py +1003 -0
- package/runtime/Lib/site-packages/sse_starlette/__init__.py +5 -0
- package/runtime/Lib/site-packages/sse_starlette/_utils.py +36 -0
- package/runtime/Lib/site-packages/sse_starlette/event.py +96 -0
- package/runtime/Lib/site-packages/sse_starlette/py.typed +0 -0
- package/runtime/Lib/site-packages/sse_starlette/sse.py +579 -0
- package/runtime/Lib/site-packages/sse_starlette-3.6.0.dist-info/METADATA +494 -0
- package/runtime/Lib/site-packages/sse_starlette-3.6.0.dist-info/RECORD +11 -0
- package/runtime/Lib/site-packages/sse_starlette-3.6.0.dist-info/WHEEL +5 -0
- package/runtime/Lib/site-packages/sse_starlette-3.6.0.dist-info/licenses/AUTHORS +10 -0
- package/runtime/Lib/site-packages/sse_starlette-3.6.0.dist-info/licenses/LICENSE +27 -0
- package/runtime/Lib/site-packages/sse_starlette-3.6.0.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/starlette/__init__.py +1 -0
- package/runtime/Lib/site-packages/starlette/_exception_handler.py +67 -0
- package/runtime/Lib/site-packages/starlette/_utils.py +152 -0
- package/runtime/Lib/site-packages/starlette/applications.py +124 -0
- package/runtime/Lib/site-packages/starlette/authentication.py +157 -0
- package/runtime/Lib/site-packages/starlette/background.py +36 -0
- package/runtime/Lib/site-packages/starlette/concurrency.py +59 -0
- package/runtime/Lib/site-packages/starlette/config.py +142 -0
- package/runtime/Lib/site-packages/starlette/convertors.py +89 -0
- package/runtime/Lib/site-packages/starlette/datastructures.py +717 -0
- package/runtime/Lib/site-packages/starlette/endpoints.py +128 -0
- package/runtime/Lib/site-packages/starlette/exceptions.py +43 -0
- package/runtime/Lib/site-packages/starlette/formparsers.py +289 -0
- package/runtime/Lib/site-packages/starlette/middleware/__init__.py +37 -0
- package/runtime/Lib/site-packages/starlette/middleware/authentication.py +52 -0
- package/runtime/Lib/site-packages/starlette/middleware/base.py +254 -0
- package/runtime/Lib/site-packages/starlette/middleware/body_limit.py +132 -0
- package/runtime/Lib/site-packages/starlette/middleware/cors.py +177 -0
- package/runtime/Lib/site-packages/starlette/middleware/errors.py +259 -0
- package/runtime/Lib/site-packages/starlette/middleware/exceptions.py +73 -0
- package/runtime/Lib/site-packages/starlette/middleware/gzip.py +230 -0
- package/runtime/Lib/site-packages/starlette/middleware/httpsredirect.py +22 -0
- package/runtime/Lib/site-packages/starlette/middleware/opentelemetry.py +126 -0
- package/runtime/Lib/site-packages/starlette/middleware/sessions.py +139 -0
- package/runtime/Lib/site-packages/starlette/middleware/trustedhost.py +66 -0
- package/runtime/Lib/site-packages/starlette/middleware/wsgi.py +157 -0
- package/runtime/Lib/site-packages/starlette/py.typed +0 -0
- package/runtime/Lib/site-packages/starlette/requests.py +357 -0
- package/runtime/Lib/site-packages/starlette/responses.py +616 -0
- package/runtime/Lib/site-packages/starlette/routing.py +772 -0
- package/runtime/Lib/site-packages/starlette/schemas.py +152 -0
- package/runtime/Lib/site-packages/starlette/staticfiles.py +231 -0
- package/runtime/Lib/site-packages/starlette/status.py +211 -0
- package/runtime/Lib/site-packages/starlette/templating.py +156 -0
- package/runtime/Lib/site-packages/starlette/testclient.py +624 -0
- package/runtime/Lib/site-packages/starlette/types.py +26 -0
- package/runtime/Lib/site-packages/starlette/websockets.py +202 -0
- package/runtime/Lib/site-packages/starlette-1.10.0.dist-info/METADATA +181 -0
- package/runtime/Lib/site-packages/starlette-1.10.0.dist-info/RECORD +41 -0
- package/runtime/Lib/site-packages/starlette-1.10.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/starlette-1.10.0.dist-info/licenses/LICENSE.md +27 -0
- package/runtime/Lib/site-packages/truststore/__init__.py +36 -0
- package/runtime/Lib/site-packages/truststore/_api.py +377 -0
- package/runtime/Lib/site-packages/truststore/_macos.py +571 -0
- package/runtime/Lib/site-packages/truststore/_openssl.py +65 -0
- package/runtime/Lib/site-packages/truststore/_ssl_constants.py +30 -0
- package/runtime/Lib/site-packages/truststore/_windows.py +567 -0
- package/runtime/Lib/site-packages/truststore/py.typed +0 -0
- package/runtime/Lib/site-packages/truststore-0.10.5.dist-info/METADATA +110 -0
- package/runtime/Lib/site-packages/truststore-0.10.5.dist-info/RECORD +11 -0
- package/runtime/Lib/site-packages/truststore-0.10.5.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/truststore-0.10.5.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/typing_extensions-4.16.0.dist-info/METADATA +73 -0
- package/runtime/Lib/site-packages/typing_extensions-4.16.0.dist-info/RECORD +5 -0
- package/runtime/Lib/site-packages/typing_extensions-4.16.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/typing_extensions-4.16.0.dist-info/licenses/LICENSE +279 -0
- package/runtime/Lib/site-packages/typing_extensions.py +4422 -0
- package/runtime/Lib/site-packages/typing_inspection/__init__.py +0 -0
- package/runtime/Lib/site-packages/typing_inspection/introspection.py +587 -0
- package/runtime/Lib/site-packages/typing_inspection/py.typed +0 -0
- package/runtime/Lib/site-packages/typing_inspection/typing_objects.py +620 -0
- package/runtime/Lib/site-packages/typing_inspection/typing_objects.pyi +421 -0
- package/runtime/Lib/site-packages/typing_inspection-0.4.4.dist-info/METADATA +49 -0
- package/runtime/Lib/site-packages/typing_inspection-0.4.4.dist-info/RECORD +9 -0
- package/runtime/Lib/site-packages/typing_inspection-0.4.4.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/typing_inspection-0.4.4.dist-info/licenses/LICENSE +21 -0
- package/runtime/Lib/site-packages/tzdata/__init__.py +6 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Abidjan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Accra +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Addis_Ababa +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Algiers +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Asmara +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Asmera +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Bamako +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Bangui +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Banjul +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Bissau +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Blantyre +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Brazzaville +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Bujumbura +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Cairo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Casablanca +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Ceuta +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Conakry +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Dakar +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Dar_es_Salaam +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Djibouti +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Douala +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/El_Aaiun +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Freetown +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Gaborone +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Harare +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Johannesburg +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Juba +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Kampala +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Khartoum +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Kigali +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Kinshasa +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Lagos +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Libreville +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Lome +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Luanda +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Lubumbashi +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Lusaka +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Malabo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Maputo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Maseru +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Mbabane +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Mogadishu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Monrovia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Nairobi +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Ndjamena +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Niamey +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Nouakchott +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Ouagadougou +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Porto-Novo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Sao_Tome +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Timbuktu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Tripoli +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Tunis +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/Windhoek +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Africa/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Adak +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Anchorage +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Anguilla +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Antigua +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Araguaina +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/Buenos_Aires +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/Catamarca +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/ComodRivadavia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/Cordoba +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/Jujuy +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/La_Rioja +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/Mendoza +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/Rio_Gallegos +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/Salta +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/San_Juan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/San_Luis +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/Tucuman +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/Ushuaia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Argentina/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Aruba +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Asuncion +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Atikokan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Atka +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Bahia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Bahia_Banderas +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Barbados +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Belem +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Belize +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Blanc-Sablon +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Boa_Vista +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Bogota +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Boise +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Buenos_Aires +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Cambridge_Bay +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Campo_Grande +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Cancun +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Caracas +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Catamarca +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Cayenne +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Cayman +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Chicago +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Chihuahua +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Ciudad_Juarez +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Coral_Harbour +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Cordoba +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Costa_Rica +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Coyhaique +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Creston +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Cuiaba +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Curacao +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Danmarkshavn +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Dawson +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Dawson_Creek +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Denver +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Detroit +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Dominica +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Edmonton +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Eirunepe +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/El_Salvador +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Ensenada +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Fort_Nelson +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Fort_Wayne +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Fortaleza +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Glace_Bay +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Godthab +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Goose_Bay +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Grand_Turk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Grenada +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Guadeloupe +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Guatemala +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Guayaquil +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Guyana +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Halifax +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Havana +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Hermosillo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indiana/Indianapolis +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indiana/Knox +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indiana/Marengo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indiana/Petersburg +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indiana/Tell_City +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indiana/Vevay +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indiana/Vincennes +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indiana/Winamac +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indiana/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Indianapolis +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Inuvik +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Iqaluit +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Jamaica +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Jujuy +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Juneau +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Kentucky/Louisville +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Kentucky/Monticello +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Kentucky/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Knox_IN +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Kralendijk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/La_Paz +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Lima +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Los_Angeles +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Louisville +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Lower_Princes +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Maceio +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Managua +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Manaus +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Marigot +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Martinique +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Matamoros +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Mazatlan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Mendoza +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Menominee +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Merida +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Metlakatla +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Mexico_City +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Miquelon +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Moncton +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Monterrey +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Montevideo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Montreal +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Montserrat +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Nassau +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/New_York +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Nipigon +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Nome +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Noronha +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/North_Dakota/Beulah +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/North_Dakota/Center +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/North_Dakota/New_Salem +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/North_Dakota/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Nuuk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Ojinaga +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Panama +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Pangnirtung +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Paramaribo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Phoenix +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Port-au-Prince +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Port_of_Spain +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Porto_Acre +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Porto_Velho +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Puerto_Rico +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Punta_Arenas +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Rainy_River +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Rankin_Inlet +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Recife +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Regina +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Resolute +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Rio_Branco +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Rosario +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Santa_Isabel +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Santarem +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Santiago +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Santo_Domingo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Sao_Paulo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Scoresbysund +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Shiprock +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Sitka +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/St_Barthelemy +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/St_Johns +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/St_Kitts +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/St_Lucia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/St_Thomas +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/St_Vincent +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Swift_Current +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Tegucigalpa +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Thule +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Thunder_Bay +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Tijuana +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Toronto +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Tortola +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Vancouver +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Virgin +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Whitehorse +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Winnipeg +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Yakutat +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/Yellowknife +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/America/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/Casey +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/Davis +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/DumontDUrville +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/Macquarie +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/Mawson +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/McMurdo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/Palmer +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/Rothera +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/South_Pole +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/Syowa +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/Troll +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/Vostok +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Antarctica/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Arctic/Longyearbyen +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Arctic/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Aden +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Almaty +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Amman +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Anadyr +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Aqtau +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Aqtobe +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Ashgabat +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Ashkhabad +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Atyrau +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Baghdad +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Bahrain +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Baku +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Bangkok +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Barnaul +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Beirut +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Bishkek +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Brunei +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Calcutta +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Chita +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Choibalsan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Chongqing +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Chungking +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Colombo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Dacca +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Damascus +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Dhaka +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Dili +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Dubai +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Dushanbe +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Famagusta +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Gaza +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Harbin +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Hebron +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Ho_Chi_Minh +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Hong_Kong +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Hovd +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Irkutsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Istanbul +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Jakarta +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Jayapura +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Jerusalem +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Kabul +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Kamchatka +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Karachi +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Kashgar +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Kathmandu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Katmandu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Khandyga +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Kolkata +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Krasnoyarsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Kuala_Lumpur +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Kuching +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Kuwait +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Macao +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Macau +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Magadan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Makassar +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Manila +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Muscat +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Nicosia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Novokuznetsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Novosibirsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Omsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Oral +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Phnom_Penh +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Pontianak +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Pyongyang +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Qatar +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Qostanay +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Qyzylorda +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Rangoon +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Riyadh +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Saigon +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Sakhalin +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Samarkand +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Seoul +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Shanghai +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Singapore +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Srednekolymsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Taipei +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Tashkent +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Tbilisi +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Tehran +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Tel_Aviv +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Thimbu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Thimphu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Tokyo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Tomsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Ujung_Pandang +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Ulaanbaatar +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Ulan_Bator +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Urumqi +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Ust-Nera +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Vientiane +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Vladivostok +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Yakutsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Yangon +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Yekaterinburg +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/Yerevan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Asia/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Azores +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Bermuda +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Canary +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Cape_Verde +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Faeroe +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Faroe +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Jan_Mayen +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Madeira +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Reykjavik +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/South_Georgia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/St_Helena +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/Stanley +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Atlantic/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/ACT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Adelaide +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Brisbane +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Broken_Hill +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Canberra +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Currie +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Darwin +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Eucla +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Hobart +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/LHI +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Lindeman +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Lord_Howe +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Melbourne +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/NSW +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/North +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Perth +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Queensland +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/South +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Sydney +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Tasmania +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Victoria +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/West +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/Yancowinna +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Australia/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Brazil/Acre +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Brazil/DeNoronha +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Brazil/East +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Brazil/West +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Brazil/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/CET +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/CST6CDT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Canada/Atlantic +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Canada/Central +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Canada/Eastern +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Canada/Mountain +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Canada/Newfoundland +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Canada/Pacific +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Canada/Saskatchewan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Canada/Yukon +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Canada/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Chile/Continental +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Chile/EasterIsland +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Chile/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Cuba +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/EET +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/EST +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/EST5EDT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Egypt +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Eire +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+0 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+1 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+10 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+11 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+12 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+2 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+3 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+4 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+5 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+6 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+7 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+8 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT+9 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-0 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-1 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-10 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-11 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-12 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-13 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-14 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-2 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-3 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-4 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-5 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-6 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-7 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-8 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT-9 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/GMT0 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/Greenwich +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/UCT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/UTC +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/Universal +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/Zulu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Etc/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Amsterdam +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Andorra +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Astrakhan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Athens +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Belfast +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Belgrade +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Berlin +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Bratislava +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Brussels +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Bucharest +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Budapest +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Busingen +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Chisinau +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Copenhagen +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Dublin +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Gibraltar +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Guernsey +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Helsinki +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Isle_of_Man +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Istanbul +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Jersey +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Kaliningrad +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Kiev +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Kirov +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Kyiv +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Lisbon +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Ljubljana +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/London +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Luxembourg +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Madrid +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Malta +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Mariehamn +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Minsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Monaco +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Moscow +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Nicosia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Oslo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Paris +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Podgorica +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Prague +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Riga +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Rome +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Samara +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/San_Marino +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Sarajevo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Saratov +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Simferopol +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Skopje +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Sofia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Stockholm +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Tallinn +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Tirane +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Tiraspol +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Ulyanovsk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Uzhgorod +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Vaduz +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Vatican +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Vienna +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Vilnius +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Volgograd +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Warsaw +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Zagreb +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Zaporozhye +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/Zurich +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Europe/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Factory +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/GB +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/GB-Eire +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/GMT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/GMT+0 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/GMT-0 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/GMT0 +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Greenwich +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/HST +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Hongkong +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Iceland +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Antananarivo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Chagos +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Christmas +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Cocos +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Comoro +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Kerguelen +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Mahe +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Maldives +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Mauritius +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Mayotte +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/Reunion +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Indian/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Iran +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Israel +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Jamaica +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Japan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Kwajalein +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Libya +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/MET +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/MST +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/MST7MDT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Mexico/BajaNorte +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Mexico/BajaSur +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Mexico/General +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Mexico/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/NZ +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/NZ-CHAT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Navajo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/PRC +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/PST8PDT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Apia +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Auckland +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Bougainville +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Chatham +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Chuuk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Easter +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Efate +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Enderbury +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Fakaofo +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Fiji +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Funafuti +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Galapagos +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Gambier +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Guadalcanal +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Guam +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Honolulu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Johnston +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Kanton +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Kiritimati +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Kosrae +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Kwajalein +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Majuro +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Marquesas +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Midway +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Nauru +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Niue +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Norfolk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Noumea +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Pago_Pago +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Palau +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Pitcairn +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Pohnpei +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Ponape +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Port_Moresby +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Rarotonga +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Saipan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Samoa +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Tahiti +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Tarawa +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Tongatapu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Truk +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Wake +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Wallis +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/Yap +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Pacific/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Poland +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Portugal +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/ROC +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/ROK +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Singapore +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Turkey +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/UCT +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Alaska +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Aleutian +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Arizona +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Central +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/East-Indiana +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Eastern +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Hawaii +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Indiana-Starke +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Michigan +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Mountain +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Pacific +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/Samoa +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/US/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/UTC +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Universal +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/W-SU +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/WET +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/Zulu +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/__init__.py +0 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/iso3166.tab +279 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/leapseconds +84 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/tzdata.zi +4202 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/zone.tab +448 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/zone1970.tab +375 -0
- package/runtime/Lib/site-packages/tzdata/zoneinfo/zonenow.tab +302 -0
- package/runtime/Lib/site-packages/tzdata/zones +598 -0
- package/runtime/Lib/site-packages/tzdata-2026.6.dist-info/METADATA +33 -0
- package/runtime/Lib/site-packages/tzdata-2026.6.dist-info/RECORD +633 -0
- package/runtime/Lib/site-packages/tzdata-2026.6.dist-info/WHEEL +6 -0
- package/runtime/Lib/site-packages/tzdata-2026.6.dist-info/licenses/LICENSE +16 -0
- package/runtime/Lib/site-packages/tzdata-2026.6.dist-info/licenses/licenses/LICENSE_APACHE +201 -0
- package/runtime/Lib/site-packages/tzdata-2026.6.dist-info/top_level.txt +1 -0
- package/runtime/Lib/site-packages/urllib3/__init__.py +211 -0
- package/runtime/Lib/site-packages/urllib3/_base_connection.py +167 -0
- package/runtime/Lib/site-packages/urllib3/_collections.py +490 -0
- package/runtime/Lib/site-packages/urllib3/_request_methods.py +278 -0
- package/runtime/Lib/site-packages/urllib3/_version.py +24 -0
- package/runtime/Lib/site-packages/urllib3/connection.py +1204 -0
- package/runtime/Lib/site-packages/urllib3/connectionpool.py +1211 -0
- package/runtime/Lib/site-packages/urllib3/contrib/__init__.py +0 -0
- package/runtime/Lib/site-packages/urllib3/contrib/emscripten/__init__.py +17 -0
- package/runtime/Lib/site-packages/urllib3/contrib/emscripten/connection.py +260 -0
- package/runtime/Lib/site-packages/urllib3/contrib/emscripten/emscripten_fetch_worker.js +110 -0
- package/runtime/Lib/site-packages/urllib3/contrib/emscripten/fetch.py +726 -0
- package/runtime/Lib/site-packages/urllib3/contrib/emscripten/request.py +22 -0
- package/runtime/Lib/site-packages/urllib3/contrib/emscripten/response.py +281 -0
- package/runtime/Lib/site-packages/urllib3/contrib/pyopenssl.py +603 -0
- package/runtime/Lib/site-packages/urllib3/contrib/socks.py +226 -0
- package/runtime/Lib/site-packages/urllib3/exceptions.py +335 -0
- package/runtime/Lib/site-packages/urllib3/fields.py +341 -0
- package/runtime/Lib/site-packages/urllib3/filepost.py +89 -0
- package/runtime/Lib/site-packages/urllib3/http2/__init__.py +53 -0
- package/runtime/Lib/site-packages/urllib3/http2/connection.py +357 -0
- package/runtime/Lib/site-packages/urllib3/http2/probe.py +87 -0
- package/runtime/Lib/site-packages/urllib3/poolmanager.py +677 -0
- package/runtime/Lib/site-packages/urllib3/py.typed +2 -0
- package/runtime/Lib/site-packages/urllib3/response.py +1526 -0
- package/runtime/Lib/site-packages/urllib3/util/__init__.py +42 -0
- package/runtime/Lib/site-packages/urllib3/util/connection.py +137 -0
- package/runtime/Lib/site-packages/urllib3/util/proxy.py +43 -0
- package/runtime/Lib/site-packages/urllib3/util/request.py +299 -0
- package/runtime/Lib/site-packages/urllib3/util/response.py +101 -0
- package/runtime/Lib/site-packages/urllib3/util/retry.py +569 -0
- package/runtime/Lib/site-packages/urllib3/util/ssl_.py +481 -0
- package/runtime/Lib/site-packages/urllib3/util/ssl_match_hostname.py +153 -0
- package/runtime/Lib/site-packages/urllib3/util/ssltransport.py +271 -0
- package/runtime/Lib/site-packages/urllib3/util/timeout.py +275 -0
- package/runtime/Lib/site-packages/urllib3/util/url.py +577 -0
- package/runtime/Lib/site-packages/urllib3/util/util.py +42 -0
- package/runtime/Lib/site-packages/urllib3/util/wait.py +124 -0
- package/runtime/Lib/site-packages/urllib3-2.8.0.dist-info/METADATA +175 -0
- package/runtime/Lib/site-packages/urllib3-2.8.0.dist-info/RECORD +42 -0
- package/runtime/Lib/site-packages/urllib3-2.8.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/urllib3-2.8.0.dist-info/licenses/LICENSE.txt +21 -0
- package/runtime/Lib/site-packages/uvicorn/__init__.py +5 -0
- package/runtime/Lib/site-packages/uvicorn/__main__.py +4 -0
- package/runtime/Lib/site-packages/uvicorn/_ansi.py +29 -0
- package/runtime/Lib/site-packages/uvicorn/_compat.py +91 -0
- package/runtime/Lib/site-packages/uvicorn/_subprocess.py +84 -0
- package/runtime/Lib/site-packages/uvicorn/_types.py +280 -0
- package/runtime/Lib/site-packages/uvicorn/config.py +618 -0
- package/runtime/Lib/site-packages/uvicorn/importer.py +34 -0
- package/runtime/Lib/site-packages/uvicorn/lifespan/__init__.py +0 -0
- package/runtime/Lib/site-packages/uvicorn/lifespan/off.py +17 -0
- package/runtime/Lib/site-packages/uvicorn/lifespan/on.py +137 -0
- package/runtime/Lib/site-packages/uvicorn/logging.py +117 -0
- package/runtime/Lib/site-packages/uvicorn/loops/__init__.py +0 -0
- package/runtime/Lib/site-packages/uvicorn/loops/asyncio.py +11 -0
- package/runtime/Lib/site-packages/uvicorn/loops/auto.py +17 -0
- package/runtime/Lib/site-packages/uvicorn/loops/uvloop.py +10 -0
- package/runtime/Lib/site-packages/uvicorn/loops/zuvloop.py +10 -0
- package/runtime/Lib/site-packages/uvicorn/main.py +656 -0
- package/runtime/Lib/site-packages/uvicorn/middleware/__init__.py +0 -0
- package/runtime/Lib/site-packages/uvicorn/middleware/asgi2.py +15 -0
- package/runtime/Lib/site-packages/uvicorn/middleware/message_logger.py +87 -0
- package/runtime/Lib/site-packages/uvicorn/middleware/proxy_headers.py +187 -0
- package/runtime/Lib/site-packages/uvicorn/middleware/wsgi.py +199 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/__init__.py +0 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/http/__init__.py +0 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/http/auto.py +15 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/http/auto_zttp_impl.py +89 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/http/flow_control.py +54 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/http/h11_impl.py +540 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/http/httptools_impl.py +581 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/http/zttp_h2_impl.py +559 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/http/zttp_impl.py +537 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/utils.py +62 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/websockets/__init__.py +0 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/websockets/auto.py +21 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/websockets/websockets_impl.py +390 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/websockets/websockets_sansio_impl.py +556 -0
- package/runtime/Lib/site-packages/uvicorn/protocols/websockets/wsproto_impl.py +500 -0
- package/runtime/Lib/site-packages/uvicorn/py.typed +1 -0
- package/runtime/Lib/site-packages/uvicorn/server.py +356 -0
- package/runtime/Lib/site-packages/uvicorn/supervisors/__init__.py +16 -0
- package/runtime/Lib/site-packages/uvicorn/supervisors/basereload.py +124 -0
- package/runtime/Lib/site-packages/uvicorn/supervisors/multiprocess.py +282 -0
- package/runtime/Lib/site-packages/uvicorn/supervisors/statreload.py +52 -0
- package/runtime/Lib/site-packages/uvicorn/supervisors/watchfilesreload.py +86 -0
- package/runtime/Lib/site-packages/uvicorn/workers.py +111 -0
- package/runtime/Lib/site-packages/uvicorn-0.54.0.dist-info/METADATA +189 -0
- package/runtime/Lib/site-packages/uvicorn-0.54.0.dist-info/RECORD +51 -0
- package/runtime/Lib/site-packages/uvicorn-0.54.0.dist-info/WHEEL +4 -0
- package/runtime/Lib/site-packages/uvicorn-0.54.0.dist-info/entry_points.txt +2 -0
- package/runtime/Lib/site-packages/uvicorn-0.54.0.dist-info/licenses/LICENSE.md +27 -0
- package/runtime/Lib/site-packages/win32/Demos/BackupRead_BackupWrite.py +119 -0
- package/runtime/Lib/site-packages/win32/Demos/BackupSeek_streamheaders.py +137 -0
- package/runtime/Lib/site-packages/win32/Demos/CopyFileEx.py +57 -0
- package/runtime/Lib/site-packages/win32/Demos/CreateFileTransacted_MiniVersion.py +122 -0
- package/runtime/Lib/site-packages/win32/Demos/EvtFormatMessage.py +83 -0
- package/runtime/Lib/site-packages/win32/Demos/EvtSubscribe_pull.py +28 -0
- package/runtime/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +32 -0
- package/runtime/Lib/site-packages/win32/Demos/FileSecurityTest.py +137 -0
- package/runtime/Lib/site-packages/win32/Demos/GetSaveFileName.py +43 -0
- package/runtime/Lib/site-packages/win32/Demos/NetValidatePasswordPolicy.py +127 -0
- package/runtime/Lib/site-packages/win32/Demos/OpenEncryptedFileRaw.py +66 -0
- package/runtime/Lib/site-packages/win32/Demos/RegCreateKeyTransacted.py +60 -0
- package/runtime/Lib/site-packages/win32/Demos/RegRestoreKey.py +71 -0
- package/runtime/Lib/site-packages/win32/Demos/SystemParametersInfo.py +210 -0
- package/runtime/Lib/site-packages/win32/Demos/c_extension/setup.py +26 -0
- package/runtime/Lib/site-packages/win32/Demos/dde/ddeclient.py +18 -0
- package/runtime/Lib/site-packages/win32/Demos/dde/ddeserver.py +42 -0
- package/runtime/Lib/site-packages/win32/Demos/desktopmanager.py +246 -0
- package/runtime/Lib/site-packages/win32/Demos/eventLogDemo.py +138 -0
- package/runtime/Lib/site-packages/win32/Demos/getfilever.py +33 -0
- package/runtime/Lib/site-packages/win32/Demos/images/frowny.bmp +0 -0
- package/runtime/Lib/site-packages/win32/Demos/images/smiley.bmp +0 -0
- package/runtime/Lib/site-packages/win32/Demos/mmapfile_demo.py +101 -0
- package/runtime/Lib/site-packages/win32/Demos/pipes/cat.py +17 -0
- package/runtime/Lib/site-packages/win32/Demos/pipes/runproc.py +114 -0
- package/runtime/Lib/site-packages/win32/Demos/print_desktop.py +113 -0
- package/runtime/Lib/site-packages/win32/Demos/rastest.py +166 -0
- package/runtime/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +110 -0
- package/runtime/Lib/site-packages/win32/Demos/security/account_rights.py +49 -0
- package/runtime/Lib/site-packages/win32/Demos/security/explicit_entries.py +170 -0
- package/runtime/Lib/site-packages/win32/Demos/security/get_policy_info.py +39 -0
- package/runtime/Lib/site-packages/win32/Demos/security/list_rights.py +35 -0
- package/runtime/Lib/site-packages/win32/Demos/security/localized_names.py +70 -0
- package/runtime/Lib/site-packages/win32/Demos/security/lsaregevent.py +14 -0
- package/runtime/Lib/site-packages/win32/Demos/security/lsastore.py +12 -0
- package/runtime/Lib/site-packages/win32/Demos/security/query_information.py +25 -0
- package/runtime/Lib/site-packages/win32/Demos/security/regsave_sa.py +61 -0
- package/runtime/Lib/site-packages/win32/Demos/security/regsecurity.py +36 -0
- package/runtime/Lib/site-packages/win32/Demos/security/sa_inherit.py +8 -0
- package/runtime/Lib/site-packages/win32/Demos/security/security_enums.py +336 -0
- package/runtime/Lib/site-packages/win32/Demos/security/set_file_audit.py +106 -0
- package/runtime/Lib/site-packages/win32/Demos/security/set_file_owner.py +73 -0
- package/runtime/Lib/site-packages/win32/Demos/security/set_policy_info.py +25 -0
- package/runtime/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +134 -0
- package/runtime/Lib/site-packages/win32/Demos/security/setnamedsecurityinfo.py +131 -0
- package/runtime/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +131 -0
- package/runtime/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +102 -0
- package/runtime/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +158 -0
- package/runtime/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +72 -0
- package/runtime/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +199 -0
- package/runtime/Lib/site-packages/win32/Demos/security/sspi/validate_password.py +41 -0
- package/runtime/Lib/site-packages/win32/Demos/service/nativePipeTestService.py +63 -0
- package/runtime/Lib/site-packages/win32/Demos/service/pipeTestService.py +185 -0
- package/runtime/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +158 -0
- package/runtime/Lib/site-packages/win32/Demos/service/serviceEvents.py +98 -0
- package/runtime/Lib/site-packages/win32/Demos/timer_demo.py +72 -0
- package/runtime/Lib/site-packages/win32/Demos/win32clipboardDemo.py +155 -0
- package/runtime/Lib/site-packages/win32/Demos/win32clipboard_bitmapdemo.py +117 -0
- package/runtime/Lib/site-packages/win32/Demos/win32comport_demo.py +174 -0
- package/runtime/Lib/site-packages/win32/Demos/win32console_demo.py +132 -0
- package/runtime/Lib/site-packages/win32/Demos/win32cred_demo.py +82 -0
- package/runtime/Lib/site-packages/win32/Demos/win32fileDemo.py +41 -0
- package/runtime/Lib/site-packages/win32/Demos/win32gui_demo.py +177 -0
- package/runtime/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +106 -0
- package/runtime/Lib/site-packages/win32/Demos/win32gui_dialog.py +445 -0
- package/runtime/Lib/site-packages/win32/Demos/win32gui_menu.py +464 -0
- package/runtime/Lib/site-packages/win32/Demos/win32gui_taskbar.py +136 -0
- package/runtime/Lib/site-packages/win32/Demos/win32netdemo.py +272 -0
- package/runtime/Lib/site-packages/win32/Demos/win32rcparser_demo.py +86 -0
- package/runtime/Lib/site-packages/win32/Demos/win32servicedemo.py +23 -0
- package/runtime/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +25 -0
- package/runtime/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +123 -0
- package/runtime/Lib/site-packages/win32/Demos/win32wnet/winnetwk.py +100 -0
- package/runtime/Lib/site-packages/win32/Demos/winprocess.py +230 -0
- package/runtime/Lib/site-packages/win32/_win32sysloader.pyd +0 -0
- package/runtime/Lib/site-packages/win32/_winxptheme.pyd +0 -0
- package/runtime/Lib/site-packages/win32/include/PyWinTypes.h +739 -0
- package/runtime/Lib/site-packages/win32/lib/_win32verstamp_pywin32ctypes.py +164 -0
- package/runtime/Lib/site-packages/win32/lib/afxres.py +9 -0
- package/runtime/Lib/site-packages/win32/lib/commctrl.py +1551 -0
- package/runtime/Lib/site-packages/win32/lib/mmsystem.py +956 -0
- package/runtime/Lib/site-packages/win32/lib/netbios.py +293 -0
- package/runtime/Lib/site-packages/win32/lib/ntsecuritycon.py +731 -0
- package/runtime/Lib/site-packages/win32/lib/pywin32_bootstrap.py +21 -0
- package/runtime/Lib/site-packages/win32/lib/pywin32_testutil.py +291 -0
- package/runtime/Lib/site-packages/win32/lib/pywintypes.py +124 -0
- package/runtime/Lib/site-packages/win32/lib/rasutil.py +40 -0
- package/runtime/Lib/site-packages/win32/lib/regcheck.py +162 -0
- package/runtime/Lib/site-packages/win32/lib/regutil.py +395 -0
- package/runtime/Lib/site-packages/win32/lib/sspi.py +413 -0
- package/runtime/Lib/site-packages/win32/lib/sspicon.py +477 -0
- package/runtime/Lib/site-packages/win32/lib/win2kras.py +14 -0
- package/runtime/Lib/site-packages/win32/lib/win32con.py +5066 -0
- package/runtime/Lib/site-packages/win32/lib/win32cryptcon.py +1922 -0
- package/runtime/Lib/site-packages/win32/lib/win32evtlogutil.py +225 -0
- package/runtime/Lib/site-packages/win32/lib/win32gui_struct.py +961 -0
- package/runtime/Lib/site-packages/win32/lib/win32inetcon.py +1086 -0
- package/runtime/Lib/site-packages/win32/lib/win32netcon.py +627 -0
- package/runtime/Lib/site-packages/win32/lib/win32pdhquery.py +570 -0
- package/runtime/Lib/site-packages/win32/lib/win32pdhutil.py +212 -0
- package/runtime/Lib/site-packages/win32/lib/win32rcparser.py +674 -0
- package/runtime/Lib/site-packages/win32/lib/win32serviceutil.py +1077 -0
- package/runtime/Lib/site-packages/win32/lib/win32timezone.py +1201 -0
- package/runtime/Lib/site-packages/win32/lib/win32traceutil.py +59 -0
- package/runtime/Lib/site-packages/win32/lib/win32verstamp.py +235 -0
- package/runtime/Lib/site-packages/win32/lib/winerror.py +7361 -0
- package/runtime/Lib/site-packages/win32/lib/winioctlcon.py +1079 -0
- package/runtime/Lib/site-packages/win32/lib/winnt.py +1347 -0
- package/runtime/Lib/site-packages/win32/lib/winperf.py +236 -0
- package/runtime/Lib/site-packages/win32/lib/winxptheme.py +8 -0
- package/runtime/Lib/site-packages/win32/libs/pywintypes.lib +0 -0
- package/runtime/Lib/site-packages/win32/license.txt +30 -0
- package/runtime/Lib/site-packages/win32/mmapfile.pyd +0 -0
- package/runtime/Lib/site-packages/win32/odbc.pyd +0 -0
- package/runtime/Lib/site-packages/win32/perfmon.pyd +0 -0
- package/runtime/Lib/site-packages/win32/perfmondata.dll +0 -0
- package/runtime/Lib/site-packages/win32/pythonservice.exe +0 -0
- package/runtime/Lib/site-packages/win32/scripts/ControlService.py +594 -0
- package/runtime/Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py +97 -0
- package/runtime/Lib/site-packages/win32/scripts/VersionStamp/bulkstamp.py +156 -0
- package/runtime/Lib/site-packages/win32/scripts/VersionStamp/vssutil.py +201 -0
- package/runtime/Lib/site-packages/win32/scripts/backupEventLog.py +46 -0
- package/runtime/Lib/site-packages/win32/scripts/h2py.py +194 -0
- package/runtime/Lib/site-packages/win32/scripts/killProcName.py +62 -0
- package/runtime/Lib/site-packages/win32/scripts/pywin32_postinstall.py +733 -0
- package/runtime/Lib/site-packages/win32/scripts/pywin32_testall.py +120 -0
- package/runtime/Lib/site-packages/win32/scripts/rasutil.py +98 -0
- package/runtime/Lib/site-packages/win32/scripts/regsetup.py +607 -0
- package/runtime/Lib/site-packages/win32/scripts/setup_d.py +111 -0
- package/runtime/Lib/site-packages/win32/servicemanager.pyd +0 -0
- package/runtime/Lib/site-packages/win32/test/handles.py +175 -0
- package/runtime/Lib/site-packages/win32/test/test_clipboard.py +137 -0
- package/runtime/Lib/site-packages/win32/test/test_exceptions.py +213 -0
- package/runtime/Lib/site-packages/win32/test/test_odbc.py +264 -0
- package/runtime/Lib/site-packages/win32/test/test_pywintypes.py +111 -0
- package/runtime/Lib/site-packages/win32/test/test_security.py +166 -0
- package/runtime/Lib/site-packages/win32/test/test_sspi.py +229 -0
- package/runtime/Lib/site-packages/win32/test/test_win32api.py +273 -0
- package/runtime/Lib/site-packages/win32/test/test_win32clipboard.py +59 -0
- package/runtime/Lib/site-packages/win32/test/test_win32cred.py +91 -0
- package/runtime/Lib/site-packages/win32/test/test_win32crypt.py +144 -0
- package/runtime/Lib/site-packages/win32/test/test_win32event.py +119 -0
- package/runtime/Lib/site-packages/win32/test/test_win32file.py +1097 -0
- package/runtime/Lib/site-packages/win32/test/test_win32gui.py +188 -0
- package/runtime/Lib/site-packages/win32/test/test_win32guistruct.py +333 -0
- package/runtime/Lib/site-packages/win32/test/test_win32inet.py +108 -0
- package/runtime/Lib/site-packages/win32/test/test_win32net.py +23 -0
- package/runtime/Lib/site-packages/win32/test/test_win32pipe.py +148 -0
- package/runtime/Lib/site-packages/win32/test/test_win32print.py +24 -0
- package/runtime/Lib/site-packages/win32/test/test_win32profile.py +19 -0
- package/runtime/Lib/site-packages/win32/test/test_win32rcparser.py +70 -0
- package/runtime/Lib/site-packages/win32/test/test_win32timezone.py +16 -0
- package/runtime/Lib/site-packages/win32/test/test_win32trace.py +366 -0
- package/runtime/Lib/site-packages/win32/test/test_win32ts.py +19 -0
- package/runtime/Lib/site-packages/win32/test/test_win32wnet.py +174 -0
- package/runtime/Lib/site-packages/win32/test/testall.py +223 -0
- package/runtime/Lib/site-packages/win32/test/win32rcparser/python.bmp +0 -0
- package/runtime/Lib/site-packages/win32/test/win32rcparser/python.ico +0 -0
- package/runtime/Lib/site-packages/win32/test/win32rcparser/test.h +46 -0
- package/runtime/Lib/site-packages/win32/test/win32rcparser/test.rc +215 -0
- package/runtime/Lib/site-packages/win32/timer.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32api.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32clipboard.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32console.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32cred.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32crypt.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32event.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32evtlog.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32file.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32gui.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32help.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32inet.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32job.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32lz.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32net.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32pdh.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32pipe.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32print.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32process.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32profile.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32ras.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32security.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32service.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32trace.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32transaction.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32ts.pyd +0 -0
- package/runtime/Lib/site-packages/win32/win32wnet.pyd +0 -0
- package/runtime/Lib/site-packages/win32/winxpgui.py +13 -0
- package/runtime/Lib/site-packages/win32com/HTML/COM_Records.html +382 -0
- package/runtime/Lib/site-packages/win32com/HTML/GeneratedSupport.html +104 -0
- package/runtime/Lib/site-packages/win32com/HTML/PythonCOM.html +90 -0
- package/runtime/Lib/site-packages/win32com/HTML/QuickStartClientCom.html +82 -0
- package/runtime/Lib/site-packages/win32com/HTML/QuickStartServerCom.html +195 -0
- package/runtime/Lib/site-packages/win32com/HTML/docindex.html +23 -0
- package/runtime/Lib/site-packages/win32com/HTML/image/BTN_HomePage.gif +0 -0
- package/runtime/Lib/site-packages/win32com/HTML/image/BTN_ManualTop.gif +0 -0
- package/runtime/Lib/site-packages/win32com/HTML/image/BTN_NextPage.gif +0 -0
- package/runtime/Lib/site-packages/win32com/HTML/image/BTN_PrevPage.gif +0 -0
- package/runtime/Lib/site-packages/win32com/HTML/image/blank.gif +0 -0
- package/runtime/Lib/site-packages/win32com/HTML/image/pycom_blowing.gif +0 -0
- package/runtime/Lib/site-packages/win32com/HTML/image/pythoncom.gif +0 -0
- package/runtime/Lib/site-packages/win32com/HTML/image/www_icon.gif +0 -0
- package/runtime/Lib/site-packages/win32com/HTML/index.html +31 -0
- package/runtime/Lib/site-packages/win32com/HTML/misc.html +18 -0
- package/runtime/Lib/site-packages/win32com/HTML/package.html +37 -0
- package/runtime/Lib/site-packages/win32com/HTML/variant.html +162 -0
- package/runtime/Lib/site-packages/win32com/License.txt +30 -0
- package/runtime/Lib/site-packages/win32com/__init__.py +134 -0
- package/runtime/Lib/site-packages/win32com/client/CLSIDToClass.py +60 -0
- package/runtime/Lib/site-packages/win32com/client/__init__.py +703 -0
- package/runtime/Lib/site-packages/win32com/client/build.py +774 -0
- package/runtime/Lib/site-packages/win32com/client/combrowse.py +605 -0
- package/runtime/Lib/site-packages/win32com/client/connect.py +48 -0
- package/runtime/Lib/site-packages/win32com/client/dynamic.py +699 -0
- package/runtime/Lib/site-packages/win32com/client/gencache.py +825 -0
- package/runtime/Lib/site-packages/win32com/client/genpy.py +1352 -0
- package/runtime/Lib/site-packages/win32com/client/makepy.py +453 -0
- package/runtime/Lib/site-packages/win32com/client/selecttlb.py +182 -0
- package/runtime/Lib/site-packages/win32com/client/tlbrowse.py +277 -0
- package/runtime/Lib/site-packages/win32com/client/util.py +103 -0
- package/runtime/Lib/site-packages/win32com/demos/__init__.py +0 -0
- package/runtime/Lib/site-packages/win32com/demos/connect.py +97 -0
- package/runtime/Lib/site-packages/win32com/demos/dump_clipboard.py +74 -0
- package/runtime/Lib/site-packages/win32com/demos/eventsApartmentThreaded.py +98 -0
- package/runtime/Lib/site-packages/win32com/demos/eventsFreeThreaded.py +92 -0
- package/runtime/Lib/site-packages/win32com/demos/excelAddin.py +169 -0
- package/runtime/Lib/site-packages/win32com/demos/excelRTDServer.py +434 -0
- package/runtime/Lib/site-packages/win32com/demos/iebutton.py +214 -0
- package/runtime/Lib/site-packages/win32com/demos/ietoolbar.py +368 -0
- package/runtime/Lib/site-packages/win32com/demos/outlookAddin.py +135 -0
- package/runtime/Lib/site-packages/win32com/demos/trybag.py +78 -0
- package/runtime/Lib/site-packages/win32com/include/PythonCOM.h +746 -0
- package/runtime/Lib/site-packages/win32com/include/PythonCOMRegister.h +56 -0
- package/runtime/Lib/site-packages/win32com/include/PythonCOMServer.h +167 -0
- package/runtime/Lib/site-packages/win32com/libs/axscript.lib +0 -0
- package/runtime/Lib/site-packages/win32com/libs/pythoncom.lib +0 -0
- package/runtime/Lib/site-packages/win32com/makegw/__init__.py +1 -0
- package/runtime/Lib/site-packages/win32com/makegw/makegw.py +618 -0
- package/runtime/Lib/site-packages/win32com/makegw/makegwenum.py +331 -0
- package/runtime/Lib/site-packages/win32com/makegw/makegwparse.py +1017 -0
- package/runtime/Lib/site-packages/win32com/olectl.py +70 -0
- package/runtime/Lib/site-packages/win32com/readme.html +87 -0
- package/runtime/Lib/site-packages/win32com/server/__init__.py +1 -0
- package/runtime/Lib/site-packages/win32com/server/connect.py +85 -0
- package/runtime/Lib/site-packages/win32com/server/dispatcher.py +239 -0
- package/runtime/Lib/site-packages/win32com/server/exception.py +99 -0
- package/runtime/Lib/site-packages/win32com/server/factory.py +26 -0
- package/runtime/Lib/site-packages/win32com/server/localserver.py +53 -0
- package/runtime/Lib/site-packages/win32com/server/policy.py +803 -0
- package/runtime/Lib/site-packages/win32com/server/register.py +677 -0
- package/runtime/Lib/site-packages/win32com/server/util.py +229 -0
- package/runtime/Lib/site-packages/win32com/servers/PythonTools.py +47 -0
- package/runtime/Lib/site-packages/win32com/servers/__init__.py +0 -0
- package/runtime/Lib/site-packages/win32com/servers/dictionary.py +133 -0
- package/runtime/Lib/site-packages/win32com/servers/interp.py +59 -0
- package/runtime/Lib/site-packages/win32com/servers/perfmon.py +36 -0
- package/runtime/Lib/site-packages/win32com/servers/test_pycomtest.py +181 -0
- package/runtime/Lib/site-packages/win32com/storagecon.py +142 -0
- package/runtime/Lib/site-packages/win32com/test/GenTestScripts.py +95 -0
- package/runtime/Lib/site-packages/win32com/test/Testpys.sct +63 -0
- package/runtime/Lib/site-packages/win32com/test/__init__.py +1 -0
- package/runtime/Lib/site-packages/win32com/test/daodump.py +88 -0
- package/runtime/Lib/site-packages/win32com/test/errorSemantics.py +243 -0
- package/runtime/Lib/site-packages/win32com/test/pippo.idl +66 -0
- package/runtime/Lib/site-packages/win32com/test/pippo_server.py +96 -0
- package/runtime/Lib/site-packages/win32com/test/policySemantics.py +115 -0
- package/runtime/Lib/site-packages/win32com/test/readme.txt +19 -0
- package/runtime/Lib/site-packages/win32com/test/testADOEvents.py +100 -0
- package/runtime/Lib/site-packages/win32com/test/testAXScript.py +44 -0
- package/runtime/Lib/site-packages/win32com/test/testAccess.py +185 -0
- package/runtime/Lib/site-packages/win32com/test/testArrays.py +99 -0
- package/runtime/Lib/site-packages/win32com/test/testClipboard.py +169 -0
- package/runtime/Lib/site-packages/win32com/test/testCollections.py +159 -0
- package/runtime/Lib/site-packages/win32com/test/testConversionErrors.py +35 -0
- package/runtime/Lib/site-packages/win32com/test/testDCOM.py +50 -0
- package/runtime/Lib/site-packages/win32com/test/testDates.py +74 -0
- package/runtime/Lib/site-packages/win32com/test/testDictionary.py +101 -0
- package/runtime/Lib/site-packages/win32com/test/testDictionary.vbs +24 -0
- package/runtime/Lib/site-packages/win32com/test/testDynamic.py +84 -0
- package/runtime/Lib/site-packages/win32com/test/testExchange.py +121 -0
- package/runtime/Lib/site-packages/win32com/test/testExplorer.py +139 -0
- package/runtime/Lib/site-packages/win32com/test/testGIT.py +142 -0
- package/runtime/Lib/site-packages/win32com/test/testGatewayAddresses.py +149 -0
- package/runtime/Lib/site-packages/win32com/test/testInterp.vbs +11 -0
- package/runtime/Lib/site-packages/win32com/test/testIterators.py +140 -0
- package/runtime/Lib/site-packages/win32com/test/testMSOffice.py +184 -0
- package/runtime/Lib/site-packages/win32com/test/testMSOfficeEvents.py +138 -0
- package/runtime/Lib/site-packages/win32com/test/testMarshal.py +164 -0
- package/runtime/Lib/site-packages/win32com/test/testPersist.py +227 -0
- package/runtime/Lib/site-packages/win32com/test/testPippo.py +80 -0
- package/runtime/Lib/site-packages/win32com/test/testPyComTest.py +963 -0
- package/runtime/Lib/site-packages/win32com/test/testPyScriptlet.js +33 -0
- package/runtime/Lib/site-packages/win32com/test/testROT.py +29 -0
- package/runtime/Lib/site-packages/win32com/test/testServers.py +51 -0
- package/runtime/Lib/site-packages/win32com/test/testShell.py +272 -0
- package/runtime/Lib/site-packages/win32com/test/testStorage.py +88 -0
- package/runtime/Lib/site-packages/win32com/test/testStreams.py +147 -0
- package/runtime/Lib/site-packages/win32com/test/testWMI.py +18 -0
- package/runtime/Lib/site-packages/win32com/test/testall.py +321 -0
- package/runtime/Lib/site-packages/win32com/test/testmakepy.py +54 -0
- package/runtime/Lib/site-packages/win32com/test/testvb.py +578 -0
- package/runtime/Lib/site-packages/win32com/test/testvbscript_regexp.py +40 -0
- package/runtime/Lib/site-packages/win32com/test/testxslt.js +12 -0
- package/runtime/Lib/site-packages/win32com/test/testxslt.py +34 -0
- package/runtime/Lib/site-packages/win32com/test/testxslt.xsl +54 -0
- package/runtime/Lib/site-packages/win32com/test/util.py +262 -0
- package/runtime/Lib/site-packages/win32com/universal.py +224 -0
- package/runtime/Lib/site-packages/win32com/util.py +35 -0
- package/runtime/Lib/site-packages/win32comext/adsi/__init__.py +113 -0
- package/runtime/Lib/site-packages/win32comext/adsi/adsi.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/adsi/adsicon.py +340 -0
- package/runtime/Lib/site-packages/win32comext/adsi/demos/objectPicker.py +68 -0
- package/runtime/Lib/site-packages/win32comext/adsi/demos/scp.py +565 -0
- package/runtime/Lib/site-packages/win32comext/adsi/demos/search.py +151 -0
- package/runtime/Lib/site-packages/win32comext/adsi/demos/test.py +274 -0
- package/runtime/Lib/site-packages/win32comext/authorization/__init__.py +6 -0
- package/runtime/Lib/site-packages/win32comext/authorization/authorization.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +229 -0
- package/runtime/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +219 -0
- package/runtime/Lib/site-packages/win32comext/axcontrol/__init__.py +4 -0
- package/runtime/Lib/site-packages/win32comext/axcontrol/axcontrol.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/__init__.py +4 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/adb.py +467 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/codecontainer.py +279 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/contexts.py +58 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/debugger.py +238 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/documents.py +135 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/dump.py +57 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/expressions.py +212 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/gateways.py +583 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/stackframe.py +178 -0
- package/runtime/Lib/site-packages/win32comext/axdebug/util.py +98 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/asp/CreateObject.asp +18 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/asp/caps.asp +52 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/asp/interrupt/test.asp +4 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/asp/interrupt/test.html +10 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/asp/interrupt/test1.asp +6 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/asp/interrupt/test1.html +10 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/asp/tut1.asp +10 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/CHARTPY.HTM +179 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/FOO.HTM +46 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/MarqueeText1.htm +24 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/calc.htm +115 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/dbgtest.htm +16 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/demo.htm +25 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/demo_check.htm +39 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/demo_intro.htm +37 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/demo_menu.htm +14 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/docwrite.htm +25 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/foo2.htm +105 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/form.htm +25 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/marqueeDemo.htm +59 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/mousetrack.htm +82 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/ie/pycom_blowing.gif +0 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/wsh/blank.pys +0 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/wsh/excel.pys +31 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/wsh/registry.pys +44 -0
- package/runtime/Lib/site-packages/win32comext/axscript/Demos/client/wsh/test.pys +14 -0
- package/runtime/Lib/site-packages/win32comext/axscript/__init__.py +4 -0
- package/runtime/Lib/site-packages/win32comext/axscript/asputil.py +13 -0
- package/runtime/Lib/site-packages/win32comext/axscript/axscript.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/axscript/client/__init__.py +1 -0
- package/runtime/Lib/site-packages/win32comext/axscript/client/debug.py +223 -0
- package/runtime/Lib/site-packages/win32comext/axscript/client/error.py +260 -0
- package/runtime/Lib/site-packages/win32comext/axscript/client/framework.py +1291 -0
- package/runtime/Lib/site-packages/win32comext/axscript/client/pydumper.py +78 -0
- package/runtime/Lib/site-packages/win32comext/axscript/client/pyscript.py +438 -0
- package/runtime/Lib/site-packages/win32comext/axscript/client/pyscript_rexec.py +54 -0
- package/runtime/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +103 -0
- package/runtime/Lib/site-packages/win32comext/axscript/server/__init__.py +0 -0
- package/runtime/Lib/site-packages/win32comext/axscript/server/axsite.py +145 -0
- package/runtime/Lib/site-packages/win32comext/axscript/test/debugTest.pys +16 -0
- package/runtime/Lib/site-packages/win32comext/axscript/test/debugTest.vbs +7 -0
- package/runtime/Lib/site-packages/win32comext/axscript/test/leakTest.py +186 -0
- package/runtime/Lib/site-packages/win32comext/axscript/test/testHost.py +241 -0
- package/runtime/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +83 -0
- package/runtime/Lib/site-packages/win32comext/bits/__init__.py +6 -0
- package/runtime/Lib/site-packages/win32comext/bits/bits.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/bits/test/show_all_jobs.py +48 -0
- package/runtime/Lib/site-packages/win32comext/bits/test/test_bits.py +119 -0
- package/runtime/Lib/site-packages/win32comext/directsound/__init__.py +4 -0
- package/runtime/Lib/site-packages/win32comext/directsound/directsound.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/directsound/test/__init__.py +1 -0
- package/runtime/Lib/site-packages/win32comext/directsound/test/ds_record.py +60 -0
- package/runtime/Lib/site-packages/win32comext/directsound/test/ds_test.py +402 -0
- package/runtime/Lib/site-packages/win32comext/ifilter/__init__.py +1 -0
- package/runtime/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +300 -0
- package/runtime/Lib/site-packages/win32comext/ifilter/ifilter.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/ifilter/ifiltercon.py +110 -0
- package/runtime/Lib/site-packages/win32comext/internet/__init__.py +4 -0
- package/runtime/Lib/site-packages/win32comext/internet/inetcon.py +261 -0
- package/runtime/Lib/site-packages/win32comext/internet/internet.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/propsys/__init__.py +1 -0
- package/runtime/Lib/site-packages/win32comext/propsys/propsys.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/propsys/pscon.py +839 -0
- package/runtime/Lib/site-packages/win32comext/propsys/test/testpropsys.py +5 -0
- package/runtime/Lib/site-packages/win32comext/shell/__init__.py +4 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/IActiveDesktop.py +83 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +179 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/IShellLinkDataList.py +67 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +93 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/IUniformResourceLocator.py +56 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/browse_for_folder.py +45 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/create_link.py +73 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/dump_link.py +58 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/explorer_browser.py +143 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +125 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/servers/context_menu.py +122 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +84 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +188 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +866 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +81 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +971 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/shellexecuteex.py +19 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/viewstate.py +68 -0
- package/runtime/Lib/site-packages/win32comext/shell/demos/walk_shell_folders.py +24 -0
- package/runtime/Lib/site-packages/win32comext/shell/shell.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/shell/shellcon.py +1615 -0
- package/runtime/Lib/site-packages/win32comext/shell/test/testSHFileOperation.py +75 -0
- package/runtime/Lib/site-packages/win32comext/shell/test/testShellFolder.py +21 -0
- package/runtime/Lib/site-packages/win32comext/shell/test/testShellItem.py +69 -0
- package/runtime/Lib/site-packages/win32comext/taskscheduler/__init__.py +6 -0
- package/runtime/Lib/site-packages/win32comext/taskscheduler/taskscheduler.pyd +0 -0
- package/runtime/Lib/site-packages/win32comext/taskscheduler/test/test_addtask.py +66 -0
- package/runtime/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_1.py +68 -0
- package/runtime/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +49 -0
- package/runtime/Lib/site-packages/win32comext/taskscheduler/test/test_localsystem.py +3 -0
- package/runtime/Lib/site-packages/yaml/__init__.py +390 -0
- package/runtime/Lib/site-packages/yaml/_yaml.cp313-win_amd64.pyd +0 -0
- package/runtime/Lib/site-packages/yaml/composer.py +139 -0
- package/runtime/Lib/site-packages/yaml/constructor.py +748 -0
- package/runtime/Lib/site-packages/yaml/cyaml.py +101 -0
- package/runtime/Lib/site-packages/yaml/dumper.py +62 -0
- package/runtime/Lib/site-packages/yaml/emitter.py +1137 -0
- package/runtime/Lib/site-packages/yaml/error.py +75 -0
- package/runtime/Lib/site-packages/yaml/events.py +86 -0
- package/runtime/Lib/site-packages/yaml/loader.py +63 -0
- package/runtime/Lib/site-packages/yaml/nodes.py +49 -0
- package/runtime/Lib/site-packages/yaml/parser.py +589 -0
- package/runtime/Lib/site-packages/yaml/reader.py +185 -0
- package/runtime/Lib/site-packages/yaml/representer.py +389 -0
- package/runtime/Lib/site-packages/yaml/resolver.py +227 -0
- package/runtime/Lib/site-packages/yaml/scanner.py +1435 -0
- package/runtime/Lib/site-packages/yaml/serializer.py +111 -0
- package/runtime/Lib/site-packages/yaml/tokens.py +104 -0
- package/runtime/Lib/site-packages/z3/__init__.py +12 -0
- package/runtime/Lib/site-packages/z3/include/z3++.h +4528 -0
- package/runtime/Lib/site-packages/z3/include/z3.h +35 -0
- package/runtime/Lib/site-packages/z3/include/z3_algebraic.h +249 -0
- package/runtime/Lib/site-packages/z3/include/z3_api.h +7463 -0
- package/runtime/Lib/site-packages/z3/include/z3_ast_containers.h +198 -0
- package/runtime/Lib/site-packages/z3/include/z3_fixedpoint.h +382 -0
- package/runtime/Lib/site-packages/z3/include/z3_fpa.h +1346 -0
- package/runtime/Lib/site-packages/z3/include/z3_macros.h +22 -0
- package/runtime/Lib/site-packages/z3/include/z3_optimization.h +377 -0
- package/runtime/Lib/site-packages/z3/include/z3_polynomial.h +52 -0
- package/runtime/Lib/site-packages/z3/include/z3_rcf.h +321 -0
- package/runtime/Lib/site-packages/z3/include/z3_spacer.h +141 -0
- package/runtime/Lib/site-packages/z3/include/z3_v1.h +62 -0
- package/runtime/Lib/site-packages/z3/include/z3_version.h +7 -0
- package/runtime/Lib/site-packages/z3/lib/libz3.dll +0 -0
- package/runtime/Lib/site-packages/z3/z3.py +11780 -0
- package/runtime/Lib/site-packages/z3/z3consts.py +359 -0
- package/runtime/Lib/site-packages/z3/z3core.py +5499 -0
- package/runtime/Lib/site-packages/z3/z3num.py +579 -0
- package/runtime/Lib/site-packages/z3/z3poly.py +37 -0
- package/runtime/Lib/site-packages/z3/z3printer.py +1532 -0
- package/runtime/Lib/site-packages/z3/z3rcf.py +168 -0
- package/runtime/Lib/site-packages/z3/z3types.py +254 -0
- package/runtime/Lib/site-packages/z3/z3util.py +502 -0
- package/runtime/Lib/site-packages/z3_solver-4.13.0.0.dist-info/METADATA +17 -0
- package/runtime/Lib/site-packages/z3_solver-4.13.0.0.dist-info/RECORD +30 -0
- package/runtime/Lib/site-packages/z3_solver-4.13.0.0.dist-info/WHEEL +6 -0
- package/runtime/Lib/site-packages/z3_solver-4.13.0.0.dist-info/top_level.txt +1 -0
- package/runtime/Scripts/pywin32_postinstall.py +733 -0
- package/runtime/Scripts/pywin32_testall.py +120 -0
- package/runtime/_asyncio.pyd +0 -0
- package/runtime/_bz2.pyd +0 -0
- package/runtime/_ctypes.pyd +0 -0
- package/runtime/_decimal.pyd +0 -0
- package/runtime/_elementtree.pyd +0 -0
- package/runtime/_hashlib.pyd +0 -0
- package/runtime/_lzma.pyd +0 -0
- package/runtime/_multiprocessing.pyd +0 -0
- package/runtime/_overlapped.pyd +0 -0
- package/runtime/_queue.pyd +0 -0
- package/runtime/_socket.pyd +0 -0
- package/runtime/_sqlite3.pyd +0 -0
- package/runtime/_ssl.pyd +0 -0
- package/runtime/_uuid.pyd +0 -0
- package/runtime/_wmi.pyd +0 -0
- package/runtime/_zoneinfo.pyd +0 -0
- package/runtime/bin/z3.exe +0 -0
- package/runtime/libcrypto-3.dll +0 -0
- package/runtime/libffi-8.dll +0 -0
- package/runtime/libssl-3.dll +0 -0
- package/runtime/pyexpat.pyd +0 -0
- package/runtime/python.cat +0 -0
- package/runtime/python.exe +0 -0
- package/runtime/python3.dll +0 -0
- package/runtime/python313._pth +7 -0
- package/runtime/python313.dll +0 -0
- package/runtime/python313.zip +0 -0
- package/runtime/pythonw.exe +0 -0
- package/runtime/select.pyd +0 -0
- package/runtime/sqlite3.dll +0 -0
- package/runtime/unicodedata.pyd +0 -0
- package/runtime/vcruntime140.dll +0 -0
- package/runtime/vcruntime140_1.dll +0 -0
- package/runtime/winsound.pyd +0 -0
- package/runtime-manifest.json +10547 -0
- package/vendor/jsonc-parser/LICENSE.md +21 -0
- package/vendor/jsonc-parser/lib/umd/impl/edit.js +201 -0
- package/vendor/jsonc-parser/lib/umd/impl/format.js +275 -0
- package/vendor/jsonc-parser/lib/umd/impl/parser.js +682 -0
- package/vendor/jsonc-parser/lib/umd/impl/scanner.js +456 -0
- package/vendor/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
- package/vendor/jsonc-parser/lib/umd/main.d.ts +351 -0
- package/vendor/jsonc-parser/lib/umd/main.js +194 -0
- package/vendor/jsonc-parser/package.json +37 -0
|
@@ -0,0 +1,3201 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import array
|
|
4
|
+
import asyncio
|
|
5
|
+
import concurrent.futures
|
|
6
|
+
import math
|
|
7
|
+
import os
|
|
8
|
+
import socket
|
|
9
|
+
import sys
|
|
10
|
+
import threading
|
|
11
|
+
import weakref
|
|
12
|
+
from asyncio import (
|
|
13
|
+
AbstractEventLoop,
|
|
14
|
+
CancelledError,
|
|
15
|
+
all_tasks,
|
|
16
|
+
create_task,
|
|
17
|
+
current_task,
|
|
18
|
+
get_running_loop,
|
|
19
|
+
sleep,
|
|
20
|
+
)
|
|
21
|
+
from asyncio.base_events import _run_until_complete_cb # type: ignore[attr-defined]
|
|
22
|
+
from collections import OrderedDict, deque
|
|
23
|
+
from collections.abc import (
|
|
24
|
+
AsyncGenerator,
|
|
25
|
+
AsyncIterator,
|
|
26
|
+
Awaitable,
|
|
27
|
+
Callable,
|
|
28
|
+
Collection,
|
|
29
|
+
Coroutine,
|
|
30
|
+
Iterable,
|
|
31
|
+
Sequence,
|
|
32
|
+
)
|
|
33
|
+
from concurrent.futures import Future
|
|
34
|
+
from contextlib import AbstractContextManager, suppress
|
|
35
|
+
from contextvars import Context, copy_context
|
|
36
|
+
from dataclasses import dataclass, field
|
|
37
|
+
from functools import partial, wraps
|
|
38
|
+
from inspect import (
|
|
39
|
+
CORO_RUNNING,
|
|
40
|
+
CORO_SUSPENDED,
|
|
41
|
+
getcoroutinestate,
|
|
42
|
+
)
|
|
43
|
+
from io import IOBase
|
|
44
|
+
from os import PathLike
|
|
45
|
+
from queue import Queue
|
|
46
|
+
from signal import Signals
|
|
47
|
+
from socket import AddressFamily, SocketKind
|
|
48
|
+
from threading import Thread
|
|
49
|
+
from types import CodeType, TracebackType
|
|
50
|
+
from typing import (
|
|
51
|
+
IO,
|
|
52
|
+
TYPE_CHECKING,
|
|
53
|
+
Any,
|
|
54
|
+
Literal,
|
|
55
|
+
ParamSpec,
|
|
56
|
+
TypeVar,
|
|
57
|
+
cast,
|
|
58
|
+
)
|
|
59
|
+
from weakref import WeakKeyDictionary
|
|
60
|
+
|
|
61
|
+
from .. import (
|
|
62
|
+
CapacityLimiterStatistics,
|
|
63
|
+
EventStatistics,
|
|
64
|
+
LockStatistics,
|
|
65
|
+
TaskInfo,
|
|
66
|
+
abc,
|
|
67
|
+
)
|
|
68
|
+
from .._core._eventloop import (
|
|
69
|
+
claim_worker_thread,
|
|
70
|
+
set_current_async_library,
|
|
71
|
+
threadlocals,
|
|
72
|
+
)
|
|
73
|
+
from .._core._exceptions import (
|
|
74
|
+
BrokenResourceError,
|
|
75
|
+
BusyResourceError,
|
|
76
|
+
ClosedResourceError,
|
|
77
|
+
EndOfStream,
|
|
78
|
+
RunFinishedError,
|
|
79
|
+
WouldBlock,
|
|
80
|
+
)
|
|
81
|
+
from .._core._sockets import convert_ipv6_sockaddr
|
|
82
|
+
from .._core._streams import create_memory_object_stream
|
|
83
|
+
from .._core._synchronization import (
|
|
84
|
+
CapacityLimiter as BaseCapacityLimiter,
|
|
85
|
+
)
|
|
86
|
+
from .._core._synchronization import Event as BaseEvent
|
|
87
|
+
from .._core._synchronization import Lock as BaseLock
|
|
88
|
+
from .._core._synchronization import (
|
|
89
|
+
ResourceGuard,
|
|
90
|
+
SemaphoreStatistics,
|
|
91
|
+
)
|
|
92
|
+
from .._core._synchronization import Semaphore as BaseSemaphore
|
|
93
|
+
from .._core._tasks import CancelScope as BaseCancelScope
|
|
94
|
+
from .._core._tasks import TaskHandle
|
|
95
|
+
from ..abc import (
|
|
96
|
+
AsyncBackend,
|
|
97
|
+
IPSockAddrType,
|
|
98
|
+
SocketListener,
|
|
99
|
+
UDPPacketType,
|
|
100
|
+
UNIXDatagramPacketType,
|
|
101
|
+
)
|
|
102
|
+
from ..abc._tasks import call_for_coroutine, get_callable_name, get_coro_name
|
|
103
|
+
from ..lowlevel import RunVar, _run_vars
|
|
104
|
+
|
|
105
|
+
if TYPE_CHECKING:
|
|
106
|
+
from _typeshed import FileDescriptorLike
|
|
107
|
+
|
|
108
|
+
from ..abc._eventloop import StrOrBytesPath
|
|
109
|
+
from ..streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
|
|
110
|
+
else:
|
|
111
|
+
FileDescriptorLike = object
|
|
112
|
+
|
|
113
|
+
if sys.version_info >= (3, 11):
|
|
114
|
+
from asyncio import Runner
|
|
115
|
+
from typing import Self, TypeVarTuple, Unpack
|
|
116
|
+
else:
|
|
117
|
+
import contextvars
|
|
118
|
+
import enum
|
|
119
|
+
import signal
|
|
120
|
+
from asyncio import coroutines, events, exceptions, tasks
|
|
121
|
+
|
|
122
|
+
from exceptiongroup import BaseExceptionGroup
|
|
123
|
+
from typing_extensions import Self, TypeVarTuple, Unpack
|
|
124
|
+
|
|
125
|
+
class _State(enum.Enum):
|
|
126
|
+
CREATED = "created"
|
|
127
|
+
INITIALIZED = "initialized"
|
|
128
|
+
CLOSED = "closed"
|
|
129
|
+
|
|
130
|
+
class Runner:
|
|
131
|
+
# Copied from CPython 3.11
|
|
132
|
+
def __init__(
|
|
133
|
+
self,
|
|
134
|
+
*,
|
|
135
|
+
debug: bool | None = None,
|
|
136
|
+
loop_factory: Callable[[], AbstractEventLoop] | None = None,
|
|
137
|
+
):
|
|
138
|
+
self._state = _State.CREATED
|
|
139
|
+
self._debug = debug
|
|
140
|
+
self._loop_factory = loop_factory
|
|
141
|
+
self._loop: AbstractEventLoop | None = None
|
|
142
|
+
self._context = None
|
|
143
|
+
self._interrupt_count = 0
|
|
144
|
+
self._set_event_loop = False
|
|
145
|
+
|
|
146
|
+
def __enter__(self) -> Self:
|
|
147
|
+
self._lazy_init()
|
|
148
|
+
return self
|
|
149
|
+
|
|
150
|
+
def __exit__(
|
|
151
|
+
self,
|
|
152
|
+
exc_type: type[BaseException] | None,
|
|
153
|
+
exc_val: BaseException | None,
|
|
154
|
+
exc_tb: TracebackType | None,
|
|
155
|
+
) -> None:
|
|
156
|
+
self.close()
|
|
157
|
+
|
|
158
|
+
def close(self) -> None:
|
|
159
|
+
"""Shutdown and close event loop."""
|
|
160
|
+
loop = self._loop
|
|
161
|
+
if self._state is not _State.INITIALIZED or loop is None:
|
|
162
|
+
return
|
|
163
|
+
try:
|
|
164
|
+
_cancel_all_tasks(loop)
|
|
165
|
+
loop.run_until_complete(loop.shutdown_asyncgens())
|
|
166
|
+
if hasattr(loop, "shutdown_default_executor"):
|
|
167
|
+
loop.run_until_complete(loop.shutdown_default_executor())
|
|
168
|
+
else:
|
|
169
|
+
loop.run_until_complete(_shutdown_default_executor(loop))
|
|
170
|
+
finally:
|
|
171
|
+
if self._set_event_loop:
|
|
172
|
+
events.set_event_loop(None)
|
|
173
|
+
loop.close()
|
|
174
|
+
self._loop = None
|
|
175
|
+
self._state = _State.CLOSED
|
|
176
|
+
|
|
177
|
+
def get_loop(self) -> AbstractEventLoop:
|
|
178
|
+
"""Return embedded event loop."""
|
|
179
|
+
self._lazy_init()
|
|
180
|
+
return self._loop
|
|
181
|
+
|
|
182
|
+
def run(self, coro: Coroutine[T_Retval], *, context=None) -> T_Retval:
|
|
183
|
+
"""Run a coroutine inside the embedded event loop."""
|
|
184
|
+
if not coroutines.iscoroutine(coro):
|
|
185
|
+
raise ValueError(f"a coroutine was expected, got {coro!r}")
|
|
186
|
+
|
|
187
|
+
if events._get_running_loop() is not None:
|
|
188
|
+
# fail fast with short traceback
|
|
189
|
+
raise RuntimeError(
|
|
190
|
+
"Runner.run() cannot be called from a running event loop"
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
self._lazy_init()
|
|
194
|
+
|
|
195
|
+
if context is None:
|
|
196
|
+
context = self._context
|
|
197
|
+
task = context.run(self._loop.create_task, coro)
|
|
198
|
+
|
|
199
|
+
if (
|
|
200
|
+
threading.current_thread() is threading.main_thread()
|
|
201
|
+
and signal.getsignal(signal.SIGINT) is signal.default_int_handler
|
|
202
|
+
):
|
|
203
|
+
sigint_handler = partial(self._on_sigint, main_task=task)
|
|
204
|
+
try:
|
|
205
|
+
signal.signal(signal.SIGINT, sigint_handler)
|
|
206
|
+
except ValueError:
|
|
207
|
+
# `signal.signal` may throw if `threading.main_thread` does
|
|
208
|
+
# not support signals (e.g. embedded interpreter with signals
|
|
209
|
+
# not registered - see gh-91880)
|
|
210
|
+
sigint_handler = None
|
|
211
|
+
else:
|
|
212
|
+
sigint_handler = None
|
|
213
|
+
|
|
214
|
+
self._interrupt_count = 0
|
|
215
|
+
try:
|
|
216
|
+
return self._loop.run_until_complete(task)
|
|
217
|
+
except exceptions.CancelledError:
|
|
218
|
+
if self._interrupt_count > 0:
|
|
219
|
+
uncancel = getattr(task, "uncancel", None)
|
|
220
|
+
if uncancel is not None and uncancel() == 0:
|
|
221
|
+
raise KeyboardInterrupt # noqa: B904
|
|
222
|
+
raise # CancelledError
|
|
223
|
+
finally:
|
|
224
|
+
if (
|
|
225
|
+
sigint_handler is not None
|
|
226
|
+
and signal.getsignal(signal.SIGINT) is sigint_handler
|
|
227
|
+
):
|
|
228
|
+
signal.signal(signal.SIGINT, signal.default_int_handler)
|
|
229
|
+
|
|
230
|
+
def _lazy_init(self) -> None:
|
|
231
|
+
if self._state is _State.CLOSED:
|
|
232
|
+
raise RuntimeError("Runner is closed")
|
|
233
|
+
if self._state is _State.INITIALIZED:
|
|
234
|
+
return
|
|
235
|
+
if self._loop_factory is None:
|
|
236
|
+
self._loop = events.new_event_loop()
|
|
237
|
+
if not self._set_event_loop:
|
|
238
|
+
# Call set_event_loop only once to avoid calling
|
|
239
|
+
# attach_loop multiple times on child watchers
|
|
240
|
+
events.set_event_loop(self._loop)
|
|
241
|
+
self._set_event_loop = True
|
|
242
|
+
else:
|
|
243
|
+
self._loop = self._loop_factory()
|
|
244
|
+
if self._debug is not None:
|
|
245
|
+
self._loop.set_debug(self._debug)
|
|
246
|
+
self._context = contextvars.copy_context()
|
|
247
|
+
self._state = _State.INITIALIZED
|
|
248
|
+
|
|
249
|
+
def _on_sigint(self, signum, frame, main_task: asyncio.Task) -> None:
|
|
250
|
+
self._interrupt_count += 1
|
|
251
|
+
if self._interrupt_count == 1 and not main_task.done():
|
|
252
|
+
main_task.cancel()
|
|
253
|
+
# wakeup loop if it is blocked by select() with long timeout
|
|
254
|
+
self._loop.call_soon_threadsafe(lambda: None)
|
|
255
|
+
return
|
|
256
|
+
raise KeyboardInterrupt()
|
|
257
|
+
|
|
258
|
+
def _cancel_all_tasks(loop: AbstractEventLoop) -> None:
|
|
259
|
+
to_cancel = tasks.all_tasks(loop)
|
|
260
|
+
if not to_cancel:
|
|
261
|
+
return
|
|
262
|
+
|
|
263
|
+
for task in to_cancel:
|
|
264
|
+
task.cancel()
|
|
265
|
+
|
|
266
|
+
loop.run_until_complete(tasks.gather(*to_cancel, return_exceptions=True))
|
|
267
|
+
|
|
268
|
+
for task in to_cancel:
|
|
269
|
+
if task.cancelled():
|
|
270
|
+
continue
|
|
271
|
+
if task.exception() is not None:
|
|
272
|
+
loop.call_exception_handler(
|
|
273
|
+
{
|
|
274
|
+
"message": "unhandled exception during asyncio.run() shutdown",
|
|
275
|
+
"exception": task.exception(),
|
|
276
|
+
"task": task,
|
|
277
|
+
}
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
async def _shutdown_default_executor(loop: AbstractEventLoop) -> None:
|
|
281
|
+
"""Schedule the shutdown of the default executor."""
|
|
282
|
+
|
|
283
|
+
def _do_shutdown(future: asyncio.futures.Future) -> None:
|
|
284
|
+
try:
|
|
285
|
+
loop._default_executor.shutdown(wait=True) # type: ignore[attr-defined]
|
|
286
|
+
loop.call_soon_threadsafe(future.set_result, None)
|
|
287
|
+
except Exception as ex:
|
|
288
|
+
loop.call_soon_threadsafe(future.set_exception, ex)
|
|
289
|
+
|
|
290
|
+
loop._executor_shutdown_called = True
|
|
291
|
+
if loop._default_executor is None:
|
|
292
|
+
return
|
|
293
|
+
future = loop.create_future()
|
|
294
|
+
thread = threading.Thread(target=_do_shutdown, args=(future,))
|
|
295
|
+
thread.start()
|
|
296
|
+
try:
|
|
297
|
+
await future
|
|
298
|
+
finally:
|
|
299
|
+
thread.join()
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
T_Retval = TypeVar("T_Retval")
|
|
303
|
+
T_co = TypeVar("T_co", covariant=True)
|
|
304
|
+
T_contra = TypeVar("T_contra", contravariant=True)
|
|
305
|
+
PosArgsT = TypeVarTuple("PosArgsT")
|
|
306
|
+
P = ParamSpec("P")
|
|
307
|
+
|
|
308
|
+
_root_task: RunVar[asyncio.Task[Any] | None] = RunVar("_root_task")
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
def find_root_task() -> asyncio.Task:
|
|
312
|
+
root_task = _root_task.get(None)
|
|
313
|
+
if root_task is not None and not root_task.done():
|
|
314
|
+
return root_task
|
|
315
|
+
|
|
316
|
+
# Look for a task that has been started via run_until_complete()
|
|
317
|
+
for task in all_tasks():
|
|
318
|
+
if task._callbacks and not task.done():
|
|
319
|
+
for cb, context in task._callbacks:
|
|
320
|
+
if (
|
|
321
|
+
cb is _run_until_complete_cb
|
|
322
|
+
or getattr(cb, "__module__", None) == "uvloop.loop"
|
|
323
|
+
):
|
|
324
|
+
_root_task.set(task)
|
|
325
|
+
|
|
326
|
+
def _unset(t: asyncio.Task[Any]) -> None:
|
|
327
|
+
if vars := _run_vars.get(t.get_loop()):
|
|
328
|
+
vars.pop(_root_task, None)
|
|
329
|
+
|
|
330
|
+
# Register a callback to break the task -> loop -> _run_var[loop][_root_task] -> task cycle
|
|
331
|
+
# Also run it in its own context to not create another reference.
|
|
332
|
+
# We can't use RunVar.reset() here since these are called synchronously
|
|
333
|
+
# and thus lowlevel.current_token() (which RunVar.reset() depends on) fails.
|
|
334
|
+
task.add_done_callback(_unset, context=context)
|
|
335
|
+
return task
|
|
336
|
+
|
|
337
|
+
# Look up the topmost task in the AnyIO task tree, if possible
|
|
338
|
+
task = cast(asyncio.Task, current_task())
|
|
339
|
+
state = _task_states.get(task)
|
|
340
|
+
if state:
|
|
341
|
+
cancel_scope = state.cancel_scope
|
|
342
|
+
while cancel_scope and cancel_scope._parent_scope is not None:
|
|
343
|
+
cancel_scope = cancel_scope._parent_scope
|
|
344
|
+
|
|
345
|
+
if cancel_scope is not None:
|
|
346
|
+
return cast(asyncio.Task, cancel_scope._host_task)
|
|
347
|
+
|
|
348
|
+
return task
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
def _task_started(task: asyncio.Task) -> bool:
|
|
352
|
+
"""Return ``True`` if the task has been started and has not finished."""
|
|
353
|
+
# The task coro should never be None here, as we never add finished tasks to the
|
|
354
|
+
# task list
|
|
355
|
+
coro = task.get_coro()
|
|
356
|
+
assert coro is not None
|
|
357
|
+
return getcoroutinestate(coro) in (CORO_RUNNING, CORO_SUSPENDED)
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
#
|
|
361
|
+
# Timeouts and cancellation
|
|
362
|
+
#
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
def is_anyio_cancellation(exc: CancelledError) -> bool:
|
|
366
|
+
# Sometimes third party frameworks catch a CancelledError and raise a new one, so as
|
|
367
|
+
# a workaround we have to look at the previous ones in __context__ too for a
|
|
368
|
+
# matching cancel message
|
|
369
|
+
while True:
|
|
370
|
+
if (
|
|
371
|
+
exc.args
|
|
372
|
+
and isinstance(exc.args[0], str)
|
|
373
|
+
and exc.args[0].startswith("Cancelled via cancel scope ")
|
|
374
|
+
):
|
|
375
|
+
return True
|
|
376
|
+
|
|
377
|
+
if isinstance(exc.__context__, CancelledError):
|
|
378
|
+
exc = exc.__context__
|
|
379
|
+
continue
|
|
380
|
+
|
|
381
|
+
return False
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
class CancelScope(BaseCancelScope):
|
|
385
|
+
__slots__ = (
|
|
386
|
+
"_active",
|
|
387
|
+
"_cancel_called",
|
|
388
|
+
"_cancel_handle",
|
|
389
|
+
"_cancel_reason",
|
|
390
|
+
"_cancelled_caught",
|
|
391
|
+
"_child_scopes",
|
|
392
|
+
"_deadline",
|
|
393
|
+
"_host_task",
|
|
394
|
+
"_parent_scope",
|
|
395
|
+
"_pending_uncancellations",
|
|
396
|
+
"_shield",
|
|
397
|
+
"_tasks",
|
|
398
|
+
"_timeout_handle",
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
def __new__(cls, *, deadline: float = math.inf, shield: bool = False) -> Self:
|
|
402
|
+
return object.__new__(cls)
|
|
403
|
+
|
|
404
|
+
def __init__(self, deadline: float = math.inf, shield: bool = False):
|
|
405
|
+
self._deadline = deadline
|
|
406
|
+
self._shield = shield
|
|
407
|
+
self._parent_scope: CancelScope | None = None
|
|
408
|
+
self._child_scopes: set[CancelScope] = set()
|
|
409
|
+
self._cancel_called = False
|
|
410
|
+
self._cancel_reason: str | None = None
|
|
411
|
+
self._cancelled_caught = False
|
|
412
|
+
self._active = False
|
|
413
|
+
self._timeout_handle: asyncio.TimerHandle | None = None
|
|
414
|
+
self._cancel_handle: asyncio.Handle | None = None
|
|
415
|
+
self._tasks: set[asyncio.Task] = set()
|
|
416
|
+
self._host_task: asyncio.Task | None = None
|
|
417
|
+
if sys.version_info >= (3, 11):
|
|
418
|
+
self._pending_uncancellations: int | None = 0
|
|
419
|
+
else:
|
|
420
|
+
self._pending_uncancellations = None
|
|
421
|
+
|
|
422
|
+
def __enter__(self) -> Self:
|
|
423
|
+
if self._active:
|
|
424
|
+
raise RuntimeError(
|
|
425
|
+
"Each CancelScope may only be used for a single 'with' block"
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
self._host_task = host_task = cast(asyncio.Task, current_task())
|
|
429
|
+
self._tasks.add(host_task)
|
|
430
|
+
try:
|
|
431
|
+
task_state = _task_states[host_task]
|
|
432
|
+
except KeyError:
|
|
433
|
+
task_state = TaskState(None, self)
|
|
434
|
+
_task_states[host_task] = task_state
|
|
435
|
+
else:
|
|
436
|
+
self._parent_scope = task_state.cancel_scope
|
|
437
|
+
task_state.cancel_scope = self
|
|
438
|
+
if self._parent_scope is not None:
|
|
439
|
+
# If using an eager task factory, the parent scope may not even contain
|
|
440
|
+
# the host task
|
|
441
|
+
self._parent_scope._child_scopes.add(self)
|
|
442
|
+
self._parent_scope._tasks.discard(host_task)
|
|
443
|
+
|
|
444
|
+
self._timeout()
|
|
445
|
+
self._active = True
|
|
446
|
+
|
|
447
|
+
# Start cancelling the host task if the scope was cancelled before entering
|
|
448
|
+
if self._cancel_called:
|
|
449
|
+
self._deliver_cancellation(self)
|
|
450
|
+
|
|
451
|
+
return self
|
|
452
|
+
|
|
453
|
+
def __exit__(
|
|
454
|
+
self,
|
|
455
|
+
exc_type: type[BaseException] | None,
|
|
456
|
+
exc_val: BaseException | None,
|
|
457
|
+
exc_tb: TracebackType | None,
|
|
458
|
+
) -> bool:
|
|
459
|
+
del exc_tb
|
|
460
|
+
|
|
461
|
+
if not self._active:
|
|
462
|
+
raise RuntimeError("This cancel scope is not active")
|
|
463
|
+
if current_task() is not self._host_task:
|
|
464
|
+
raise RuntimeError(
|
|
465
|
+
"Attempted to exit cancel scope in a different task than it was "
|
|
466
|
+
"entered in"
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
assert self._host_task is not None
|
|
470
|
+
host_task_state = _task_states.get(self._host_task)
|
|
471
|
+
if host_task_state is None or host_task_state.cancel_scope is not self:
|
|
472
|
+
raise RuntimeError(
|
|
473
|
+
"Attempted to exit a cancel scope that isn't the current tasks's "
|
|
474
|
+
"current cancel scope"
|
|
475
|
+
)
|
|
476
|
+
|
|
477
|
+
try:
|
|
478
|
+
self._active = False
|
|
479
|
+
if self._timeout_handle:
|
|
480
|
+
self._timeout_handle.cancel()
|
|
481
|
+
self._timeout_handle = None
|
|
482
|
+
|
|
483
|
+
self._tasks.remove(self._host_task)
|
|
484
|
+
if self._parent_scope is not None:
|
|
485
|
+
self._parent_scope._child_scopes.remove(self)
|
|
486
|
+
self._parent_scope._tasks.add(self._host_task)
|
|
487
|
+
|
|
488
|
+
host_task_state.cancel_scope = self._parent_scope
|
|
489
|
+
|
|
490
|
+
# Restart the cancellation effort in the closest visible, cancelled parent
|
|
491
|
+
# scope if necessary
|
|
492
|
+
self._restart_cancellation_in_parent()
|
|
493
|
+
|
|
494
|
+
# We only swallow the exception iff it was an AnyIO CancelledError, either
|
|
495
|
+
# directly as exc_val or inside an exception group and there are no cancelled
|
|
496
|
+
# parent cancel scopes visible to us here
|
|
497
|
+
if self._cancel_called and not self._parent_cancellation_is_visible_to_us:
|
|
498
|
+
# For each level-cancel() call made on the host task, call uncancel()
|
|
499
|
+
while self._pending_uncancellations:
|
|
500
|
+
self._host_task.uncancel()
|
|
501
|
+
self._pending_uncancellations -= 1
|
|
502
|
+
|
|
503
|
+
# Update cancelled_caught and check for exceptions we must not swallow
|
|
504
|
+
if isinstance(exc_val, BaseExceptionGroup):
|
|
505
|
+
cancelleds_caught, remaining = exc_val.split(
|
|
506
|
+
lambda exc: (
|
|
507
|
+
isinstance(exc, CancelledError)
|
|
508
|
+
and is_anyio_cancellation(exc)
|
|
509
|
+
)
|
|
510
|
+
)
|
|
511
|
+
|
|
512
|
+
if cancelleds_caught is None:
|
|
513
|
+
return False
|
|
514
|
+
|
|
515
|
+
self._cancelled_caught = True
|
|
516
|
+
|
|
517
|
+
if remaining is None:
|
|
518
|
+
return True
|
|
519
|
+
|
|
520
|
+
context = remaining.__context__
|
|
521
|
+
try:
|
|
522
|
+
# Preserve __cause__ and __suppress_context__ by avoiding `raise
|
|
523
|
+
# ... from ...`
|
|
524
|
+
raise remaining
|
|
525
|
+
finally:
|
|
526
|
+
# Preserve __context__
|
|
527
|
+
remaining.__context__ = context
|
|
528
|
+
del context
|
|
529
|
+
else:
|
|
530
|
+
if isinstance(exc_val, CancelledError) and is_anyio_cancellation(
|
|
531
|
+
exc_val
|
|
532
|
+
):
|
|
533
|
+
self._cancelled_caught = True
|
|
534
|
+
return True
|
|
535
|
+
else:
|
|
536
|
+
return False
|
|
537
|
+
else:
|
|
538
|
+
if self._pending_uncancellations:
|
|
539
|
+
assert self._parent_scope is not None
|
|
540
|
+
assert self._parent_scope._pending_uncancellations is not None
|
|
541
|
+
self._parent_scope._pending_uncancellations += (
|
|
542
|
+
self._pending_uncancellations
|
|
543
|
+
)
|
|
544
|
+
self._pending_uncancellations = 0
|
|
545
|
+
|
|
546
|
+
return False
|
|
547
|
+
finally:
|
|
548
|
+
self._host_task = None
|
|
549
|
+
del exc_val
|
|
550
|
+
|
|
551
|
+
@property
|
|
552
|
+
def _effectively_cancelled(self) -> bool:
|
|
553
|
+
cancel_scope: CancelScope | None = self
|
|
554
|
+
while cancel_scope is not None:
|
|
555
|
+
if cancel_scope._cancel_called:
|
|
556
|
+
return True
|
|
557
|
+
|
|
558
|
+
if cancel_scope.shield:
|
|
559
|
+
return False
|
|
560
|
+
|
|
561
|
+
cancel_scope = cancel_scope._parent_scope
|
|
562
|
+
|
|
563
|
+
return False
|
|
564
|
+
|
|
565
|
+
@property
|
|
566
|
+
def _parent_cancellation_is_visible_to_us(self) -> bool:
|
|
567
|
+
return (
|
|
568
|
+
self._parent_scope is not None
|
|
569
|
+
and not self.shield
|
|
570
|
+
and self._parent_scope._effectively_cancelled
|
|
571
|
+
)
|
|
572
|
+
|
|
573
|
+
def _timeout(self) -> None:
|
|
574
|
+
if self._deadline != math.inf:
|
|
575
|
+
loop = get_running_loop()
|
|
576
|
+
if loop.time() >= self._deadline:
|
|
577
|
+
self.cancel("deadline exceeded")
|
|
578
|
+
else:
|
|
579
|
+
self._timeout_handle = loop.call_at(self._deadline, self._timeout)
|
|
580
|
+
|
|
581
|
+
def _deliver_cancellation(self, origin: CancelScope) -> bool:
|
|
582
|
+
"""
|
|
583
|
+
Deliver cancellation to directly contained tasks and nested cancel scopes.
|
|
584
|
+
|
|
585
|
+
Schedule another run at the end if we still have tasks eligible for
|
|
586
|
+
cancellation.
|
|
587
|
+
|
|
588
|
+
:param origin: the cancel scope that originated the cancellation
|
|
589
|
+
:return: ``True`` if the delivery needs to be retried on the next cycle
|
|
590
|
+
|
|
591
|
+
"""
|
|
592
|
+
should_retry = False
|
|
593
|
+
current = current_task()
|
|
594
|
+
for task in self._tasks:
|
|
595
|
+
# Always skip tasks that are already done (see issue #1111)
|
|
596
|
+
if task.done():
|
|
597
|
+
continue
|
|
598
|
+
|
|
599
|
+
should_retry = True
|
|
600
|
+
if task._must_cancel: # type: ignore[attr-defined]
|
|
601
|
+
continue
|
|
602
|
+
|
|
603
|
+
# The task is eligible for cancellation if it has started
|
|
604
|
+
if task is not current and (task is self._host_task or _task_started(task)):
|
|
605
|
+
waiter = task._fut_waiter # type: ignore[attr-defined]
|
|
606
|
+
if not isinstance(waiter, asyncio.Future) or not waiter.done():
|
|
607
|
+
task.cancel(origin._cancel_reason)
|
|
608
|
+
if (
|
|
609
|
+
task is origin._host_task
|
|
610
|
+
and origin._pending_uncancellations is not None
|
|
611
|
+
):
|
|
612
|
+
origin._pending_uncancellations += 1
|
|
613
|
+
|
|
614
|
+
# Deliver cancellation to child scopes that aren't shielded or running their own
|
|
615
|
+
# cancellation callbacks
|
|
616
|
+
for scope in self._child_scopes:
|
|
617
|
+
if not scope._shield and not scope.cancel_called:
|
|
618
|
+
should_retry = scope._deliver_cancellation(origin) or should_retry
|
|
619
|
+
|
|
620
|
+
# Schedule another callback if there are still tasks left
|
|
621
|
+
if origin is self:
|
|
622
|
+
if should_retry:
|
|
623
|
+
self._cancel_handle = get_running_loop().call_soon(
|
|
624
|
+
self._deliver_cancellation, origin
|
|
625
|
+
)
|
|
626
|
+
else:
|
|
627
|
+
self._cancel_handle = None
|
|
628
|
+
|
|
629
|
+
return should_retry
|
|
630
|
+
|
|
631
|
+
def _restart_cancellation_in_parent(self) -> None:
|
|
632
|
+
"""
|
|
633
|
+
Restart the cancellation effort in the closest directly cancelled parent scope.
|
|
634
|
+
|
|
635
|
+
"""
|
|
636
|
+
scope = self._parent_scope
|
|
637
|
+
while scope is not None:
|
|
638
|
+
if scope._cancel_called:
|
|
639
|
+
if scope._cancel_handle is None:
|
|
640
|
+
scope._deliver_cancellation(scope)
|
|
641
|
+
|
|
642
|
+
break
|
|
643
|
+
|
|
644
|
+
# No point in looking beyond any shielded scope
|
|
645
|
+
if scope._shield:
|
|
646
|
+
break
|
|
647
|
+
|
|
648
|
+
scope = scope._parent_scope
|
|
649
|
+
|
|
650
|
+
def _reparent(self, new_parent: CancelScope) -> None:
|
|
651
|
+
"""
|
|
652
|
+
Move this active scope from its current parent to ``new_parent``.
|
|
653
|
+
|
|
654
|
+
Used by :meth:`TaskGroup.start` to move a task that has just called
|
|
655
|
+
``task_status.started()`` into the target task group's cancel scope.
|
|
656
|
+
"""
|
|
657
|
+
if self._parent_scope is new_parent:
|
|
658
|
+
return
|
|
659
|
+
|
|
660
|
+
if self._parent_scope is not None:
|
|
661
|
+
self._parent_scope._child_scopes.discard(self)
|
|
662
|
+
|
|
663
|
+
self._parent_scope = new_parent
|
|
664
|
+
new_parent._child_scopes.add(self)
|
|
665
|
+
|
|
666
|
+
# If the new parent (or an ancestor) is already cancelled, (re)start the
|
|
667
|
+
# delivery loop to ensure we're cancelled at next checkpoint like Trio.
|
|
668
|
+
self._restart_cancellation_in_parent()
|
|
669
|
+
|
|
670
|
+
def cancel(self, reason: str | None = None) -> None:
|
|
671
|
+
if not self._cancel_called:
|
|
672
|
+
if self._timeout_handle:
|
|
673
|
+
self._timeout_handle.cancel()
|
|
674
|
+
self._timeout_handle = None
|
|
675
|
+
|
|
676
|
+
self._cancel_called = True
|
|
677
|
+
self._cancel_reason = f"Cancelled via cancel scope {id(self):x}"
|
|
678
|
+
if task := current_task():
|
|
679
|
+
self._cancel_reason += f" by {task}"
|
|
680
|
+
|
|
681
|
+
if reason:
|
|
682
|
+
self._cancel_reason += f"; reason: {reason}"
|
|
683
|
+
|
|
684
|
+
if self._host_task is not None:
|
|
685
|
+
self._deliver_cancellation(self)
|
|
686
|
+
|
|
687
|
+
@property
|
|
688
|
+
def deadline(self) -> float:
|
|
689
|
+
return self._deadline
|
|
690
|
+
|
|
691
|
+
@deadline.setter
|
|
692
|
+
def deadline(self, value: float) -> None:
|
|
693
|
+
self._deadline = float(value)
|
|
694
|
+
if self._timeout_handle is not None:
|
|
695
|
+
self._timeout_handle.cancel()
|
|
696
|
+
self._timeout_handle = None
|
|
697
|
+
|
|
698
|
+
if self._active and not self._cancel_called:
|
|
699
|
+
self._timeout()
|
|
700
|
+
|
|
701
|
+
@property
|
|
702
|
+
def cancel_called(self) -> bool:
|
|
703
|
+
return self._cancel_called
|
|
704
|
+
|
|
705
|
+
@property
|
|
706
|
+
def cancelled_caught(self) -> bool:
|
|
707
|
+
return self._cancelled_caught
|
|
708
|
+
|
|
709
|
+
@property
|
|
710
|
+
def shield(self) -> bool:
|
|
711
|
+
return self._shield
|
|
712
|
+
|
|
713
|
+
@shield.setter
|
|
714
|
+
def shield(self, value: bool) -> None:
|
|
715
|
+
if self._shield != value:
|
|
716
|
+
self._shield = value
|
|
717
|
+
if not value:
|
|
718
|
+
self._restart_cancellation_in_parent()
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
#
|
|
722
|
+
# Task states
|
|
723
|
+
#
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
class TaskState:
|
|
727
|
+
"""
|
|
728
|
+
Encapsulates auxiliary task information that cannot be added to the Task instance
|
|
729
|
+
itself because there are no guarantees about its implementation.
|
|
730
|
+
"""
|
|
731
|
+
|
|
732
|
+
__slots__ = "__weakref__", "cancel_scope", "parent_id"
|
|
733
|
+
|
|
734
|
+
def __init__(self, parent_id: int | None, cancel_scope: CancelScope | None):
|
|
735
|
+
self.parent_id = parent_id
|
|
736
|
+
self.cancel_scope = cancel_scope
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
_task_states: WeakKeyDictionary[asyncio.Task, TaskState] = WeakKeyDictionary()
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
#
|
|
743
|
+
# Task groups
|
|
744
|
+
#
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
class _AsyncioTaskStatus(abc.TaskStatus[T_contra]):
|
|
748
|
+
def __init__(
|
|
749
|
+
self,
|
|
750
|
+
future: asyncio.Future,
|
|
751
|
+
parent_id: int,
|
|
752
|
+
target_scope: CancelScope,
|
|
753
|
+
spawn_scope: CancelScope,
|
|
754
|
+
):
|
|
755
|
+
self._future = future
|
|
756
|
+
self._parent_id = parent_id
|
|
757
|
+
# The eventual parent scope for this spawn_scope
|
|
758
|
+
# (after task_status.started() has been called)
|
|
759
|
+
self._target_scope = target_scope
|
|
760
|
+
# The task's own cancel scope, also held by its TaskHandle
|
|
761
|
+
self._spawn_scope = spawn_scope
|
|
762
|
+
|
|
763
|
+
def started(self, value: T_contra | None = None) -> None:
|
|
764
|
+
task = cast(asyncio.Task, current_task())
|
|
765
|
+
_task_states[task].parent_id = self._parent_id
|
|
766
|
+
if self._future.done():
|
|
767
|
+
if not self._future.cancelled():
|
|
768
|
+
raise RuntimeError("called 'started' twice on the same task status")
|
|
769
|
+
else:
|
|
770
|
+
# Caller of start() was cancelled, nothing to reparent
|
|
771
|
+
return
|
|
772
|
+
|
|
773
|
+
self._future.set_result(value)
|
|
774
|
+
self._spawn_scope._reparent(self._target_scope)
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
if sys.version_info >= (3, 12):
|
|
778
|
+
_eager_task_factory_code: CodeType | None = asyncio.eager_task_factory.__code__
|
|
779
|
+
else:
|
|
780
|
+
_eager_task_factory_code = None
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
class TaskGroup(abc.TaskGroup):
|
|
784
|
+
def __init__(self) -> None:
|
|
785
|
+
self.cancel_scope: CancelScope = CancelScope()
|
|
786
|
+
self._entered = False
|
|
787
|
+
self._exceptions: list[BaseException] = []
|
|
788
|
+
self._tasks: set[asyncio.Task] = set()
|
|
789
|
+
self._on_completed_fut: asyncio.Future[None] | None = None
|
|
790
|
+
|
|
791
|
+
async def __aenter__(self) -> Self:
|
|
792
|
+
if self._entered:
|
|
793
|
+
raise RuntimeError("TaskGroup cannot be entered more than once")
|
|
794
|
+
|
|
795
|
+
self._entered = True
|
|
796
|
+
|
|
797
|
+
self.cancel_scope.__enter__()
|
|
798
|
+
return self
|
|
799
|
+
|
|
800
|
+
async def __aexit__(
|
|
801
|
+
self,
|
|
802
|
+
exc_type: type[BaseException] | None,
|
|
803
|
+
exc_val: BaseException | None,
|
|
804
|
+
exc_tb: TracebackType | None,
|
|
805
|
+
) -> bool:
|
|
806
|
+
try:
|
|
807
|
+
if exc_val is not None:
|
|
808
|
+
self.cancel_scope.cancel()
|
|
809
|
+
if not isinstance(exc_val, CancelledError):
|
|
810
|
+
self._exceptions.append(exc_val)
|
|
811
|
+
|
|
812
|
+
loop = get_running_loop()
|
|
813
|
+
try:
|
|
814
|
+
if self._tasks:
|
|
815
|
+
with CancelScope() as wait_scope:
|
|
816
|
+
while self._tasks:
|
|
817
|
+
self._on_completed_fut = loop.create_future()
|
|
818
|
+
|
|
819
|
+
try:
|
|
820
|
+
await self._on_completed_fut
|
|
821
|
+
except CancelledError as exc:
|
|
822
|
+
# Shield the scope against further cancellation attempts,
|
|
823
|
+
# as they're not productive (#695)
|
|
824
|
+
wait_scope.shield = True
|
|
825
|
+
self.cancel_scope.cancel()
|
|
826
|
+
|
|
827
|
+
# Set exc_val from the cancellation exception if it was
|
|
828
|
+
# previously unset. However, we should not replace a native
|
|
829
|
+
# cancellation exception with one raise by a cancel scope.
|
|
830
|
+
if exc_val is None or (
|
|
831
|
+
isinstance(exc_val, CancelledError)
|
|
832
|
+
and not is_anyio_cancellation(exc)
|
|
833
|
+
):
|
|
834
|
+
exc_val = exc
|
|
835
|
+
|
|
836
|
+
self._on_completed_fut = None
|
|
837
|
+
else:
|
|
838
|
+
# If there are no child tasks to wait on, run at least one checkpoint
|
|
839
|
+
# anyway
|
|
840
|
+
await AsyncIOBackend.cancel_shielded_checkpoint()
|
|
841
|
+
|
|
842
|
+
if self._exceptions:
|
|
843
|
+
# The exception that got us here should already have been
|
|
844
|
+
# added to self._exceptions so it's ok to break exception
|
|
845
|
+
# chaining and avoid adding a "During handling of above..."
|
|
846
|
+
# for each nesting level.
|
|
847
|
+
raise BaseExceptionGroup(
|
|
848
|
+
"unhandled errors in a TaskGroup", self._exceptions
|
|
849
|
+
) from None
|
|
850
|
+
elif exc_val:
|
|
851
|
+
raise exc_val
|
|
852
|
+
except BaseException as exc:
|
|
853
|
+
if self.cancel_scope.__exit__(type(exc), exc, exc.__traceback__):
|
|
854
|
+
return True
|
|
855
|
+
|
|
856
|
+
raise
|
|
857
|
+
|
|
858
|
+
return self.cancel_scope.__exit__(exc_type, exc_val, exc_tb)
|
|
859
|
+
finally:
|
|
860
|
+
del exc_val, exc_tb, self._exceptions
|
|
861
|
+
|
|
862
|
+
def _spawn(
|
|
863
|
+
self,
|
|
864
|
+
coro: Coroutine[Any, Any, T_co],
|
|
865
|
+
name: object,
|
|
866
|
+
task_status: _AsyncioTaskStatus | None = None,
|
|
867
|
+
) -> TaskHandle[T_co]:
|
|
868
|
+
task_status_future = task_status._future if task_status is not None else None
|
|
869
|
+
|
|
870
|
+
def task_done(_task: asyncio.Task) -> None:
|
|
871
|
+
if sys.version_info >= (3, 14) and self.cancel_scope._host_task is not None:
|
|
872
|
+
asyncio.future_discard_from_awaited_by(
|
|
873
|
+
_task, self.cancel_scope._host_task
|
|
874
|
+
)
|
|
875
|
+
|
|
876
|
+
task_state = _task_states[_task]
|
|
877
|
+
assert task_state.cancel_scope is not None
|
|
878
|
+
assert _task in task_state.cancel_scope._tasks
|
|
879
|
+
task_state.cancel_scope._tasks.remove(_task)
|
|
880
|
+
self._tasks.remove(task)
|
|
881
|
+
del _task_states[_task]
|
|
882
|
+
|
|
883
|
+
if self._on_completed_fut is not None and not self._tasks:
|
|
884
|
+
try:
|
|
885
|
+
self._on_completed_fut.set_result(None)
|
|
886
|
+
except asyncio.InvalidStateError:
|
|
887
|
+
pass
|
|
888
|
+
|
|
889
|
+
try:
|
|
890
|
+
exc = _task.exception()
|
|
891
|
+
except CancelledError as e:
|
|
892
|
+
while isinstance(e.__context__, CancelledError):
|
|
893
|
+
e = e.__context__
|
|
894
|
+
|
|
895
|
+
exc = e
|
|
896
|
+
|
|
897
|
+
if exc is not None:
|
|
898
|
+
# The future can only be in the cancelled state if the host task was
|
|
899
|
+
# cancelled, so return immediately instead of adding one more
|
|
900
|
+
# CancelledError to the exceptions list
|
|
901
|
+
if task_status_future is not None and task_status_future.cancelled():
|
|
902
|
+
return
|
|
903
|
+
|
|
904
|
+
if task_status_future is None or task_status_future.done():
|
|
905
|
+
if not isinstance(exc, CancelledError):
|
|
906
|
+
self._exceptions.append(exc)
|
|
907
|
+
|
|
908
|
+
if not self.cancel_scope._effectively_cancelled:
|
|
909
|
+
self.cancel_scope.cancel()
|
|
910
|
+
else:
|
|
911
|
+
task_status_future.set_exception(exc)
|
|
912
|
+
elif task_status_future is not None and not task_status_future.done():
|
|
913
|
+
task_status_future.set_exception(
|
|
914
|
+
RuntimeError("Child exited without calling task_status.started()")
|
|
915
|
+
)
|
|
916
|
+
|
|
917
|
+
if task_status_future is not None:
|
|
918
|
+
parent_id = id(current_task())
|
|
919
|
+
caller_state = _task_states.get(cast(asyncio.Task, current_task()))
|
|
920
|
+
if caller_state is not None and caller_state.cancel_scope is not None:
|
|
921
|
+
initial_scope = caller_state.cancel_scope
|
|
922
|
+
else:
|
|
923
|
+
# The caller is an unmanaged task (no task state)
|
|
924
|
+
initial_scope = self.cancel_scope
|
|
925
|
+
else:
|
|
926
|
+
parent_id = id(self.cancel_scope._host_task)
|
|
927
|
+
initial_scope = self.cancel_scope
|
|
928
|
+
|
|
929
|
+
spawn_scope = task_status._spawn_scope if task_status is not None else None
|
|
930
|
+
handle = TaskHandle(coro, name, cancel_scope=spawn_scope)
|
|
931
|
+
loop = asyncio.get_running_loop()
|
|
932
|
+
wrapper_coro = handle._run_coro()
|
|
933
|
+
try:
|
|
934
|
+
if (
|
|
935
|
+
(factory := loop.get_task_factory())
|
|
936
|
+
and getattr(factory, "__code__", None) is _eager_task_factory_code
|
|
937
|
+
and (closure := getattr(factory, "__closure__", None))
|
|
938
|
+
):
|
|
939
|
+
custom_task_constructor = closure[0].cell_contents
|
|
940
|
+
task = custom_task_constructor(
|
|
941
|
+
wrapper_coro, loop=loop, name=handle.name
|
|
942
|
+
)
|
|
943
|
+
else:
|
|
944
|
+
task = loop.create_task(wrapper_coro, name=handle.name)
|
|
945
|
+
except BaseException:
|
|
946
|
+
with suppress(BaseException):
|
|
947
|
+
wrapper_coro.close()
|
|
948
|
+
|
|
949
|
+
with suppress(BaseException):
|
|
950
|
+
coro.close()
|
|
951
|
+
|
|
952
|
+
raise
|
|
953
|
+
|
|
954
|
+
# Make the spawned task inherit the initial cancel scope
|
|
955
|
+
_task_states[task] = TaskState(parent_id=parent_id, cancel_scope=initial_scope)
|
|
956
|
+
initial_scope._tasks.add(task)
|
|
957
|
+
self._tasks.add(task)
|
|
958
|
+
if sys.version_info >= (3, 14) and self.cancel_scope._host_task is not None:
|
|
959
|
+
asyncio.future_add_to_awaited_by(task, self.cancel_scope._host_task)
|
|
960
|
+
|
|
961
|
+
task.add_done_callback(task_done)
|
|
962
|
+
return handle
|
|
963
|
+
|
|
964
|
+
def create_task(
|
|
965
|
+
self,
|
|
966
|
+
coro: Coroutine[Any, Any, T_co],
|
|
967
|
+
*,
|
|
968
|
+
name: object = None,
|
|
969
|
+
context: Context | None = None,
|
|
970
|
+
) -> TaskHandle[T_co]:
|
|
971
|
+
if not isinstance(coro, Coroutine):
|
|
972
|
+
raise TypeError(f"expected a coroutine, got {coro.__class__.__qualname__}")
|
|
973
|
+
|
|
974
|
+
if not self._entered or not self.cancel_scope._active:
|
|
975
|
+
coro.close()
|
|
976
|
+
raise RuntimeError(
|
|
977
|
+
"This task group is not active; no new tasks can be started."
|
|
978
|
+
)
|
|
979
|
+
|
|
980
|
+
final_name = get_coro_name(coro, name)
|
|
981
|
+
|
|
982
|
+
if context is not None:
|
|
983
|
+
return context.run(self._spawn, coro, name=final_name)
|
|
984
|
+
else:
|
|
985
|
+
return self._spawn(coro, name=final_name)
|
|
986
|
+
|
|
987
|
+
async def start(
|
|
988
|
+
self,
|
|
989
|
+
func: Callable[[Unpack[PosArgsT]], Coroutine[Any, Any, T_co]],
|
|
990
|
+
*args: Unpack[PosArgsT],
|
|
991
|
+
name: object = None,
|
|
992
|
+
return_handle: Literal[False, True] = False,
|
|
993
|
+
) -> Any:
|
|
994
|
+
if not self._entered or not self.cancel_scope._active:
|
|
995
|
+
raise RuntimeError(
|
|
996
|
+
"This task group is not active; no new tasks can be started."
|
|
997
|
+
)
|
|
998
|
+
|
|
999
|
+
# Until task_status.started() is called, a task spawned via start() belongs to
|
|
1000
|
+
# the *caller's* cancel scope, not the target group's, so cancelling the group
|
|
1001
|
+
# does not cancel a task that hasn't reported startup yet. The
|
|
1002
|
+
# task_status.started() call moves the task's cancel scope to this task group's
|
|
1003
|
+
# cancel scope.
|
|
1004
|
+
#
|
|
1005
|
+
# The caller may be an unmanaged task (no _task_states entry), in which case
|
|
1006
|
+
# fall back to the group's own scope.
|
|
1007
|
+
future: asyncio.Future = asyncio.Future()
|
|
1008
|
+
final_name = get_callable_name(func, name)
|
|
1009
|
+
task_status: _AsyncioTaskStatus[Any] = _AsyncioTaskStatus(
|
|
1010
|
+
future, id(self.cancel_scope._host_task), self.cancel_scope, CancelScope()
|
|
1011
|
+
)
|
|
1012
|
+
coro = call_for_coroutine(func, args, task_status=task_status)
|
|
1013
|
+
handle = self._spawn(coro, final_name, task_status)
|
|
1014
|
+
|
|
1015
|
+
# If the task raises an exception after sending a start value without a switch
|
|
1016
|
+
# point between, the task group is cancelled and this method never proceeds to
|
|
1017
|
+
# process the completed future. That's why we have to have a shielded cancel
|
|
1018
|
+
# scope here.
|
|
1019
|
+
try:
|
|
1020
|
+
await future
|
|
1021
|
+
except BaseException:
|
|
1022
|
+
if handle.status is TaskHandle.Status.PENDING:
|
|
1023
|
+
# Cancel the task and wait for it to exit before returning
|
|
1024
|
+
handle.cancel()
|
|
1025
|
+
with CancelScope(shield=True):
|
|
1026
|
+
await handle.wait()
|
|
1027
|
+
|
|
1028
|
+
raise
|
|
1029
|
+
|
|
1030
|
+
if return_handle:
|
|
1031
|
+
handle._start_value = future.result()
|
|
1032
|
+
return handle
|
|
1033
|
+
else:
|
|
1034
|
+
return future.result()
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
#
|
|
1038
|
+
# Threads
|
|
1039
|
+
#
|
|
1040
|
+
|
|
1041
|
+
_Retval_Queue_Type = tuple[T_Retval | None, BaseException | None]
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
class WorkerThread(Thread):
|
|
1045
|
+
MAX_IDLE_TIME = 10 # seconds
|
|
1046
|
+
|
|
1047
|
+
def __init__(
|
|
1048
|
+
self,
|
|
1049
|
+
root_task: asyncio.Task,
|
|
1050
|
+
workers: set[WorkerThread],
|
|
1051
|
+
idle_workers: deque[WorkerThread],
|
|
1052
|
+
):
|
|
1053
|
+
kwargs: dict[str, Any] = {}
|
|
1054
|
+
if sys.version_info >= (3, 14):
|
|
1055
|
+
kwargs["context"] = Context()
|
|
1056
|
+
|
|
1057
|
+
super().__init__(name="AnyIO worker thread", **kwargs)
|
|
1058
|
+
self.root_task = root_task
|
|
1059
|
+
self.workers = workers
|
|
1060
|
+
self.idle_workers = idle_workers
|
|
1061
|
+
self.loop = root_task._loop
|
|
1062
|
+
self.queue: Queue[
|
|
1063
|
+
tuple[Context, Callable, tuple, asyncio.Future, CancelScope] | None
|
|
1064
|
+
] = Queue(2)
|
|
1065
|
+
self.idle_since = AsyncIOBackend.current_time()
|
|
1066
|
+
self.stopping = False
|
|
1067
|
+
|
|
1068
|
+
def _report_result(
|
|
1069
|
+
self, future: asyncio.Future, result: Any, exc: BaseException | None
|
|
1070
|
+
) -> None:
|
|
1071
|
+
self.idle_since = AsyncIOBackend.current_time()
|
|
1072
|
+
if not self.stopping:
|
|
1073
|
+
self.idle_workers.append(self)
|
|
1074
|
+
|
|
1075
|
+
if not future.cancelled():
|
|
1076
|
+
if exc is not None:
|
|
1077
|
+
if isinstance(exc, StopIteration):
|
|
1078
|
+
new_exc = RuntimeError("coroutine raised StopIteration")
|
|
1079
|
+
new_exc.__cause__ = exc
|
|
1080
|
+
exc = new_exc
|
|
1081
|
+
|
|
1082
|
+
future.set_exception(exc)
|
|
1083
|
+
else:
|
|
1084
|
+
future.set_result(result)
|
|
1085
|
+
|
|
1086
|
+
def run(self) -> None:
|
|
1087
|
+
with claim_worker_thread(AsyncIOBackend, self.loop):
|
|
1088
|
+
while True:
|
|
1089
|
+
item = self.queue.get()
|
|
1090
|
+
if item is None:
|
|
1091
|
+
# Shutdown command received
|
|
1092
|
+
return
|
|
1093
|
+
|
|
1094
|
+
context, func, args, future, cancel_scope = item
|
|
1095
|
+
if not future.cancelled():
|
|
1096
|
+
result = None
|
|
1097
|
+
exception: BaseException | None = None
|
|
1098
|
+
threadlocals.current_cancel_scope = cancel_scope
|
|
1099
|
+
try:
|
|
1100
|
+
result = context.run(func, *args)
|
|
1101
|
+
except BaseException as exc:
|
|
1102
|
+
exception = exc
|
|
1103
|
+
finally:
|
|
1104
|
+
del threadlocals.current_cancel_scope
|
|
1105
|
+
|
|
1106
|
+
try:
|
|
1107
|
+
self.loop.call_soon_threadsafe(
|
|
1108
|
+
self._report_result, future, result, exception
|
|
1109
|
+
)
|
|
1110
|
+
except RuntimeError:
|
|
1111
|
+
if not self.loop.is_closed():
|
|
1112
|
+
raise
|
|
1113
|
+
|
|
1114
|
+
del result, exception
|
|
1115
|
+
|
|
1116
|
+
self.queue.task_done()
|
|
1117
|
+
del item, context, func, args, future, cancel_scope
|
|
1118
|
+
|
|
1119
|
+
def stop(self, f: asyncio.Task | None = None) -> None:
|
|
1120
|
+
self.stopping = True
|
|
1121
|
+
self.queue.put_nowait(None)
|
|
1122
|
+
self.workers.discard(self)
|
|
1123
|
+
try:
|
|
1124
|
+
self.idle_workers.remove(self)
|
|
1125
|
+
except ValueError:
|
|
1126
|
+
pass
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
_threadpool_idle_workers: RunVar[deque[WorkerThread]] = RunVar(
|
|
1130
|
+
"_threadpool_idle_workers"
|
|
1131
|
+
)
|
|
1132
|
+
_threadpool_workers: RunVar[set[WorkerThread]] = RunVar("_threadpool_workers")
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
#
|
|
1136
|
+
# Subprocesses
|
|
1137
|
+
#
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
@dataclass(eq=False)
|
|
1141
|
+
class StreamReaderWrapper(abc.ByteReceiveStream):
|
|
1142
|
+
_stream: asyncio.StreamReader
|
|
1143
|
+
|
|
1144
|
+
async def receive(self, max_bytes: int = 65536) -> bytes:
|
|
1145
|
+
if max_bytes < 1:
|
|
1146
|
+
raise ValueError("max_bytes must be a positive integer")
|
|
1147
|
+
|
|
1148
|
+
data = await self._stream.read(max_bytes)
|
|
1149
|
+
if data:
|
|
1150
|
+
return data
|
|
1151
|
+
else:
|
|
1152
|
+
raise EndOfStream
|
|
1153
|
+
|
|
1154
|
+
async def aclose(self) -> None:
|
|
1155
|
+
self._stream.set_exception(ClosedResourceError())
|
|
1156
|
+
await AsyncIOBackend.checkpoint()
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
@dataclass(eq=False)
|
|
1160
|
+
class StreamWriterWrapper(abc.ByteSendStream):
|
|
1161
|
+
_stream: asyncio.StreamWriter
|
|
1162
|
+
_closed: bool = field(init=False, default=False)
|
|
1163
|
+
|
|
1164
|
+
async def send(self, item: bytes) -> None:
|
|
1165
|
+
await AsyncIOBackend.checkpoint_if_cancelled()
|
|
1166
|
+
stream_paused = self._stream._protocol._paused # type: ignore[attr-defined]
|
|
1167
|
+
try:
|
|
1168
|
+
self._stream.write(item)
|
|
1169
|
+
await self._stream.drain()
|
|
1170
|
+
except (ConnectionResetError, BrokenPipeError, RuntimeError) as exc:
|
|
1171
|
+
# If closed by us and/or the peer:
|
|
1172
|
+
# * on stdlib, drain() raises ConnectionResetError or BrokenPipeError
|
|
1173
|
+
# * on uvloop and Winloop, write() eventually starts raising RuntimeError
|
|
1174
|
+
if self._closed:
|
|
1175
|
+
raise ClosedResourceError from exc
|
|
1176
|
+
elif self._stream.is_closing():
|
|
1177
|
+
raise BrokenResourceError from exc
|
|
1178
|
+
|
|
1179
|
+
raise
|
|
1180
|
+
|
|
1181
|
+
if not stream_paused:
|
|
1182
|
+
await AsyncIOBackend.cancel_shielded_checkpoint()
|
|
1183
|
+
|
|
1184
|
+
async def aclose(self) -> None:
|
|
1185
|
+
self._closed = True
|
|
1186
|
+
self._stream.close()
|
|
1187
|
+
await AsyncIOBackend.checkpoint()
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
@dataclass(eq=False)
|
|
1191
|
+
class Process(abc.Process):
|
|
1192
|
+
_process: asyncio.subprocess.Process
|
|
1193
|
+
_stdin: StreamWriterWrapper | None
|
|
1194
|
+
_stdout: StreamReaderWrapper | None
|
|
1195
|
+
_stderr: StreamReaderWrapper | None
|
|
1196
|
+
_exited: asyncio.Event
|
|
1197
|
+
_transport: asyncio.SubprocessTransport
|
|
1198
|
+
|
|
1199
|
+
async def aclose(self) -> None:
|
|
1200
|
+
with CancelScope(shield=True) as scope:
|
|
1201
|
+
# We need to close the underlying pipe_transports as well to allow a
|
|
1202
|
+
# process blocking on full buffers to receive SIGPIPE and exit.
|
|
1203
|
+
if self._stdin:
|
|
1204
|
+
await self._stdin.aclose()
|
|
1205
|
+
if pipe := self._transport.get_pipe_transport(0):
|
|
1206
|
+
pipe.close()
|
|
1207
|
+
if self._stdout:
|
|
1208
|
+
await self._stdout.aclose()
|
|
1209
|
+
if pipe := self._transport.get_pipe_transport(1):
|
|
1210
|
+
pipe.close()
|
|
1211
|
+
if self._stderr:
|
|
1212
|
+
await self._stderr.aclose()
|
|
1213
|
+
if pipe := self._transport.get_pipe_transport(2):
|
|
1214
|
+
pipe.close()
|
|
1215
|
+
|
|
1216
|
+
scope.shield = False
|
|
1217
|
+
try:
|
|
1218
|
+
await self.wait()
|
|
1219
|
+
except BaseException:
|
|
1220
|
+
scope.shield = True
|
|
1221
|
+
# Closing the transport on asyncio also handles sending kill
|
|
1222
|
+
self._transport.close()
|
|
1223
|
+
await self.wait()
|
|
1224
|
+
raise
|
|
1225
|
+
|
|
1226
|
+
async def wait(self) -> int:
|
|
1227
|
+
await self._exited.wait()
|
|
1228
|
+
assert self._process.returncode is not None
|
|
1229
|
+
return self._process.returncode
|
|
1230
|
+
|
|
1231
|
+
def terminate(self) -> None:
|
|
1232
|
+
self._process.terminate()
|
|
1233
|
+
|
|
1234
|
+
def kill(self) -> None:
|
|
1235
|
+
self._process.kill()
|
|
1236
|
+
|
|
1237
|
+
def send_signal(self, signal: int) -> None:
|
|
1238
|
+
self._process.send_signal(signal)
|
|
1239
|
+
|
|
1240
|
+
@property
|
|
1241
|
+
def pid(self) -> int:
|
|
1242
|
+
return self._process.pid
|
|
1243
|
+
|
|
1244
|
+
@property
|
|
1245
|
+
def returncode(self) -> int | None:
|
|
1246
|
+
return self._process.returncode
|
|
1247
|
+
|
|
1248
|
+
@property
|
|
1249
|
+
def stdin(self) -> abc.ByteSendStream | None:
|
|
1250
|
+
return self._stdin
|
|
1251
|
+
|
|
1252
|
+
@property
|
|
1253
|
+
def stdout(self) -> abc.ByteReceiveStream | None:
|
|
1254
|
+
return self._stdout
|
|
1255
|
+
|
|
1256
|
+
@property
|
|
1257
|
+
def stderr(self) -> abc.ByteReceiveStream | None:
|
|
1258
|
+
return self._stderr
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
def _forcibly_shutdown_process_pool_on_exit(
|
|
1262
|
+
workers: set[Process], _task: object
|
|
1263
|
+
) -> None:
|
|
1264
|
+
"""
|
|
1265
|
+
Forcibly shuts down worker processes belonging to this event loop."""
|
|
1266
|
+
child_watcher: asyncio.AbstractChildWatcher | None = None # type: ignore[name-defined]
|
|
1267
|
+
if sys.version_info < (3, 12):
|
|
1268
|
+
try:
|
|
1269
|
+
child_watcher = asyncio.get_event_loop_policy().get_child_watcher()
|
|
1270
|
+
except NotImplementedError:
|
|
1271
|
+
pass
|
|
1272
|
+
|
|
1273
|
+
# Close as much as possible (w/o async/await) to avoid warnings
|
|
1274
|
+
for process in workers.copy():
|
|
1275
|
+
if process.returncode is not None:
|
|
1276
|
+
continue
|
|
1277
|
+
|
|
1278
|
+
process._stdin._stream._transport.close() # type: ignore[union-attr]
|
|
1279
|
+
process._stdout._stream._transport.close() # type: ignore[union-attr]
|
|
1280
|
+
process._stderr._stream._transport.close() # type: ignore[union-attr]
|
|
1281
|
+
process.kill()
|
|
1282
|
+
if child_watcher:
|
|
1283
|
+
child_watcher.remove_child_handler(process.pid)
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
async def _shutdown_process_pool_on_exit(workers: set[abc.Process]) -> None:
|
|
1287
|
+
"""
|
|
1288
|
+
Shuts down worker processes belonging to this event loop.
|
|
1289
|
+
|
|
1290
|
+
NOTE: this only works when the event loop was started using asyncio.run() or
|
|
1291
|
+
anyio.run().
|
|
1292
|
+
|
|
1293
|
+
"""
|
|
1294
|
+
process: abc.Process
|
|
1295
|
+
try:
|
|
1296
|
+
await sleep(math.inf)
|
|
1297
|
+
except asyncio.CancelledError:
|
|
1298
|
+
workers = workers.copy()
|
|
1299
|
+
for process in workers:
|
|
1300
|
+
if process.returncode is None:
|
|
1301
|
+
process.kill()
|
|
1302
|
+
|
|
1303
|
+
for process in workers:
|
|
1304
|
+
await process.aclose()
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
#
|
|
1308
|
+
# Sockets and networking
|
|
1309
|
+
#
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
class StreamProtocol(asyncio.Protocol):
|
|
1313
|
+
read_queue: deque[bytes]
|
|
1314
|
+
read_event: asyncio.Event
|
|
1315
|
+
write_event: asyncio.Event
|
|
1316
|
+
exception: Exception | None = None
|
|
1317
|
+
is_at_eof: bool = False
|
|
1318
|
+
|
|
1319
|
+
def connection_made(self, transport: asyncio.BaseTransport) -> None:
|
|
1320
|
+
self.read_queue = deque()
|
|
1321
|
+
self.read_event = asyncio.Event()
|
|
1322
|
+
self.write_event = asyncio.Event()
|
|
1323
|
+
self.write_event.set()
|
|
1324
|
+
cast(asyncio.Transport, transport).set_write_buffer_limits(0)
|
|
1325
|
+
|
|
1326
|
+
def connection_lost(self, exc: Exception | None) -> None:
|
|
1327
|
+
if exc:
|
|
1328
|
+
self.exception = exc
|
|
1329
|
+
|
|
1330
|
+
self.read_event.set()
|
|
1331
|
+
self.write_event.set()
|
|
1332
|
+
|
|
1333
|
+
def data_received(self, data: bytes) -> None:
|
|
1334
|
+
# ProactorEventloop sometimes sends bytearray instead of bytes
|
|
1335
|
+
self.read_queue.append(bytes(data))
|
|
1336
|
+
self.read_event.set()
|
|
1337
|
+
|
|
1338
|
+
def eof_received(self) -> bool | None:
|
|
1339
|
+
self.is_at_eof = True
|
|
1340
|
+
self.read_event.set()
|
|
1341
|
+
return True
|
|
1342
|
+
|
|
1343
|
+
def pause_writing(self) -> None:
|
|
1344
|
+
self.write_event = asyncio.Event()
|
|
1345
|
+
|
|
1346
|
+
def resume_writing(self) -> None:
|
|
1347
|
+
self.write_event.set()
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
class DatagramProtocol(asyncio.DatagramProtocol):
|
|
1351
|
+
read_queue: deque[tuple[bytes, IPSockAddrType]]
|
|
1352
|
+
read_event: asyncio.Event
|
|
1353
|
+
write_event: asyncio.Event
|
|
1354
|
+
closed_event: asyncio.Event
|
|
1355
|
+
exception: Exception | None = None
|
|
1356
|
+
|
|
1357
|
+
def connection_made(self, transport: asyncio.BaseTransport) -> None:
|
|
1358
|
+
self.read_queue = deque(maxlen=100) # arbitrary value
|
|
1359
|
+
self.read_event = asyncio.Event()
|
|
1360
|
+
self.write_event = asyncio.Event()
|
|
1361
|
+
self.closed_event = asyncio.Event()
|
|
1362
|
+
self.write_event.set()
|
|
1363
|
+
|
|
1364
|
+
def connection_lost(self, exc: Exception | None) -> None:
|
|
1365
|
+
self.read_event.set()
|
|
1366
|
+
self.write_event.set()
|
|
1367
|
+
self.closed_event.set()
|
|
1368
|
+
|
|
1369
|
+
def datagram_received(self, data: bytes, addr: IPSockAddrType) -> None:
|
|
1370
|
+
addr = convert_ipv6_sockaddr(addr)
|
|
1371
|
+
self.read_queue.append((data, addr))
|
|
1372
|
+
self.read_event.set()
|
|
1373
|
+
|
|
1374
|
+
def error_received(self, exc: Exception) -> None:
|
|
1375
|
+
self.exception = exc
|
|
1376
|
+
|
|
1377
|
+
def pause_writing(self) -> None:
|
|
1378
|
+
self.write_event.clear()
|
|
1379
|
+
|
|
1380
|
+
def resume_writing(self) -> None:
|
|
1381
|
+
self.write_event.set()
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
class SocketStream(abc.SocketStream):
|
|
1385
|
+
def __init__(self, transport: asyncio.Transport, protocol: StreamProtocol):
|
|
1386
|
+
self._transport = transport
|
|
1387
|
+
self._protocol = protocol
|
|
1388
|
+
self._receive_guard = ResourceGuard("reading from")
|
|
1389
|
+
self._send_guard = ResourceGuard("writing to")
|
|
1390
|
+
self._closed = False
|
|
1391
|
+
|
|
1392
|
+
@property
|
|
1393
|
+
def _raw_socket(self) -> socket.socket:
|
|
1394
|
+
return self._transport.get_extra_info("socket")
|
|
1395
|
+
|
|
1396
|
+
async def receive(self, max_bytes: int = 65536) -> bytes:
|
|
1397
|
+
if max_bytes < 1:
|
|
1398
|
+
raise ValueError("max_bytes must be a positive integer")
|
|
1399
|
+
|
|
1400
|
+
with self._receive_guard:
|
|
1401
|
+
if (
|
|
1402
|
+
not self._protocol.read_event.is_set()
|
|
1403
|
+
and not self._transport.is_closing()
|
|
1404
|
+
and not self._protocol.is_at_eof
|
|
1405
|
+
):
|
|
1406
|
+
self._transport.resume_reading()
|
|
1407
|
+
await self._protocol.read_event.wait()
|
|
1408
|
+
self._transport.pause_reading()
|
|
1409
|
+
else:
|
|
1410
|
+
await AsyncIOBackend.checkpoint()
|
|
1411
|
+
|
|
1412
|
+
try:
|
|
1413
|
+
chunk = self._protocol.read_queue.popleft()
|
|
1414
|
+
except IndexError:
|
|
1415
|
+
if self._closed:
|
|
1416
|
+
raise ClosedResourceError from None
|
|
1417
|
+
elif self._protocol.exception:
|
|
1418
|
+
raise BrokenResourceError from self._protocol.exception
|
|
1419
|
+
else:
|
|
1420
|
+
raise EndOfStream from None
|
|
1421
|
+
|
|
1422
|
+
if len(chunk) > max_bytes:
|
|
1423
|
+
# Split the oversized chunk
|
|
1424
|
+
chunk, leftover = chunk[:max_bytes], chunk[max_bytes:]
|
|
1425
|
+
self._protocol.read_queue.appendleft(leftover)
|
|
1426
|
+
|
|
1427
|
+
# If the read queue is empty, clear the flag so that the next call will
|
|
1428
|
+
# block until data is available
|
|
1429
|
+
if not self._protocol.read_queue:
|
|
1430
|
+
self._protocol.read_event.clear()
|
|
1431
|
+
|
|
1432
|
+
return chunk
|
|
1433
|
+
|
|
1434
|
+
async def send(self, item: bytes) -> None:
|
|
1435
|
+
with self._send_guard:
|
|
1436
|
+
await AsyncIOBackend.checkpoint()
|
|
1437
|
+
|
|
1438
|
+
if self._closed:
|
|
1439
|
+
raise ClosedResourceError
|
|
1440
|
+
elif self._protocol.exception is not None:
|
|
1441
|
+
raise BrokenResourceError from self._protocol.exception
|
|
1442
|
+
|
|
1443
|
+
try:
|
|
1444
|
+
self._transport.write(item)
|
|
1445
|
+
except RuntimeError as exc:
|
|
1446
|
+
if self._transport.is_closing():
|
|
1447
|
+
raise BrokenResourceError from exc
|
|
1448
|
+
else:
|
|
1449
|
+
raise
|
|
1450
|
+
|
|
1451
|
+
await self._protocol.write_event.wait()
|
|
1452
|
+
|
|
1453
|
+
async def send_eof(self) -> None:
|
|
1454
|
+
try:
|
|
1455
|
+
self._transport.write_eof()
|
|
1456
|
+
except OSError:
|
|
1457
|
+
pass
|
|
1458
|
+
|
|
1459
|
+
async def aclose(self) -> None:
|
|
1460
|
+
self._closed = True
|
|
1461
|
+
if not self._transport.is_closing():
|
|
1462
|
+
try:
|
|
1463
|
+
self._transport.write_eof()
|
|
1464
|
+
except OSError:
|
|
1465
|
+
pass
|
|
1466
|
+
|
|
1467
|
+
self._transport.close()
|
|
1468
|
+
await sleep(0)
|
|
1469
|
+
self._transport.abort()
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
class _RawSocketMixin:
|
|
1473
|
+
_receive_future: asyncio.Future | None = None
|
|
1474
|
+
_send_future: asyncio.Future | None = None
|
|
1475
|
+
_closing = False
|
|
1476
|
+
|
|
1477
|
+
def __init__(self, raw_socket: socket.socket):
|
|
1478
|
+
self.__raw_socket = raw_socket
|
|
1479
|
+
self._receive_guard = ResourceGuard("reading from")
|
|
1480
|
+
self._send_guard = ResourceGuard("writing to")
|
|
1481
|
+
|
|
1482
|
+
@property
|
|
1483
|
+
def _raw_socket(self) -> socket.socket:
|
|
1484
|
+
return self.__raw_socket
|
|
1485
|
+
|
|
1486
|
+
def _wait_until_readable(self, loop: asyncio.AbstractEventLoop) -> asyncio.Future:
|
|
1487
|
+
def callback(f: object) -> None:
|
|
1488
|
+
del self._receive_future
|
|
1489
|
+
loop.remove_reader(self.__raw_socket)
|
|
1490
|
+
|
|
1491
|
+
f = self._receive_future = asyncio.Future()
|
|
1492
|
+
loop.add_reader(self.__raw_socket, f.set_result, None)
|
|
1493
|
+
f.add_done_callback(callback)
|
|
1494
|
+
return f
|
|
1495
|
+
|
|
1496
|
+
def _wait_until_writable(self, loop: asyncio.AbstractEventLoop) -> asyncio.Future:
|
|
1497
|
+
def callback(f: object) -> None:
|
|
1498
|
+
del self._send_future
|
|
1499
|
+
loop.remove_writer(self.__raw_socket)
|
|
1500
|
+
|
|
1501
|
+
f = self._send_future = asyncio.Future()
|
|
1502
|
+
loop.add_writer(self.__raw_socket, f.set_result, None)
|
|
1503
|
+
f.add_done_callback(callback)
|
|
1504
|
+
return f
|
|
1505
|
+
|
|
1506
|
+
async def aclose(self) -> None:
|
|
1507
|
+
if not self._closing:
|
|
1508
|
+
self._closing = True
|
|
1509
|
+
if self.__raw_socket.fileno() != -1:
|
|
1510
|
+
self.__raw_socket.close()
|
|
1511
|
+
|
|
1512
|
+
if self._receive_future and not self._receive_future.done():
|
|
1513
|
+
self._receive_future.set_result(None)
|
|
1514
|
+
if self._send_future and not self._send_future.done():
|
|
1515
|
+
self._send_future.set_result(None)
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
class UNIXSocketStream(_RawSocketMixin, abc.UNIXSocketStream):
|
|
1519
|
+
async def send_eof(self) -> None:
|
|
1520
|
+
with self._send_guard:
|
|
1521
|
+
self._raw_socket.shutdown(socket.SHUT_WR)
|
|
1522
|
+
|
|
1523
|
+
async def receive(self, max_bytes: int = 65536) -> bytes:
|
|
1524
|
+
if max_bytes < 1:
|
|
1525
|
+
raise ValueError("max_bytes must be a positive integer")
|
|
1526
|
+
|
|
1527
|
+
loop = get_running_loop()
|
|
1528
|
+
await AsyncIOBackend.checkpoint()
|
|
1529
|
+
with self._receive_guard:
|
|
1530
|
+
while True:
|
|
1531
|
+
try:
|
|
1532
|
+
data = self._raw_socket.recv(max_bytes)
|
|
1533
|
+
except BlockingIOError:
|
|
1534
|
+
await self._wait_until_readable(loop)
|
|
1535
|
+
except OSError as exc:
|
|
1536
|
+
if self._closing:
|
|
1537
|
+
raise ClosedResourceError from None
|
|
1538
|
+
else:
|
|
1539
|
+
raise BrokenResourceError from exc
|
|
1540
|
+
else:
|
|
1541
|
+
if not data:
|
|
1542
|
+
raise EndOfStream
|
|
1543
|
+
|
|
1544
|
+
return data
|
|
1545
|
+
|
|
1546
|
+
async def send(self, item: bytes) -> None:
|
|
1547
|
+
loop = get_running_loop()
|
|
1548
|
+
await AsyncIOBackend.checkpoint()
|
|
1549
|
+
with self._send_guard:
|
|
1550
|
+
view = memoryview(item)
|
|
1551
|
+
while view:
|
|
1552
|
+
try:
|
|
1553
|
+
bytes_sent = self._raw_socket.send(view)
|
|
1554
|
+
except BlockingIOError:
|
|
1555
|
+
await self._wait_until_writable(loop)
|
|
1556
|
+
except OSError as exc:
|
|
1557
|
+
if self._closing:
|
|
1558
|
+
raise ClosedResourceError from None
|
|
1559
|
+
else:
|
|
1560
|
+
raise BrokenResourceError from exc
|
|
1561
|
+
else:
|
|
1562
|
+
view = view[bytes_sent:]
|
|
1563
|
+
|
|
1564
|
+
async def receive_fds(self, msglen: int, maxfds: int) -> tuple[bytes, list[int]]:
|
|
1565
|
+
if not isinstance(msglen, int) or msglen < 0:
|
|
1566
|
+
raise ValueError("msglen must be a non-negative integer")
|
|
1567
|
+
if not isinstance(maxfds, int) or maxfds < 1:
|
|
1568
|
+
raise ValueError("maxfds must be a positive integer")
|
|
1569
|
+
|
|
1570
|
+
loop = get_running_loop()
|
|
1571
|
+
fds = array.array("i")
|
|
1572
|
+
await AsyncIOBackend.checkpoint()
|
|
1573
|
+
with self._receive_guard:
|
|
1574
|
+
while True:
|
|
1575
|
+
try:
|
|
1576
|
+
message, ancdata, _flags, _addr = self._raw_socket.recvmsg(
|
|
1577
|
+
msglen, socket.CMSG_LEN(maxfds * fds.itemsize)
|
|
1578
|
+
)
|
|
1579
|
+
except BlockingIOError:
|
|
1580
|
+
await self._wait_until_readable(loop)
|
|
1581
|
+
except OSError as exc:
|
|
1582
|
+
if self._closing:
|
|
1583
|
+
raise ClosedResourceError from None
|
|
1584
|
+
else:
|
|
1585
|
+
raise BrokenResourceError from exc
|
|
1586
|
+
else:
|
|
1587
|
+
if not message and not ancdata:
|
|
1588
|
+
raise EndOfStream
|
|
1589
|
+
|
|
1590
|
+
break
|
|
1591
|
+
|
|
1592
|
+
for cmsg_level, cmsg_type, cmsg_data in ancdata:
|
|
1593
|
+
if cmsg_level != socket.SOL_SOCKET or cmsg_type != socket.SCM_RIGHTS:
|
|
1594
|
+
raise RuntimeError(
|
|
1595
|
+
f"Received unexpected ancillary data; message = {message!r}, "
|
|
1596
|
+
f"cmsg_level = {cmsg_level}, cmsg_type = {cmsg_type}"
|
|
1597
|
+
)
|
|
1598
|
+
|
|
1599
|
+
fds.frombytes(cmsg_data[: len(cmsg_data) - (len(cmsg_data) % fds.itemsize)])
|
|
1600
|
+
|
|
1601
|
+
return message, list(fds)
|
|
1602
|
+
|
|
1603
|
+
async def send_fds(self, message: bytes, fds: Collection[int | IOBase]) -> None:
|
|
1604
|
+
if not message:
|
|
1605
|
+
raise ValueError("message must not be empty")
|
|
1606
|
+
if not fds:
|
|
1607
|
+
raise ValueError("fds must not be empty")
|
|
1608
|
+
|
|
1609
|
+
loop = get_running_loop()
|
|
1610
|
+
filenos: list[int] = []
|
|
1611
|
+
for fd in fds:
|
|
1612
|
+
if isinstance(fd, int):
|
|
1613
|
+
filenos.append(fd)
|
|
1614
|
+
elif isinstance(fd, IOBase):
|
|
1615
|
+
filenos.append(fd.fileno())
|
|
1616
|
+
|
|
1617
|
+
fdarray = array.array("i", filenos)
|
|
1618
|
+
await AsyncIOBackend.checkpoint()
|
|
1619
|
+
with self._send_guard:
|
|
1620
|
+
while True:
|
|
1621
|
+
try:
|
|
1622
|
+
# The ignore can be removed after mypy picks up
|
|
1623
|
+
# https://github.com/python/typeshed/pull/5545
|
|
1624
|
+
self._raw_socket.sendmsg(
|
|
1625
|
+
[message], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, fdarray)]
|
|
1626
|
+
)
|
|
1627
|
+
break
|
|
1628
|
+
except BlockingIOError:
|
|
1629
|
+
await self._wait_until_writable(loop)
|
|
1630
|
+
except OSError as exc:
|
|
1631
|
+
if self._closing:
|
|
1632
|
+
raise ClosedResourceError from None
|
|
1633
|
+
else:
|
|
1634
|
+
raise BrokenResourceError from exc
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
class TCPSocketListener(abc.SocketListener):
|
|
1638
|
+
_accept_scope: CancelScope | None = None
|
|
1639
|
+
_closed = False
|
|
1640
|
+
|
|
1641
|
+
def __init__(self, raw_socket: socket.socket):
|
|
1642
|
+
self.__raw_socket = raw_socket
|
|
1643
|
+
self._loop = cast(asyncio.BaseEventLoop, get_running_loop())
|
|
1644
|
+
self._accept_guard = ResourceGuard("accepting connections from")
|
|
1645
|
+
|
|
1646
|
+
@property
|
|
1647
|
+
def _raw_socket(self) -> socket.socket:
|
|
1648
|
+
return self.__raw_socket
|
|
1649
|
+
|
|
1650
|
+
async def accept(self) -> abc.SocketStream:
|
|
1651
|
+
if self._closed:
|
|
1652
|
+
raise ClosedResourceError
|
|
1653
|
+
|
|
1654
|
+
with self._accept_guard:
|
|
1655
|
+
await AsyncIOBackend.checkpoint()
|
|
1656
|
+
with CancelScope() as self._accept_scope:
|
|
1657
|
+
try:
|
|
1658
|
+
client_sock, _addr = await self._loop.sock_accept(self._raw_socket)
|
|
1659
|
+
except asyncio.CancelledError:
|
|
1660
|
+
# Workaround for https://bugs.python.org/issue41317
|
|
1661
|
+
try:
|
|
1662
|
+
self._loop.remove_reader(self._raw_socket)
|
|
1663
|
+
except (ValueError, NotImplementedError):
|
|
1664
|
+
pass
|
|
1665
|
+
|
|
1666
|
+
if self._closed:
|
|
1667
|
+
raise ClosedResourceError from None
|
|
1668
|
+
|
|
1669
|
+
raise
|
|
1670
|
+
finally:
|
|
1671
|
+
self._accept_scope = None
|
|
1672
|
+
|
|
1673
|
+
client_sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
|
1674
|
+
transport, protocol = await self._loop.connect_accepted_socket(
|
|
1675
|
+
StreamProtocol, client_sock
|
|
1676
|
+
)
|
|
1677
|
+
return SocketStream(transport, protocol)
|
|
1678
|
+
|
|
1679
|
+
async def aclose(self) -> None:
|
|
1680
|
+
if self._closed:
|
|
1681
|
+
return
|
|
1682
|
+
|
|
1683
|
+
self._closed = True
|
|
1684
|
+
if self._accept_scope:
|
|
1685
|
+
# Workaround for https://bugs.python.org/issue41317
|
|
1686
|
+
try:
|
|
1687
|
+
self._loop.remove_reader(self._raw_socket)
|
|
1688
|
+
except (ValueError, NotImplementedError):
|
|
1689
|
+
pass
|
|
1690
|
+
|
|
1691
|
+
self._accept_scope.cancel()
|
|
1692
|
+
await sleep(0)
|
|
1693
|
+
|
|
1694
|
+
self._raw_socket.close()
|
|
1695
|
+
|
|
1696
|
+
|
|
1697
|
+
class UNIXSocketListener(abc.SocketListener):
|
|
1698
|
+
def __init__(self, raw_socket: socket.socket):
|
|
1699
|
+
self.__raw_socket = raw_socket
|
|
1700
|
+
self._loop = get_running_loop()
|
|
1701
|
+
self._accept_guard = ResourceGuard("accepting connections from")
|
|
1702
|
+
self._closed = False
|
|
1703
|
+
|
|
1704
|
+
async def accept(self) -> abc.SocketStream:
|
|
1705
|
+
await AsyncIOBackend.checkpoint()
|
|
1706
|
+
with self._accept_guard:
|
|
1707
|
+
while True:
|
|
1708
|
+
try:
|
|
1709
|
+
client_sock, _ = self.__raw_socket.accept()
|
|
1710
|
+
client_sock.setblocking(False)
|
|
1711
|
+
return UNIXSocketStream(client_sock)
|
|
1712
|
+
except BlockingIOError:
|
|
1713
|
+
f: asyncio.Future = asyncio.Future()
|
|
1714
|
+
self._loop.add_reader(self.__raw_socket, f.set_result, None)
|
|
1715
|
+
f.add_done_callback(
|
|
1716
|
+
lambda _: self._loop.remove_reader(self.__raw_socket)
|
|
1717
|
+
)
|
|
1718
|
+
await f
|
|
1719
|
+
except OSError as exc:
|
|
1720
|
+
if self._closed:
|
|
1721
|
+
raise ClosedResourceError from None
|
|
1722
|
+
else:
|
|
1723
|
+
raise BrokenResourceError from exc
|
|
1724
|
+
|
|
1725
|
+
async def aclose(self) -> None:
|
|
1726
|
+
self._closed = True
|
|
1727
|
+
self.__raw_socket.close()
|
|
1728
|
+
|
|
1729
|
+
@property
|
|
1730
|
+
def _raw_socket(self) -> socket.socket:
|
|
1731
|
+
return self.__raw_socket
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
class UDPSocket(abc.UDPSocket):
|
|
1735
|
+
def __init__(
|
|
1736
|
+
self, transport: asyncio.DatagramTransport, protocol: DatagramProtocol
|
|
1737
|
+
):
|
|
1738
|
+
self._transport = transport
|
|
1739
|
+
self._protocol = protocol
|
|
1740
|
+
self._receive_guard = ResourceGuard("reading from")
|
|
1741
|
+
self._send_guard = ResourceGuard("writing to")
|
|
1742
|
+
self._closed = False
|
|
1743
|
+
|
|
1744
|
+
@property
|
|
1745
|
+
def _raw_socket(self) -> socket.socket:
|
|
1746
|
+
return self._transport.get_extra_info("socket")
|
|
1747
|
+
|
|
1748
|
+
async def aclose(self) -> None:
|
|
1749
|
+
self._closed = True
|
|
1750
|
+
if not self._transport.is_closing():
|
|
1751
|
+
self._transport.close()
|
|
1752
|
+
|
|
1753
|
+
await self._protocol.closed_event.wait()
|
|
1754
|
+
|
|
1755
|
+
async def receive(self) -> tuple[bytes, IPSockAddrType]:
|
|
1756
|
+
with self._receive_guard:
|
|
1757
|
+
await AsyncIOBackend.checkpoint()
|
|
1758
|
+
|
|
1759
|
+
# If the buffer is empty, ask for more data
|
|
1760
|
+
if not self._protocol.read_queue and not self._transport.is_closing():
|
|
1761
|
+
self._protocol.read_event.clear()
|
|
1762
|
+
await self._protocol.read_event.wait()
|
|
1763
|
+
|
|
1764
|
+
try:
|
|
1765
|
+
return self._protocol.read_queue.popleft()
|
|
1766
|
+
except IndexError:
|
|
1767
|
+
if self._closed:
|
|
1768
|
+
raise ClosedResourceError from None
|
|
1769
|
+
else:
|
|
1770
|
+
raise BrokenResourceError from None
|
|
1771
|
+
|
|
1772
|
+
async def send(self, item: UDPPacketType) -> None:
|
|
1773
|
+
with self._send_guard:
|
|
1774
|
+
await AsyncIOBackend.checkpoint()
|
|
1775
|
+
await self._protocol.write_event.wait()
|
|
1776
|
+
if self._closed:
|
|
1777
|
+
raise ClosedResourceError
|
|
1778
|
+
elif self._transport.is_closing():
|
|
1779
|
+
raise BrokenResourceError
|
|
1780
|
+
else:
|
|
1781
|
+
self._transport.sendto(*item)
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
class ConnectedUDPSocket(abc.ConnectedUDPSocket):
|
|
1785
|
+
def __init__(
|
|
1786
|
+
self, transport: asyncio.DatagramTransport, protocol: DatagramProtocol
|
|
1787
|
+
):
|
|
1788
|
+
self._transport = transport
|
|
1789
|
+
self._protocol = protocol
|
|
1790
|
+
self._receive_guard = ResourceGuard("reading from")
|
|
1791
|
+
self._send_guard = ResourceGuard("writing to")
|
|
1792
|
+
self._closed = False
|
|
1793
|
+
|
|
1794
|
+
@property
|
|
1795
|
+
def _raw_socket(self) -> socket.socket:
|
|
1796
|
+
return self._transport.get_extra_info("socket")
|
|
1797
|
+
|
|
1798
|
+
async def aclose(self) -> None:
|
|
1799
|
+
self._closed = True
|
|
1800
|
+
if not self._transport.is_closing():
|
|
1801
|
+
self._transport.close()
|
|
1802
|
+
|
|
1803
|
+
await self._protocol.closed_event.wait()
|
|
1804
|
+
|
|
1805
|
+
async def receive(self) -> bytes:
|
|
1806
|
+
with self._receive_guard:
|
|
1807
|
+
await AsyncIOBackend.checkpoint()
|
|
1808
|
+
|
|
1809
|
+
# If the buffer is empty, ask for more data
|
|
1810
|
+
if not self._protocol.read_queue and not self._transport.is_closing():
|
|
1811
|
+
self._protocol.read_event.clear()
|
|
1812
|
+
await self._protocol.read_event.wait()
|
|
1813
|
+
|
|
1814
|
+
try:
|
|
1815
|
+
packet = self._protocol.read_queue.popleft()
|
|
1816
|
+
except IndexError:
|
|
1817
|
+
if self._closed:
|
|
1818
|
+
raise ClosedResourceError from None
|
|
1819
|
+
else:
|
|
1820
|
+
raise BrokenResourceError from None
|
|
1821
|
+
|
|
1822
|
+
return packet[0]
|
|
1823
|
+
|
|
1824
|
+
async def send(self, item: bytes) -> None:
|
|
1825
|
+
with self._send_guard:
|
|
1826
|
+
await AsyncIOBackend.checkpoint()
|
|
1827
|
+
await self._protocol.write_event.wait()
|
|
1828
|
+
if self._closed:
|
|
1829
|
+
raise ClosedResourceError
|
|
1830
|
+
elif self._transport.is_closing():
|
|
1831
|
+
raise BrokenResourceError
|
|
1832
|
+
else:
|
|
1833
|
+
self._transport.sendto(item)
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
class UNIXDatagramSocket(_RawSocketMixin, abc.UNIXDatagramSocket):
|
|
1837
|
+
async def receive(self) -> UNIXDatagramPacketType:
|
|
1838
|
+
loop = get_running_loop()
|
|
1839
|
+
await AsyncIOBackend.checkpoint()
|
|
1840
|
+
with self._receive_guard:
|
|
1841
|
+
while True:
|
|
1842
|
+
try:
|
|
1843
|
+
data = self._raw_socket.recvfrom(65536)
|
|
1844
|
+
except BlockingIOError:
|
|
1845
|
+
await self._wait_until_readable(loop)
|
|
1846
|
+
except OSError as exc:
|
|
1847
|
+
if self._closing:
|
|
1848
|
+
raise ClosedResourceError from None
|
|
1849
|
+
else:
|
|
1850
|
+
raise BrokenResourceError from exc
|
|
1851
|
+
else:
|
|
1852
|
+
return data
|
|
1853
|
+
|
|
1854
|
+
async def send(self, item: UNIXDatagramPacketType) -> None:
|
|
1855
|
+
loop = get_running_loop()
|
|
1856
|
+
await AsyncIOBackend.checkpoint()
|
|
1857
|
+
with self._send_guard:
|
|
1858
|
+
while True:
|
|
1859
|
+
try:
|
|
1860
|
+
self._raw_socket.sendto(*item)
|
|
1861
|
+
except BlockingIOError:
|
|
1862
|
+
await self._wait_until_writable(loop)
|
|
1863
|
+
except OSError as exc:
|
|
1864
|
+
if self._closing:
|
|
1865
|
+
raise ClosedResourceError from None
|
|
1866
|
+
else:
|
|
1867
|
+
raise BrokenResourceError from exc
|
|
1868
|
+
else:
|
|
1869
|
+
return
|
|
1870
|
+
|
|
1871
|
+
|
|
1872
|
+
class ConnectedUNIXDatagramSocket(_RawSocketMixin, abc.ConnectedUNIXDatagramSocket):
|
|
1873
|
+
async def receive(self) -> bytes:
|
|
1874
|
+
loop = get_running_loop()
|
|
1875
|
+
await AsyncIOBackend.checkpoint()
|
|
1876
|
+
with self._receive_guard:
|
|
1877
|
+
while True:
|
|
1878
|
+
try:
|
|
1879
|
+
data = self._raw_socket.recv(65536)
|
|
1880
|
+
except BlockingIOError:
|
|
1881
|
+
await self._wait_until_readable(loop)
|
|
1882
|
+
except OSError as exc:
|
|
1883
|
+
if self._closing:
|
|
1884
|
+
raise ClosedResourceError from None
|
|
1885
|
+
else:
|
|
1886
|
+
raise BrokenResourceError from exc
|
|
1887
|
+
else:
|
|
1888
|
+
return data
|
|
1889
|
+
|
|
1890
|
+
async def send(self, item: bytes) -> None:
|
|
1891
|
+
loop = get_running_loop()
|
|
1892
|
+
await AsyncIOBackend.checkpoint()
|
|
1893
|
+
with self._send_guard:
|
|
1894
|
+
while True:
|
|
1895
|
+
try:
|
|
1896
|
+
self._raw_socket.send(item)
|
|
1897
|
+
except BlockingIOError:
|
|
1898
|
+
await self._wait_until_writable(loop)
|
|
1899
|
+
except OSError as exc:
|
|
1900
|
+
if self._closing:
|
|
1901
|
+
raise ClosedResourceError from None
|
|
1902
|
+
else:
|
|
1903
|
+
raise BrokenResourceError from exc
|
|
1904
|
+
else:
|
|
1905
|
+
return
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
_read_events: RunVar[dict[int, asyncio.Future[bool]]] = RunVar("read_events")
|
|
1909
|
+
_write_events: RunVar[dict[int, asyncio.Future[bool]]] = RunVar("write_events")
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
#
|
|
1913
|
+
# Synchronization
|
|
1914
|
+
#
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
class Event(BaseEvent):
|
|
1918
|
+
__slots__ = ("_event",)
|
|
1919
|
+
|
|
1920
|
+
def __new__(cls) -> Self:
|
|
1921
|
+
return object.__new__(cls)
|
|
1922
|
+
|
|
1923
|
+
def __init__(self) -> None:
|
|
1924
|
+
self._event = asyncio.Event()
|
|
1925
|
+
|
|
1926
|
+
def set(self) -> None:
|
|
1927
|
+
self._event.set()
|
|
1928
|
+
|
|
1929
|
+
def is_set(self) -> bool:
|
|
1930
|
+
return self._event.is_set()
|
|
1931
|
+
|
|
1932
|
+
async def wait(self) -> None:
|
|
1933
|
+
if self.is_set():
|
|
1934
|
+
await AsyncIOBackend.checkpoint()
|
|
1935
|
+
else:
|
|
1936
|
+
await self._event.wait()
|
|
1937
|
+
|
|
1938
|
+
def statistics(self) -> EventStatistics:
|
|
1939
|
+
return EventStatistics(len(self._event._waiters))
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
class Lock(BaseLock):
|
|
1943
|
+
__slots__ = "_fast_acquire", "_owner_task", "_waiters"
|
|
1944
|
+
|
|
1945
|
+
def __new__(cls, *, fast_acquire: bool = False) -> Self:
|
|
1946
|
+
return object.__new__(cls)
|
|
1947
|
+
|
|
1948
|
+
def __init__(self, *, fast_acquire: bool = False) -> None:
|
|
1949
|
+
self._fast_acquire = fast_acquire
|
|
1950
|
+
self._owner_task: asyncio.Task | None = None
|
|
1951
|
+
self._waiters: deque[tuple[asyncio.Task, asyncio.Future]] = deque()
|
|
1952
|
+
|
|
1953
|
+
async def acquire(self) -> None:
|
|
1954
|
+
task = cast(asyncio.Task, current_task())
|
|
1955
|
+
if self._owner_task is None and not self._waiters:
|
|
1956
|
+
await AsyncIOBackend.checkpoint_if_cancelled()
|
|
1957
|
+
self._owner_task = task
|
|
1958
|
+
|
|
1959
|
+
# Unless on the "fast path", yield control of the event loop so that other
|
|
1960
|
+
# tasks can run too
|
|
1961
|
+
if not self._fast_acquire:
|
|
1962
|
+
try:
|
|
1963
|
+
await AsyncIOBackend.cancel_shielded_checkpoint()
|
|
1964
|
+
except CancelledError:
|
|
1965
|
+
self.release()
|
|
1966
|
+
raise
|
|
1967
|
+
|
|
1968
|
+
return
|
|
1969
|
+
|
|
1970
|
+
if self._owner_task == task:
|
|
1971
|
+
raise RuntimeError("Attempted to acquire an already held Lock")
|
|
1972
|
+
|
|
1973
|
+
fut: asyncio.Future[None] = asyncio.Future()
|
|
1974
|
+
item = task, fut
|
|
1975
|
+
self._waiters.append(item)
|
|
1976
|
+
try:
|
|
1977
|
+
await fut
|
|
1978
|
+
except CancelledError:
|
|
1979
|
+
if fut.cancelled():
|
|
1980
|
+
try:
|
|
1981
|
+
self._waiters.remove(item)
|
|
1982
|
+
except ValueError:
|
|
1983
|
+
pass
|
|
1984
|
+
else:
|
|
1985
|
+
self.release()
|
|
1986
|
+
|
|
1987
|
+
raise
|
|
1988
|
+
|
|
1989
|
+
def acquire_nowait(self) -> None:
|
|
1990
|
+
task = cast(asyncio.Task, current_task())
|
|
1991
|
+
if self._owner_task is None and not self._waiters:
|
|
1992
|
+
self._owner_task = task
|
|
1993
|
+
return
|
|
1994
|
+
|
|
1995
|
+
if self._owner_task is task:
|
|
1996
|
+
raise RuntimeError("Attempted to acquire an already held Lock")
|
|
1997
|
+
|
|
1998
|
+
raise WouldBlock
|
|
1999
|
+
|
|
2000
|
+
def locked(self) -> bool:
|
|
2001
|
+
return self._owner_task is not None
|
|
2002
|
+
|
|
2003
|
+
def release(self) -> None:
|
|
2004
|
+
if self._owner_task != current_task():
|
|
2005
|
+
raise RuntimeError("The current task is not holding this lock")
|
|
2006
|
+
|
|
2007
|
+
# A cancelled waiter that already received ownership removes itself from
|
|
2008
|
+
# _waiters before calling release(); any cancelled waiter still queued here
|
|
2009
|
+
# was cancelled before being woken, so drop it.
|
|
2010
|
+
while self._waiters:
|
|
2011
|
+
task, fut = self._waiters.popleft()
|
|
2012
|
+
if fut.cancelled():
|
|
2013
|
+
continue
|
|
2014
|
+
|
|
2015
|
+
self._owner_task = task
|
|
2016
|
+
fut.set_result(None)
|
|
2017
|
+
return
|
|
2018
|
+
|
|
2019
|
+
self._owner_task = None
|
|
2020
|
+
|
|
2021
|
+
def statistics(self) -> LockStatistics:
|
|
2022
|
+
task_info = AsyncIOTaskInfo(self._owner_task) if self._owner_task else None
|
|
2023
|
+
return LockStatistics(self.locked(), task_info, len(self._waiters))
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
class Semaphore(BaseSemaphore):
|
|
2027
|
+
__slots__ = "_fast_acquire", "_max_value", "_value", "_waiters"
|
|
2028
|
+
|
|
2029
|
+
def __new__(
|
|
2030
|
+
cls,
|
|
2031
|
+
initial_value: int,
|
|
2032
|
+
*,
|
|
2033
|
+
max_value: int | None = None,
|
|
2034
|
+
fast_acquire: bool = False,
|
|
2035
|
+
) -> Self:
|
|
2036
|
+
return object.__new__(cls)
|
|
2037
|
+
|
|
2038
|
+
def __init__(
|
|
2039
|
+
self,
|
|
2040
|
+
initial_value: int,
|
|
2041
|
+
*,
|
|
2042
|
+
max_value: int | None = None,
|
|
2043
|
+
fast_acquire: bool = False,
|
|
2044
|
+
):
|
|
2045
|
+
super().__init__(initial_value, max_value=max_value)
|
|
2046
|
+
self._value = initial_value
|
|
2047
|
+
self._max_value = max_value
|
|
2048
|
+
self._fast_acquire = fast_acquire
|
|
2049
|
+
self._waiters: deque[asyncio.Future[None]] = deque()
|
|
2050
|
+
|
|
2051
|
+
async def acquire(self) -> None:
|
|
2052
|
+
if self._value > 0 and not self._waiters:
|
|
2053
|
+
await AsyncIOBackend.checkpoint_if_cancelled()
|
|
2054
|
+
self._value -= 1
|
|
2055
|
+
|
|
2056
|
+
# Unless on the "fast path", yield control of the event loop so that other
|
|
2057
|
+
# tasks can run too
|
|
2058
|
+
if not self._fast_acquire:
|
|
2059
|
+
try:
|
|
2060
|
+
await AsyncIOBackend.cancel_shielded_checkpoint()
|
|
2061
|
+
except CancelledError:
|
|
2062
|
+
self.release()
|
|
2063
|
+
raise
|
|
2064
|
+
|
|
2065
|
+
return
|
|
2066
|
+
|
|
2067
|
+
fut: asyncio.Future[None] = asyncio.Future()
|
|
2068
|
+
self._waiters.append(fut)
|
|
2069
|
+
try:
|
|
2070
|
+
await fut
|
|
2071
|
+
except CancelledError:
|
|
2072
|
+
if fut.cancelled():
|
|
2073
|
+
try:
|
|
2074
|
+
self._waiters.remove(fut)
|
|
2075
|
+
except ValueError:
|
|
2076
|
+
pass
|
|
2077
|
+
else:
|
|
2078
|
+
self.release()
|
|
2079
|
+
|
|
2080
|
+
raise
|
|
2081
|
+
|
|
2082
|
+
def acquire_nowait(self) -> None:
|
|
2083
|
+
if self._value == 0:
|
|
2084
|
+
raise WouldBlock
|
|
2085
|
+
|
|
2086
|
+
self._value -= 1
|
|
2087
|
+
|
|
2088
|
+
def release(self) -> None:
|
|
2089
|
+
if self._max_value is not None and self._value == self._max_value:
|
|
2090
|
+
raise ValueError("semaphore released too many times")
|
|
2091
|
+
|
|
2092
|
+
while self._waiters:
|
|
2093
|
+
fut = self._waiters.popleft()
|
|
2094
|
+
if fut.cancelled():
|
|
2095
|
+
continue
|
|
2096
|
+
|
|
2097
|
+
fut.set_result(None)
|
|
2098
|
+
return
|
|
2099
|
+
|
|
2100
|
+
self._value += 1
|
|
2101
|
+
|
|
2102
|
+
@property
|
|
2103
|
+
def value(self) -> int:
|
|
2104
|
+
return self._value
|
|
2105
|
+
|
|
2106
|
+
@property
|
|
2107
|
+
def max_value(self) -> int | None:
|
|
2108
|
+
return self._max_value
|
|
2109
|
+
|
|
2110
|
+
def statistics(self) -> SemaphoreStatistics:
|
|
2111
|
+
return SemaphoreStatistics(len(self._waiters))
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
class CapacityLimiter(BaseCapacityLimiter):
|
|
2115
|
+
__slots__ = "_borrowers", "_total_tokens", "_wait_queue"
|
|
2116
|
+
|
|
2117
|
+
def __new__(cls, total_tokens: float) -> Self:
|
|
2118
|
+
return object.__new__(cls)
|
|
2119
|
+
|
|
2120
|
+
def __init__(self, total_tokens: float):
|
|
2121
|
+
self._total_tokens: float = 0
|
|
2122
|
+
self._borrowers: set[Any] = set()
|
|
2123
|
+
self._wait_queue: OrderedDict[Any, asyncio.Event] = OrderedDict()
|
|
2124
|
+
self.total_tokens = total_tokens
|
|
2125
|
+
|
|
2126
|
+
async def __aenter__(self) -> None:
|
|
2127
|
+
await self.acquire()
|
|
2128
|
+
|
|
2129
|
+
async def __aexit__(
|
|
2130
|
+
self,
|
|
2131
|
+
exc_type: type[BaseException] | None,
|
|
2132
|
+
exc_val: BaseException | None,
|
|
2133
|
+
exc_tb: TracebackType | None,
|
|
2134
|
+
) -> None:
|
|
2135
|
+
self.release()
|
|
2136
|
+
|
|
2137
|
+
@property
|
|
2138
|
+
def total_tokens(self) -> float:
|
|
2139
|
+
return self._total_tokens
|
|
2140
|
+
|
|
2141
|
+
@total_tokens.setter
|
|
2142
|
+
def total_tokens(self, value: float) -> None:
|
|
2143
|
+
if not isinstance(value, int) and not math.isinf(value):
|
|
2144
|
+
raise TypeError("total_tokens must be an int or math.inf")
|
|
2145
|
+
|
|
2146
|
+
if value < 0:
|
|
2147
|
+
raise ValueError("total_tokens must be >= 0")
|
|
2148
|
+
|
|
2149
|
+
self._total_tokens = value
|
|
2150
|
+
|
|
2151
|
+
# Notify waiting tasks that they have acquired the limiter while
|
|
2152
|
+
# there is spare capacity.
|
|
2153
|
+
while self._wait_queue and len(self._borrowers) < self._total_tokens:
|
|
2154
|
+
borrower, event = self._wait_queue.popitem(last=False)
|
|
2155
|
+
self._borrowers.add(borrower)
|
|
2156
|
+
event.set()
|
|
2157
|
+
|
|
2158
|
+
@property
|
|
2159
|
+
def borrowed_tokens(self) -> int:
|
|
2160
|
+
return len(self._borrowers)
|
|
2161
|
+
|
|
2162
|
+
@property
|
|
2163
|
+
def available_tokens(self) -> float:
|
|
2164
|
+
return self._total_tokens - len(self._borrowers)
|
|
2165
|
+
|
|
2166
|
+
def _notify_next_waiter(self) -> None:
|
|
2167
|
+
"""Hand a free token to the next task in line, if any."""
|
|
2168
|
+
if self._wait_queue and len(self._borrowers) < self._total_tokens:
|
|
2169
|
+
borrower, event = self._wait_queue.popitem(last=False)
|
|
2170
|
+
self._borrowers.add(borrower)
|
|
2171
|
+
event.set()
|
|
2172
|
+
|
|
2173
|
+
def acquire_nowait(self) -> None:
|
|
2174
|
+
self.acquire_on_behalf_of_nowait(current_task())
|
|
2175
|
+
|
|
2176
|
+
def acquire_on_behalf_of_nowait(self, borrower: object) -> None:
|
|
2177
|
+
if borrower in self._borrowers:
|
|
2178
|
+
raise RuntimeError(
|
|
2179
|
+
"this borrower is already holding one of this CapacityLimiter's tokens"
|
|
2180
|
+
)
|
|
2181
|
+
|
|
2182
|
+
if self._wait_queue or len(self._borrowers) >= self._total_tokens:
|
|
2183
|
+
raise WouldBlock
|
|
2184
|
+
|
|
2185
|
+
self._borrowers.add(borrower)
|
|
2186
|
+
|
|
2187
|
+
async def acquire(self) -> None:
|
|
2188
|
+
return await self.acquire_on_behalf_of(current_task())
|
|
2189
|
+
|
|
2190
|
+
async def acquire_on_behalf_of(self, borrower: object) -> None:
|
|
2191
|
+
await AsyncIOBackend.checkpoint_if_cancelled()
|
|
2192
|
+
try:
|
|
2193
|
+
self.acquire_on_behalf_of_nowait(borrower)
|
|
2194
|
+
except WouldBlock:
|
|
2195
|
+
event = asyncio.Event()
|
|
2196
|
+
self._wait_queue[borrower] = event
|
|
2197
|
+
try:
|
|
2198
|
+
await event.wait()
|
|
2199
|
+
except BaseException:
|
|
2200
|
+
self._wait_queue.pop(borrower, None)
|
|
2201
|
+
if event.is_set():
|
|
2202
|
+
self._borrowers.discard(borrower)
|
|
2203
|
+
self._notify_next_waiter()
|
|
2204
|
+
|
|
2205
|
+
raise
|
|
2206
|
+
else:
|
|
2207
|
+
try:
|
|
2208
|
+
await AsyncIOBackend.cancel_shielded_checkpoint()
|
|
2209
|
+
except BaseException:
|
|
2210
|
+
self.release()
|
|
2211
|
+
raise
|
|
2212
|
+
|
|
2213
|
+
def release(self) -> None:
|
|
2214
|
+
self.release_on_behalf_of(current_task())
|
|
2215
|
+
|
|
2216
|
+
def release_on_behalf_of(self, borrower: object) -> None:
|
|
2217
|
+
try:
|
|
2218
|
+
self._borrowers.remove(borrower)
|
|
2219
|
+
except KeyError:
|
|
2220
|
+
raise RuntimeError(
|
|
2221
|
+
"this borrower isn't holding any of this CapacityLimiter's tokens"
|
|
2222
|
+
) from None
|
|
2223
|
+
|
|
2224
|
+
self._notify_next_waiter()
|
|
2225
|
+
|
|
2226
|
+
def statistics(self) -> CapacityLimiterStatistics:
|
|
2227
|
+
return CapacityLimiterStatistics(
|
|
2228
|
+
self.borrowed_tokens,
|
|
2229
|
+
self.total_tokens,
|
|
2230
|
+
tuple(self._borrowers),
|
|
2231
|
+
len(self._wait_queue),
|
|
2232
|
+
)
|
|
2233
|
+
|
|
2234
|
+
|
|
2235
|
+
_default_thread_limiter: RunVar[CapacityLimiter] = RunVar("_default_thread_limiter")
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
#
|
|
2239
|
+
# Operating system signals
|
|
2240
|
+
#
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
class _SignalReceiver:
|
|
2244
|
+
def __init__(self, signals: tuple[Signals, ...]):
|
|
2245
|
+
self._signals = signals
|
|
2246
|
+
self._loop = get_running_loop()
|
|
2247
|
+
self._signal_queue: deque[Signals] = deque()
|
|
2248
|
+
self._future: asyncio.Future = asyncio.Future()
|
|
2249
|
+
self._handled_signals: set[Signals] = set()
|
|
2250
|
+
|
|
2251
|
+
def _deliver(self, signum: Signals) -> None:
|
|
2252
|
+
self._signal_queue.append(signum)
|
|
2253
|
+
if not self._future.done():
|
|
2254
|
+
self._future.set_result(None)
|
|
2255
|
+
|
|
2256
|
+
def __enter__(self) -> Self:
|
|
2257
|
+
for sig in set(self._signals):
|
|
2258
|
+
self._loop.add_signal_handler(sig, self._deliver, sig)
|
|
2259
|
+
self._handled_signals.add(sig)
|
|
2260
|
+
|
|
2261
|
+
return self
|
|
2262
|
+
|
|
2263
|
+
def __exit__(
|
|
2264
|
+
self,
|
|
2265
|
+
exc_type: type[BaseException] | None,
|
|
2266
|
+
exc_val: BaseException | None,
|
|
2267
|
+
exc_tb: TracebackType | None,
|
|
2268
|
+
) -> None:
|
|
2269
|
+
for sig in self._handled_signals:
|
|
2270
|
+
self._loop.remove_signal_handler(sig)
|
|
2271
|
+
|
|
2272
|
+
def __aiter__(self) -> _SignalReceiver:
|
|
2273
|
+
return self
|
|
2274
|
+
|
|
2275
|
+
async def __anext__(self) -> Signals:
|
|
2276
|
+
await AsyncIOBackend.checkpoint()
|
|
2277
|
+
if not self._signal_queue:
|
|
2278
|
+
self._future = asyncio.Future()
|
|
2279
|
+
await self._future
|
|
2280
|
+
|
|
2281
|
+
return self._signal_queue.popleft()
|
|
2282
|
+
|
|
2283
|
+
|
|
2284
|
+
#
|
|
2285
|
+
# Testing and debugging
|
|
2286
|
+
#
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
class AsyncIOTaskInfo(TaskInfo):
|
|
2290
|
+
def __init__(self, task: asyncio.Task):
|
|
2291
|
+
task_state = _task_states.get(task)
|
|
2292
|
+
if task_state is None:
|
|
2293
|
+
parent_id = None
|
|
2294
|
+
else:
|
|
2295
|
+
parent_id = task_state.parent_id
|
|
2296
|
+
|
|
2297
|
+
coro = task.get_coro()
|
|
2298
|
+
assert coro is not None, "created TaskInfo from a completed Task"
|
|
2299
|
+
super().__init__(id(task), parent_id, task.get_name(), coro)
|
|
2300
|
+
self._task = weakref.ref(task)
|
|
2301
|
+
|
|
2302
|
+
def has_pending_cancellation(self) -> bool:
|
|
2303
|
+
if not (task := self._task()):
|
|
2304
|
+
# If the task isn't around anymore, it won't have a pending cancellation
|
|
2305
|
+
return False
|
|
2306
|
+
|
|
2307
|
+
if task._must_cancel or ( # type: ignore[attr-defined]
|
|
2308
|
+
isinstance(task._fut_waiter, asyncio.Future) # type: ignore[attr-defined]
|
|
2309
|
+
and task._fut_waiter.cancelled() # type: ignore[attr-defined]
|
|
2310
|
+
):
|
|
2311
|
+
return True
|
|
2312
|
+
|
|
2313
|
+
if task_state := _task_states.get(task):
|
|
2314
|
+
if cancel_scope := task_state.cancel_scope:
|
|
2315
|
+
return cancel_scope._effectively_cancelled
|
|
2316
|
+
|
|
2317
|
+
return False
|
|
2318
|
+
|
|
2319
|
+
|
|
2320
|
+
class TestRunner(abc.TestRunner):
|
|
2321
|
+
_send_stream: MemoryObjectSendStream[tuple[Awaitable[Any], asyncio.Future[Any]]]
|
|
2322
|
+
|
|
2323
|
+
def __init__(
|
|
2324
|
+
self,
|
|
2325
|
+
*,
|
|
2326
|
+
debug: bool | None = None,
|
|
2327
|
+
use_uvloop: bool = False,
|
|
2328
|
+
loop_factory: Callable[[], AbstractEventLoop] | None = None,
|
|
2329
|
+
) -> None:
|
|
2330
|
+
if use_uvloop and loop_factory is None:
|
|
2331
|
+
if sys.platform != "win32":
|
|
2332
|
+
import uvloop
|
|
2333
|
+
|
|
2334
|
+
loop_factory = uvloop.new_event_loop
|
|
2335
|
+
else:
|
|
2336
|
+
import winloop
|
|
2337
|
+
|
|
2338
|
+
loop_factory = winloop.new_event_loop
|
|
2339
|
+
|
|
2340
|
+
self._runner = Runner(debug=debug, loop_factory=loop_factory)
|
|
2341
|
+
self._exceptions: list[BaseException] = []
|
|
2342
|
+
self._runner_task: asyncio.Task | None = None
|
|
2343
|
+
|
|
2344
|
+
def __enter__(self) -> Self:
|
|
2345
|
+
self._runner.__enter__()
|
|
2346
|
+
self.get_loop().set_exception_handler(self._exception_handler)
|
|
2347
|
+
return self
|
|
2348
|
+
|
|
2349
|
+
def __exit__(
|
|
2350
|
+
self,
|
|
2351
|
+
exc_type: type[BaseException] | None,
|
|
2352
|
+
exc_val: BaseException | None,
|
|
2353
|
+
exc_tb: TracebackType | None,
|
|
2354
|
+
) -> None:
|
|
2355
|
+
self._runner.__exit__(exc_type, exc_val, exc_tb)
|
|
2356
|
+
|
|
2357
|
+
def get_loop(self) -> AbstractEventLoop:
|
|
2358
|
+
return self._runner.get_loop()
|
|
2359
|
+
|
|
2360
|
+
def is_running(self) -> bool:
|
|
2361
|
+
try:
|
|
2362
|
+
asyncio.get_running_loop()
|
|
2363
|
+
return True
|
|
2364
|
+
except RuntimeError:
|
|
2365
|
+
return False
|
|
2366
|
+
|
|
2367
|
+
def _exception_handler(
|
|
2368
|
+
self, loop: asyncio.AbstractEventLoop, context: dict[str, Any]
|
|
2369
|
+
) -> None:
|
|
2370
|
+
if isinstance(context.get("exception"), Exception):
|
|
2371
|
+
self._exceptions.append(context["exception"])
|
|
2372
|
+
else:
|
|
2373
|
+
loop.default_exception_handler(context)
|
|
2374
|
+
|
|
2375
|
+
def _raise_async_exceptions(self) -> None:
|
|
2376
|
+
# Re-raise any exceptions raised in asynchronous callbacks
|
|
2377
|
+
if self._exceptions:
|
|
2378
|
+
exceptions, self._exceptions = self._exceptions, []
|
|
2379
|
+
if len(exceptions) == 1:
|
|
2380
|
+
raise exceptions[0]
|
|
2381
|
+
elif exceptions:
|
|
2382
|
+
raise BaseExceptionGroup(
|
|
2383
|
+
"Multiple exceptions occurred in asynchronous callbacks", exceptions
|
|
2384
|
+
)
|
|
2385
|
+
|
|
2386
|
+
async def _run_tests_and_fixtures(
|
|
2387
|
+
self,
|
|
2388
|
+
receive_stream: MemoryObjectReceiveStream[
|
|
2389
|
+
tuple[Awaitable[T_Retval], asyncio.Future[T_Retval]]
|
|
2390
|
+
],
|
|
2391
|
+
) -> None:
|
|
2392
|
+
from _pytest.outcomes import OutcomeException
|
|
2393
|
+
|
|
2394
|
+
with receive_stream, self._send_stream:
|
|
2395
|
+
async for coro, future in receive_stream:
|
|
2396
|
+
try:
|
|
2397
|
+
retval = await coro
|
|
2398
|
+
except CancelledError as exc:
|
|
2399
|
+
if not future.cancelled():
|
|
2400
|
+
future.cancel(*exc.args)
|
|
2401
|
+
|
|
2402
|
+
raise
|
|
2403
|
+
except BaseException as exc:
|
|
2404
|
+
if not future.cancelled():
|
|
2405
|
+
future.set_exception(exc)
|
|
2406
|
+
|
|
2407
|
+
if not isinstance(exc, (Exception, OutcomeException)):
|
|
2408
|
+
raise
|
|
2409
|
+
else:
|
|
2410
|
+
if not future.cancelled():
|
|
2411
|
+
future.set_result(retval)
|
|
2412
|
+
|
|
2413
|
+
async def _call_in_runner_task(
|
|
2414
|
+
self,
|
|
2415
|
+
func: Callable[P, Awaitable[T_Retval]],
|
|
2416
|
+
/,
|
|
2417
|
+
*args: P.args,
|
|
2418
|
+
**kwargs: P.kwargs,
|
|
2419
|
+
) -> T_Retval:
|
|
2420
|
+
if not self._runner_task:
|
|
2421
|
+
self._send_stream, receive_stream = create_memory_object_stream[
|
|
2422
|
+
tuple[Awaitable[Any], asyncio.Future]
|
|
2423
|
+
](1)
|
|
2424
|
+
self._runner_task = self.get_loop().create_task(
|
|
2425
|
+
self._run_tests_and_fixtures(receive_stream)
|
|
2426
|
+
)
|
|
2427
|
+
|
|
2428
|
+
coro = func(*args, **kwargs)
|
|
2429
|
+
future: asyncio.Future[T_Retval] = self.get_loop().create_future()
|
|
2430
|
+
self._send_stream.send_nowait((coro, future))
|
|
2431
|
+
return await future
|
|
2432
|
+
|
|
2433
|
+
def run_asyncgen_fixture(
|
|
2434
|
+
self,
|
|
2435
|
+
fixture_func: Callable[..., AsyncGenerator[T_Retval, Any]],
|
|
2436
|
+
kwargs: dict[str, Any],
|
|
2437
|
+
) -> Iterable[T_Retval]:
|
|
2438
|
+
asyncgen = fixture_func(**kwargs)
|
|
2439
|
+
fixturevalue: T_Retval = self.get_loop().run_until_complete(
|
|
2440
|
+
self._call_in_runner_task(asyncgen.asend, None)
|
|
2441
|
+
)
|
|
2442
|
+
self._raise_async_exceptions()
|
|
2443
|
+
|
|
2444
|
+
yield fixturevalue
|
|
2445
|
+
|
|
2446
|
+
try:
|
|
2447
|
+
self.get_loop().run_until_complete(
|
|
2448
|
+
self._call_in_runner_task(asyncgen.asend, None)
|
|
2449
|
+
)
|
|
2450
|
+
except StopAsyncIteration:
|
|
2451
|
+
self._raise_async_exceptions()
|
|
2452
|
+
else:
|
|
2453
|
+
self.get_loop().run_until_complete(asyncgen.aclose())
|
|
2454
|
+
raise RuntimeError("Async generator fixture did not stop")
|
|
2455
|
+
|
|
2456
|
+
def run_fixture(
|
|
2457
|
+
self,
|
|
2458
|
+
fixture_func: Callable[..., Coroutine[Any, Any, T_Retval]],
|
|
2459
|
+
kwargs: dict[str, Any],
|
|
2460
|
+
) -> T_Retval:
|
|
2461
|
+
retval = self.get_loop().run_until_complete(
|
|
2462
|
+
self._call_in_runner_task(fixture_func, **kwargs)
|
|
2463
|
+
)
|
|
2464
|
+
self._raise_async_exceptions()
|
|
2465
|
+
return retval
|
|
2466
|
+
|
|
2467
|
+
def run_test(
|
|
2468
|
+
self, test_func: Callable[..., Coroutine[Any, Any, Any]], kwargs: dict[str, Any]
|
|
2469
|
+
) -> None:
|
|
2470
|
+
from _pytest.outcomes import OutcomeException
|
|
2471
|
+
|
|
2472
|
+
try:
|
|
2473
|
+
self.get_loop().run_until_complete(
|
|
2474
|
+
self._call_in_runner_task(test_func, **kwargs)
|
|
2475
|
+
)
|
|
2476
|
+
except Exception as exc:
|
|
2477
|
+
self._exceptions.append(exc)
|
|
2478
|
+
except OutcomeException:
|
|
2479
|
+
raise
|
|
2480
|
+
except BaseException:
|
|
2481
|
+
# A BaseException (e.g. KeyboardInterrupt, SystemExit) interrupted the event loop before
|
|
2482
|
+
# the test completed. Cancel _runner_task so it does not resume when the event
|
|
2483
|
+
# loop is re-entered during async generator fixture teardown.
|
|
2484
|
+
if self._runner_task is not None and not self._runner_task.done():
|
|
2485
|
+
self._runner_task.cancel()
|
|
2486
|
+
self._send_stream.close()
|
|
2487
|
+
try:
|
|
2488
|
+
self.get_loop().run_until_complete(self._runner_task)
|
|
2489
|
+
except CancelledError:
|
|
2490
|
+
pass
|
|
2491
|
+
finally:
|
|
2492
|
+
self._runner_task = None
|
|
2493
|
+
raise
|
|
2494
|
+
self._raise_async_exceptions()
|
|
2495
|
+
|
|
2496
|
+
|
|
2497
|
+
class _ProcessStreamProtocol(asyncio.subprocess.SubprocessStreamProtocol):
|
|
2498
|
+
"""
|
|
2499
|
+
A subprocess protocol that allows us to be notified of ``process_exited``
|
|
2500
|
+
|
|
2501
|
+
asyncio's own ``Process.wait()`` only resolves once every pipe transport has
|
|
2502
|
+
disconnected so to get same semantics as on trio and uvloop we need this.
|
|
2503
|
+
"""
|
|
2504
|
+
|
|
2505
|
+
def __init__(self) -> None:
|
|
2506
|
+
# Match the standard factory for asyncio.create_process
|
|
2507
|
+
super().__init__(limit=2**16, loop=asyncio.get_running_loop())
|
|
2508
|
+
self.exited = asyncio.Event()
|
|
2509
|
+
|
|
2510
|
+
def process_exited(self) -> None:
|
|
2511
|
+
super().process_exited()
|
|
2512
|
+
self.exited.set()
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
class AsyncIOBackend(AsyncBackend):
|
|
2516
|
+
@classmethod
|
|
2517
|
+
def run(
|
|
2518
|
+
cls,
|
|
2519
|
+
func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval]],
|
|
2520
|
+
args: tuple[Unpack[PosArgsT]],
|
|
2521
|
+
kwargs: dict[str, Any],
|
|
2522
|
+
options: dict[str, Any],
|
|
2523
|
+
) -> T_Retval:
|
|
2524
|
+
@wraps(func)
|
|
2525
|
+
async def wrapper() -> T_Retval:
|
|
2526
|
+
task = cast(asyncio.Task, current_task())
|
|
2527
|
+
task.set_name(get_callable_name(func))
|
|
2528
|
+
_task_states[task] = TaskState(None, None)
|
|
2529
|
+
|
|
2530
|
+
try:
|
|
2531
|
+
return await func(*args)
|
|
2532
|
+
finally:
|
|
2533
|
+
del _task_states[task]
|
|
2534
|
+
|
|
2535
|
+
debug = options.get("debug", None)
|
|
2536
|
+
loop_factory = options.get("loop_factory", None)
|
|
2537
|
+
if loop_factory is None and options.get("use_uvloop", False):
|
|
2538
|
+
if sys.platform != "win32":
|
|
2539
|
+
import uvloop
|
|
2540
|
+
|
|
2541
|
+
loop_factory = uvloop.new_event_loop
|
|
2542
|
+
else:
|
|
2543
|
+
import winloop
|
|
2544
|
+
|
|
2545
|
+
loop_factory = winloop.new_event_loop
|
|
2546
|
+
|
|
2547
|
+
with Runner(debug=debug, loop_factory=loop_factory) as runner:
|
|
2548
|
+
return runner.run(wrapper())
|
|
2549
|
+
|
|
2550
|
+
@classmethod
|
|
2551
|
+
def current_token(cls) -> object:
|
|
2552
|
+
return get_running_loop()
|
|
2553
|
+
|
|
2554
|
+
@classmethod
|
|
2555
|
+
def current_time(cls) -> float:
|
|
2556
|
+
return get_running_loop().time()
|
|
2557
|
+
|
|
2558
|
+
@classmethod
|
|
2559
|
+
def cancelled_exception_class(cls) -> type[BaseException]:
|
|
2560
|
+
return CancelledError
|
|
2561
|
+
|
|
2562
|
+
@classmethod
|
|
2563
|
+
async def checkpoint(cls) -> None:
|
|
2564
|
+
await sleep(0)
|
|
2565
|
+
|
|
2566
|
+
@classmethod
|
|
2567
|
+
async def checkpoint_if_cancelled(cls) -> None:
|
|
2568
|
+
task = current_task()
|
|
2569
|
+
if task is None:
|
|
2570
|
+
return
|
|
2571
|
+
|
|
2572
|
+
try:
|
|
2573
|
+
cancel_scope = _task_states[task].cancel_scope
|
|
2574
|
+
except KeyError:
|
|
2575
|
+
return
|
|
2576
|
+
|
|
2577
|
+
while cancel_scope:
|
|
2578
|
+
if cancel_scope.cancel_called:
|
|
2579
|
+
await sleep(0)
|
|
2580
|
+
elif cancel_scope.shield:
|
|
2581
|
+
break
|
|
2582
|
+
else:
|
|
2583
|
+
cancel_scope = cancel_scope._parent_scope
|
|
2584
|
+
|
|
2585
|
+
@classmethod
|
|
2586
|
+
async def cancel_shielded_checkpoint(cls) -> None:
|
|
2587
|
+
with CancelScope(shield=True):
|
|
2588
|
+
await sleep(0)
|
|
2589
|
+
|
|
2590
|
+
@classmethod
|
|
2591
|
+
async def sleep(cls, delay: float) -> None:
|
|
2592
|
+
await sleep(delay)
|
|
2593
|
+
|
|
2594
|
+
@classmethod
|
|
2595
|
+
def create_cancel_scope(
|
|
2596
|
+
cls, *, deadline: float = math.inf, shield: bool = False
|
|
2597
|
+
) -> CancelScope:
|
|
2598
|
+
return CancelScope(deadline=deadline, shield=shield)
|
|
2599
|
+
|
|
2600
|
+
@classmethod
|
|
2601
|
+
def current_effective_deadline(cls) -> float:
|
|
2602
|
+
if (task := current_task()) is None:
|
|
2603
|
+
return math.inf
|
|
2604
|
+
|
|
2605
|
+
try:
|
|
2606
|
+
cancel_scope = _task_states[task].cancel_scope
|
|
2607
|
+
except KeyError:
|
|
2608
|
+
return math.inf
|
|
2609
|
+
|
|
2610
|
+
deadline = math.inf
|
|
2611
|
+
while cancel_scope:
|
|
2612
|
+
deadline = min(deadline, cancel_scope.deadline)
|
|
2613
|
+
if cancel_scope._cancel_called:
|
|
2614
|
+
deadline = -math.inf
|
|
2615
|
+
break
|
|
2616
|
+
elif cancel_scope.shield:
|
|
2617
|
+
break
|
|
2618
|
+
else:
|
|
2619
|
+
cancel_scope = cancel_scope._parent_scope
|
|
2620
|
+
|
|
2621
|
+
return deadline
|
|
2622
|
+
|
|
2623
|
+
@classmethod
|
|
2624
|
+
def create_task_group(cls) -> abc.TaskGroup:
|
|
2625
|
+
return TaskGroup()
|
|
2626
|
+
|
|
2627
|
+
@classmethod
|
|
2628
|
+
def create_event(cls) -> BaseEvent:
|
|
2629
|
+
return Event()
|
|
2630
|
+
|
|
2631
|
+
@classmethod
|
|
2632
|
+
def create_lock(cls, *, fast_acquire: bool) -> BaseLock:
|
|
2633
|
+
return Lock(fast_acquire=fast_acquire)
|
|
2634
|
+
|
|
2635
|
+
@classmethod
|
|
2636
|
+
def create_semaphore(
|
|
2637
|
+
cls,
|
|
2638
|
+
initial_value: int,
|
|
2639
|
+
*,
|
|
2640
|
+
max_value: int | None = None,
|
|
2641
|
+
fast_acquire: bool = False,
|
|
2642
|
+
) -> BaseSemaphore:
|
|
2643
|
+
return Semaphore(initial_value, max_value=max_value, fast_acquire=fast_acquire)
|
|
2644
|
+
|
|
2645
|
+
@classmethod
|
|
2646
|
+
def create_capacity_limiter(cls, total_tokens: float) -> BaseCapacityLimiter:
|
|
2647
|
+
return CapacityLimiter(total_tokens)
|
|
2648
|
+
|
|
2649
|
+
@classmethod
|
|
2650
|
+
async def run_sync_in_worker_thread( # type: ignore[return]
|
|
2651
|
+
cls,
|
|
2652
|
+
func: Callable[[Unpack[PosArgsT]], T_Retval],
|
|
2653
|
+
args: tuple[Unpack[PosArgsT]],
|
|
2654
|
+
abandon_on_cancel: bool = False,
|
|
2655
|
+
limiter: BaseCapacityLimiter | None = None,
|
|
2656
|
+
) -> T_Retval:
|
|
2657
|
+
await cls.checkpoint()
|
|
2658
|
+
|
|
2659
|
+
# If this is the first run in this event loop thread, set up the necessary
|
|
2660
|
+
# variables
|
|
2661
|
+
try:
|
|
2662
|
+
idle_workers = _threadpool_idle_workers.get()
|
|
2663
|
+
workers = _threadpool_workers.get()
|
|
2664
|
+
except LookupError:
|
|
2665
|
+
idle_workers = deque()
|
|
2666
|
+
workers = set()
|
|
2667
|
+
_threadpool_idle_workers.set(idle_workers)
|
|
2668
|
+
_threadpool_workers.set(workers)
|
|
2669
|
+
|
|
2670
|
+
async with limiter or cls.current_default_thread_limiter():
|
|
2671
|
+
with CancelScope(shield=not abandon_on_cancel) as scope:
|
|
2672
|
+
future = asyncio.Future[T_Retval]()
|
|
2673
|
+
root_task = find_root_task()
|
|
2674
|
+
if not idle_workers:
|
|
2675
|
+
worker = WorkerThread(root_task, workers, idle_workers)
|
|
2676
|
+
worker.start()
|
|
2677
|
+
workers.add(worker)
|
|
2678
|
+
root_task.add_done_callback(worker.stop, context=Context())
|
|
2679
|
+
else:
|
|
2680
|
+
worker = idle_workers.pop()
|
|
2681
|
+
|
|
2682
|
+
# Prune any other workers that have been idle for MAX_IDLE_TIME
|
|
2683
|
+
# seconds or longer
|
|
2684
|
+
now = cls.current_time()
|
|
2685
|
+
while idle_workers:
|
|
2686
|
+
if (
|
|
2687
|
+
now - idle_workers[0].idle_since
|
|
2688
|
+
< WorkerThread.MAX_IDLE_TIME
|
|
2689
|
+
):
|
|
2690
|
+
break
|
|
2691
|
+
|
|
2692
|
+
expired_worker = idle_workers.popleft()
|
|
2693
|
+
expired_worker.root_task.remove_done_callback(
|
|
2694
|
+
expired_worker.stop
|
|
2695
|
+
)
|
|
2696
|
+
expired_worker.stop()
|
|
2697
|
+
|
|
2698
|
+
context = copy_context()
|
|
2699
|
+
context.run(set_current_async_library, None)
|
|
2700
|
+
if abandon_on_cancel or scope._parent_scope is None:
|
|
2701
|
+
worker_scope = scope
|
|
2702
|
+
else:
|
|
2703
|
+
worker_scope = scope._parent_scope
|
|
2704
|
+
|
|
2705
|
+
worker.queue.put_nowait((context, func, args, future, worker_scope))
|
|
2706
|
+
return await future
|
|
2707
|
+
|
|
2708
|
+
@classmethod
|
|
2709
|
+
def check_cancelled(cls) -> None:
|
|
2710
|
+
scope: CancelScope | None = threadlocals.current_cancel_scope
|
|
2711
|
+
while scope is not None:
|
|
2712
|
+
if scope.cancel_called:
|
|
2713
|
+
raise CancelledError(f"Cancelled via cancel scope {id(scope):x}")
|
|
2714
|
+
|
|
2715
|
+
if scope.shield:
|
|
2716
|
+
return
|
|
2717
|
+
|
|
2718
|
+
scope = scope._parent_scope
|
|
2719
|
+
|
|
2720
|
+
@classmethod
|
|
2721
|
+
def run_async_from_thread(
|
|
2722
|
+
cls,
|
|
2723
|
+
func: Callable[[Unpack[PosArgsT]], Coroutine[Any, Any, T_co]],
|
|
2724
|
+
args: tuple[Unpack[PosArgsT]],
|
|
2725
|
+
token: object,
|
|
2726
|
+
) -> T_co:
|
|
2727
|
+
async def task_wrapper() -> T_co:
|
|
2728
|
+
__tracebackhide__ = True
|
|
2729
|
+
if scope is not None:
|
|
2730
|
+
task = cast(asyncio.Task, current_task())
|
|
2731
|
+
_task_states[task] = TaskState(None, scope)
|
|
2732
|
+
scope._tasks.add(task)
|
|
2733
|
+
try:
|
|
2734
|
+
return await func(*args)
|
|
2735
|
+
except CancelledError as exc:
|
|
2736
|
+
raise concurrent.futures.CancelledError(str(exc)) from None
|
|
2737
|
+
finally:
|
|
2738
|
+
if scope is not None:
|
|
2739
|
+
scope._tasks.discard(task)
|
|
2740
|
+
|
|
2741
|
+
loop = cast(
|
|
2742
|
+
"AbstractEventLoop", token or threadlocals.current_token.native_token
|
|
2743
|
+
)
|
|
2744
|
+
if loop.is_closed():
|
|
2745
|
+
raise RunFinishedError
|
|
2746
|
+
|
|
2747
|
+
context = copy_context()
|
|
2748
|
+
context.run(set_current_async_library, "asyncio")
|
|
2749
|
+
scope = getattr(threadlocals, "current_cancel_scope", None)
|
|
2750
|
+
f: concurrent.futures.Future[T_co] = context.run(
|
|
2751
|
+
asyncio.run_coroutine_threadsafe, task_wrapper(), loop=loop
|
|
2752
|
+
)
|
|
2753
|
+
return f.result()
|
|
2754
|
+
|
|
2755
|
+
@classmethod
|
|
2756
|
+
def run_sync_from_thread(
|
|
2757
|
+
cls,
|
|
2758
|
+
func: Callable[[Unpack[PosArgsT]], T_Retval],
|
|
2759
|
+
args: tuple[Unpack[PosArgsT]],
|
|
2760
|
+
token: object,
|
|
2761
|
+
) -> T_Retval:
|
|
2762
|
+
@wraps(func)
|
|
2763
|
+
def wrapper() -> None:
|
|
2764
|
+
try:
|
|
2765
|
+
set_current_async_library("asyncio")
|
|
2766
|
+
f.set_result(func(*args))
|
|
2767
|
+
except BaseException as exc:
|
|
2768
|
+
f.set_exception(exc)
|
|
2769
|
+
if not isinstance(exc, Exception):
|
|
2770
|
+
raise
|
|
2771
|
+
|
|
2772
|
+
loop = cast(
|
|
2773
|
+
"AbstractEventLoop", token or threadlocals.current_token.native_token
|
|
2774
|
+
)
|
|
2775
|
+
if loop.is_closed():
|
|
2776
|
+
raise RunFinishedError
|
|
2777
|
+
|
|
2778
|
+
f: concurrent.futures.Future[T_Retval] = Future()
|
|
2779
|
+
loop.call_soon_threadsafe(wrapper)
|
|
2780
|
+
return f.result()
|
|
2781
|
+
|
|
2782
|
+
@classmethod
|
|
2783
|
+
async def open_process(
|
|
2784
|
+
cls,
|
|
2785
|
+
command: StrOrBytesPath | Sequence[StrOrBytesPath],
|
|
2786
|
+
*,
|
|
2787
|
+
stdin: int | IO[Any] | None,
|
|
2788
|
+
stdout: int | IO[Any] | None,
|
|
2789
|
+
stderr: int | IO[Any] | None,
|
|
2790
|
+
**kwargs: Any,
|
|
2791
|
+
) -> Process:
|
|
2792
|
+
await cls.checkpoint()
|
|
2793
|
+
if isinstance(command, PathLike):
|
|
2794
|
+
command = os.fspath(command)
|
|
2795
|
+
|
|
2796
|
+
# Use loop.subprocess_shell()/subprocess_exec() rather than their
|
|
2797
|
+
# asyncio.create_subprocess_*() counterparts to get access to
|
|
2798
|
+
# transport/protocol.
|
|
2799
|
+
loop = asyncio.get_running_loop()
|
|
2800
|
+
if isinstance(command, (str, bytes)):
|
|
2801
|
+
transport, protocol = await loop.subprocess_shell(
|
|
2802
|
+
_ProcessStreamProtocol,
|
|
2803
|
+
command,
|
|
2804
|
+
stdin=stdin,
|
|
2805
|
+
stdout=stdout,
|
|
2806
|
+
stderr=stderr,
|
|
2807
|
+
**kwargs,
|
|
2808
|
+
)
|
|
2809
|
+
else:
|
|
2810
|
+
transport, protocol = await loop.subprocess_exec(
|
|
2811
|
+
_ProcessStreamProtocol,
|
|
2812
|
+
*command,
|
|
2813
|
+
stdin=stdin,
|
|
2814
|
+
stdout=stdout,
|
|
2815
|
+
stderr=stderr,
|
|
2816
|
+
**kwargs,
|
|
2817
|
+
)
|
|
2818
|
+
|
|
2819
|
+
process = asyncio.subprocess.Process(transport, protocol, loop)
|
|
2820
|
+
stdin_stream = StreamWriterWrapper(process.stdin) if process.stdin else None
|
|
2821
|
+
stdout_stream = StreamReaderWrapper(process.stdout) if process.stdout else None
|
|
2822
|
+
stderr_stream = StreamReaderWrapper(process.stderr) if process.stderr else None
|
|
2823
|
+
return Process(
|
|
2824
|
+
process,
|
|
2825
|
+
stdin_stream,
|
|
2826
|
+
stdout_stream,
|
|
2827
|
+
stderr_stream,
|
|
2828
|
+
protocol.exited,
|
|
2829
|
+
transport,
|
|
2830
|
+
)
|
|
2831
|
+
|
|
2832
|
+
@classmethod
|
|
2833
|
+
def setup_process_pool_exit_at_shutdown(cls, workers: set[abc.Process]) -> None:
|
|
2834
|
+
create_task(
|
|
2835
|
+
_shutdown_process_pool_on_exit(workers),
|
|
2836
|
+
name="AnyIO process pool shutdown task",
|
|
2837
|
+
)
|
|
2838
|
+
find_root_task().add_done_callback(
|
|
2839
|
+
partial(_forcibly_shutdown_process_pool_on_exit, workers) # type:ignore[arg-type]
|
|
2840
|
+
)
|
|
2841
|
+
|
|
2842
|
+
@classmethod
|
|
2843
|
+
async def connect_tcp(
|
|
2844
|
+
cls, host: str, port: int, local_address: IPSockAddrType | None = None
|
|
2845
|
+
) -> abc.SocketStream:
|
|
2846
|
+
transport, protocol = cast(
|
|
2847
|
+
tuple[asyncio.Transport, StreamProtocol],
|
|
2848
|
+
await get_running_loop().create_connection(
|
|
2849
|
+
StreamProtocol, host, port, local_addr=local_address
|
|
2850
|
+
),
|
|
2851
|
+
)
|
|
2852
|
+
transport.pause_reading()
|
|
2853
|
+
return SocketStream(transport, protocol)
|
|
2854
|
+
|
|
2855
|
+
@classmethod
|
|
2856
|
+
async def connect_unix(cls, path: str | bytes) -> abc.UNIXSocketStream:
|
|
2857
|
+
await cls.checkpoint()
|
|
2858
|
+
loop = get_running_loop()
|
|
2859
|
+
raw_socket = socket.socket(socket.AF_UNIX)
|
|
2860
|
+
raw_socket.setblocking(False)
|
|
2861
|
+
while True:
|
|
2862
|
+
try:
|
|
2863
|
+
raw_socket.connect(path)
|
|
2864
|
+
except BlockingIOError:
|
|
2865
|
+
f: asyncio.Future = asyncio.Future()
|
|
2866
|
+
loop.add_writer(raw_socket, f.set_result, None)
|
|
2867
|
+
f.add_done_callback(lambda _: loop.remove_writer(raw_socket))
|
|
2868
|
+
await f
|
|
2869
|
+
except BaseException:
|
|
2870
|
+
raw_socket.close()
|
|
2871
|
+
raise
|
|
2872
|
+
else:
|
|
2873
|
+
return UNIXSocketStream(raw_socket)
|
|
2874
|
+
|
|
2875
|
+
@classmethod
|
|
2876
|
+
def create_tcp_listener(cls, sock: socket.socket) -> SocketListener:
|
|
2877
|
+
return TCPSocketListener(sock)
|
|
2878
|
+
|
|
2879
|
+
@classmethod
|
|
2880
|
+
def create_unix_listener(cls, sock: socket.socket) -> SocketListener:
|
|
2881
|
+
return UNIXSocketListener(sock)
|
|
2882
|
+
|
|
2883
|
+
@classmethod
|
|
2884
|
+
async def create_udp_socket(
|
|
2885
|
+
cls,
|
|
2886
|
+
family: AddressFamily,
|
|
2887
|
+
local_address: IPSockAddrType | None,
|
|
2888
|
+
remote_address: IPSockAddrType | None,
|
|
2889
|
+
reuse_port: bool,
|
|
2890
|
+
) -> UDPSocket | ConnectedUDPSocket:
|
|
2891
|
+
transport, protocol = await get_running_loop().create_datagram_endpoint(
|
|
2892
|
+
DatagramProtocol,
|
|
2893
|
+
local_addr=local_address,
|
|
2894
|
+
remote_addr=remote_address,
|
|
2895
|
+
family=family,
|
|
2896
|
+
reuse_port=reuse_port,
|
|
2897
|
+
)
|
|
2898
|
+
if protocol.exception:
|
|
2899
|
+
transport.close()
|
|
2900
|
+
raise protocol.exception
|
|
2901
|
+
|
|
2902
|
+
if not remote_address:
|
|
2903
|
+
return UDPSocket(transport, protocol)
|
|
2904
|
+
else:
|
|
2905
|
+
return ConnectedUDPSocket(transport, protocol)
|
|
2906
|
+
|
|
2907
|
+
@classmethod
|
|
2908
|
+
async def create_unix_datagram_socket( # type: ignore[override]
|
|
2909
|
+
cls, raw_socket: socket.socket, remote_path: str | bytes | None
|
|
2910
|
+
) -> abc.UNIXDatagramSocket | abc.ConnectedUNIXDatagramSocket:
|
|
2911
|
+
await cls.checkpoint()
|
|
2912
|
+
loop = get_running_loop()
|
|
2913
|
+
|
|
2914
|
+
if remote_path:
|
|
2915
|
+
while True:
|
|
2916
|
+
try:
|
|
2917
|
+
raw_socket.connect(remote_path)
|
|
2918
|
+
except BlockingIOError:
|
|
2919
|
+
f: asyncio.Future = asyncio.Future()
|
|
2920
|
+
loop.add_writer(raw_socket, f.set_result, None)
|
|
2921
|
+
f.add_done_callback(lambda _: loop.remove_writer(raw_socket))
|
|
2922
|
+
await f
|
|
2923
|
+
except BaseException:
|
|
2924
|
+
raw_socket.close()
|
|
2925
|
+
raise
|
|
2926
|
+
else:
|
|
2927
|
+
return ConnectedUNIXDatagramSocket(raw_socket)
|
|
2928
|
+
else:
|
|
2929
|
+
return UNIXDatagramSocket(raw_socket)
|
|
2930
|
+
|
|
2931
|
+
@classmethod
|
|
2932
|
+
async def getaddrinfo(
|
|
2933
|
+
cls,
|
|
2934
|
+
host: bytes | str | None,
|
|
2935
|
+
port: str | int | None,
|
|
2936
|
+
*,
|
|
2937
|
+
family: int | AddressFamily = 0,
|
|
2938
|
+
type: int | SocketKind = 0,
|
|
2939
|
+
proto: int = 0,
|
|
2940
|
+
flags: int = 0,
|
|
2941
|
+
) -> Sequence[
|
|
2942
|
+
tuple[
|
|
2943
|
+
AddressFamily,
|
|
2944
|
+
SocketKind,
|
|
2945
|
+
int,
|
|
2946
|
+
str,
|
|
2947
|
+
tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes],
|
|
2948
|
+
]
|
|
2949
|
+
]:
|
|
2950
|
+
return await get_running_loop().getaddrinfo(
|
|
2951
|
+
host, port, family=family, type=type, proto=proto, flags=flags
|
|
2952
|
+
)
|
|
2953
|
+
|
|
2954
|
+
@classmethod
|
|
2955
|
+
async def getnameinfo(
|
|
2956
|
+
cls, sockaddr: IPSockAddrType, flags: int = 0
|
|
2957
|
+
) -> tuple[str, str]:
|
|
2958
|
+
return await get_running_loop().getnameinfo(sockaddr, flags)
|
|
2959
|
+
|
|
2960
|
+
@classmethod
|
|
2961
|
+
async def wait_readable(cls, obj: FileDescriptorLike) -> None:
|
|
2962
|
+
try:
|
|
2963
|
+
read_events = _read_events.get()
|
|
2964
|
+
except LookupError:
|
|
2965
|
+
read_events = {}
|
|
2966
|
+
_read_events.set(read_events)
|
|
2967
|
+
|
|
2968
|
+
fd = obj if isinstance(obj, int) else obj.fileno()
|
|
2969
|
+
if read_events.get(fd):
|
|
2970
|
+
raise BusyResourceError("reading from")
|
|
2971
|
+
|
|
2972
|
+
loop = get_running_loop()
|
|
2973
|
+
fut: asyncio.Future[bool] = loop.create_future()
|
|
2974
|
+
|
|
2975
|
+
def cb() -> None:
|
|
2976
|
+
try:
|
|
2977
|
+
del read_events[fd]
|
|
2978
|
+
except KeyError:
|
|
2979
|
+
pass
|
|
2980
|
+
else:
|
|
2981
|
+
remove_reader(fd)
|
|
2982
|
+
|
|
2983
|
+
try:
|
|
2984
|
+
fut.set_result(True)
|
|
2985
|
+
except asyncio.InvalidStateError:
|
|
2986
|
+
pass
|
|
2987
|
+
|
|
2988
|
+
try:
|
|
2989
|
+
loop.add_reader(fd, cb)
|
|
2990
|
+
except NotImplementedError:
|
|
2991
|
+
from anyio._core._asyncio_selector_thread import get_selector
|
|
2992
|
+
|
|
2993
|
+
selector = get_selector()
|
|
2994
|
+
selector.add_reader(fd, cb)
|
|
2995
|
+
remove_reader = selector.remove_reader
|
|
2996
|
+
else:
|
|
2997
|
+
remove_reader = loop.remove_reader
|
|
2998
|
+
|
|
2999
|
+
read_events[fd] = fut
|
|
3000
|
+
try:
|
|
3001
|
+
success = await fut
|
|
3002
|
+
finally:
|
|
3003
|
+
try:
|
|
3004
|
+
del read_events[fd]
|
|
3005
|
+
except KeyError:
|
|
3006
|
+
pass
|
|
3007
|
+
else:
|
|
3008
|
+
remove_reader(fd)
|
|
3009
|
+
|
|
3010
|
+
if not success:
|
|
3011
|
+
raise ClosedResourceError
|
|
3012
|
+
|
|
3013
|
+
@classmethod
|
|
3014
|
+
async def wait_writable(cls, obj: FileDescriptorLike) -> None:
|
|
3015
|
+
try:
|
|
3016
|
+
write_events = _write_events.get()
|
|
3017
|
+
except LookupError:
|
|
3018
|
+
write_events = {}
|
|
3019
|
+
_write_events.set(write_events)
|
|
3020
|
+
|
|
3021
|
+
fd = obj if isinstance(obj, int) else obj.fileno()
|
|
3022
|
+
if write_events.get(fd):
|
|
3023
|
+
raise BusyResourceError("writing to")
|
|
3024
|
+
|
|
3025
|
+
loop = get_running_loop()
|
|
3026
|
+
fut: asyncio.Future[bool] = loop.create_future()
|
|
3027
|
+
|
|
3028
|
+
def cb() -> None:
|
|
3029
|
+
try:
|
|
3030
|
+
del write_events[fd]
|
|
3031
|
+
except KeyError:
|
|
3032
|
+
pass
|
|
3033
|
+
else:
|
|
3034
|
+
remove_writer(fd)
|
|
3035
|
+
|
|
3036
|
+
try:
|
|
3037
|
+
fut.set_result(True)
|
|
3038
|
+
except asyncio.InvalidStateError:
|
|
3039
|
+
pass
|
|
3040
|
+
|
|
3041
|
+
try:
|
|
3042
|
+
loop.add_writer(fd, cb)
|
|
3043
|
+
except NotImplementedError:
|
|
3044
|
+
from anyio._core._asyncio_selector_thread import get_selector
|
|
3045
|
+
|
|
3046
|
+
selector = get_selector()
|
|
3047
|
+
selector.add_writer(fd, cb)
|
|
3048
|
+
remove_writer = selector.remove_writer
|
|
3049
|
+
else:
|
|
3050
|
+
remove_writer = loop.remove_writer
|
|
3051
|
+
|
|
3052
|
+
write_events[fd] = fut
|
|
3053
|
+
try:
|
|
3054
|
+
success = await fut
|
|
3055
|
+
finally:
|
|
3056
|
+
try:
|
|
3057
|
+
del write_events[fd]
|
|
3058
|
+
except KeyError:
|
|
3059
|
+
pass
|
|
3060
|
+
else:
|
|
3061
|
+
remove_writer(fd)
|
|
3062
|
+
|
|
3063
|
+
if not success:
|
|
3064
|
+
raise ClosedResourceError
|
|
3065
|
+
|
|
3066
|
+
@classmethod
|
|
3067
|
+
def notify_closing(cls, obj: FileDescriptorLike) -> None:
|
|
3068
|
+
fd = obj if isinstance(obj, int) else obj.fileno()
|
|
3069
|
+
loop = get_running_loop()
|
|
3070
|
+
|
|
3071
|
+
try:
|
|
3072
|
+
write_events = _write_events.get()
|
|
3073
|
+
except LookupError:
|
|
3074
|
+
pass
|
|
3075
|
+
else:
|
|
3076
|
+
try:
|
|
3077
|
+
fut = write_events.pop(fd)
|
|
3078
|
+
except KeyError:
|
|
3079
|
+
pass
|
|
3080
|
+
else:
|
|
3081
|
+
try:
|
|
3082
|
+
fut.set_result(False)
|
|
3083
|
+
except asyncio.InvalidStateError:
|
|
3084
|
+
pass
|
|
3085
|
+
|
|
3086
|
+
try:
|
|
3087
|
+
loop.remove_writer(fd)
|
|
3088
|
+
except NotImplementedError:
|
|
3089
|
+
from anyio._core._asyncio_selector_thread import get_selector
|
|
3090
|
+
|
|
3091
|
+
get_selector().remove_writer(fd)
|
|
3092
|
+
|
|
3093
|
+
try:
|
|
3094
|
+
read_events = _read_events.get()
|
|
3095
|
+
except LookupError:
|
|
3096
|
+
pass
|
|
3097
|
+
else:
|
|
3098
|
+
try:
|
|
3099
|
+
fut = read_events.pop(fd)
|
|
3100
|
+
except KeyError:
|
|
3101
|
+
pass
|
|
3102
|
+
else:
|
|
3103
|
+
try:
|
|
3104
|
+
fut.set_result(False)
|
|
3105
|
+
except asyncio.InvalidStateError:
|
|
3106
|
+
pass
|
|
3107
|
+
|
|
3108
|
+
try:
|
|
3109
|
+
loop.remove_reader(fd)
|
|
3110
|
+
except NotImplementedError:
|
|
3111
|
+
from anyio._core._asyncio_selector_thread import get_selector
|
|
3112
|
+
|
|
3113
|
+
get_selector().remove_reader(fd)
|
|
3114
|
+
|
|
3115
|
+
@classmethod
|
|
3116
|
+
async def wrap_listener_socket(cls, sock: socket.socket) -> SocketListener:
|
|
3117
|
+
if hasattr(socket, "AF_UNIX") and sock.family == socket.AF_UNIX:
|
|
3118
|
+
return UNIXSocketListener(sock)
|
|
3119
|
+
|
|
3120
|
+
return TCPSocketListener(sock)
|
|
3121
|
+
|
|
3122
|
+
@classmethod
|
|
3123
|
+
async def wrap_stream_socket(cls, sock: socket.socket) -> SocketStream:
|
|
3124
|
+
transport, protocol = await get_running_loop().create_connection(
|
|
3125
|
+
StreamProtocol, sock=sock
|
|
3126
|
+
)
|
|
3127
|
+
return SocketStream(transport, protocol)
|
|
3128
|
+
|
|
3129
|
+
@classmethod
|
|
3130
|
+
async def wrap_unix_stream_socket(cls, sock: socket.socket) -> UNIXSocketStream:
|
|
3131
|
+
return UNIXSocketStream(sock)
|
|
3132
|
+
|
|
3133
|
+
@classmethod
|
|
3134
|
+
async def wrap_udp_socket(cls, sock: socket.socket) -> UDPSocket:
|
|
3135
|
+
transport, protocol = await get_running_loop().create_datagram_endpoint(
|
|
3136
|
+
DatagramProtocol, sock=sock
|
|
3137
|
+
)
|
|
3138
|
+
return UDPSocket(transport, protocol)
|
|
3139
|
+
|
|
3140
|
+
@classmethod
|
|
3141
|
+
async def wrap_connected_udp_socket(cls, sock: socket.socket) -> ConnectedUDPSocket:
|
|
3142
|
+
transport, protocol = await get_running_loop().create_datagram_endpoint(
|
|
3143
|
+
DatagramProtocol, sock=sock
|
|
3144
|
+
)
|
|
3145
|
+
return ConnectedUDPSocket(transport, protocol)
|
|
3146
|
+
|
|
3147
|
+
@classmethod
|
|
3148
|
+
async def wrap_unix_datagram_socket(cls, sock: socket.socket) -> UNIXDatagramSocket:
|
|
3149
|
+
return UNIXDatagramSocket(sock)
|
|
3150
|
+
|
|
3151
|
+
@classmethod
|
|
3152
|
+
async def wrap_connected_unix_datagram_socket(
|
|
3153
|
+
cls, sock: socket.socket
|
|
3154
|
+
) -> ConnectedUNIXDatagramSocket:
|
|
3155
|
+
return ConnectedUNIXDatagramSocket(sock)
|
|
3156
|
+
|
|
3157
|
+
@classmethod
|
|
3158
|
+
def current_default_thread_limiter(cls) -> CapacityLimiter:
|
|
3159
|
+
try:
|
|
3160
|
+
return _default_thread_limiter.get()
|
|
3161
|
+
except LookupError:
|
|
3162
|
+
limiter = CapacityLimiter(40)
|
|
3163
|
+
_default_thread_limiter.set(limiter)
|
|
3164
|
+
return limiter
|
|
3165
|
+
|
|
3166
|
+
@classmethod
|
|
3167
|
+
def open_signal_receiver(
|
|
3168
|
+
cls, *signals: Signals
|
|
3169
|
+
) -> AbstractContextManager[AsyncIterator[Signals]]:
|
|
3170
|
+
return _SignalReceiver(signals)
|
|
3171
|
+
|
|
3172
|
+
@classmethod
|
|
3173
|
+
def get_current_task(cls) -> TaskInfo:
|
|
3174
|
+
return AsyncIOTaskInfo(current_task()) # type: ignore[arg-type]
|
|
3175
|
+
|
|
3176
|
+
@classmethod
|
|
3177
|
+
def get_running_tasks(cls) -> Sequence[TaskInfo]:
|
|
3178
|
+
return [AsyncIOTaskInfo(task) for task in all_tasks() if not task.done()]
|
|
3179
|
+
|
|
3180
|
+
@classmethod
|
|
3181
|
+
async def wait_all_tasks_blocked(cls) -> None:
|
|
3182
|
+
await cls.checkpoint()
|
|
3183
|
+
this_task = current_task()
|
|
3184
|
+
while True:
|
|
3185
|
+
for task in all_tasks():
|
|
3186
|
+
if task is this_task:
|
|
3187
|
+
continue
|
|
3188
|
+
|
|
3189
|
+
waiter = task._fut_waiter # type: ignore[attr-defined]
|
|
3190
|
+
if waiter is None or waiter.done():
|
|
3191
|
+
await sleep(0.1)
|
|
3192
|
+
break
|
|
3193
|
+
else:
|
|
3194
|
+
return
|
|
3195
|
+
|
|
3196
|
+
@classmethod
|
|
3197
|
+
def create_test_runner(cls, options: dict[str, Any]) -> TestRunner:
|
|
3198
|
+
return TestRunner(**options)
|
|
3199
|
+
|
|
3200
|
+
|
|
3201
|
+
backend_class = AsyncIOBackend
|