@steerable/runtime-darwin-arm64 0.0.0-stage → 0.9.0
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/bin/steerable-egress-proxy +0 -0
- package/package.json +25 -4
- package/python-runtime/manifest.json +8 -0
- package/python-runtime/python/bin/2to3 +7 -0
- package/python-runtime/python/bin/2to3-3.12 +7 -0
- package/python-runtime/python/bin/cffi-gen-src +6 -0
- package/python-runtime/python/bin/dotenv +6 -0
- package/python-runtime/python/bin/httpx +6 -0
- package/python-runtime/python/bin/idle3 +7 -0
- package/python-runtime/python/bin/idle3.12 +7 -0
- package/python-runtime/python/bin/idna +6 -0
- package/python-runtime/python/bin/jsonschema +6 -0
- package/python-runtime/python/bin/mcp +6 -0
- package/python-runtime/python/bin/pydoc3 +7 -0
- package/python-runtime/python/bin/pydoc3.12 +7 -0
- package/python-runtime/python/bin/python +0 -0
- package/python-runtime/python/bin/python3 +0 -0
- package/python-runtime/python/bin/python3-config +76 -0
- package/python-runtime/python/bin/python3.12 +0 -0
- package/python-runtime/python/bin/python3.12-config +76 -0
- package/python-runtime/python/bin/steerable-sidecar +6 -0
- package/python-runtime/python/bin/steerable-sidecar-acp +6 -0
- package/python-runtime/python/bin/steerable-sidecar-headless +6 -0
- package/python-runtime/python/bin/uvicorn +6 -0
- package/python-runtime/python/include/python3.12/Python.h +109 -0
- package/python-runtime/python/include/python3.12/abstract.h +899 -0
- package/python-runtime/python/include/python3.12/bltinmodule.h +14 -0
- package/python-runtime/python/include/python3.12/boolobject.h +42 -0
- package/python-runtime/python/include/python3.12/bytearrayobject.h +44 -0
- package/python-runtime/python/include/python3.12/bytesobject.h +69 -0
- package/python-runtime/python/include/python3.12/ceval.h +168 -0
- package/python-runtime/python/include/python3.12/codecs.h +248 -0
- package/python-runtime/python/include/python3.12/compile.h +22 -0
- package/python-runtime/python/include/python3.12/complexobject.h +30 -0
- package/python-runtime/python/include/python3.12/cpython/abstract.h +206 -0
- package/python-runtime/python/include/python3.12/cpython/bytearrayobject.h +34 -0
- package/python-runtime/python/include/python3.12/cpython/bytesobject.h +133 -0
- package/python-runtime/python/include/python3.12/cpython/cellobject.h +44 -0
- package/python-runtime/python/include/python3.12/cpython/ceval.h +35 -0
- package/python-runtime/python/include/python3.12/cpython/classobject.h +71 -0
- package/python-runtime/python/include/python3.12/cpython/code.h +389 -0
- package/python-runtime/python/include/python3.12/cpython/compile.h +69 -0
- package/python-runtime/python/include/python3.12/cpython/complexobject.h +44 -0
- package/python-runtime/python/include/python3.12/cpython/context.h +78 -0
- package/python-runtime/python/include/python3.12/cpython/descrobject.h +64 -0
- package/python-runtime/python/include/python3.12/cpython/dictobject.h +118 -0
- package/python-runtime/python/include/python3.12/cpython/fileobject.h +19 -0
- package/python-runtime/python/include/python3.12/cpython/fileutils.h +8 -0
- package/python-runtime/python/include/python3.12/cpython/floatobject.h +27 -0
- package/python-runtime/python/include/python3.12/cpython/frameobject.h +29 -0
- package/python-runtime/python/include/python3.12/cpython/funcobject.h +190 -0
- package/python-runtime/python/include/python3.12/cpython/genobject.h +89 -0
- package/python-runtime/python/include/python3.12/cpython/import.h +46 -0
- package/python-runtime/python/include/python3.12/cpython/initconfig.h +256 -0
- package/python-runtime/python/include/python3.12/cpython/interpreteridobject.h +11 -0
- package/python-runtime/python/include/python3.12/cpython/listobject.h +47 -0
- package/python-runtime/python/include/python3.12/cpython/longintrepr.h +133 -0
- package/python-runtime/python/include/python3.12/cpython/longobject.h +100 -0
- package/python-runtime/python/include/python3.12/cpython/memoryobject.h +52 -0
- package/python-runtime/python/include/python3.12/cpython/methodobject.h +66 -0
- package/python-runtime/python/include/python3.12/cpython/modsupport.h +109 -0
- package/python-runtime/python/include/python3.12/cpython/object.h +575 -0
- package/python-runtime/python/include/python3.12/cpython/objimpl.h +95 -0
- package/python-runtime/python/include/python3.12/cpython/odictobject.h +43 -0
- package/python-runtime/python/include/python3.12/cpython/picklebufobject.h +31 -0
- package/python-runtime/python/include/python3.12/cpython/pthread_stubs.h +88 -0
- package/python-runtime/python/include/python3.12/cpython/pyctype.h +39 -0
- package/python-runtime/python/include/python3.12/cpython/pydebug.h +38 -0
- package/python-runtime/python/include/python3.12/cpython/pyerrors.h +178 -0
- package/python-runtime/python/include/python3.12/cpython/pyfpe.h +15 -0
- package/python-runtime/python/include/python3.12/cpython/pyframe.h +35 -0
- package/python-runtime/python/include/python3.12/cpython/pylifecycle.h +111 -0
- package/python-runtime/python/include/python3.12/cpython/pymem.h +98 -0
- package/python-runtime/python/include/python3.12/cpython/pystate.h +456 -0
- package/python-runtime/python/include/python3.12/cpython/pythonrun.h +121 -0
- package/python-runtime/python/include/python3.12/cpython/pythread.h +42 -0
- package/python-runtime/python/include/python3.12/cpython/pytime.h +331 -0
- package/python-runtime/python/include/python3.12/cpython/setobject.h +72 -0
- package/python-runtime/python/include/python3.12/cpython/sysmodule.h +16 -0
- package/python-runtime/python/include/python3.12/cpython/traceback.h +16 -0
- package/python-runtime/python/include/python3.12/cpython/tupleobject.h +39 -0
- package/python-runtime/python/include/python3.12/cpython/unicodeobject.h +976 -0
- package/python-runtime/python/include/python3.12/cpython/warnings.h +20 -0
- package/python-runtime/python/include/python3.12/cpython/weakrefobject.h +56 -0
- package/python-runtime/python/include/python3.12/datetime.h +267 -0
- package/python-runtime/python/include/python3.12/descrobject.h +100 -0
- package/python-runtime/python/include/python3.12/dictobject.h +97 -0
- package/python-runtime/python/include/python3.12/dynamic_annotations.h +499 -0
- package/python-runtime/python/include/python3.12/enumobject.h +17 -0
- package/python-runtime/python/include/python3.12/errcode.h +38 -0
- package/python-runtime/python/include/python3.12/exports.h +36 -0
- package/python-runtime/python/include/python3.12/fileobject.h +49 -0
- package/python-runtime/python/include/python3.12/fileutils.h +26 -0
- package/python-runtime/python/include/python3.12/floatobject.h +54 -0
- package/python-runtime/python/include/python3.12/frameobject.h +20 -0
- package/python-runtime/python/include/python3.12/genericaliasobject.h +14 -0
- package/python-runtime/python/include/python3.12/import.h +98 -0
- package/python-runtime/python/include/python3.12/internal/pycore_abstract.h +25 -0
- package/python-runtime/python/include/python3.12/internal/pycore_asdl.h +112 -0
- package/python-runtime/python/include/python3.12/internal/pycore_ast.h +922 -0
- package/python-runtime/python/include/python3.12/internal/pycore_ast_state.h +265 -0
- package/python-runtime/python/include/python3.12/internal/pycore_atexit.h +57 -0
- package/python-runtime/python/include/python3.12/internal/pycore_atomic.h +557 -0
- package/python-runtime/python/include/python3.12/internal/pycore_atomic_funcs.h +94 -0
- package/python-runtime/python/include/python3.12/internal/pycore_bitutils.h +186 -0
- package/python-runtime/python/include/python3.12/internal/pycore_blocks_output_buffer.h +317 -0
- package/python-runtime/python/include/python3.12/internal/pycore_bytes_methods.h +73 -0
- package/python-runtime/python/include/python3.12/internal/pycore_bytesobject.h +47 -0
- package/python-runtime/python/include/python3.12/internal/pycore_call.h +133 -0
- package/python-runtime/python/include/python3.12/internal/pycore_ceval.h +164 -0
- package/python-runtime/python/include/python3.12/internal/pycore_ceval_state.h +103 -0
- package/python-runtime/python/include/python3.12/internal/pycore_code.h +496 -0
- package/python-runtime/python/include/python3.12/internal/pycore_compile.h +118 -0
- package/python-runtime/python/include/python3.12/internal/pycore_condvar.h +99 -0
- package/python-runtime/python/include/python3.12/internal/pycore_context.h +71 -0
- package/python-runtime/python/include/python3.12/internal/pycore_descrobject.h +26 -0
- package/python-runtime/python/include/python3.12/internal/pycore_dict.h +199 -0
- package/python-runtime/python/include/python3.12/internal/pycore_dict_state.h +50 -0
- package/python-runtime/python/include/python3.12/internal/pycore_dtoa.h +69 -0
- package/python-runtime/python/include/python3.12/internal/pycore_emscripten_signal.h +25 -0
- package/python-runtime/python/include/python3.12/internal/pycore_exceptions.h +37 -0
- package/python-runtime/python/include/python3.12/internal/pycore_faulthandler.h +99 -0
- package/python-runtime/python/include/python3.12/internal/pycore_fileutils.h +292 -0
- package/python-runtime/python/include/python3.12/internal/pycore_fileutils_windows.h +98 -0
- package/python-runtime/python/include/python3.12/internal/pycore_floatobject.h +71 -0
- package/python-runtime/python/include/python3.12/internal/pycore_flowgraph.h +120 -0
- package/python-runtime/python/include/python3.12/internal/pycore_format.h +27 -0
- package/python-runtime/python/include/python3.12/internal/pycore_frame.h +283 -0
- package/python-runtime/python/include/python3.12/internal/pycore_function.h +26 -0
- package/python-runtime/python/include/python3.12/internal/pycore_gc.h +211 -0
- package/python-runtime/python/include/python3.12/internal/pycore_genobject.h +49 -0
- package/python-runtime/python/include/python3.12/internal/pycore_getopt.h +22 -0
- package/python-runtime/python/include/python3.12/internal/pycore_gil.h +50 -0
- package/python-runtime/python/include/python3.12/internal/pycore_global_objects.h +105 -0
- package/python-runtime/python/include/python3.12/internal/pycore_global_objects_fini_generated.h +1517 -0
- package/python-runtime/python/include/python3.12/internal/pycore_global_strings.h +777 -0
- package/python-runtime/python/include/python3.12/internal/pycore_hamt.h +134 -0
- package/python-runtime/python/include/python3.12/internal/pycore_hashtable.h +149 -0
- package/python-runtime/python/include/python3.12/internal/pycore_import.h +183 -0
- package/python-runtime/python/include/python3.12/internal/pycore_initconfig.h +179 -0
- package/python-runtime/python/include/python3.12/internal/pycore_instruments.h +106 -0
- package/python-runtime/python/include/python3.12/internal/pycore_interp.h +275 -0
- package/python-runtime/python/include/python3.12/internal/pycore_intrinsics.h +32 -0
- package/python-runtime/python/include/python3.12/internal/pycore_list.h +83 -0
- package/python-runtime/python/include/python3.12/internal/pycore_long.h +258 -0
- package/python-runtime/python/include/python3.12/internal/pycore_memoryobject.h +18 -0
- package/python-runtime/python/include/python3.12/internal/pycore_moduleobject.h +45 -0
- package/python-runtime/python/include/python3.12/internal/pycore_namespace.h +20 -0
- package/python-runtime/python/include/python3.12/internal/pycore_object.h +455 -0
- package/python-runtime/python/include/python3.12/internal/pycore_object_state.h +42 -0
- package/python-runtime/python/include/python3.12/internal/pycore_obmalloc.h +700 -0
- package/python-runtime/python/include/python3.12/internal/pycore_obmalloc_init.h +73 -0
- package/python-runtime/python/include/python3.12/internal/pycore_opcode.h +587 -0
- package/python-runtime/python/include/python3.12/internal/pycore_opcode_utils.h +92 -0
- package/python-runtime/python/include/python3.12/internal/pycore_parser.h +66 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pathconfig.h +24 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pyarena.h +64 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pyerrors.h +129 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pyhash.h +40 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pylifecycle.h +99 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pymath.h +205 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pymem.h +98 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pymem_init.h +85 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pystate.h +180 -0
- package/python-runtime/python/include/python3.12/internal/pycore_pythread.h +81 -0
- package/python-runtime/python/include/python3.12/internal/pycore_range.h +21 -0
- package/python-runtime/python/include/python3.12/internal/pycore_runtime.h +235 -0
- package/python-runtime/python/include/python3.12/internal/pycore_runtime_init.h +188 -0
- package/python-runtime/python/include/python3.12/internal/pycore_runtime_init_generated.h +1511 -0
- package/python-runtime/python/include/python3.12/internal/pycore_signal.h +98 -0
- package/python-runtime/python/include/python3.12/internal/pycore_sliceobject.h +22 -0
- package/python-runtime/python/include/python3.12/internal/pycore_strhex.h +36 -0
- package/python-runtime/python/include/python3.12/internal/pycore_structseq.h +39 -0
- package/python-runtime/python/include/python3.12/internal/pycore_symtable.h +160 -0
- package/python-runtime/python/include/python3.12/internal/pycore_sysmodule.h +34 -0
- package/python-runtime/python/include/python3.12/internal/pycore_time.h +25 -0
- package/python-runtime/python/include/python3.12/internal/pycore_token.h +108 -0
- package/python-runtime/python/include/python3.12/internal/pycore_traceback.h +101 -0
- package/python-runtime/python/include/python3.12/internal/pycore_tracemalloc.h +123 -0
- package/python-runtime/python/include/python3.12/internal/pycore_tuple.h +79 -0
- package/python-runtime/python/include/python3.12/internal/pycore_typeobject.h +151 -0
- package/python-runtime/python/include/python3.12/internal/pycore_typevarobject.h +24 -0
- package/python-runtime/python/include/python3.12/internal/pycore_ucnhash.h +34 -0
- package/python-runtime/python/include/python3.12/internal/pycore_unicodeobject.h +86 -0
- package/python-runtime/python/include/python3.12/internal/pycore_unicodeobject_generated.h +2832 -0
- package/python-runtime/python/include/python3.12/internal/pycore_unionobject.h +23 -0
- package/python-runtime/python/include/python3.12/internal/pycore_warnings.h +29 -0
- package/python-runtime/python/include/python3.12/interpreteridobject.h +17 -0
- package/python-runtime/python/include/python3.12/intrcheck.h +30 -0
- package/python-runtime/python/include/python3.12/iterobject.h +27 -0
- package/python-runtime/python/include/python3.12/listobject.h +52 -0
- package/python-runtime/python/include/python3.12/longobject.h +108 -0
- package/python-runtime/python/include/python3.12/marshal.h +31 -0
- package/python-runtime/python/include/python3.12/memoryobject.h +34 -0
- package/python-runtime/python/include/python3.12/methodobject.h +132 -0
- package/python-runtime/python/include/python3.12/modsupport.h +168 -0
- package/python-runtime/python/include/python3.12/moduleobject.h +119 -0
- package/python-runtime/python/include/python3.12/object.h +993 -0
- package/python-runtime/python/include/python3.12/objimpl.h +234 -0
- package/python-runtime/python/include/python3.12/opcode.h +271 -0
- package/python-runtime/python/include/python3.12/osdefs.h +51 -0
- package/python-runtime/python/include/python3.12/osmodule.h +17 -0
- package/python-runtime/python/include/python3.12/patchlevel.h +35 -0
- package/python-runtime/python/include/python3.12/py_curses.h +99 -0
- package/python-runtime/python/include/python3.12/pybuffer.h +145 -0
- package/python-runtime/python/include/python3.12/pycapsule.h +59 -0
- package/python-runtime/python/include/python3.12/pyconfig.h +1943 -0
- package/python-runtime/python/include/python3.12/pydtrace.h +59 -0
- package/python-runtime/python/include/python3.12/pyerrors.h +337 -0
- package/python-runtime/python/include/python3.12/pyexpat.h +62 -0
- package/python-runtime/python/include/python3.12/pyframe.h +26 -0
- package/python-runtime/python/include/python3.12/pyhash.h +144 -0
- package/python-runtime/python/include/python3.12/pylifecycle.h +78 -0
- package/python-runtime/python/include/python3.12/pymacconfig.h +99 -0
- package/python-runtime/python/include/python3.12/pymacro.h +172 -0
- package/python-runtime/python/include/python3.12/pymath.h +62 -0
- package/python-runtime/python/include/python3.12/pymem.h +104 -0
- package/python-runtime/python/include/python3.12/pyport.h +782 -0
- package/python-runtime/python/include/python3.12/pystate.h +132 -0
- package/python-runtime/python/include/python3.12/pystats.h +110 -0
- package/python-runtime/python/include/python3.12/pystrcmp.h +23 -0
- package/python-runtime/python/include/python3.12/pystrtod.h +46 -0
- package/python-runtime/python/include/python3.12/pythonrun.h +49 -0
- package/python-runtime/python/include/python3.12/pythread.h +135 -0
- package/python-runtime/python/include/python3.12/pytypedefs.h +30 -0
- package/python-runtime/python/include/python3.12/rangeobject.h +27 -0
- package/python-runtime/python/include/python3.12/setobject.h +49 -0
- package/python-runtime/python/include/python3.12/sliceobject.h +65 -0
- package/python-runtime/python/include/python3.12/structmember.h +56 -0
- package/python-runtime/python/include/python3.12/structseq.h +49 -0
- package/python-runtime/python/include/python3.12/sysmodule.h +54 -0
- package/python-runtime/python/include/python3.12/traceback.h +26 -0
- package/python-runtime/python/include/python3.12/tracemalloc.h +77 -0
- package/python-runtime/python/include/python3.12/tupleobject.h +46 -0
- package/python-runtime/python/include/python3.12/typeslots.h +88 -0
- package/python-runtime/python/include/python3.12/unicodeobject.h +1020 -0
- package/python-runtime/python/include/python3.12/warnings.h +45 -0
- package/python-runtime/python/include/python3.12/weakrefobject.h +42 -0
- package/python-runtime/python/lib/itcl4.3.5/itcl.tcl +151 -0
- package/python-runtime/python/lib/itcl4.3.5/itclConfig.sh +67 -0
- package/python-runtime/python/lib/itcl4.3.5/itclHullCmds.tcl +562 -0
- package/python-runtime/python/lib/itcl4.3.5/itclWidget.tcl +447 -0
- package/python-runtime/python/lib/itcl4.3.5/libitcl4.3.5.dylib +0 -0
- package/python-runtime/python/lib/itcl4.3.5/libitclstub.a +0 -0
- package/python-runtime/python/lib/itcl4.3.5/libitclstub4.3.5.a +0 -0
- package/python-runtime/python/lib/itcl4.3.5/libtcl9itcl4.3.5.dylib +0 -0
- package/python-runtime/python/lib/itcl4.3.5/pkgIndex.tcl +14 -0
- package/python-runtime/python/lib/libpython3.12.dylib +0 -0
- package/python-runtime/python/lib/libtcl9.0.dylib +0 -0
- package/python-runtime/python/lib/libtcl9tk9.0.dylib +0 -0
- package/python-runtime/python/lib/pkgconfig/python-3.12-embed.pc +13 -0
- package/python-runtime/python/lib/pkgconfig/python-3.12.pc +13 -0
- package/python-runtime/python/lib/pkgconfig/python3-embed.pc +13 -0
- package/python-runtime/python/lib/pkgconfig/python3.pc +13 -0
- package/python-runtime/python/lib/python3.12/LICENSE.txt +279 -0
- package/python-runtime/python/lib/python3.12/__future__.py +147 -0
- package/python-runtime/python/lib/python3.12/__hello__.py +16 -0
- package/python-runtime/python/lib/python3.12/__phello__/__init__.py +7 -0
- package/python-runtime/python/lib/python3.12/__phello__/spam.py +7 -0
- package/python-runtime/python/lib/python3.12/_aix_support.py +108 -0
- package/python-runtime/python/lib/python3.12/_collections_abc.py +1173 -0
- package/python-runtime/python/lib/python3.12/_compat_pickle.py +252 -0
- package/python-runtime/python/lib/python3.12/_compression.py +162 -0
- package/python-runtime/python/lib/python3.12/_markupbase.py +396 -0
- package/python-runtime/python/lib/python3.12/_osx_support.py +579 -0
- package/python-runtime/python/lib/python3.12/_py_abc.py +147 -0
- package/python-runtime/python/lib/python3.12/_pydatetime.py +2643 -0
- package/python-runtime/python/lib/python3.12/_pydecimal.py +6339 -0
- package/python-runtime/python/lib/python3.12/_pyio.py +2698 -0
- package/python-runtime/python/lib/python3.12/_pylong.py +329 -0
- package/python-runtime/python/lib/python3.12/_sitebuiltins.py +103 -0
- package/python-runtime/python/lib/python3.12/_strptime.py +664 -0
- package/python-runtime/python/lib/python3.12/_sysconfigdata__darwin_darwin.py +984 -0
- package/python-runtime/python/lib/python3.12/_threading_local.py +242 -0
- package/python-runtime/python/lib/python3.12/_weakrefset.py +205 -0
- package/python-runtime/python/lib/python3.12/abc.py +188 -0
- package/python-runtime/python/lib/python3.12/aifc.py +984 -0
- package/python-runtime/python/lib/python3.12/antigravity.py +17 -0
- package/python-runtime/python/lib/python3.12/argparse.py +2650 -0
- package/python-runtime/python/lib/python3.12/ast.py +1840 -0
- package/python-runtime/python/lib/python3.12/asyncio/__init__.py +47 -0
- package/python-runtime/python/lib/python3.12/asyncio/__main__.py +128 -0
- package/python-runtime/python/lib/python3.12/asyncio/base_events.py +2024 -0
- package/python-runtime/python/lib/python3.12/asyncio/base_futures.py +67 -0
- package/python-runtime/python/lib/python3.12/asyncio/base_subprocess.py +285 -0
- package/python-runtime/python/lib/python3.12/asyncio/base_tasks.py +94 -0
- package/python-runtime/python/lib/python3.12/asyncio/constants.py +41 -0
- package/python-runtime/python/lib/python3.12/asyncio/coroutines.py +109 -0
- package/python-runtime/python/lib/python3.12/asyncio/events.py +868 -0
- package/python-runtime/python/lib/python3.12/asyncio/exceptions.py +62 -0
- package/python-runtime/python/lib/python3.12/asyncio/format_helpers.py +76 -0
- package/python-runtime/python/lib/python3.12/asyncio/futures.py +430 -0
- package/python-runtime/python/lib/python3.12/asyncio/locks.py +586 -0
- package/python-runtime/python/lib/python3.12/asyncio/log.py +7 -0
- package/python-runtime/python/lib/python3.12/asyncio/mixins.py +21 -0
- package/python-runtime/python/lib/python3.12/asyncio/proactor_events.py +897 -0
- package/python-runtime/python/lib/python3.12/asyncio/protocols.py +216 -0
- package/python-runtime/python/lib/python3.12/asyncio/queues.py +244 -0
- package/python-runtime/python/lib/python3.12/asyncio/runners.py +216 -0
- package/python-runtime/python/lib/python3.12/asyncio/selector_events.py +1324 -0
- package/python-runtime/python/lib/python3.12/asyncio/sslproto.py +929 -0
- package/python-runtime/python/lib/python3.12/asyncio/staggered.py +174 -0
- package/python-runtime/python/lib/python3.12/asyncio/streams.py +770 -0
- package/python-runtime/python/lib/python3.12/asyncio/subprocess.py +229 -0
- package/python-runtime/python/lib/python3.12/asyncio/taskgroups.py +268 -0
- package/python-runtime/python/lib/python3.12/asyncio/tasks.py +1065 -0
- package/python-runtime/python/lib/python3.12/asyncio/threads.py +25 -0
- package/python-runtime/python/lib/python3.12/asyncio/timeouts.py +168 -0
- package/python-runtime/python/lib/python3.12/asyncio/transports.py +335 -0
- package/python-runtime/python/lib/python3.12/asyncio/trsock.py +98 -0
- package/python-runtime/python/lib/python3.12/asyncio/unix_events.py +1500 -0
- package/python-runtime/python/lib/python3.12/asyncio/windows_events.py +901 -0
- package/python-runtime/python/lib/python3.12/asyncio/windows_utils.py +173 -0
- package/python-runtime/python/lib/python3.12/base64.py +586 -0
- package/python-runtime/python/lib/python3.12/bdb.py +920 -0
- package/python-runtime/python/lib/python3.12/bisect.py +118 -0
- package/python-runtime/python/lib/python3.12/bz2.py +344 -0
- package/python-runtime/python/lib/python3.12/cProfile.py +195 -0
- package/python-runtime/python/lib/python3.12/calendar.py +808 -0
- package/python-runtime/python/lib/python3.12/cgi.py +1014 -0
- package/python-runtime/python/lib/python3.12/cgitb.py +332 -0
- package/python-runtime/python/lib/python3.12/chunk.py +173 -0
- package/python-runtime/python/lib/python3.12/cmd.py +401 -0
- package/python-runtime/python/lib/python3.12/code.py +324 -0
- package/python-runtime/python/lib/python3.12/codecs.py +1129 -0
- package/python-runtime/python/lib/python3.12/codeop.py +161 -0
- package/python-runtime/python/lib/python3.12/collections/__init__.py +1592 -0
- package/python-runtime/python/lib/python3.12/collections/abc.py +3 -0
- package/python-runtime/python/lib/python3.12/colorsys.py +166 -0
- package/python-runtime/python/lib/python3.12/compileall.py +469 -0
- package/python-runtime/python/lib/python3.12/concurrent/__init__.py +1 -0
- package/python-runtime/python/lib/python3.12/concurrent/futures/__init__.py +54 -0
- package/python-runtime/python/lib/python3.12/concurrent/futures/_base.py +654 -0
- package/python-runtime/python/lib/python3.12/concurrent/futures/process.py +876 -0
- package/python-runtime/python/lib/python3.12/concurrent/futures/thread.py +240 -0
- package/python-runtime/python/lib/python3.12/configparser.py +1333 -0
- package/python-runtime/python/lib/python3.12/contextlib.py +800 -0
- package/python-runtime/python/lib/python3.12/contextvars.py +4 -0
- package/python-runtime/python/lib/python3.12/copy.py +292 -0
- package/python-runtime/python/lib/python3.12/copyreg.py +217 -0
- package/python-runtime/python/lib/python3.12/crypt.py +124 -0
- package/python-runtime/python/lib/python3.12/csv.py +451 -0
- package/python-runtime/python/lib/python3.12/ctypes/__init__.py +582 -0
- package/python-runtime/python/lib/python3.12/ctypes/_aix.py +327 -0
- package/python-runtime/python/lib/python3.12/ctypes/_endian.py +78 -0
- package/python-runtime/python/lib/python3.12/ctypes/macholib/README.ctypes +7 -0
- package/python-runtime/python/lib/python3.12/ctypes/macholib/__init__.py +9 -0
- package/python-runtime/python/lib/python3.12/ctypes/macholib/dyld.py +165 -0
- package/python-runtime/python/lib/python3.12/ctypes/macholib/dylib.py +42 -0
- package/python-runtime/python/lib/python3.12/ctypes/macholib/fetch_macholib +2 -0
- package/python-runtime/python/lib/python3.12/ctypes/macholib/fetch_macholib.bat +1 -0
- package/python-runtime/python/lib/python3.12/ctypes/macholib/framework.py +42 -0
- package/python-runtime/python/lib/python3.12/ctypes/util.py +379 -0
- package/python-runtime/python/lib/python3.12/ctypes/wintypes.py +202 -0
- package/python-runtime/python/lib/python3.12/curses/__init__.py +101 -0
- package/python-runtime/python/lib/python3.12/curses/ascii.py +99 -0
- package/python-runtime/python/lib/python3.12/curses/has_key.py +192 -0
- package/python-runtime/python/lib/python3.12/curses/panel.py +6 -0
- package/python-runtime/python/lib/python3.12/curses/textpad.py +204 -0
- package/python-runtime/python/lib/python3.12/dataclasses.py +1588 -0
- package/python-runtime/python/lib/python3.12/datetime.py +9 -0
- package/python-runtime/python/lib/python3.12/dbm/__init__.py +190 -0
- package/python-runtime/python/lib/python3.12/dbm/dumb.py +317 -0
- package/python-runtime/python/lib/python3.12/dbm/gnu.py +3 -0
- package/python-runtime/python/lib/python3.12/dbm/ndbm.py +3 -0
- package/python-runtime/python/lib/python3.12/decimal.py +108 -0
- package/python-runtime/python/lib/python3.12/difflib.py +2056 -0
- package/python-runtime/python/lib/python3.12/dis.py +805 -0
- package/python-runtime/python/lib/python3.12/doctest.py +2845 -0
- package/python-runtime/python/lib/python3.12/email/__init__.py +61 -0
- package/python-runtime/python/lib/python3.12/email/_encoded_words.py +233 -0
- package/python-runtime/python/lib/python3.12/email/_header_value_parser.py +3108 -0
- package/python-runtime/python/lib/python3.12/email/_parseaddr.py +557 -0
- package/python-runtime/python/lib/python3.12/email/_policybase.py +382 -0
- package/python-runtime/python/lib/python3.12/email/architecture.rst +216 -0
- package/python-runtime/python/lib/python3.12/email/base64mime.py +115 -0
- package/python-runtime/python/lib/python3.12/email/charset.py +398 -0
- package/python-runtime/python/lib/python3.12/email/contentmanager.py +251 -0
- package/python-runtime/python/lib/python3.12/email/encoders.py +65 -0
- package/python-runtime/python/lib/python3.12/email/errors.py +117 -0
- package/python-runtime/python/lib/python3.12/email/feedparser.py +534 -0
- package/python-runtime/python/lib/python3.12/email/generator.py +530 -0
- package/python-runtime/python/lib/python3.12/email/header.py +573 -0
- package/python-runtime/python/lib/python3.12/email/headerregistry.py +604 -0
- package/python-runtime/python/lib/python3.12/email/iterators.py +68 -0
- package/python-runtime/python/lib/python3.12/email/message.py +1215 -0
- package/python-runtime/python/lib/python3.12/email/mime/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/email/mime/application.py +37 -0
- package/python-runtime/python/lib/python3.12/email/mime/audio.py +100 -0
- package/python-runtime/python/lib/python3.12/email/mime/base.py +29 -0
- package/python-runtime/python/lib/python3.12/email/mime/image.py +152 -0
- package/python-runtime/python/lib/python3.12/email/mime/message.py +33 -0
- package/python-runtime/python/lib/python3.12/email/mime/multipart.py +47 -0
- package/python-runtime/python/lib/python3.12/email/mime/nonmultipart.py +21 -0
- package/python-runtime/python/lib/python3.12/email/mime/text.py +40 -0
- package/python-runtime/python/lib/python3.12/email/parser.py +127 -0
- package/python-runtime/python/lib/python3.12/email/policy.py +232 -0
- package/python-runtime/python/lib/python3.12/email/quoprimime.py +300 -0
- package/python-runtime/python/lib/python3.12/email/utils.py +486 -0
- package/python-runtime/python/lib/python3.12/encodings/__init__.py +174 -0
- package/python-runtime/python/lib/python3.12/encodings/aliases.py +551 -0
- package/python-runtime/python/lib/python3.12/encodings/ascii.py +50 -0
- package/python-runtime/python/lib/python3.12/encodings/base64_codec.py +55 -0
- package/python-runtime/python/lib/python3.12/encodings/big5.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/big5hkscs.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/bz2_codec.py +78 -0
- package/python-runtime/python/lib/python3.12/encodings/charmap.py +69 -0
- package/python-runtime/python/lib/python3.12/encodings/cp037.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1006.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1026.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1125.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1140.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1250.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1251.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1252.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1253.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1254.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1255.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1256.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1257.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp1258.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp273.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp424.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp437.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp500.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp720.py +309 -0
- package/python-runtime/python/lib/python3.12/encodings/cp737.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp775.py +697 -0
- package/python-runtime/python/lib/python3.12/encodings/cp850.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp852.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp855.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp856.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp857.py +694 -0
- package/python-runtime/python/lib/python3.12/encodings/cp858.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp860.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp861.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp862.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp863.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp864.py +690 -0
- package/python-runtime/python/lib/python3.12/encodings/cp865.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp866.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/cp869.py +689 -0
- package/python-runtime/python/lib/python3.12/encodings/cp874.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp875.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/cp932.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/cp949.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/cp950.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/euc_jis_2004.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/euc_jisx0213.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/euc_jp.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/euc_kr.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/gb18030.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/gb2312.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/gbk.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/hex_codec.py +55 -0
- package/python-runtime/python/lib/python3.12/encodings/hp_roman8.py +314 -0
- package/python-runtime/python/lib/python3.12/encodings/hz.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/idna.py +317 -0
- package/python-runtime/python/lib/python3.12/encodings/iso2022_jp.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/iso2022_jp_1.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/iso2022_jp_2.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/iso2022_jp_2004.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/iso2022_jp_3.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/iso2022_jp_ext.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/iso2022_kr.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_1.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_10.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_11.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_13.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_14.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_15.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_16.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_2.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_3.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_4.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_5.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_6.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_7.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_8.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/iso8859_9.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/johab.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/koi8_r.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/koi8_t.py +308 -0
- package/python-runtime/python/lib/python3.12/encodings/koi8_u.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/kz1048.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/latin_1.py +50 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_arabic.py +698 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_croatian.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_cyrillic.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_farsi.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_greek.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_iceland.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_latin2.py +312 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_roman.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_romanian.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/mac_turkish.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/mbcs.py +47 -0
- package/python-runtime/python/lib/python3.12/encodings/oem.py +41 -0
- package/python-runtime/python/lib/python3.12/encodings/palmos.py +308 -0
- package/python-runtime/python/lib/python3.12/encodings/ptcp154.py +312 -0
- package/python-runtime/python/lib/python3.12/encodings/punycode.py +237 -0
- package/python-runtime/python/lib/python3.12/encodings/quopri_codec.py +56 -0
- package/python-runtime/python/lib/python3.12/encodings/raw_unicode_escape.py +46 -0
- package/python-runtime/python/lib/python3.12/encodings/rot_13.py +113 -0
- package/python-runtime/python/lib/python3.12/encodings/shift_jis.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/shift_jis_2004.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/shift_jisx0213.py +39 -0
- package/python-runtime/python/lib/python3.12/encodings/tis_620.py +307 -0
- package/python-runtime/python/lib/python3.12/encodings/undefined.py +49 -0
- package/python-runtime/python/lib/python3.12/encodings/unicode_escape.py +46 -0
- package/python-runtime/python/lib/python3.12/encodings/utf_16.py +155 -0
- package/python-runtime/python/lib/python3.12/encodings/utf_16_be.py +42 -0
- package/python-runtime/python/lib/python3.12/encodings/utf_16_le.py +42 -0
- package/python-runtime/python/lib/python3.12/encodings/utf_32.py +150 -0
- package/python-runtime/python/lib/python3.12/encodings/utf_32_be.py +37 -0
- package/python-runtime/python/lib/python3.12/encodings/utf_32_le.py +37 -0
- package/python-runtime/python/lib/python3.12/encodings/utf_7.py +38 -0
- package/python-runtime/python/lib/python3.12/encodings/utf_8.py +42 -0
- package/python-runtime/python/lib/python3.12/encodings/utf_8_sig.py +130 -0
- package/python-runtime/python/lib/python3.12/encodings/uu_codec.py +103 -0
- package/python-runtime/python/lib/python3.12/encodings/zlib_codec.py +77 -0
- package/python-runtime/python/lib/python3.12/enum.py +2108 -0
- package/python-runtime/python/lib/python3.12/filecmp.py +315 -0
- package/python-runtime/python/lib/python3.12/fileinput.py +442 -0
- package/python-runtime/python/lib/python3.12/fnmatch.py +185 -0
- package/python-runtime/python/lib/python3.12/fractions.py +990 -0
- package/python-runtime/python/lib/python3.12/ftplib.py +966 -0
- package/python-runtime/python/lib/python3.12/functools.py +1009 -0
- package/python-runtime/python/lib/python3.12/genericpath.py +176 -0
- package/python-runtime/python/lib/python3.12/getopt.py +215 -0
- package/python-runtime/python/lib/python3.12/getpass.py +185 -0
- package/python-runtime/python/lib/python3.12/gettext.py +646 -0
- package/python-runtime/python/lib/python3.12/glob.py +252 -0
- package/python-runtime/python/lib/python3.12/graphlib.py +250 -0
- package/python-runtime/python/lib/python3.12/gzip.py +711 -0
- package/python-runtime/python/lib/python3.12/hashlib.py +253 -0
- package/python-runtime/python/lib/python3.12/heapq.py +603 -0
- package/python-runtime/python/lib/python3.12/hmac.py +219 -0
- package/python-runtime/python/lib/python3.12/html/__init__.py +132 -0
- package/python-runtime/python/lib/python3.12/html/entities.py +2513 -0
- package/python-runtime/python/lib/python3.12/html/parser.py +535 -0
- package/python-runtime/python/lib/python3.12/http/__init__.py +200 -0
- package/python-runtime/python/lib/python3.12/http/client.py +1570 -0
- package/python-runtime/python/lib/python3.12/http/cookiejar.py +2121 -0
- package/python-runtime/python/lib/python3.12/http/cookies.py +615 -0
- package/python-runtime/python/lib/python3.12/http/server.py +1335 -0
- package/python-runtime/python/lib/python3.12/imaplib.py +1641 -0
- package/python-runtime/python/lib/python3.12/imghdr.py +180 -0
- package/python-runtime/python/lib/python3.12/importlib/__init__.py +138 -0
- package/python-runtime/python/lib/python3.12/importlib/_abc.py +39 -0
- package/python-runtime/python/lib/python3.12/importlib/_bootstrap.py +1551 -0
- package/python-runtime/python/lib/python3.12/importlib/_bootstrap_external.py +1749 -0
- package/python-runtime/python/lib/python3.12/importlib/abc.py +239 -0
- package/python-runtime/python/lib/python3.12/importlib/machinery.py +20 -0
- package/python-runtime/python/lib/python3.12/importlib/metadata/__init__.py +966 -0
- package/python-runtime/python/lib/python3.12/importlib/metadata/_adapters.py +89 -0
- package/python-runtime/python/lib/python3.12/importlib/metadata/_collections.py +30 -0
- package/python-runtime/python/lib/python3.12/importlib/metadata/_functools.py +104 -0
- package/python-runtime/python/lib/python3.12/importlib/metadata/_itertools.py +73 -0
- package/python-runtime/python/lib/python3.12/importlib/metadata/_meta.py +63 -0
- package/python-runtime/python/lib/python3.12/importlib/metadata/_text.py +99 -0
- package/python-runtime/python/lib/python3.12/importlib/readers.py +12 -0
- package/python-runtime/python/lib/python3.12/importlib/resources/__init__.py +38 -0
- package/python-runtime/python/lib/python3.12/importlib/resources/_adapters.py +168 -0
- package/python-runtime/python/lib/python3.12/importlib/resources/_common.py +208 -0
- package/python-runtime/python/lib/python3.12/importlib/resources/_itertools.py +38 -0
- package/python-runtime/python/lib/python3.12/importlib/resources/_legacy.py +98 -0
- package/python-runtime/python/lib/python3.12/importlib/resources/abc.py +173 -0
- package/python-runtime/python/lib/python3.12/importlib/resources/readers.py +146 -0
- package/python-runtime/python/lib/python3.12/importlib/resources/simple.py +106 -0
- package/python-runtime/python/lib/python3.12/importlib/simple.py +14 -0
- package/python-runtime/python/lib/python3.12/importlib/util.py +270 -0
- package/python-runtime/python/lib/python3.12/inspect.py +3433 -0
- package/python-runtime/python/lib/python3.12/io.py +99 -0
- package/python-runtime/python/lib/python3.12/ipaddress.py +2430 -0
- package/python-runtime/python/lib/python3.12/json/__init__.py +359 -0
- package/python-runtime/python/lib/python3.12/json/decoder.py +357 -0
- package/python-runtime/python/lib/python3.12/json/encoder.py +443 -0
- package/python-runtime/python/lib/python3.12/json/scanner.py +73 -0
- package/python-runtime/python/lib/python3.12/json/tool.py +85 -0
- package/python-runtime/python/lib/python3.12/keyword.py +64 -0
- package/python-runtime/python/lib/python3.12/lib-dynload/_crypt.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/lib-dynload/_dbm.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/lib-dynload/_tkinter.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/linecache.py +185 -0
- package/python-runtime/python/lib/python3.12/locale.py +1779 -0
- package/python-runtime/python/lib/python3.12/logging/__init__.py +2345 -0
- package/python-runtime/python/lib/python3.12/logging/config.py +1078 -0
- package/python-runtime/python/lib/python3.12/logging/handlers.py +1624 -0
- package/python-runtime/python/lib/python3.12/lzma.py +356 -0
- package/python-runtime/python/lib/python3.12/mailbox.py +2153 -0
- package/python-runtime/python/lib/python3.12/mailcap.py +302 -0
- package/python-runtime/python/lib/python3.12/mimetypes.py +656 -0
- package/python-runtime/python/lib/python3.12/modulefinder.py +666 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/__init__.py +37 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/connection.py +1178 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/context.py +377 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/dummy/__init__.py +126 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/dummy/connection.py +75 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/forkserver.py +350 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/heap.py +337 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/managers.py +1387 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/pool.py +957 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/popen_fork.py +83 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/popen_forkserver.py +74 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/popen_spawn_posix.py +72 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/popen_spawn_win32.py +145 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/process.py +439 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/queues.py +401 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/reduction.py +281 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/resource_sharer.py +154 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/resource_tracker.py +294 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/shared_memory.py +534 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/sharedctypes.py +240 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/spawn.py +307 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/synchronize.py +404 -0
- package/python-runtime/python/lib/python3.12/multiprocessing/util.py +494 -0
- package/python-runtime/python/lib/python3.12/netrc.py +192 -0
- package/python-runtime/python/lib/python3.12/nntplib.py +1093 -0
- package/python-runtime/python/lib/python3.12/ntpath.py +869 -0
- package/python-runtime/python/lib/python3.12/nturl2path.py +69 -0
- package/python-runtime/python/lib/python3.12/numbers.py +418 -0
- package/python-runtime/python/lib/python3.12/opcode.py +493 -0
- package/python-runtime/python/lib/python3.12/operator.py +467 -0
- package/python-runtime/python/lib/python3.12/optparse.py +1681 -0
- package/python-runtime/python/lib/python3.12/os.py +1159 -0
- package/python-runtime/python/lib/python3.12/pathlib.py +1435 -0
- package/python-runtime/python/lib/python3.12/pdb.py +1987 -0
- package/python-runtime/python/lib/python3.12/pickle.py +1866 -0
- package/python-runtime/python/lib/python3.12/pickletools.py +2904 -0
- package/python-runtime/python/lib/python3.12/pipes.py +250 -0
- package/python-runtime/python/lib/python3.12/pkgutil.py +529 -0
- package/python-runtime/python/lib/python3.12/platform.py +1359 -0
- package/python-runtime/python/lib/python3.12/plistlib.py +920 -0
- package/python-runtime/python/lib/python3.12/poplib.py +478 -0
- package/python-runtime/python/lib/python3.12/posixpath.py +577 -0
- package/python-runtime/python/lib/python3.12/pprint.py +658 -0
- package/python-runtime/python/lib/python3.12/profile.py +615 -0
- package/python-runtime/python/lib/python3.12/pstats.py +778 -0
- package/python-runtime/python/lib/python3.12/pty.py +211 -0
- package/python-runtime/python/lib/python3.12/py_compile.py +212 -0
- package/python-runtime/python/lib/python3.12/pyclbr.py +314 -0
- package/python-runtime/python/lib/python3.12/pydoc.py +2950 -0
- package/python-runtime/python/lib/python3.12/queue.py +326 -0
- package/python-runtime/python/lib/python3.12/quopri.py +237 -0
- package/python-runtime/python/lib/python3.12/random.py +996 -0
- package/python-runtime/python/lib/python3.12/re/__init__.py +385 -0
- package/python-runtime/python/lib/python3.12/re/_casefix.py +106 -0
- package/python-runtime/python/lib/python3.12/re/_compiler.py +770 -0
- package/python-runtime/python/lib/python3.12/re/_constants.py +220 -0
- package/python-runtime/python/lib/python3.12/re/_parser.py +1080 -0
- package/python-runtime/python/lib/python3.12/reprlib.py +214 -0
- package/python-runtime/python/lib/python3.12/rlcompleter.py +219 -0
- package/python-runtime/python/lib/python3.12/runpy.py +319 -0
- package/python-runtime/python/lib/python3.12/sched.py +167 -0
- package/python-runtime/python/lib/python3.12/secrets.py +71 -0
- package/python-runtime/python/lib/python3.12/selectors.py +623 -0
- package/python-runtime/python/lib/python3.12/shelve.py +243 -0
- package/python-runtime/python/lib/python3.12/shlex.py +345 -0
- package/python-runtime/python/lib/python3.12/shutil.py +1566 -0
- package/python-runtime/python/lib/python3.12/signal.py +94 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/AvifImagePlugin.py +299 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/BdfFontFile.py +122 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/BlpImagePlugin.py +503 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/BmpImagePlugin.py +526 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/BufrStubImagePlugin.py +70 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ContainerIO.py +177 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/CurImagePlugin.py +105 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/DcxImagePlugin.py +88 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/DdsImagePlugin.py +637 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/EpsImagePlugin.py +494 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ExifTags.py +383 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/FitsImagePlugin.py +171 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/FliImagePlugin.py +188 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/FontFile.py +163 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/FpxImagePlugin.py +264 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/FtexImagePlugin.py +119 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/GbrImagePlugin.py +101 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/GdImageFile.py +109 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/GifImagePlugin.py +1152 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/GimpGradientFile.py +156 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/GimpPaletteFile.py +77 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/GribStubImagePlugin.py +70 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/Hdf5StubImagePlugin.py +70 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/IcnsImagePlugin.py +406 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/IcoImagePlugin.py +418 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImImagePlugin.py +401 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/Image.py +4390 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageChops.py +278 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageCms.py +1069 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageColor.py +321 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageDraw.py +1003 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageDraw2.py +250 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageEnhance.py +112 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageFile.py +944 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageFilter.py +596 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageFont.py +1335 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageGrab.py +229 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageMath.py +314 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageMode.py +85 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageMorph.py +317 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageOps.py +803 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImagePalette.py +314 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImagePath.py +20 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageQt.py +229 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageSequence.py +89 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageShow.py +372 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageStat.py +169 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageText.py +512 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageTk.py +269 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageTransform.py +138 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImageWin.py +247 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/ImtImagePlugin.py +103 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/IptcImagePlugin.py +228 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/Jpeg2KImagePlugin.py +472 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/JpegImagePlugin.py +913 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/JpegPresets.py +240 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/McIdasImagePlugin.py +80 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/MicImagePlugin.py +105 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/MpegImagePlugin.py +89 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/MpoImagePlugin.py +211 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/MspImagePlugin.py +206 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PSDraw.py +249 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PaletteFile.py +58 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PalmImagePlugin.py +220 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PcdImagePlugin.py +68 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PcfFontFile.py +258 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PcxImagePlugin.py +237 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PdfImagePlugin.py +313 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PdfParser.py +1129 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PixarImagePlugin.py +74 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PngImagePlugin.py +1616 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PpmImagePlugin.py +380 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/PsdImagePlugin.py +340 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/QoiImagePlugin.py +248 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/SgiImagePlugin.py +236 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/SpiderImagePlugin.py +329 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/SunImagePlugin.py +147 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/TarIO.py +68 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/TgaImagePlugin.py +295 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/TiffImagePlugin.py +2410 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/TiffTags.py +571 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/WalImageFile.py +134 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/WebPImagePlugin.py +352 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/WmfImagePlugin.py +189 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/XVThumbImagePlugin.py +83 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/XbmImagePlugin.py +128 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/XpmImagePlugin.py +175 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/__init__.py +87 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/__main__.py +7 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_avif.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_avif.pyi +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_binary.py +115 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_deprecate.py +74 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imaging.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imaging.pyi +31 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingcms.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingcms.pyi +143 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingft.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingft.pyi +70 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingmath.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingmath.pyi +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingmorph.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingmorph.pyi +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingtk.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_imagingtk.pyi +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_tkinter_finder.py +20 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_typing.py +46 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_util.py +29 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_version.py +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_webp.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/_webp.pyi +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/features.py +347 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/PIL/report.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/README.txt +2 -0
- package/python-runtime/python/lib/python3.12/site-packages/_cffi_backend.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/__init__.py +247 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/_cookies.py +53 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/_deserialize.py +62 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/_jsonrpc.py +28 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/_protocol_adapters.py +72 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/_schema_base.py +79 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/_sse.py +98 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/_transport.py +145 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/agent/__init__.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/agent/connection.py +367 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/agent/router.py +10 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/client/__init__.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/client/connection.py +626 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/client/router.py +10 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/connection.py +344 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/contrib/__init__.py +27 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/contrib/permissions.py +105 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/contrib/session_state.py +274 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/contrib/tool_calls.py +290 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/core.py +111 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/exceptions.py +50 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/__init__.py +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/negotiation.py +214 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/__init__.py +18 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/_connection.py +24 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/_initialization.py +67 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/_methods.py +58 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/_params.py +65 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/_router.py +74 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/_schema_base.py +60 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/agent.py +287 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/client.py +463 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/interfaces.py +314 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/meta.py +41 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/experimental/v2/schema.py +6018 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/http/__init__.py +30 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/http/asgi.py +97 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/http/client.py +266 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/http/protocol.py +115 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/http/server.py +374 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/interfaces.py +468 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/meta.py +50 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/py.typed +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/router.py +239 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/schema.py +5846 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/stdio.py +208 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/task/__init__.py +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/task/sender.py +63 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/task/supervisor.py +80 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/telemetry.py +41 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/transports.py +112 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/utils.py +265 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/ws/__init__.py +23 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/ws/client.py +124 -0
- package/python-runtime/python/lib/python3.12/site-packages/acp/ws/server.py +75 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/_generated/__init__.py +9 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/_generated/models.py +2825 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/_generated/version.py +12 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/core/__init__.py +242 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/core/capabilities.py +64 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/core/deprecated.py +46 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/core/events.py +131 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/core/token_usage.py +210 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/core/types.py +162 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/core/version.py +38 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/encoder/__init__.py +7 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/encoder/encoder.py +36 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui_protocol-1.0.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui_protocol-1.0.0.dist-info/METADATA +114 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui_protocol-1.0.0.dist-info/RECORD +32 -0
- package/python-runtime/python/lib/python3.12/site-packages/ag_ui_protocol-1.0.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/agent_client_protocol-1.0.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/agent_client_protocol-1.0.0.dist-info/METADATA +106 -0
- package/python-runtime/python/lib/python3.12/site-packages/agent_client_protocol-1.0.0.dist-info/RECORD +115 -0
- package/python-runtime/python/lib/python3.12/site-packages/agent_client_protocol-1.0.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/agent_client_protocol-1.0.0.dist-info/entry_points.txt +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/annotated_types/__init__.py +416 -0
- package/python-runtime/python/lib/python3.12/site-packages/annotated_types/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/annotated_types/test_cases.py +146 -0
- package/python-runtime/python/lib/python3.12/site-packages/annotated_types-0.8.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/annotated_types-0.8.0.dist-info/METADATA +295 -0
- package/python-runtime/python/lib/python3.12/site-packages/annotated_types-0.8.0.dist-info/RECORD +10 -0
- package/python-runtime/python/lib/python3.12/site-packages/annotated_types-0.8.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/__init__.py +154 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_backends/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_backends/_asyncio.py +3300 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_backends/_trio.py +1489 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_asyncio_selector_thread.py +167 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_concurrency_utils.py +156 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_contextmanagers.py +200 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_eventloop.py +244 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_exceptions.py +205 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_fileio.py +1047 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_futures.py +191 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_resources.py +18 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_signals.py +29 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_sockets.py +1032 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_streams.py +52 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_subprocesses.py +196 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_synchronization.py +780 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_tasks.py +464 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_tempfile.py +623 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_testing.py +82 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_core/_typedattr.py +90 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/_lazyimport.py +176 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/abc/__init__.py +63 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/abc/_eventloop.py +443 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/abc/_resources.py +39 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/abc/_sockets.py +401 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/abc/_streams.py +237 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/abc/_subprocesses.py +82 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/abc/_tasks.py +223 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/abc/_testing.py +79 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/from_thread.py +689 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/functools.py +400 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/itertools.py +632 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/lowlevel.py +228 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/pytest_plugin.py +408 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/streams/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/streams/buffered.py +212 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/streams/file.py +162 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/streams/memory.py +365 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/streams/stapled.py +160 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/streams/text.py +189 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/streams/tls.py +450 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/to_interpreter.py +246 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/to_process.py +269 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio/to_thread.py +80 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio-4.16.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio-4.16.0.dist-info/METADATA +108 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio-4.16.0.dist-info/RECORD +100 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio-4.16.0.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/anyio-4.16.0.dist-info/entry_points.txt +2 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/__init__.py +104 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/__init__.pyi +389 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_cmp.py +160 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_cmp.pyi +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_compat.py +99 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_config.py +31 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_funcs.py +497 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_make.py +3406 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_next_gen.py +674 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_typing_compat.pyi +15 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_version_info.py +89 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/_version_info.pyi +9 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/converters.py +162 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/converters.pyi +19 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/exceptions.py +95 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/exceptions.pyi +17 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/filters.py +72 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/filters.pyi +6 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/setters.py +79 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/setters.pyi +20 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/validators.py +750 -0
- package/python-runtime/python/lib/python3.12/site-packages/attr/validators.pyi +140 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs/__init__.py +72 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs/__init__.pyi +314 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs/converters.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs/exceptions.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs/filters.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs/setters.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs/validators.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs-26.1.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs-26.1.0.dist-info/METADATA +199 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs-26.1.0.dist-info/RECORD +55 -0
- package/python-runtime/python/lib/python3.12/site-packages/attrs-26.1.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/certifi/__init__.py +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/certifi/__main__.py +12 -0
- package/python-runtime/python/lib/python3.12/site-packages/certifi/cacert.pem +3885 -0
- package/python-runtime/python/lib/python3.12/site-packages/certifi/core.py +83 -0
- package/python-runtime/python/lib/python3.12/site-packages/certifi/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/certifi-2026.10.23.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/certifi-2026.10.23.dist-info/METADATA +79 -0
- package/python-runtime/python/lib/python3.12/site-packages/certifi-2026.10.23.dist-info/RECORD +18 -0
- package/python-runtime/python/lib/python3.12/site-packages/certifi-2026.10.23.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/__init__.py +14 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/_cffi_errors.h +135 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/_cffi_gen_src.py +216 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/_cffi_include.h +397 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/_embedding.h +512 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/_imp_emulation.py +83 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/_shimmed_dist_utils.py +45 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/api.py +960 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/backend_ctypes.py +1120 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/cffi_opcode.py +187 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/commontypes.py +82 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/cparser.py +1014 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/error.py +31 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/ffiplatform.py +113 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/gen_src.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/lock.py +30 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/model.py +617 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/parse_c_type.h +181 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/pkgconfig.py +121 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/recompiler.py +1586 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/setuptools_ext.py +231 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/vengine_cpy.py +1058 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/vengine_gen.py +679 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi/verifier.py +306 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi-2.1.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi-2.1.1.dist-info/METADATA +67 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi-2.1.1.dist-info/RECORD +53 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi-2.1.1.dist-info/WHEEL +6 -0
- package/python-runtime/python/lib/python3.12/site-packages/cffi-2.1.1.dist-info/entry_points.txt +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/__init__.py +144 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/_compat.py +590 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/_termui_impl.py +970 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/_textwrap.py +188 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/_utils.py +45 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/_winconsole.py +292 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/core.py +3825 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/decorators.py +625 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/exceptions.py +378 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/formatting.py +320 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/globals.py +67 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/parser.py +533 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/shell_completion.py +796 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/termui.py +1024 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/testing.py +796 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/types.py +1437 -0
- package/python-runtime/python/lib/python3.12/site-packages/click/utils.py +676 -0
- package/python-runtime/python/lib/python3.12/site-packages/click-8.5.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/click-8.5.1.dist-info/METADATA +83 -0
- package/python-runtime/python/lib/python3.12/site-packages/click-8.5.1.dist-info/RECORD +40 -0
- package/python-runtime/python/lib/python3.12/site-packages/click-8.5.1.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/__about__.py +17 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/__init__.py +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/cobblestone.py +21 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/exceptions.py +52 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/fernet.py +240 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/__init__.py +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/_oid.py +373 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/asn1/__init__.py +47 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/asn1/asn1.py +533 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/backends/__init__.py +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/backends/openssl/__init__.py +9 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/backends/openssl/backend.py +309 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/__init__.pyi +67 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/_openssl.pyi +8 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/asn1.pyi +7 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/cobblestone.pyi +33 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/declarative_asn1.pyi +133 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/exceptions.pyi +17 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/ocsp.pyi +117 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi +82 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/aead.pyi +189 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi +38 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/cmac.pyi +18 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/dh.pyi +51 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/dsa.pyi +41 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/ec.pyi +52 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed448.pyi +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/hashes.pyi +30 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/hmac.pyi +22 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/hpke.pyi +109 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/kdf.pyi +205 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/keys.pyi +34 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/keywrap.pyi +28 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/mldsa.pyi +35 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/mlkem.pyi +18 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi +15 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/rsa.pyi +55 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/x448.pyi +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/pkcs12.pyi +52 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/pkcs7.pyi +50 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/test_support.pyi +23 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/x509.pyi +313 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust.abi3.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/openssl/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/openssl/_conditional.py +199 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/bindings/openssl/binding.py +107 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/decrepit/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/decrepit/ciphers/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/decrepit/ciphers/algorithms.py +145 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/decrepit/ciphers/modes.py +53 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/_asymmetric.py +19 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/_cipheralgorithm.py +60 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/_modes.py +105 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/_serialization.py +136 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/dh.py +253 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py +179 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/ec.py +369 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/ed25519.py +116 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/ed448.py +143 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/mldsa.py +505 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/mlkem.py +278 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/padding.py +141 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py +295 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/types.py +94 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/utils.py +28 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/x25519.py +134 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/x448.py +137 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/ciphers/__init__.py +27 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/ciphers/aead.py +23 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/ciphers/algorithms.py +138 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/ciphers/base.py +146 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/ciphers/modes.py +192 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/cmac.py +10 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/constant_time.py +14 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/hashes.py +357 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/hmac.py +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/hpke.py +27 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/kdf/__init__.py +32 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/kdf/argon2.py +17 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/kdf/concatkdf.py +16 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/kdf/hkdf.py +16 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/kdf/kbkdf.py +26 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/kdf/pbkdf2.py +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/kdf/scrypt.py +19 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/kdf/x963kdf.py +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/keywrap.py +25 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/padding.py +69 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/poly1305.py +11 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/serialization/__init__.py +85 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/serialization/base.py +16 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/serialization/pkcs12.py +176 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/serialization/pkcs7.py +412 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/serialization/ssh.py +1615 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/__init__.py +9 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/hotp.py +101 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/totp.py +56 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/utils.py +136 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/x509/__init__.py +270 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/x509/base.py +834 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/x509/certificate_transparency.py +35 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/x509/extensions.py +2533 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/x509/general_name.py +281 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/x509/name.py +489 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/x509/ocsp.py +379 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/x509/oid.py +37 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography/x509/verification.py +34 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography-50.0.2.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography-50.0.2.dist-info/METADATA +111 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography-50.0.2.dist-info/RECORD +199 -0
- package/python-runtime/python/lib/python3.12/site-packages/cryptography-50.0.2.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/dotenv/__init__.py +51 -0
- package/python-runtime/python/lib/python3.12/site-packages/dotenv/__main__.py +6 -0
- package/python-runtime/python/lib/python3.12/site-packages/dotenv/cli.py +246 -0
- package/python-runtime/python/lib/python3.12/site-packages/dotenv/ipython.py +50 -0
- package/python-runtime/python/lib/python3.12/site-packages/dotenv/main.py +487 -0
- package/python-runtime/python/lib/python3.12/site-packages/dotenv/parser.py +191 -0
- package/python-runtime/python/lib/python3.12/site-packages/dotenv/py.typed +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/dotenv/variables.py +86 -0
- package/python-runtime/python/lib/python3.12/site-packages/dotenv/version.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/__init__.py +62 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_abnf.py +132 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_connection.py +659 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_events.py +369 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_headers.py +282 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_readers.py +250 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_receivebuffer.py +153 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_state.py +365 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_util.py +135 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_version.py +16 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/_writers.py +145 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11/py.typed +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11-0.16.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11-0.16.0.dist-info/METADATA +202 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11-0.16.0.dist-info/RECORD +29 -0
- package/python-runtime/python/lib/python3.12/site-packages/h11-0.16.0.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/__init__.py +141 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_api.py +94 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_async/__init__.py +39 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_async/connection.py +222 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_async/connection_pool.py +420 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_async/http11.py +379 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_async/http2.py +592 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_async/http_proxy.py +367 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_async/interfaces.py +137 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_async/socks_proxy.py +341 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_backends/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_backends/anyio.py +146 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_backends/auto.py +52 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_backends/base.py +101 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_backends/mock.py +143 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_backends/sync.py +241 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_backends/trio.py +159 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_exceptions.py +81 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_models.py +516 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_ssl.py +9 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_sync/__init__.py +39 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_sync/connection.py +222 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py +420 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_sync/http11.py +379 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_sync/http2.py +592 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_sync/http_proxy.py +367 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_sync/interfaces.py +137 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_sync/socks_proxy.py +341 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_synchronization.py +318 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_trace.py +107 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/_utils.py +37 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore-1.0.9.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore-1.0.9.dist-info/METADATA +625 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore-1.0.9.dist-info/RECORD +68 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpcore-1.0.9.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/__init__.py +105 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/__version__.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_api.py +438 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_auth.py +348 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_client.py +2019 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_config.py +248 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_content.py +240 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_decoders.py +393 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_exceptions.py +379 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_main.py +506 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_models.py +1277 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_multipart.py +300 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_status_codes.py +162 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_transports/__init__.py +15 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_transports/asgi.py +187 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_transports/base.py +86 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_transports/default.py +406 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_transports/mock.py +43 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_transports/wsgi.py +149 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_types.py +114 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_urlparse.py +527 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_urls.py +641 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/_utils.py +242 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx-0.28.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx-0.28.1.dist-info/METADATA +203 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx-0.28.1.dist-info/RECORD +54 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx-0.28.1.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx-0.28.1.dist-info/entry_points.txt +2 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse/__init__.py +14 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse/_api.py +93 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse/_decoders.py +139 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse/_exceptions.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse/_models.py +54 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse-0.4.3.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse-0.4.3.dist-info/METADATA +351 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse-0.4.3.dist-info/RECORD +17 -0
- package/python-runtime/python/lib/python3.12/site-packages/httpx_sse-0.4.3.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/__init__.py +47 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/__main__.py +6 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/cli.py +132 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/codec.py +225 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/compat.py +43 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/core.py +863 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/idnadata.py +1933 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/intranges.py +55 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/package_data.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna/uts46data.py +17117 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna-3.20.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna-3.20.dist-info/METADATA +176 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna-3.20.dist-info/RECORD +28 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna-3.20.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/idna-3.20.dist-info/entry_points.txt +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/__init__.py +120 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/__main__.py +6 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/_format.py +546 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/_keywords.py +449 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/_legacy_keywords.py +449 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/_types.py +204 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/_typing.py +29 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/_utils.py +355 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/const_vs_enum.py +30 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/contains.py +28 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/import_benchmark.py +31 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/issue232/issue.json +2653 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/issue232.py +25 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/json_schema_test_suite.py +12 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/nested_schemas.py +56 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/subcomponents.py +42 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/unused_registry.py +35 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/useless_applicator_schemas.py +106 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/useless_keywords.py +32 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/benchmarks/validator_creation.py +14 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/cli.py +292 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/exceptions.py +490 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/protocols.py +230 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema/validators.py +1410 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema-4.26.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema-4.26.0.dist-info/METADATA +170 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema-4.26.0.dist-info/RECORD +82 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema-4.26.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema-4.26.0.dist-info/entry_points.txt +2 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/__init__.py +12 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/_core.py +38 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/metaschema.json +42 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/applicator +56 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/content +17 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/core +57 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/format +14 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data +37 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/validation +98 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/metaschema.json +58 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/applicator +48 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/content +17 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/core +51 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation +14 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion +14 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data +37 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated +15 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/validation +98 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft3/metaschema.json +172 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft4/metaschema.json +149 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft6/metaschema.json +153 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft7/metaschema.json +166 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications-2025.9.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications-2025.9.1.dist-info/METADATA +54 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications-2025.9.1.dist-info/RECORD +33 -0
- package/python-runtime/python/lib/python3.12/site-packages/jsonschema_specifications-2025.9.1.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/__init__.py +78 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/algorithms.py +1121 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/api_jwk.py +196 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/api_jws.py +485 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/api_jwt.py +595 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/exceptions.py +113 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/help.py +66 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/jwk_set_cache.py +47 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/jwks_client.py +333 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/types.py +69 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/utils.py +146 -0
- package/python-runtime/python/lib/python3.12/site-packages/jwt/warnings.py +11 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/__init__.py +135 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/cli/__init__.py +6 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/cli/claude.py +148 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/cli/cli.py +488 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/__main__.py +85 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/auth/__init__.py +21 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/auth/exceptions.py +10 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/auth/extensions/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/auth/extensions/client_credentials.py +567 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/auth/oauth2.py +682 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/auth/utils.py +395 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/experimental/__init__.py +9 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/experimental/task_handlers.py +290 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/experimental/tasks.py +224 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/session.py +640 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/session_group.py +447 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/sse.py +177 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/stdio/__init__.py +278 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/streamable_http.py +747 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/client/websocket.py +94 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/os/__init__.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/os/posix/__init__.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/os/posix/utilities.py +60 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/os/win32/__init__.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/os/win32/utilities.py +338 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/__main__.py +50 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/__init__.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/errors.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/handlers/__init__.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/handlers/authorize.py +224 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/handlers/metadata.py +29 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/handlers/register.py +136 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/handlers/revoke.py +91 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/handlers/token.py +241 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/json_response.py +10 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/middleware/__init__.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/middleware/auth_context.py +48 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/middleware/bearer_auth.py +173 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/middleware/client_auth.py +115 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/provider.py +314 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/routes.py +254 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/auth/settings.py +56 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/elicitation.py +190 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/experimental/__init__.py +12 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/experimental/request_context.py +285 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/experimental/session_features.py +226 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/experimental/task_context.py +614 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/experimental/task_result_handler.py +243 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/experimental/task_scope.py +75 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/experimental/task_support.py +128 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/__init__.py +11 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/exceptions.py +21 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/prompts/__init__.py +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/prompts/base.py +183 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/prompts/manager.py +60 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/resources/__init__.py +23 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/resources/base.py +50 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/resources/resource_manager.py +115 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/resources/templates.py +122 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/resources/types.py +203 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/server.py +1390 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/tools/__init__.py +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/tools/base.py +126 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/tools/tool_manager.py +93 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/utilities/__init__.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/utilities/context_injection.py +68 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/utilities/func_metadata.py +560 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/utilities/logging.py +43 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/fastmcp/utilities/types.py +101 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/lowlevel/__init__.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/lowlevel/experimental.py +342 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/lowlevel/func_inspection.py +54 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/lowlevel/helper_types.py +11 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/lowlevel/server.py +830 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/models.py +20 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/session.py +701 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/sse.py +299 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/stdio.py +88 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/streamable_http.py +1131 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/streamable_http_manager.py +425 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/transport_security.py +194 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/validation.py +104 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/server/websocket.py +89 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/_httpx_utils.py +219 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/auth.py +180 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/auth_utils.py +80 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/context.py +32 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/exceptions.py +71 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/__init__.py +7 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/tasks/__init__.py +12 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/tasks/capabilities.py +115 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/tasks/context.py +101 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/tasks/helpers.py +181 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/tasks/in_memory_task_store.py +219 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/tasks/message_queue.py +241 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/tasks/polling.py +45 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/tasks/resolver.py +60 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/experimental/tasks/store.py +156 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/memory.py +98 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/message.py +50 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/metadata_utils.py +45 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/progress.py +58 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/response_router.py +63 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/session.py +552 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/tool_name_validation.py +129 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/shared/version.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp/types.py +1999 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp-1.30.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp-1.30.0.dist-info/METADATA +239 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp-1.30.0.dist-info/RECORD +228 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp-1.30.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/mcp-1.30.0.dist-info/entry_points.txt +2 -0
- package/python-runtime/python/lib/python3.12/site-packages/multipart/__init__.py +38 -0
- package/python-runtime/python/lib/python3.12/site-packages/multipart/decoders.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/multipart/exceptions.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/multipart/multipart.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/pillow-13.0.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/pillow-13.0.0.dist-info/METADATA +182 -0
- package/python-runtime/python/lib/python3.12/site-packages/pillow-13.0.0.dist-info/RECORD +236 -0
- package/python-runtime/python/lib/python3.12/site-packages/pillow-13.0.0.dist-info/WHEEL +6 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser/__init__.py +98 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser/_ast_gen.py +385 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser/_c_ast.cfg +268 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser/ast_transforms.py +201 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser/c_ast.py +1670 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser/c_generator.py +866 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser/c_lexer.py +861 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser/c_parser.py +2759 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser-3.12.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser-3.12.dist-info/METADATA +286 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser-3.12.dist-info/RECORD +21 -0
- package/python-runtime/python/lib/python3.12/site-packages/pycparser-3.12.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/__init__.py +461 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_config.py +408 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_contextlib.py +84 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_core_metadata.py +97 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_core_utils.py +156 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_dataclasses.py +327 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_decorators.py +906 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_decorators_v1.py +174 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_discriminated_union.py +510 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_docs_extraction.py +128 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_fields.py +910 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_forward_ref.py +23 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_generate_schema.py +3053 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_generics.py +556 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_git.py +27 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_import_utils.py +20 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_known_annotated_metadata.py +412 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_mock_val_ser.py +241 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_model_construction.py +833 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_namespace_utils.py +300 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_repr.py +122 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_schema_gather.py +49 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_schema_generation_shared.py +126 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_serializers.py +59 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_signature.py +193 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_type_refs.py +128 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_typing_extra.py +506 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_utils.py +433 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_validate_call.py +141 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_internal/_validators.py +541 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/_migration.py +317 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/alias_generators.py +62 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/aliases.py +136 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/annotated_handlers.py +123 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/class_validators.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/color.py +605 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/config.py +1295 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/dataclasses.py +385 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/datetime_parse.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/decorator.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/deprecated/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/deprecated/class_validators.py +257 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/deprecated/config.py +72 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/deprecated/copy_internals.py +224 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/deprecated/decorator.py +286 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/deprecated/json.py +142 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/deprecated/parse.py +81 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/deprecated/tools.py +104 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/env_settings.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/error_wrappers.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/errors.py +185 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/experimental/__init__.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/experimental/arguments_schema.py +44 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/experimental/missing_sentinel.py +29 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/experimental/pipeline.py +684 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/fields.py +2065 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/functional_serializers.py +461 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/functional_validators.py +920 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/generics.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/json.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/json_schema.py +3281 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/main.py +1947 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/mypy.py +1469 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/networks.py +1417 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/parse.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/plugin/__init__.py +190 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/plugin/_loader.py +56 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/plugin/_schema_validator.py +152 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/root_model.py +189 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/schema.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/tools.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/type_adapter.py +780 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/types.py +3405 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/typing.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/utils.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/__init__.py +131 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/_hypothesis_plugin.py +391 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/annotated_types.py +72 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/class_validators.py +361 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/color.py +494 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/config.py +191 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/dataclasses.py +503 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/datetime_parse.py +248 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/decorator.py +264 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/env_settings.py +350 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/error_wrappers.py +161 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/errors.py +646 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/fields.py +1253 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/generics.py +400 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/json.py +112 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/main.py +1130 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/mypy.py +950 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/networks.py +747 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/parse.py +66 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/schema.py +1163 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/tools.py +92 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/types.py +1213 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/typing.py +627 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/utils.py +807 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/validators.py +768 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/v1/version.py +38 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/validate_call_decorator.py +121 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/validators.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/version.py +113 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic/warnings.py +130 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic-2.14.3.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic-2.14.3.dist-info/METADATA +1646 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic-2.14.3.dist-info/RECORD +219 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic-2.14.3.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core/__init__.py +194 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core/_pydantic_core/__init__.pyi +1114 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core/_pydantic_core/_schema_gather.pyi +34 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core/_pydantic_core.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core/core_schema.py +5093 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core-2.50.4.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core-2.50.4.dist-info/METADATA +172 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core-2.50.4.dist-info/RECORD +14 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_core-2.50.4.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/__init__.py +74 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/exceptions.py +10 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/main.py +1133 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/__init__.py +91 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/base.py +767 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/__init__.py +48 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/aws.py +158 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/azure.py +246 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/cli.py +1942 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/dotenv.py +226 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/env.py +423 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/gcp.py +365 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/json.py +61 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/nested_secrets.py +220 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/pyproject.py +64 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/secrets.py +146 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/toml.py +72 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/providers/yaml.py +147 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/types.py +109 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/sources/utils.py +515 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/utils.py +46 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings/version.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings-2.16.2.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings-2.16.2.dist-info/METADATA +72 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings-2.16.2.dist-info/RECORD +50 -0
- package/python-runtime/python/lib/python3.12/site-packages/pydantic_settings-2.16.2.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/pyjwt-2.15.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/pyjwt-2.15.1.dist-info/METADATA +94 -0
- package/python-runtime/python/lib/python3.12/site-packages/pyjwt-2.15.1.dist-info/RECORD +32 -0
- package/python-runtime/python/lib/python3.12/site-packages/pyjwt-2.15.1.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_dotenv-1.2.4.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_dotenv-1.2.4.dist-info/METADATA +835 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_dotenv-1.2.4.dist-info/RECORD +25 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_dotenv-1.2.4.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_dotenv-1.2.4.dist-info/entry_points.txt +2 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_multipart/__init__.py +35 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_multipart/decoders.py +185 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_multipart/exceptions.py +34 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_multipart/multipart.py +2005 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_multipart/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_multipart-0.0.33.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_multipart-0.0.33.dist-info/METADATA +179 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_multipart-0.0.33.dist-info/RECORD +22 -0
- package/python-runtime/python/lib/python3.12/site-packages/python_multipart-0.0.33.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing/__init__.py +7 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing/_attrs.py +31 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing/_attrs.pyi +21 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing/_core.py +739 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing/exceptions.py +165 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing/jsonschema.py +642 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing/retrieval.py +94 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing/typing.py +61 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing-0.37.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing-0.37.0.dist-info/METADATA +64 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing-0.37.0.dist-info/RECORD +33 -0
- package/python-runtime/python/lib/python3.12/site-packages/referencing-0.37.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/rpds/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/rpds/__init__.pyi +79 -0
- package/python-runtime/python/lib/python3.12/site-packages/rpds/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/rpds/rpds.cpython-312-darwin.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/rpds_py-2026.9.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/rpds_py-2026.9.1.dist-info/METADATA +99 -0
- package/python-runtime/python/lib/python3.12/site-packages/rpds_py-2026.9.1.dist-info/RECORD +11 -0
- package/python-runtime/python/lib/python3.12/site-packages/rpds_py-2026.9.1.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio/__init__.py +46 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio/_types.py +3 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio/compat.py +86 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio/exceptions.py +6 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio/socks4.py +253 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio/socks5.py +399 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio/utils.py +95 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio-1.0.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio-1.0.0.dist-info/METADATA +182 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio-1.0.0.dist-info/RECORD +20 -0
- package/python-runtime/python/lib/python3.12/site-packages/socksio-1.0.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/sse_starlette/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/sse_starlette/_utils.py +36 -0
- package/python-runtime/python/lib/python3.12/site-packages/sse_starlette/event.py +96 -0
- package/python-runtime/python/lib/python3.12/site-packages/sse_starlette/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/sse_starlette/sse.py +602 -0
- package/python-runtime/python/lib/python3.12/site-packages/sse_starlette-3.7.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/sse_starlette-3.7.0.dist-info/METADATA +493 -0
- package/python-runtime/python/lib/python3.12/site-packages/sse_starlette-3.7.0.dist-info/RECORD +16 -0
- package/python-runtime/python/lib/python3.12/site-packages/sse_starlette-3.7.0.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/__init__.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/_exception_handler.py +67 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/_utils.py +152 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/applications.py +124 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/authentication.py +157 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/background.py +36 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/concurrency.py +59 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/config.py +142 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/convertors.py +89 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/datastructures.py +717 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/endpoints.py +128 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/exceptions.py +43 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/formparsers.py +289 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/__init__.py +37 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/authentication.py +52 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/base.py +254 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/body_limit.py +132 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/cors.py +177 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/errors.py +259 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/exceptions.py +73 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/gzip.py +230 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/httpsredirect.py +22 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/opentelemetry.py +126 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/sessions.py +139 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/trustedhost.py +66 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/middleware/wsgi.py +157 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/requests.py +357 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/responses.py +616 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/routing.py +772 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/schemas.py +152 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/staticfiles.py +231 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/status.py +211 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/templating.py +156 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/testclient.py +624 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/types.py +26 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette/websockets.py +202 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette-1.10.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette-1.10.0.dist-info/METADATA +181 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette-1.10.0.dist-info/RECORD +78 -0
- package/python-runtime/python/lib/python3.12/site-packages/starlette-1.10.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness/__init__.py +49 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness/budget.py +70 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness/completion.py +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness/generated.py +250 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness/policy.py +35 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness/retry.py +21 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness/safety.py +170 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness/tracing.py +138 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness-0.9.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness-0.9.0.dist-info/METADATA +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness-0.9.0.dist-info/RECORD +23 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness-0.9.0.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_protocol/__init__.py +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_protocol/generated.py +250 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_protocol-0.9.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_protocol-0.9.0.dist-info/METADATA +12 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_protocol-0.9.0.dist-info/RECORD +11 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_protocol-0.9.0.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/__init__.py +529 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/antihallucination.py +644 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/approval.py +730 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/approval_policy.py +243 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/ask_user.py +324 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/branch.py +419 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/cache_control.py +254 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/calibration.py +318 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/compaction.py +737 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/compaction_policy.py +97 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/config.py +225 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/default.harness.json +32 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/default.harness.yaml +38 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/delegation_gate.py +100 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/errors.py +58 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/gateway_catalog.py +397 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/handoff.py +147 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/harness.py +922 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/harness_spec.py +339 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/history.py +962 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/hooks.py +541 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/__init__.py +204 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/anthropic_native.py +392 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/compat.py +316 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/errors.py +207 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/google_genai.py +454 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/openai_compat.py +769 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/openai_responses.py +554 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/parts.py +69 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/presets.py +259 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/llm/system_proxy.py +309 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/loop.py +1040 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/maintenance.py +238 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/mcp.py +673 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/mcp_server.py +319 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/model_catalog.py +7742 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/model_info.py +472 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/model_resolve.py +271 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/native_bridge.py +1034 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/observation_aging.py +196 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/orchestration.py +462 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/otel.py +384 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/plugins.py +487 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/pool.py +438 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/pricing.py +88 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/pseudo.py +713 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/recording.py +454 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/reminders.py +339 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/replay.py +222 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/resume.py +343 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/retry.py +163 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/sandboxed.py +201 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/skills.py +730 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/spill.py +127 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/storage/__init__.py +138 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/storage/in_memory.py +215 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/storage/sqlalchemy_store.py +472 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/storage/sqlite_store.py +497 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/storage/write_lease.py +173 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/subagent.py +564 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/todo.py +348 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/tokens.py +162 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/tool_presentation.py +132 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/tool_schema.py +124 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/tool_search.py +177 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/tools.py +457 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/tracing.py +285 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/transport/__init__.py +39 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/transport/fastapi_sse.py +116 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/transport/stdio_jsonrpc.py +431 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime/world_state.py +345 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime-0.9.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime-0.9.0.dist-info/METADATA +72 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime-0.9.0.dist-info/RECORD +147 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime-0.9.0.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime_native/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime_native/steerable_agent_runtime_native.abi3.so +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime_native-1.0.7.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime_native-1.0.7.dist-info/METADATA +7 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime_native-1.0.7.dist-info/RECORD +9 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime_native-1.0.7.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/__init__.py +28 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/__main__.py +119 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/_version.py +14 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/acp_adapter.py +890 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/acp_fs.py +64 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/acp_terminal.py +147 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/ag_ui.py +223 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/delivery.py +2933 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/display.py +308 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/egress_ask.py +183 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/file_edit.py +251 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/headless.py +760 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/host_spawn.py +137 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/host_tools.py +255 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/jpeg_ascii.py +314 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/landlock.py +353 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/landlock_run.py +35 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/loop_limits.py +85 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/multi_file_edit.py +109 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/png_ascii.py +294 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/ptc_js.py +986 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/ptc_js_worker.cjs +579 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/run_code.py +634 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/run_code_driver.py +229 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/sandbox.py +771 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/search_tools.py +173 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/shell_session.py +301 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/sidecar.py +3785 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/stream_chunks.py +115 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/todo_tools.py +49 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/tool_contract.json +352 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/tool_contract.py +62 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/web_tools.py +1375 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/workspace_fs.py +71 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar/workspace_tools.py +1472 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar-0.9.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar-0.9.0.dist-info/METADATA +58 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar-0.9.0.dist-info/RECORD +79 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar-0.9.0.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar-0.9.0.dist-info/entry_points.txt +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_extensions-4.16.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_extensions-4.16.0.dist-info/METADATA +73 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_extensions-4.16.0.dist-info/RECORD +7 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_extensions-4.16.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_extensions.py +4422 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_inspection/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_inspection/introspection.py +604 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_inspection/py.typed +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_inspection/typing_objects.py +620 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_inspection/typing_objects.pyi +421 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_inspection-0.4.5.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_inspection-0.4.5.dist-info/METADATA +49 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_inspection-0.4.5.dist-info/RECORD +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/typing_inspection-0.4.5.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/__init__.py +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/__main__.py +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/_ansi.py +29 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/_compat.py +91 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/_subprocess.py +84 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/_types.py +280 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/config.py +618 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/importer.py +34 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/lifespan/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/lifespan/off.py +17 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/lifespan/on.py +137 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/logging.py +117 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/loops/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/loops/asyncio.py +11 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/loops/auto.py +17 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/loops/uvloop.py +10 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/loops/zuvloop.py +10 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/main.py +656 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/middleware/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/middleware/asgi2.py +15 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/middleware/message_logger.py +87 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py +187 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/middleware/wsgi.py +199 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/http/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/http/auto.py +15 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/http/auto_zttp_impl.py +89 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/http/flow_control.py +54 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py +540 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py +581 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/http/zttp_h2_impl.py +559 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/http/zttp_impl.py +537 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/utils.py +62 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/websockets/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/websockets/auto.py +21 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py +390 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_sansio_impl.py +556 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/protocols/websockets/wsproto_impl.py +500 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/py.typed +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/server.py +356 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/supervisors/__init__.py +16 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/supervisors/basereload.py +124 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/supervisors/multiprocess.py +282 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/supervisors/statreload.py +52 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/supervisors/watchfilesreload.py +86 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn/workers.py +111 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn-0.54.0.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn-0.54.0.dist-info/METADATA +189 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn-0.54.0.dist-info/RECORD +98 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn-0.54.0.dist-info/WHEEL +4 -0
- package/python-runtime/python/lib/python3.12/site-packages/uvicorn-0.54.0.dist-info/entry_points.txt +2 -0
- package/python-runtime/python/lib/python3.12/site.py +693 -0
- package/python-runtime/python/lib/python3.12/smtplib.py +1109 -0
- package/python-runtime/python/lib/python3.12/sndhdr.py +271 -0
- package/python-runtime/python/lib/python3.12/socket.py +983 -0
- package/python-runtime/python/lib/python3.12/socketserver.py +863 -0
- package/python-runtime/python/lib/python3.12/sqlite3/__init__.py +70 -0
- package/python-runtime/python/lib/python3.12/sqlite3/__main__.py +127 -0
- package/python-runtime/python/lib/python3.12/sqlite3/dbapi2.py +108 -0
- package/python-runtime/python/lib/python3.12/sqlite3/dump.py +89 -0
- package/python-runtime/python/lib/python3.12/sre_compile.py +7 -0
- package/python-runtime/python/lib/python3.12/sre_constants.py +7 -0
- package/python-runtime/python/lib/python3.12/sre_parse.py +7 -0
- package/python-runtime/python/lib/python3.12/ssl.py +1488 -0
- package/python-runtime/python/lib/python3.12/stat.py +195 -0
- package/python-runtime/python/lib/python3.12/statistics.py +1454 -0
- package/python-runtime/python/lib/python3.12/string.py +309 -0
- package/python-runtime/python/lib/python3.12/stringprep.py +272 -0
- package/python-runtime/python/lib/python3.12/struct.py +15 -0
- package/python-runtime/python/lib/python3.12/subprocess.py +2216 -0
- package/python-runtime/python/lib/python3.12/sunau.py +533 -0
- package/python-runtime/python/lib/python3.12/symtable.py +362 -0
- package/python-runtime/python/lib/python3.12/sysconfig.py +894 -0
- package/python-runtime/python/lib/python3.12/tabnanny.py +340 -0
- package/python-runtime/python/lib/python3.12/tarfile.py +3031 -0
- package/python-runtime/python/lib/python3.12/telnetlib.py +680 -0
- package/python-runtime/python/lib/python3.12/tempfile.py +956 -0
- package/python-runtime/python/lib/python3.12/textwrap.py +491 -0
- package/python-runtime/python/lib/python3.12/this.py +28 -0
- package/python-runtime/python/lib/python3.12/threading.py +1708 -0
- package/python-runtime/python/lib/python3.12/timeit.py +381 -0
- package/python-runtime/python/lib/python3.12/token.py +143 -0
- package/python-runtime/python/lib/python3.12/tokenize.py +594 -0
- package/python-runtime/python/lib/python3.12/tomllib/__init__.py +10 -0
- package/python-runtime/python/lib/python3.12/tomllib/_parser.py +691 -0
- package/python-runtime/python/lib/python3.12/tomllib/_re.py +107 -0
- package/python-runtime/python/lib/python3.12/tomllib/_types.py +10 -0
- package/python-runtime/python/lib/python3.12/trace.py +748 -0
- package/python-runtime/python/lib/python3.12/traceback.py +1187 -0
- package/python-runtime/python/lib/python3.12/tracemalloc.py +560 -0
- package/python-runtime/python/lib/python3.12/tty.py +73 -0
- package/python-runtime/python/lib/python3.12/turtle.py +4207 -0
- package/python-runtime/python/lib/python3.12/types.py +333 -0
- package/python-runtime/python/lib/python3.12/typing.py +3494 -0
- package/python-runtime/python/lib/python3.12/unittest/__init__.py +85 -0
- package/python-runtime/python/lib/python3.12/unittest/__main__.py +18 -0
- package/python-runtime/python/lib/python3.12/unittest/_log.py +86 -0
- package/python-runtime/python/lib/python3.12/unittest/async_case.py +143 -0
- package/python-runtime/python/lib/python3.12/unittest/case.py +1456 -0
- package/python-runtime/python/lib/python3.12/unittest/loader.py +497 -0
- package/python-runtime/python/lib/python3.12/unittest/main.py +291 -0
- package/python-runtime/python/lib/python3.12/unittest/mock.py +3054 -0
- package/python-runtime/python/lib/python3.12/unittest/result.py +256 -0
- package/python-runtime/python/lib/python3.12/unittest/runner.py +292 -0
- package/python-runtime/python/lib/python3.12/unittest/signals.py +71 -0
- package/python-runtime/python/lib/python3.12/unittest/suite.py +379 -0
- package/python-runtime/python/lib/python3.12/unittest/util.py +170 -0
- package/python-runtime/python/lib/python3.12/urllib/__init__.py +0 -0
- package/python-runtime/python/lib/python3.12/urllib/error.py +74 -0
- package/python-runtime/python/lib/python3.12/urllib/parse.py +1262 -0
- package/python-runtime/python/lib/python3.12/urllib/request.py +2816 -0
- package/python-runtime/python/lib/python3.12/urllib/response.py +84 -0
- package/python-runtime/python/lib/python3.12/urllib/robotparser.py +275 -0
- package/python-runtime/python/lib/python3.12/uu.py +216 -0
- package/python-runtime/python/lib/python3.12/uuid.py +793 -0
- package/python-runtime/python/lib/python3.12/warnings.py +598 -0
- package/python-runtime/python/lib/python3.12/wave.py +653 -0
- package/python-runtime/python/lib/python3.12/weakref.py +674 -0
- package/python-runtime/python/lib/python3.12/webbrowser.py +689 -0
- package/python-runtime/python/lib/python3.12/xdrlib.py +242 -0
- package/python-runtime/python/lib/python3.12/xml/__init__.py +20 -0
- package/python-runtime/python/lib/python3.12/xml/dom/NodeFilter.py +27 -0
- package/python-runtime/python/lib/python3.12/xml/dom/__init__.py +140 -0
- package/python-runtime/python/lib/python3.12/xml/dom/domreg.py +99 -0
- package/python-runtime/python/lib/python3.12/xml/dom/expatbuilder.py +962 -0
- package/python-runtime/python/lib/python3.12/xml/dom/minicompat.py +109 -0
- package/python-runtime/python/lib/python3.12/xml/dom/minidom.py +2008 -0
- package/python-runtime/python/lib/python3.12/xml/dom/pulldom.py +336 -0
- package/python-runtime/python/lib/python3.12/xml/dom/xmlbuilder.py +389 -0
- package/python-runtime/python/lib/python3.12/xml/etree/ElementInclude.py +186 -0
- package/python-runtime/python/lib/python3.12/xml/etree/ElementPath.py +423 -0
- package/python-runtime/python/lib/python3.12/xml/etree/ElementTree.py +2085 -0
- package/python-runtime/python/lib/python3.12/xml/etree/__init__.py +33 -0
- package/python-runtime/python/lib/python3.12/xml/etree/cElementTree.py +3 -0
- package/python-runtime/python/lib/python3.12/xml/parsers/__init__.py +8 -0
- package/python-runtime/python/lib/python3.12/xml/parsers/expat.py +8 -0
- package/python-runtime/python/lib/python3.12/xml/sax/__init__.py +94 -0
- package/python-runtime/python/lib/python3.12/xml/sax/_exceptions.py +127 -0
- package/python-runtime/python/lib/python3.12/xml/sax/expatreader.py +454 -0
- package/python-runtime/python/lib/python3.12/xml/sax/handler.py +387 -0
- package/python-runtime/python/lib/python3.12/xml/sax/saxutils.py +369 -0
- package/python-runtime/python/lib/python3.12/xml/sax/xmlreader.py +378 -0
- package/python-runtime/python/lib/python3.12/zipapp.py +206 -0
- package/python-runtime/python/lib/python3.12/zipfile/__init__.py +2340 -0
- package/python-runtime/python/lib/python3.12/zipfile/__main__.py +4 -0
- package/python-runtime/python/lib/python3.12/zipfile/_path/__init__.py +412 -0
- package/python-runtime/python/lib/python3.12/zipfile/_path/glob.py +53 -0
- package/python-runtime/python/lib/python3.12/zipimport.py +712 -0
- package/python-runtime/python/lib/python3.12/zoneinfo/__init__.py +31 -0
- package/python-runtime/python/lib/python3.12/zoneinfo/_common.py +164 -0
- package/python-runtime/python/lib/python3.12/zoneinfo/_tzpath.py +181 -0
- package/python-runtime/python/lib/python3.12/zoneinfo/_zoneinfo.py +772 -0
- package/python-runtime/python/lib/tcl9/9.0/http-2.10.1.tm +5475 -0
- package/python-runtime/python/lib/tcl9/9.0/msgcat-1.7.1.tm +1349 -0
- package/python-runtime/python/lib/tcl9/9.0/platform/shell-1.1.4.tm +241 -0
- package/python-runtime/python/lib/tcl9/9.0/platform-1.1.0.tm +443 -0
- package/python-runtime/python/lib/tcl9/9.0/tcltest-2.5.10.tm +3588 -0
- package/python-runtime/python/lib/tcl9.0/auto.tcl +711 -0
- package/python-runtime/python/lib/tcl9.0/clock.tcl +2110 -0
- package/python-runtime/python/lib/tcl9.0/cookiejar0.2/cookiejar.tcl +746 -0
- package/python-runtime/python/lib/tcl9.0/cookiejar0.2/idna.tcl +292 -0
- package/python-runtime/python/lib/tcl9.0/cookiejar0.2/pkgIndex.tcl +3 -0
- package/python-runtime/python/lib/tcl9.0/cookiejar0.2/public_suffix_list.dat.gz +0 -0
- package/python-runtime/python/lib/tcl9.0/encoding/ascii.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/big5.enc +1516 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cns11643.enc +1584 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp1250.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp1251.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp1252.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp1253.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp1254.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp1255.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp1256.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp1257.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp1258.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp165.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp437.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp737.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp775.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp850.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp852.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp855.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp857.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp860.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp861.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp862.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp863.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp864.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp865.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp866.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp869.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp874.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp932.enc +801 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp936.enc +2162 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp949.enc +2128 -0
- package/python-runtime/python/lib/tcl9.0/encoding/cp950.enc +1499 -0
- package/python-runtime/python/lib/tcl9.0/encoding/dingbats.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/ebcdic.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/euc-cn.enc +1397 -0
- package/python-runtime/python/lib/tcl9.0/encoding/euc-jp.enc +1353 -0
- package/python-runtime/python/lib/tcl9.0/encoding/euc-kr.enc +1533 -0
- package/python-runtime/python/lib/tcl9.0/encoding/gb12345.enc +1414 -0
- package/python-runtime/python/lib/tcl9.0/encoding/gb1988.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/gb2312-raw.enc +1380 -0
- package/python-runtime/python/lib/tcl9.0/encoding/gb2312.enc +1397 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso2022-jp.enc +12 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso2022-kr.enc +7 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso2022.enc +14 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-1.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-10.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-11.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-13.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-14.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-15.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-16.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-2.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-3.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-4.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-5.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-6.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-7.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-8.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/iso8859-9.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/jis0201.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/jis0208.enc +1319 -0
- package/python-runtime/python/lib/tcl9.0/encoding/jis0212.enc +1159 -0
- package/python-runtime/python/lib/tcl9.0/encoding/koi8-r.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/koi8-ru.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/koi8-t.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/koi8-u.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/ksc5601.enc +1516 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macCentEuro.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macCroatian.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macCyrillic.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macDingbats.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macGreek.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macIceland.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macJapan.enc +785 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macRoman.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macRomania.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macThai.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macTurkish.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/macUkraine.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/shiftjis.enc +690 -0
- package/python-runtime/python/lib/tcl9.0/encoding/symbol.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/encoding/tis-620.enc +20 -0
- package/python-runtime/python/lib/tcl9.0/foreachline.tcl +25 -0
- package/python-runtime/python/lib/tcl9.0/history.tcl +335 -0
- package/python-runtime/python/lib/tcl9.0/icu.tcl +145 -0
- package/python-runtime/python/lib/tcl9.0/init.tcl +773 -0
- package/python-runtime/python/lib/tcl9.0/install.tcl +275 -0
- package/python-runtime/python/lib/tcl9.0/opt0.4/optparse.tcl +1069 -0
- package/python-runtime/python/lib/tcl9.0/opt0.4/pkgIndex.tcl +12 -0
- package/python-runtime/python/lib/tcl9.0/package.tcl +767 -0
- package/python-runtime/python/lib/tcl9.0/parray.tcl +28 -0
- package/python-runtime/python/lib/tcl9.0/readfile.tcl +23 -0
- package/python-runtime/python/lib/tcl9.0/safe.tcl +1461 -0
- package/python-runtime/python/lib/tcl9.0/tclAppInit.c +183 -0
- package/python-runtime/python/lib/tcl9.0/tclIndex +112 -0
- package/python-runtime/python/lib/tcl9.0/tm.tcl +378 -0
- package/python-runtime/python/lib/tcl9.0/word.tcl +155 -0
- package/python-runtime/python/lib/tcl9.0/writefile.tcl +37 -0
- package/python-runtime/python/lib/thread3.0.4/libtcl9thread3.0.4.dylib +0 -0
- package/python-runtime/python/lib/thread3.0.4/libthread3.0.4.dylib +0 -0
- package/python-runtime/python/lib/thread3.0.4/pkgIndex.tcl +52 -0
- package/python-runtime/python/lib/thread3.0.4/ttrace.tcl +943 -0
- package/python-runtime/python/lib/tk9.0/bgerror.tcl +282 -0
- package/python-runtime/python/lib/tk9.0/button.tcl +782 -0
- package/python-runtime/python/lib/tk9.0/choosedir.tcl +310 -0
- package/python-runtime/python/lib/tk9.0/clrpick.tcl +696 -0
- package/python-runtime/python/lib/tk9.0/comdlg.tcl +322 -0
- package/python-runtime/python/lib/tk9.0/console.tcl +1148 -0
- package/python-runtime/python/lib/tk9.0/dialog.tcl +175 -0
- package/python-runtime/python/lib/tk9.0/entry.tcl +720 -0
- package/python-runtime/python/lib/tk9.0/focus.tcl +178 -0
- package/python-runtime/python/lib/tk9.0/fontchooser.tcl +512 -0
- package/python-runtime/python/lib/tk9.0/iconbadges.tcl +253 -0
- package/python-runtime/python/lib/tk9.0/iconlist.tcl +705 -0
- package/python-runtime/python/lib/tk9.0/icons.tcl +54 -0
- package/python-runtime/python/lib/tk9.0/images/README +7 -0
- package/python-runtime/python/lib/tk9.0/images/logo.eps +2091 -0
- package/python-runtime/python/lib/tk9.0/images/logo100.gif +0 -0
- package/python-runtime/python/lib/tk9.0/images/logo64.gif +0 -0
- package/python-runtime/python/lib/tk9.0/images/logoLarge.gif +0 -0
- package/python-runtime/python/lib/tk9.0/images/logoMed.gif +0 -0
- package/python-runtime/python/lib/tk9.0/images/pwrdLogo.eps +1897 -0
- package/python-runtime/python/lib/tk9.0/images/pwrdLogo100.gif +0 -0
- package/python-runtime/python/lib/tk9.0/images/pwrdLogo150.gif +0 -0
- package/python-runtime/python/lib/tk9.0/images/pwrdLogo175.gif +0 -0
- package/python-runtime/python/lib/tk9.0/images/pwrdLogo200.gif +0 -0
- package/python-runtime/python/lib/tk9.0/images/pwrdLogo75.gif +0 -0
- package/python-runtime/python/lib/tk9.0/images/tai-ku.gif +0 -0
- package/python-runtime/python/lib/tk9.0/listbox.tcl +522 -0
- package/python-runtime/python/lib/tk9.0/megawidget.tcl +297 -0
- package/python-runtime/python/lib/tk9.0/menu.tcl +1376 -0
- package/python-runtime/python/lib/tk9.0/mkpsenc.tcl +1488 -0
- package/python-runtime/python/lib/tk9.0/msgbox.tcl +454 -0
- package/python-runtime/python/lib/tk9.0/optMenu.tcl +43 -0
- package/python-runtime/python/lib/tk9.0/palette.tcl +283 -0
- package/python-runtime/python/lib/tk9.0/panedwindow.tcl +194 -0
- package/python-runtime/python/lib/tk9.0/pkgIndex.tcl +3 -0
- package/python-runtime/python/lib/tk9.0/print.tcl +1460 -0
- package/python-runtime/python/lib/tk9.0/safetk.tcl +262 -0
- package/python-runtime/python/lib/tk9.0/scale.tcl +299 -0
- package/python-runtime/python/lib/tk9.0/scaling.tcl +232 -0
- package/python-runtime/python/lib/tk9.0/scrlbar.tcl +500 -0
- package/python-runtime/python/lib/tk9.0/spinbox.tcl +580 -0
- package/python-runtime/python/lib/tk9.0/systray.tcl +483 -0
- package/python-runtime/python/lib/tk9.0/tclIndex +252 -0
- package/python-runtime/python/lib/tk9.0/tearoff.tcl +155 -0
- package/python-runtime/python/lib/tk9.0/text.tcl +1295 -0
- package/python-runtime/python/lib/tk9.0/tk.tcl +853 -0
- package/python-runtime/python/lib/tk9.0/tkAppInit.c +200 -0
- package/python-runtime/python/lib/tk9.0/tkfbox.tcl +1251 -0
- package/python-runtime/python/lib/tk9.0/ttk/altTheme.tcl +153 -0
- package/python-runtime/python/lib/tk9.0/ttk/aquaTheme.tcl +178 -0
- package/python-runtime/python/lib/tk9.0/ttk/button.tcl +83 -0
- package/python-runtime/python/lib/tk9.0/ttk/clamTheme.tcl +196 -0
- package/python-runtime/python/lib/tk9.0/ttk/classicTheme.tcl +145 -0
- package/python-runtime/python/lib/tk9.0/ttk/combobox.tcl +555 -0
- package/python-runtime/python/lib/tk9.0/ttk/cursors.tcl +205 -0
- package/python-runtime/python/lib/tk9.0/ttk/defaults.tcl +231 -0
- package/python-runtime/python/lib/tk9.0/ttk/entry.tcl +678 -0
- package/python-runtime/python/lib/tk9.0/ttk/fonts.tcl +152 -0
- package/python-runtime/python/lib/tk9.0/ttk/menubutton.tcl +237 -0
- package/python-runtime/python/lib/tk9.0/ttk/notebook.tcl +255 -0
- package/python-runtime/python/lib/tk9.0/ttk/panedwindow.tcl +89 -0
- package/python-runtime/python/lib/tk9.0/ttk/progress.tcl +55 -0
- package/python-runtime/python/lib/tk9.0/ttk/scale.tcl +94 -0
- package/python-runtime/python/lib/tk9.0/ttk/scrollbar.tcl +119 -0
- package/python-runtime/python/lib/tk9.0/ttk/sizegrip.tcl +102 -0
- package/python-runtime/python/lib/tk9.0/ttk/spinbox.tcl +204 -0
- package/python-runtime/python/lib/tk9.0/ttk/treeview.tcl +464 -0
- package/python-runtime/python/lib/tk9.0/ttk/ttk.tcl +223 -0
- package/python-runtime/python/lib/tk9.0/ttk/utils.tcl +317 -0
- package/python-runtime/python/lib/tk9.0/ttk/vistaTheme.tcl +259 -0
- package/python-runtime/python/lib/tk9.0/ttk/winTheme.tcl +119 -0
- package/python-runtime/python/lib/tk9.0/ttk/xpTheme.tcl +95 -0
- package/python-runtime/python/lib/tk9.0/xmfbox.tcl +982 -0
- package/python-runtime/python/share/man/man1/python3.1 +630 -0
- package/python-runtime/python/share/man/man1/python3.12.1 +630 -0
- package/runtime.json +8768 -0
- package/README.md +0 -3
|
@@ -0,0 +1,2024 @@
|
|
|
1
|
+
"""Base implementation of event loop.
|
|
2
|
+
|
|
3
|
+
The event loop can be broken up into a multiplexer (the part
|
|
4
|
+
responsible for notifying us of I/O events) and the event loop proper,
|
|
5
|
+
which wraps a multiplexer with functionality for scheduling callbacks,
|
|
6
|
+
immediately or at a given time in the future.
|
|
7
|
+
|
|
8
|
+
Whenever a public API takes a callback, subsequent positional
|
|
9
|
+
arguments will be passed to the callback if/when it is called. This
|
|
10
|
+
avoids the proliferation of trivial lambdas implementing closures.
|
|
11
|
+
Keyword arguments for the callback are not supported; this is a
|
|
12
|
+
conscious design decision, leaving the door open for keyword arguments
|
|
13
|
+
to modify the meaning of the API call itself.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
import collections
|
|
17
|
+
import collections.abc
|
|
18
|
+
import concurrent.futures
|
|
19
|
+
import errno
|
|
20
|
+
import heapq
|
|
21
|
+
import itertools
|
|
22
|
+
import os
|
|
23
|
+
import socket
|
|
24
|
+
import stat
|
|
25
|
+
import subprocess
|
|
26
|
+
import threading
|
|
27
|
+
import time
|
|
28
|
+
import traceback
|
|
29
|
+
import sys
|
|
30
|
+
import warnings
|
|
31
|
+
import weakref
|
|
32
|
+
|
|
33
|
+
try:
|
|
34
|
+
import ssl
|
|
35
|
+
except ImportError: # pragma: no cover
|
|
36
|
+
ssl = None
|
|
37
|
+
|
|
38
|
+
from . import constants
|
|
39
|
+
from . import coroutines
|
|
40
|
+
from . import events
|
|
41
|
+
from . import exceptions
|
|
42
|
+
from . import futures
|
|
43
|
+
from . import protocols
|
|
44
|
+
from . import sslproto
|
|
45
|
+
from . import staggered
|
|
46
|
+
from . import tasks
|
|
47
|
+
from . import timeouts
|
|
48
|
+
from . import transports
|
|
49
|
+
from . import trsock
|
|
50
|
+
from .log import logger
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
__all__ = 'BaseEventLoop','Server',
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# Minimum number of _scheduled timer handles before cleanup of
|
|
57
|
+
# cancelled handles is performed.
|
|
58
|
+
_MIN_SCHEDULED_TIMER_HANDLES = 100
|
|
59
|
+
|
|
60
|
+
# Minimum fraction of _scheduled timer handles that are cancelled
|
|
61
|
+
# before cleanup of cancelled handles is performed.
|
|
62
|
+
_MIN_CANCELLED_TIMER_HANDLES_FRACTION = 0.5
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
_HAS_IPv6 = hasattr(socket, 'AF_INET6')
|
|
66
|
+
|
|
67
|
+
# Maximum timeout passed to select to avoid OS limitations
|
|
68
|
+
MAXIMUM_SELECT_TIMEOUT = 24 * 3600
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _format_handle(handle):
|
|
72
|
+
cb = handle._callback
|
|
73
|
+
if isinstance(getattr(cb, '__self__', None), tasks.Task):
|
|
74
|
+
# format the task
|
|
75
|
+
return repr(cb.__self__)
|
|
76
|
+
else:
|
|
77
|
+
return str(handle)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def _format_pipe(fd):
|
|
81
|
+
if fd == subprocess.PIPE:
|
|
82
|
+
return '<pipe>'
|
|
83
|
+
elif fd == subprocess.STDOUT:
|
|
84
|
+
return '<stdout>'
|
|
85
|
+
else:
|
|
86
|
+
return repr(fd)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def _set_reuseport(sock):
|
|
90
|
+
if not hasattr(socket, 'SO_REUSEPORT'):
|
|
91
|
+
raise ValueError('reuse_port not supported by socket module')
|
|
92
|
+
else:
|
|
93
|
+
try:
|
|
94
|
+
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
|
|
95
|
+
except OSError:
|
|
96
|
+
raise ValueError('reuse_port not supported by socket module, '
|
|
97
|
+
'SO_REUSEPORT defined but not implemented.')
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def _ipaddr_info(host, port, family, type, proto, flowinfo=0, scopeid=0):
|
|
101
|
+
# Try to skip getaddrinfo if "host" is already an IP. Users might have
|
|
102
|
+
# handled name resolution in their own code and pass in resolved IPs.
|
|
103
|
+
if not hasattr(socket, 'inet_pton'):
|
|
104
|
+
return
|
|
105
|
+
|
|
106
|
+
if proto not in {0, socket.IPPROTO_TCP, socket.IPPROTO_UDP} or \
|
|
107
|
+
host is None:
|
|
108
|
+
return None
|
|
109
|
+
|
|
110
|
+
if type == socket.SOCK_STREAM:
|
|
111
|
+
proto = socket.IPPROTO_TCP
|
|
112
|
+
elif type == socket.SOCK_DGRAM:
|
|
113
|
+
proto = socket.IPPROTO_UDP
|
|
114
|
+
else:
|
|
115
|
+
return None
|
|
116
|
+
|
|
117
|
+
if port is None:
|
|
118
|
+
port = 0
|
|
119
|
+
elif isinstance(port, bytes) and port == b'':
|
|
120
|
+
port = 0
|
|
121
|
+
elif isinstance(port, str) and port == '':
|
|
122
|
+
port = 0
|
|
123
|
+
else:
|
|
124
|
+
# If port's a service name like "http", don't skip getaddrinfo.
|
|
125
|
+
try:
|
|
126
|
+
port = int(port)
|
|
127
|
+
except (TypeError, ValueError):
|
|
128
|
+
return None
|
|
129
|
+
|
|
130
|
+
if family == socket.AF_UNSPEC:
|
|
131
|
+
afs = [socket.AF_INET]
|
|
132
|
+
if _HAS_IPv6:
|
|
133
|
+
afs.append(socket.AF_INET6)
|
|
134
|
+
else:
|
|
135
|
+
afs = [family]
|
|
136
|
+
|
|
137
|
+
if isinstance(host, bytes):
|
|
138
|
+
host = host.decode('idna')
|
|
139
|
+
if '%' in host:
|
|
140
|
+
# Linux's inet_pton doesn't accept an IPv6 zone index after host,
|
|
141
|
+
# like '::1%lo0'.
|
|
142
|
+
return None
|
|
143
|
+
|
|
144
|
+
for af in afs:
|
|
145
|
+
try:
|
|
146
|
+
socket.inet_pton(af, host)
|
|
147
|
+
# The host has already been resolved.
|
|
148
|
+
if _HAS_IPv6 and af == socket.AF_INET6:
|
|
149
|
+
return af, type, proto, '', (host, port, flowinfo, scopeid)
|
|
150
|
+
else:
|
|
151
|
+
return af, type, proto, '', (host, port)
|
|
152
|
+
except OSError:
|
|
153
|
+
pass
|
|
154
|
+
|
|
155
|
+
# "host" is not an IP address.
|
|
156
|
+
return None
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def _interleave_addrinfos(addrinfos, first_address_family_count=1):
|
|
160
|
+
"""Interleave list of addrinfo tuples by family."""
|
|
161
|
+
# Group addresses by family
|
|
162
|
+
addrinfos_by_family = collections.OrderedDict()
|
|
163
|
+
for addr in addrinfos:
|
|
164
|
+
family = addr[0]
|
|
165
|
+
if family not in addrinfos_by_family:
|
|
166
|
+
addrinfos_by_family[family] = []
|
|
167
|
+
addrinfos_by_family[family].append(addr)
|
|
168
|
+
addrinfos_lists = list(addrinfos_by_family.values())
|
|
169
|
+
|
|
170
|
+
reordered = []
|
|
171
|
+
if first_address_family_count > 1:
|
|
172
|
+
reordered.extend(addrinfos_lists[0][:first_address_family_count - 1])
|
|
173
|
+
del addrinfos_lists[0][:first_address_family_count - 1]
|
|
174
|
+
reordered.extend(
|
|
175
|
+
a for a in itertools.chain.from_iterable(
|
|
176
|
+
itertools.zip_longest(*addrinfos_lists)
|
|
177
|
+
) if a is not None)
|
|
178
|
+
return reordered
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
def _run_until_complete_cb(fut):
|
|
182
|
+
if not fut.cancelled():
|
|
183
|
+
exc = fut.exception()
|
|
184
|
+
if isinstance(exc, (SystemExit, KeyboardInterrupt)):
|
|
185
|
+
# Issue #22429: run_forever() already finished, no need to
|
|
186
|
+
# stop it.
|
|
187
|
+
return
|
|
188
|
+
futures._get_loop(fut).stop()
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
if hasattr(socket, 'TCP_NODELAY'):
|
|
192
|
+
def _set_nodelay(sock):
|
|
193
|
+
if (sock.family in {socket.AF_INET, socket.AF_INET6} and
|
|
194
|
+
sock.type == socket.SOCK_STREAM and
|
|
195
|
+
sock.proto == socket.IPPROTO_TCP):
|
|
196
|
+
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
|
197
|
+
else:
|
|
198
|
+
def _set_nodelay(sock):
|
|
199
|
+
pass
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
def _check_ssl_socket(sock):
|
|
203
|
+
if ssl is not None and isinstance(sock, ssl.SSLSocket):
|
|
204
|
+
raise TypeError("Socket cannot be of type SSLSocket")
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
class _SendfileFallbackProtocol(protocols.Protocol):
|
|
208
|
+
def __init__(self, transp):
|
|
209
|
+
if not isinstance(transp, transports._FlowControlMixin):
|
|
210
|
+
raise TypeError("transport should be _FlowControlMixin instance")
|
|
211
|
+
self._transport = transp
|
|
212
|
+
self._proto = transp.get_protocol()
|
|
213
|
+
self._should_resume_reading = transp.is_reading()
|
|
214
|
+
self._should_resume_writing = transp._protocol_paused
|
|
215
|
+
transp.pause_reading()
|
|
216
|
+
transp.set_protocol(self)
|
|
217
|
+
if self._should_resume_writing:
|
|
218
|
+
self._write_ready_fut = self._transport._loop.create_future()
|
|
219
|
+
else:
|
|
220
|
+
self._write_ready_fut = None
|
|
221
|
+
|
|
222
|
+
async def drain(self):
|
|
223
|
+
if self._transport.is_closing():
|
|
224
|
+
raise ConnectionError("Connection closed by peer")
|
|
225
|
+
fut = self._write_ready_fut
|
|
226
|
+
if fut is None:
|
|
227
|
+
return
|
|
228
|
+
await fut
|
|
229
|
+
|
|
230
|
+
def connection_made(self, transport):
|
|
231
|
+
raise RuntimeError("Invalid state: "
|
|
232
|
+
"connection should have been established already.")
|
|
233
|
+
|
|
234
|
+
def connection_lost(self, exc):
|
|
235
|
+
if self._write_ready_fut is not None:
|
|
236
|
+
# Never happens if peer disconnects after sending the whole content
|
|
237
|
+
# Thus disconnection is always an exception from user perspective
|
|
238
|
+
if exc is None:
|
|
239
|
+
self._write_ready_fut.set_exception(
|
|
240
|
+
ConnectionError("Connection is closed by peer"))
|
|
241
|
+
else:
|
|
242
|
+
self._write_ready_fut.set_exception(exc)
|
|
243
|
+
self._proto.connection_lost(exc)
|
|
244
|
+
|
|
245
|
+
def pause_writing(self):
|
|
246
|
+
if self._write_ready_fut is not None:
|
|
247
|
+
return
|
|
248
|
+
self._write_ready_fut = self._transport._loop.create_future()
|
|
249
|
+
|
|
250
|
+
def resume_writing(self):
|
|
251
|
+
if self._write_ready_fut is None:
|
|
252
|
+
return
|
|
253
|
+
self._write_ready_fut.set_result(False)
|
|
254
|
+
self._write_ready_fut = None
|
|
255
|
+
|
|
256
|
+
def data_received(self, data):
|
|
257
|
+
raise RuntimeError("Invalid state: reading should be paused")
|
|
258
|
+
|
|
259
|
+
def eof_received(self):
|
|
260
|
+
raise RuntimeError("Invalid state: reading should be paused")
|
|
261
|
+
|
|
262
|
+
async def restore(self):
|
|
263
|
+
self._transport.set_protocol(self._proto)
|
|
264
|
+
if self._should_resume_reading:
|
|
265
|
+
self._transport.resume_reading()
|
|
266
|
+
if self._write_ready_fut is not None:
|
|
267
|
+
# Cancel the future.
|
|
268
|
+
# Basically it has no effect because protocol is switched back,
|
|
269
|
+
# no code should wait for it anymore.
|
|
270
|
+
self._write_ready_fut.cancel()
|
|
271
|
+
if self._should_resume_writing:
|
|
272
|
+
self._proto.resume_writing()
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
class Server(events.AbstractServer):
|
|
276
|
+
|
|
277
|
+
def __init__(self, loop, sockets, protocol_factory, ssl_context, backlog,
|
|
278
|
+
ssl_handshake_timeout, ssl_shutdown_timeout=None):
|
|
279
|
+
self._loop = loop
|
|
280
|
+
self._sockets = sockets
|
|
281
|
+
self._active_count = 0
|
|
282
|
+
self._waiters = []
|
|
283
|
+
self._protocol_factory = protocol_factory
|
|
284
|
+
self._backlog = backlog
|
|
285
|
+
self._ssl_context = ssl_context
|
|
286
|
+
self._ssl_handshake_timeout = ssl_handshake_timeout
|
|
287
|
+
self._ssl_shutdown_timeout = ssl_shutdown_timeout
|
|
288
|
+
self._serving = False
|
|
289
|
+
self._serving_forever_fut = None
|
|
290
|
+
|
|
291
|
+
def __repr__(self):
|
|
292
|
+
return f'<{self.__class__.__name__} sockets={self.sockets!r}>'
|
|
293
|
+
|
|
294
|
+
def _attach(self):
|
|
295
|
+
assert self._sockets is not None
|
|
296
|
+
self._active_count += 1
|
|
297
|
+
|
|
298
|
+
def _detach(self):
|
|
299
|
+
assert self._active_count > 0
|
|
300
|
+
self._active_count -= 1
|
|
301
|
+
if self._active_count == 0 and self._sockets is None:
|
|
302
|
+
self._wakeup()
|
|
303
|
+
|
|
304
|
+
def _wakeup(self):
|
|
305
|
+
waiters = self._waiters
|
|
306
|
+
self._waiters = None
|
|
307
|
+
for waiter in waiters:
|
|
308
|
+
if not waiter.done():
|
|
309
|
+
waiter.set_result(None)
|
|
310
|
+
|
|
311
|
+
def _start_serving(self):
|
|
312
|
+
if self._serving:
|
|
313
|
+
return
|
|
314
|
+
self._serving = True
|
|
315
|
+
for sock in self._sockets:
|
|
316
|
+
sock.listen(self._backlog)
|
|
317
|
+
self._loop._start_serving(
|
|
318
|
+
self._protocol_factory, sock, self._ssl_context,
|
|
319
|
+
self, self._backlog, self._ssl_handshake_timeout,
|
|
320
|
+
self._ssl_shutdown_timeout)
|
|
321
|
+
|
|
322
|
+
def get_loop(self):
|
|
323
|
+
return self._loop
|
|
324
|
+
|
|
325
|
+
def is_serving(self):
|
|
326
|
+
return self._serving
|
|
327
|
+
|
|
328
|
+
@property
|
|
329
|
+
def sockets(self):
|
|
330
|
+
if self._sockets is None:
|
|
331
|
+
return ()
|
|
332
|
+
return tuple(trsock.TransportSocket(s) for s in self._sockets)
|
|
333
|
+
|
|
334
|
+
def close(self):
|
|
335
|
+
sockets = self._sockets
|
|
336
|
+
if sockets is None:
|
|
337
|
+
return
|
|
338
|
+
self._sockets = None
|
|
339
|
+
|
|
340
|
+
for sock in sockets:
|
|
341
|
+
self._loop._stop_serving(sock)
|
|
342
|
+
|
|
343
|
+
self._serving = False
|
|
344
|
+
|
|
345
|
+
if (self._serving_forever_fut is not None and
|
|
346
|
+
not self._serving_forever_fut.done()):
|
|
347
|
+
self._serving_forever_fut.cancel()
|
|
348
|
+
self._serving_forever_fut = None
|
|
349
|
+
|
|
350
|
+
if self._active_count == 0:
|
|
351
|
+
self._wakeup()
|
|
352
|
+
|
|
353
|
+
async def start_serving(self):
|
|
354
|
+
self._start_serving()
|
|
355
|
+
# Skip one loop iteration so that all 'loop.add_reader'
|
|
356
|
+
# go through.
|
|
357
|
+
await tasks.sleep(0)
|
|
358
|
+
|
|
359
|
+
async def serve_forever(self):
|
|
360
|
+
if self._serving_forever_fut is not None:
|
|
361
|
+
raise RuntimeError(
|
|
362
|
+
f'server {self!r} is already being awaited on serve_forever()')
|
|
363
|
+
if self._sockets is None:
|
|
364
|
+
raise RuntimeError(f'server {self!r} is closed')
|
|
365
|
+
|
|
366
|
+
self._start_serving()
|
|
367
|
+
self._serving_forever_fut = self._loop.create_future()
|
|
368
|
+
|
|
369
|
+
try:
|
|
370
|
+
await self._serving_forever_fut
|
|
371
|
+
except exceptions.CancelledError:
|
|
372
|
+
try:
|
|
373
|
+
self.close()
|
|
374
|
+
await self.wait_closed()
|
|
375
|
+
finally:
|
|
376
|
+
raise
|
|
377
|
+
finally:
|
|
378
|
+
self._serving_forever_fut = None
|
|
379
|
+
|
|
380
|
+
async def wait_closed(self):
|
|
381
|
+
"""Wait until server is closed and all connections are dropped.
|
|
382
|
+
|
|
383
|
+
- If the server is not closed, wait.
|
|
384
|
+
- If it is closed, but there are still active connections, wait.
|
|
385
|
+
|
|
386
|
+
Anyone waiting here will be unblocked once both conditions
|
|
387
|
+
(server is closed and all connections have been dropped)
|
|
388
|
+
have become true, in either order.
|
|
389
|
+
|
|
390
|
+
Historical note: In 3.11 and before, this was broken, returning
|
|
391
|
+
immediately if the server was already closed, even if there
|
|
392
|
+
were still active connections. An attempted fix in 3.12.0 was
|
|
393
|
+
still broken, returning immediately if the server was still
|
|
394
|
+
open and there were no active connections. Hopefully in 3.12.1
|
|
395
|
+
we have it right.
|
|
396
|
+
"""
|
|
397
|
+
# Waiters are unblocked by self._wakeup(), which is called
|
|
398
|
+
# from two places: self.close() and self._detach(), but only
|
|
399
|
+
# when both conditions have become true. To signal that this
|
|
400
|
+
# has happened, self._wakeup() sets self._waiters to None.
|
|
401
|
+
if self._waiters is None:
|
|
402
|
+
return
|
|
403
|
+
waiter = self._loop.create_future()
|
|
404
|
+
self._waiters.append(waiter)
|
|
405
|
+
await waiter
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
class BaseEventLoop(events.AbstractEventLoop):
|
|
409
|
+
|
|
410
|
+
def __init__(self):
|
|
411
|
+
self._timer_cancelled_count = 0
|
|
412
|
+
self._closed = False
|
|
413
|
+
self._stopping = False
|
|
414
|
+
self._ready = collections.deque()
|
|
415
|
+
self._scheduled = []
|
|
416
|
+
self._default_executor = None
|
|
417
|
+
self._internal_fds = 0
|
|
418
|
+
# Identifier of the thread running the event loop, or None if the
|
|
419
|
+
# event loop is not running
|
|
420
|
+
self._thread_id = None
|
|
421
|
+
self._clock_resolution = time.get_clock_info('monotonic').resolution
|
|
422
|
+
self._exception_handler = None
|
|
423
|
+
self.set_debug(coroutines._is_debug_mode())
|
|
424
|
+
# In debug mode, if the execution of a callback or a step of a task
|
|
425
|
+
# exceed this duration in seconds, the slow callback/task is logged.
|
|
426
|
+
self.slow_callback_duration = 0.1
|
|
427
|
+
self._current_handle = None
|
|
428
|
+
self._task_factory = None
|
|
429
|
+
self._coroutine_origin_tracking_enabled = False
|
|
430
|
+
self._coroutine_origin_tracking_saved_depth = None
|
|
431
|
+
|
|
432
|
+
# A weak set of all asynchronous generators that are
|
|
433
|
+
# being iterated by the loop.
|
|
434
|
+
self._asyncgens = weakref.WeakSet()
|
|
435
|
+
# Set to True when `loop.shutdown_asyncgens` is called.
|
|
436
|
+
self._asyncgens_shutdown_called = False
|
|
437
|
+
# Set to True when `loop.shutdown_default_executor` is called.
|
|
438
|
+
self._executor_shutdown_called = False
|
|
439
|
+
|
|
440
|
+
def __repr__(self):
|
|
441
|
+
return (
|
|
442
|
+
f'<{self.__class__.__name__} running={self.is_running()} '
|
|
443
|
+
f'closed={self.is_closed()} debug={self.get_debug()}>'
|
|
444
|
+
)
|
|
445
|
+
|
|
446
|
+
def create_future(self):
|
|
447
|
+
"""Create a Future object attached to the loop."""
|
|
448
|
+
return futures.Future(loop=self)
|
|
449
|
+
|
|
450
|
+
def create_task(self, coro, *, name=None, context=None):
|
|
451
|
+
"""Schedule a coroutine object.
|
|
452
|
+
|
|
453
|
+
Return a task object.
|
|
454
|
+
"""
|
|
455
|
+
self._check_closed()
|
|
456
|
+
if self._task_factory is None:
|
|
457
|
+
task = tasks.Task(coro, loop=self, name=name, context=context)
|
|
458
|
+
if task._source_traceback:
|
|
459
|
+
del task._source_traceback[-1]
|
|
460
|
+
else:
|
|
461
|
+
if context is None:
|
|
462
|
+
# Use legacy API if context is not needed
|
|
463
|
+
task = self._task_factory(self, coro)
|
|
464
|
+
else:
|
|
465
|
+
task = self._task_factory(self, coro, context=context)
|
|
466
|
+
|
|
467
|
+
tasks._set_task_name(task, name)
|
|
468
|
+
|
|
469
|
+
try:
|
|
470
|
+
return task
|
|
471
|
+
finally:
|
|
472
|
+
# gh-128552: prevent a refcycle of
|
|
473
|
+
# task.exception().__traceback__->BaseEventLoop.create_task->task
|
|
474
|
+
del task
|
|
475
|
+
|
|
476
|
+
def set_task_factory(self, factory):
|
|
477
|
+
"""Set a task factory that will be used by loop.create_task().
|
|
478
|
+
|
|
479
|
+
If factory is None the default task factory will be set.
|
|
480
|
+
|
|
481
|
+
If factory is a callable, it should have a signature matching
|
|
482
|
+
'(loop, coro)', where 'loop' will be a reference to the active
|
|
483
|
+
event loop, 'coro' will be a coroutine object. The callable
|
|
484
|
+
must return a Future.
|
|
485
|
+
"""
|
|
486
|
+
if factory is not None and not callable(factory):
|
|
487
|
+
raise TypeError('task factory must be a callable or None')
|
|
488
|
+
self._task_factory = factory
|
|
489
|
+
|
|
490
|
+
def get_task_factory(self):
|
|
491
|
+
"""Return a task factory, or None if the default one is in use."""
|
|
492
|
+
return self._task_factory
|
|
493
|
+
|
|
494
|
+
def _make_socket_transport(self, sock, protocol, waiter=None, *,
|
|
495
|
+
extra=None, server=None):
|
|
496
|
+
"""Create socket transport."""
|
|
497
|
+
raise NotImplementedError
|
|
498
|
+
|
|
499
|
+
def _make_ssl_transport(
|
|
500
|
+
self, rawsock, protocol, sslcontext, waiter=None,
|
|
501
|
+
*, server_side=False, server_hostname=None,
|
|
502
|
+
extra=None, server=None,
|
|
503
|
+
ssl_handshake_timeout=None,
|
|
504
|
+
ssl_shutdown_timeout=None,
|
|
505
|
+
call_connection_made=True):
|
|
506
|
+
"""Create SSL transport."""
|
|
507
|
+
raise NotImplementedError
|
|
508
|
+
|
|
509
|
+
def _make_datagram_transport(self, sock, protocol,
|
|
510
|
+
address=None, waiter=None, extra=None):
|
|
511
|
+
"""Create datagram transport."""
|
|
512
|
+
raise NotImplementedError
|
|
513
|
+
|
|
514
|
+
def _make_read_pipe_transport(self, pipe, protocol, waiter=None,
|
|
515
|
+
extra=None):
|
|
516
|
+
"""Create read pipe transport."""
|
|
517
|
+
raise NotImplementedError
|
|
518
|
+
|
|
519
|
+
def _make_write_pipe_transport(self, pipe, protocol, waiter=None,
|
|
520
|
+
extra=None):
|
|
521
|
+
"""Create write pipe transport."""
|
|
522
|
+
raise NotImplementedError
|
|
523
|
+
|
|
524
|
+
async def _make_subprocess_transport(self, protocol, args, shell,
|
|
525
|
+
stdin, stdout, stderr, bufsize,
|
|
526
|
+
extra=None, **kwargs):
|
|
527
|
+
"""Create subprocess transport."""
|
|
528
|
+
raise NotImplementedError
|
|
529
|
+
|
|
530
|
+
def _write_to_self(self):
|
|
531
|
+
"""Write a byte to self-pipe, to wake up the event loop.
|
|
532
|
+
|
|
533
|
+
This may be called from a different thread.
|
|
534
|
+
|
|
535
|
+
The subclass is responsible for implementing the self-pipe.
|
|
536
|
+
"""
|
|
537
|
+
raise NotImplementedError
|
|
538
|
+
|
|
539
|
+
def _process_events(self, event_list):
|
|
540
|
+
"""Process selector events."""
|
|
541
|
+
raise NotImplementedError
|
|
542
|
+
|
|
543
|
+
def _check_closed(self):
|
|
544
|
+
if self._closed:
|
|
545
|
+
raise RuntimeError('Event loop is closed')
|
|
546
|
+
|
|
547
|
+
def _check_default_executor(self):
|
|
548
|
+
if self._executor_shutdown_called:
|
|
549
|
+
raise RuntimeError('Executor shutdown has been called')
|
|
550
|
+
|
|
551
|
+
def _asyncgen_finalizer_hook(self, agen):
|
|
552
|
+
self._asyncgens.discard(agen)
|
|
553
|
+
if not self.is_closed():
|
|
554
|
+
self.call_soon_threadsafe(self.create_task, agen.aclose())
|
|
555
|
+
|
|
556
|
+
def _asyncgen_firstiter_hook(self, agen):
|
|
557
|
+
if self._asyncgens_shutdown_called:
|
|
558
|
+
warnings.warn(
|
|
559
|
+
f"asynchronous generator {agen!r} was scheduled after "
|
|
560
|
+
f"loop.shutdown_asyncgens() call",
|
|
561
|
+
ResourceWarning, source=self)
|
|
562
|
+
|
|
563
|
+
self._asyncgens.add(agen)
|
|
564
|
+
|
|
565
|
+
async def shutdown_asyncgens(self):
|
|
566
|
+
"""Shutdown all active asynchronous generators."""
|
|
567
|
+
self._asyncgens_shutdown_called = True
|
|
568
|
+
|
|
569
|
+
if not len(self._asyncgens):
|
|
570
|
+
# If Python version is <3.6 or we don't have any asynchronous
|
|
571
|
+
# generators alive.
|
|
572
|
+
return
|
|
573
|
+
|
|
574
|
+
closing_agens = list(self._asyncgens)
|
|
575
|
+
self._asyncgens.clear()
|
|
576
|
+
|
|
577
|
+
results = await tasks.gather(
|
|
578
|
+
*[ag.aclose() for ag in closing_agens],
|
|
579
|
+
return_exceptions=True)
|
|
580
|
+
|
|
581
|
+
for result, agen in zip(results, closing_agens):
|
|
582
|
+
if isinstance(result, Exception):
|
|
583
|
+
self.call_exception_handler({
|
|
584
|
+
'message': f'an error occurred during closing of '
|
|
585
|
+
f'asynchronous generator {agen!r}',
|
|
586
|
+
'exception': result,
|
|
587
|
+
'asyncgen': agen
|
|
588
|
+
})
|
|
589
|
+
|
|
590
|
+
async def shutdown_default_executor(self, timeout=None):
|
|
591
|
+
"""Schedule the shutdown of the default executor.
|
|
592
|
+
|
|
593
|
+
The timeout parameter specifies the amount of time the executor will
|
|
594
|
+
be given to finish joining. The default value is None, which means
|
|
595
|
+
that the executor will be given an unlimited amount of time.
|
|
596
|
+
"""
|
|
597
|
+
self._executor_shutdown_called = True
|
|
598
|
+
if self._default_executor is None:
|
|
599
|
+
return
|
|
600
|
+
future = self.create_future()
|
|
601
|
+
thread = threading.Thread(target=self._do_shutdown, args=(future,))
|
|
602
|
+
thread.start()
|
|
603
|
+
try:
|
|
604
|
+
async with timeouts.timeout(timeout):
|
|
605
|
+
await future
|
|
606
|
+
except TimeoutError:
|
|
607
|
+
warnings.warn("The executor did not finishing joining "
|
|
608
|
+
f"its threads within {timeout} seconds.",
|
|
609
|
+
RuntimeWarning, stacklevel=2)
|
|
610
|
+
self._default_executor.shutdown(wait=False)
|
|
611
|
+
else:
|
|
612
|
+
thread.join()
|
|
613
|
+
|
|
614
|
+
def _do_shutdown(self, future):
|
|
615
|
+
try:
|
|
616
|
+
self._default_executor.shutdown(wait=True)
|
|
617
|
+
if not self.is_closed():
|
|
618
|
+
self.call_soon_threadsafe(futures._set_result_unless_cancelled,
|
|
619
|
+
future, None)
|
|
620
|
+
except Exception as ex:
|
|
621
|
+
if not self.is_closed() and not future.cancelled():
|
|
622
|
+
self.call_soon_threadsafe(future.set_exception, ex)
|
|
623
|
+
|
|
624
|
+
def _check_running(self):
|
|
625
|
+
if self.is_running():
|
|
626
|
+
raise RuntimeError('This event loop is already running')
|
|
627
|
+
if events._get_running_loop() is not None:
|
|
628
|
+
raise RuntimeError(
|
|
629
|
+
'Cannot run the event loop while another loop is running')
|
|
630
|
+
|
|
631
|
+
def run_forever(self):
|
|
632
|
+
"""Run until stop() is called."""
|
|
633
|
+
self._check_closed()
|
|
634
|
+
self._check_running()
|
|
635
|
+
self._set_coroutine_origin_tracking(self._debug)
|
|
636
|
+
|
|
637
|
+
old_agen_hooks = sys.get_asyncgen_hooks()
|
|
638
|
+
try:
|
|
639
|
+
self._thread_id = threading.get_ident()
|
|
640
|
+
sys.set_asyncgen_hooks(firstiter=self._asyncgen_firstiter_hook,
|
|
641
|
+
finalizer=self._asyncgen_finalizer_hook)
|
|
642
|
+
|
|
643
|
+
events._set_running_loop(self)
|
|
644
|
+
while True:
|
|
645
|
+
self._run_once()
|
|
646
|
+
if self._stopping:
|
|
647
|
+
break
|
|
648
|
+
finally:
|
|
649
|
+
self._stopping = False
|
|
650
|
+
self._thread_id = None
|
|
651
|
+
events._set_running_loop(None)
|
|
652
|
+
self._set_coroutine_origin_tracking(False)
|
|
653
|
+
sys.set_asyncgen_hooks(*old_agen_hooks)
|
|
654
|
+
|
|
655
|
+
def run_until_complete(self, future):
|
|
656
|
+
"""Run until the Future is done.
|
|
657
|
+
|
|
658
|
+
If the argument is a coroutine, it is wrapped in a Task.
|
|
659
|
+
|
|
660
|
+
WARNING: It would be disastrous to call run_until_complete()
|
|
661
|
+
with the same coroutine twice -- it would wrap it in two
|
|
662
|
+
different Tasks and that can't be good.
|
|
663
|
+
|
|
664
|
+
Return the Future's result, or raise its exception.
|
|
665
|
+
"""
|
|
666
|
+
self._check_closed()
|
|
667
|
+
self._check_running()
|
|
668
|
+
|
|
669
|
+
new_task = not futures.isfuture(future)
|
|
670
|
+
future = tasks.ensure_future(future, loop=self)
|
|
671
|
+
if new_task:
|
|
672
|
+
# An exception is raised if the future didn't complete, so there
|
|
673
|
+
# is no need to log the "destroy pending task" message
|
|
674
|
+
future._log_destroy_pending = False
|
|
675
|
+
|
|
676
|
+
future.add_done_callback(_run_until_complete_cb)
|
|
677
|
+
try:
|
|
678
|
+
self.run_forever()
|
|
679
|
+
except:
|
|
680
|
+
if new_task and future.done() and not future.cancelled():
|
|
681
|
+
# The coroutine raised a BaseException. Consume the exception
|
|
682
|
+
# to not log a warning, the caller doesn't have access to the
|
|
683
|
+
# local task.
|
|
684
|
+
future.exception()
|
|
685
|
+
raise
|
|
686
|
+
finally:
|
|
687
|
+
future.remove_done_callback(_run_until_complete_cb)
|
|
688
|
+
if not future.done():
|
|
689
|
+
raise RuntimeError('Event loop stopped before Future completed.')
|
|
690
|
+
|
|
691
|
+
return future.result()
|
|
692
|
+
|
|
693
|
+
def stop(self):
|
|
694
|
+
"""Stop running the event loop.
|
|
695
|
+
|
|
696
|
+
Every callback already scheduled will still run. This simply informs
|
|
697
|
+
run_forever to stop looping after a complete iteration.
|
|
698
|
+
"""
|
|
699
|
+
self._stopping = True
|
|
700
|
+
|
|
701
|
+
def close(self):
|
|
702
|
+
"""Close the event loop.
|
|
703
|
+
|
|
704
|
+
This clears the queues and shuts down the executor,
|
|
705
|
+
but does not wait for the executor to finish.
|
|
706
|
+
|
|
707
|
+
The event loop must not be running.
|
|
708
|
+
"""
|
|
709
|
+
if self.is_running():
|
|
710
|
+
raise RuntimeError("Cannot close a running event loop")
|
|
711
|
+
if self._closed:
|
|
712
|
+
return
|
|
713
|
+
if self._debug:
|
|
714
|
+
logger.debug("Close %r", self)
|
|
715
|
+
self._closed = True
|
|
716
|
+
self._ready.clear()
|
|
717
|
+
self._scheduled.clear()
|
|
718
|
+
self._executor_shutdown_called = True
|
|
719
|
+
executor = self._default_executor
|
|
720
|
+
if executor is not None:
|
|
721
|
+
self._default_executor = None
|
|
722
|
+
executor.shutdown(wait=False)
|
|
723
|
+
|
|
724
|
+
def is_closed(self):
|
|
725
|
+
"""Returns True if the event loop was closed."""
|
|
726
|
+
return self._closed
|
|
727
|
+
|
|
728
|
+
def __del__(self, _warn=warnings.warn):
|
|
729
|
+
if not self.is_closed():
|
|
730
|
+
_warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
|
|
731
|
+
if not self.is_running():
|
|
732
|
+
self.close()
|
|
733
|
+
|
|
734
|
+
def is_running(self):
|
|
735
|
+
"""Returns True if the event loop is running."""
|
|
736
|
+
return (self._thread_id is not None)
|
|
737
|
+
|
|
738
|
+
def time(self):
|
|
739
|
+
"""Return the time according to the event loop's clock.
|
|
740
|
+
|
|
741
|
+
This is a float expressed in seconds since an epoch, but the
|
|
742
|
+
epoch, precision, accuracy and drift are unspecified and may
|
|
743
|
+
differ per event loop.
|
|
744
|
+
"""
|
|
745
|
+
return time.monotonic()
|
|
746
|
+
|
|
747
|
+
def call_later(self, delay, callback, *args, context=None):
|
|
748
|
+
"""Arrange for a callback to be called at a given time.
|
|
749
|
+
|
|
750
|
+
Return a Handle: an opaque object with a cancel() method that
|
|
751
|
+
can be used to cancel the call.
|
|
752
|
+
|
|
753
|
+
The delay can be an int or float, expressed in seconds. It is
|
|
754
|
+
always relative to the current time.
|
|
755
|
+
|
|
756
|
+
Each callback will be called exactly once. If two callbacks
|
|
757
|
+
are scheduled for exactly the same time, it is undefined which
|
|
758
|
+
will be called first.
|
|
759
|
+
|
|
760
|
+
Any positional arguments after the callback will be passed to
|
|
761
|
+
the callback when it is called.
|
|
762
|
+
"""
|
|
763
|
+
if delay is None:
|
|
764
|
+
raise TypeError('delay must not be None')
|
|
765
|
+
timer = self.call_at(self.time() + delay, callback, *args,
|
|
766
|
+
context=context)
|
|
767
|
+
if timer._source_traceback:
|
|
768
|
+
del timer._source_traceback[-1]
|
|
769
|
+
return timer
|
|
770
|
+
|
|
771
|
+
def call_at(self, when, callback, *args, context=None):
|
|
772
|
+
"""Like call_later(), but uses an absolute time.
|
|
773
|
+
|
|
774
|
+
Absolute time corresponds to the event loop's time() method.
|
|
775
|
+
"""
|
|
776
|
+
if when is None:
|
|
777
|
+
raise TypeError("when cannot be None")
|
|
778
|
+
self._check_closed()
|
|
779
|
+
if self._debug:
|
|
780
|
+
self._check_thread()
|
|
781
|
+
self._check_callback(callback, 'call_at')
|
|
782
|
+
timer = events.TimerHandle(when, callback, args, self, context)
|
|
783
|
+
if timer._source_traceback:
|
|
784
|
+
del timer._source_traceback[-1]
|
|
785
|
+
heapq.heappush(self._scheduled, timer)
|
|
786
|
+
timer._scheduled = True
|
|
787
|
+
return timer
|
|
788
|
+
|
|
789
|
+
def call_soon(self, callback, *args, context=None):
|
|
790
|
+
"""Arrange for a callback to be called as soon as possible.
|
|
791
|
+
|
|
792
|
+
This operates as a FIFO queue: callbacks are called in the
|
|
793
|
+
order in which they are registered. Each callback will be
|
|
794
|
+
called exactly once.
|
|
795
|
+
|
|
796
|
+
Any positional arguments after the callback will be passed to
|
|
797
|
+
the callback when it is called.
|
|
798
|
+
"""
|
|
799
|
+
self._check_closed()
|
|
800
|
+
if self._debug:
|
|
801
|
+
self._check_thread()
|
|
802
|
+
self._check_callback(callback, 'call_soon')
|
|
803
|
+
handle = self._call_soon(callback, args, context)
|
|
804
|
+
if handle._source_traceback:
|
|
805
|
+
del handle._source_traceback[-1]
|
|
806
|
+
return handle
|
|
807
|
+
|
|
808
|
+
def _check_callback(self, callback, method):
|
|
809
|
+
if (coroutines.iscoroutine(callback) or
|
|
810
|
+
coroutines.iscoroutinefunction(callback)):
|
|
811
|
+
raise TypeError(
|
|
812
|
+
f"coroutines cannot be used with {method}()")
|
|
813
|
+
if not callable(callback):
|
|
814
|
+
raise TypeError(
|
|
815
|
+
f'a callable object was expected by {method}(), '
|
|
816
|
+
f'got {callback!r}')
|
|
817
|
+
|
|
818
|
+
def _call_soon(self, callback, args, context):
|
|
819
|
+
handle = events.Handle(callback, args, self, context)
|
|
820
|
+
if handle._source_traceback:
|
|
821
|
+
del handle._source_traceback[-1]
|
|
822
|
+
self._ready.append(handle)
|
|
823
|
+
return handle
|
|
824
|
+
|
|
825
|
+
def _check_thread(self):
|
|
826
|
+
"""Check that the current thread is the thread running the event loop.
|
|
827
|
+
|
|
828
|
+
Non-thread-safe methods of this class make this assumption and will
|
|
829
|
+
likely behave incorrectly when the assumption is violated.
|
|
830
|
+
|
|
831
|
+
Should only be called when (self._debug == True). The caller is
|
|
832
|
+
responsible for checking this condition for performance reasons.
|
|
833
|
+
"""
|
|
834
|
+
if self._thread_id is None:
|
|
835
|
+
return
|
|
836
|
+
thread_id = threading.get_ident()
|
|
837
|
+
if thread_id != self._thread_id:
|
|
838
|
+
raise RuntimeError(
|
|
839
|
+
"Non-thread-safe operation invoked on an event loop other "
|
|
840
|
+
"than the current one")
|
|
841
|
+
|
|
842
|
+
def call_soon_threadsafe(self, callback, *args, context=None):
|
|
843
|
+
"""Like call_soon(), but thread-safe."""
|
|
844
|
+
self._check_closed()
|
|
845
|
+
if self._debug:
|
|
846
|
+
self._check_callback(callback, 'call_soon_threadsafe')
|
|
847
|
+
handle = self._call_soon(callback, args, context)
|
|
848
|
+
if handle._source_traceback:
|
|
849
|
+
del handle._source_traceback[-1]
|
|
850
|
+
self._write_to_self()
|
|
851
|
+
return handle
|
|
852
|
+
|
|
853
|
+
def run_in_executor(self, executor, func, *args):
|
|
854
|
+
self._check_closed()
|
|
855
|
+
if self._debug:
|
|
856
|
+
self._check_callback(func, 'run_in_executor')
|
|
857
|
+
if executor is None:
|
|
858
|
+
executor = self._default_executor
|
|
859
|
+
# Only check when the default executor is being used
|
|
860
|
+
self._check_default_executor()
|
|
861
|
+
if executor is None:
|
|
862
|
+
executor = concurrent.futures.ThreadPoolExecutor(
|
|
863
|
+
thread_name_prefix='asyncio'
|
|
864
|
+
)
|
|
865
|
+
self._default_executor = executor
|
|
866
|
+
return futures.wrap_future(
|
|
867
|
+
executor.submit(func, *args), loop=self)
|
|
868
|
+
|
|
869
|
+
def set_default_executor(self, executor):
|
|
870
|
+
if not isinstance(executor, concurrent.futures.ThreadPoolExecutor):
|
|
871
|
+
raise TypeError('executor must be ThreadPoolExecutor instance')
|
|
872
|
+
self._default_executor = executor
|
|
873
|
+
|
|
874
|
+
def _getaddrinfo_debug(self, host, port, family, type, proto, flags):
|
|
875
|
+
msg = [f"{host}:{port!r}"]
|
|
876
|
+
if family:
|
|
877
|
+
msg.append(f'family={family!r}')
|
|
878
|
+
if type:
|
|
879
|
+
msg.append(f'type={type!r}')
|
|
880
|
+
if proto:
|
|
881
|
+
msg.append(f'proto={proto!r}')
|
|
882
|
+
if flags:
|
|
883
|
+
msg.append(f'flags={flags!r}')
|
|
884
|
+
msg = ', '.join(msg)
|
|
885
|
+
logger.debug('Get address info %s', msg)
|
|
886
|
+
|
|
887
|
+
t0 = self.time()
|
|
888
|
+
addrinfo = socket.getaddrinfo(host, port, family, type, proto, flags)
|
|
889
|
+
dt = self.time() - t0
|
|
890
|
+
|
|
891
|
+
msg = f'Getting address info {msg} took {dt * 1e3:.3f}ms: {addrinfo!r}'
|
|
892
|
+
if dt >= self.slow_callback_duration:
|
|
893
|
+
logger.info(msg)
|
|
894
|
+
else:
|
|
895
|
+
logger.debug(msg)
|
|
896
|
+
return addrinfo
|
|
897
|
+
|
|
898
|
+
async def getaddrinfo(self, host, port, *,
|
|
899
|
+
family=0, type=0, proto=0, flags=0):
|
|
900
|
+
if self._debug:
|
|
901
|
+
getaddr_func = self._getaddrinfo_debug
|
|
902
|
+
else:
|
|
903
|
+
getaddr_func = socket.getaddrinfo
|
|
904
|
+
|
|
905
|
+
return await self.run_in_executor(
|
|
906
|
+
None, getaddr_func, host, port, family, type, proto, flags)
|
|
907
|
+
|
|
908
|
+
async def getnameinfo(self, sockaddr, flags=0):
|
|
909
|
+
return await self.run_in_executor(
|
|
910
|
+
None, socket.getnameinfo, sockaddr, flags)
|
|
911
|
+
|
|
912
|
+
async def sock_sendfile(self, sock, file, offset=0, count=None,
|
|
913
|
+
*, fallback=True):
|
|
914
|
+
if self._debug and sock.gettimeout() != 0:
|
|
915
|
+
raise ValueError("the socket must be non-blocking")
|
|
916
|
+
_check_ssl_socket(sock)
|
|
917
|
+
self._check_sendfile_params(sock, file, offset, count)
|
|
918
|
+
try:
|
|
919
|
+
return await self._sock_sendfile_native(sock, file,
|
|
920
|
+
offset, count)
|
|
921
|
+
except exceptions.SendfileNotAvailableError as exc:
|
|
922
|
+
if not fallback:
|
|
923
|
+
raise
|
|
924
|
+
return await self._sock_sendfile_fallback(sock, file,
|
|
925
|
+
offset, count)
|
|
926
|
+
|
|
927
|
+
async def _sock_sendfile_native(self, sock, file, offset, count):
|
|
928
|
+
# NB: sendfile syscall is not supported for SSL sockets and
|
|
929
|
+
# non-mmap files even if sendfile is supported by OS
|
|
930
|
+
raise exceptions.SendfileNotAvailableError(
|
|
931
|
+
f"syscall sendfile is not available for socket {sock!r} "
|
|
932
|
+
f"and file {file!r} combination")
|
|
933
|
+
|
|
934
|
+
async def _sock_sendfile_fallback(self, sock, file, offset, count):
|
|
935
|
+
if offset:
|
|
936
|
+
file.seek(offset)
|
|
937
|
+
blocksize = (
|
|
938
|
+
min(count, constants.SENDFILE_FALLBACK_READBUFFER_SIZE)
|
|
939
|
+
if count else constants.SENDFILE_FALLBACK_READBUFFER_SIZE
|
|
940
|
+
)
|
|
941
|
+
buf = bytearray(blocksize)
|
|
942
|
+
total_sent = 0
|
|
943
|
+
try:
|
|
944
|
+
while True:
|
|
945
|
+
if count:
|
|
946
|
+
blocksize = min(count - total_sent, blocksize)
|
|
947
|
+
if blocksize <= 0:
|
|
948
|
+
break
|
|
949
|
+
view = memoryview(buf)[:blocksize]
|
|
950
|
+
read = await self.run_in_executor(None, file.readinto, view)
|
|
951
|
+
if not read:
|
|
952
|
+
break # EOF
|
|
953
|
+
await self.sock_sendall(sock, view[:read])
|
|
954
|
+
total_sent += read
|
|
955
|
+
return total_sent
|
|
956
|
+
finally:
|
|
957
|
+
if total_sent > 0 and hasattr(file, 'seek'):
|
|
958
|
+
file.seek(offset + total_sent)
|
|
959
|
+
|
|
960
|
+
def _check_sendfile_params(self, sock, file, offset, count):
|
|
961
|
+
if 'b' not in getattr(file, 'mode', 'b'):
|
|
962
|
+
raise ValueError("file should be opened in binary mode")
|
|
963
|
+
if not sock.type == socket.SOCK_STREAM:
|
|
964
|
+
raise ValueError("only SOCK_STREAM type sockets are supported")
|
|
965
|
+
if count is not None:
|
|
966
|
+
if not isinstance(count, int):
|
|
967
|
+
raise TypeError(
|
|
968
|
+
"count must be a positive integer (got {!r})".format(count))
|
|
969
|
+
if count <= 0:
|
|
970
|
+
raise ValueError(
|
|
971
|
+
"count must be a positive integer (got {!r})".format(count))
|
|
972
|
+
if not isinstance(offset, int):
|
|
973
|
+
raise TypeError(
|
|
974
|
+
"offset must be a non-negative integer (got {!r})".format(
|
|
975
|
+
offset))
|
|
976
|
+
if offset < 0:
|
|
977
|
+
raise ValueError(
|
|
978
|
+
"offset must be a non-negative integer (got {!r})".format(
|
|
979
|
+
offset))
|
|
980
|
+
|
|
981
|
+
async def _connect_sock(self, exceptions, addr_info, local_addr_infos=None):
|
|
982
|
+
"""Create, bind and connect one socket."""
|
|
983
|
+
my_exceptions = []
|
|
984
|
+
exceptions.append(my_exceptions)
|
|
985
|
+
family, type_, proto, _, address = addr_info
|
|
986
|
+
sock = None
|
|
987
|
+
try:
|
|
988
|
+
sock = socket.socket(family=family, type=type_, proto=proto)
|
|
989
|
+
sock.setblocking(False)
|
|
990
|
+
if local_addr_infos is not None:
|
|
991
|
+
for lfamily, _, _, _, laddr in local_addr_infos:
|
|
992
|
+
# skip local addresses of different family
|
|
993
|
+
if lfamily != family:
|
|
994
|
+
continue
|
|
995
|
+
try:
|
|
996
|
+
sock.bind(laddr)
|
|
997
|
+
break
|
|
998
|
+
except OSError as exc:
|
|
999
|
+
msg = (
|
|
1000
|
+
f'error while attempting to bind on '
|
|
1001
|
+
f'address {laddr!r}: {str(exc).lower()}'
|
|
1002
|
+
)
|
|
1003
|
+
exc = OSError(exc.errno, msg)
|
|
1004
|
+
my_exceptions.append(exc)
|
|
1005
|
+
else: # all bind attempts failed
|
|
1006
|
+
if my_exceptions:
|
|
1007
|
+
raise my_exceptions.pop()
|
|
1008
|
+
else:
|
|
1009
|
+
raise OSError(f"no matching local address with {family=} found")
|
|
1010
|
+
await self.sock_connect(sock, address)
|
|
1011
|
+
return sock
|
|
1012
|
+
except OSError as exc:
|
|
1013
|
+
my_exceptions.append(exc)
|
|
1014
|
+
if sock is not None:
|
|
1015
|
+
sock.close()
|
|
1016
|
+
raise
|
|
1017
|
+
except:
|
|
1018
|
+
if sock is not None:
|
|
1019
|
+
sock.close()
|
|
1020
|
+
raise
|
|
1021
|
+
finally:
|
|
1022
|
+
exceptions = my_exceptions = None
|
|
1023
|
+
|
|
1024
|
+
async def create_connection(
|
|
1025
|
+
self, protocol_factory, host=None, port=None,
|
|
1026
|
+
*, ssl=None, family=0,
|
|
1027
|
+
proto=0, flags=0, sock=None,
|
|
1028
|
+
local_addr=None, server_hostname=None,
|
|
1029
|
+
ssl_handshake_timeout=None,
|
|
1030
|
+
ssl_shutdown_timeout=None,
|
|
1031
|
+
happy_eyeballs_delay=None, interleave=None,
|
|
1032
|
+
all_errors=False):
|
|
1033
|
+
"""Connect to a TCP server.
|
|
1034
|
+
|
|
1035
|
+
Create a streaming transport connection to a given internet host and
|
|
1036
|
+
port: socket family AF_INET or socket.AF_INET6 depending on host (or
|
|
1037
|
+
family if specified), socket type SOCK_STREAM. protocol_factory must be
|
|
1038
|
+
a callable returning a protocol instance.
|
|
1039
|
+
|
|
1040
|
+
This method is a coroutine which will try to establish the connection
|
|
1041
|
+
in the background. When successful, the coroutine returns a
|
|
1042
|
+
(transport, protocol) pair.
|
|
1043
|
+
"""
|
|
1044
|
+
if server_hostname is not None and not ssl:
|
|
1045
|
+
raise ValueError('server_hostname is only meaningful with ssl')
|
|
1046
|
+
|
|
1047
|
+
if server_hostname is None and ssl:
|
|
1048
|
+
# Use host as default for server_hostname. It is an error
|
|
1049
|
+
# if host is empty or not set, e.g. when an
|
|
1050
|
+
# already-connected socket was passed or when only a port
|
|
1051
|
+
# is given. To avoid this error, you can pass
|
|
1052
|
+
# server_hostname='' -- this will bypass the hostname
|
|
1053
|
+
# check. (This also means that if host is a numeric
|
|
1054
|
+
# IP/IPv6 address, we will attempt to verify that exact
|
|
1055
|
+
# address; this will probably fail, but it is possible to
|
|
1056
|
+
# create a certificate for a specific IP address, so we
|
|
1057
|
+
# don't judge it here.)
|
|
1058
|
+
if not host:
|
|
1059
|
+
raise ValueError('You must set server_hostname '
|
|
1060
|
+
'when using ssl without a host')
|
|
1061
|
+
server_hostname = host
|
|
1062
|
+
|
|
1063
|
+
if ssl_handshake_timeout is not None and not ssl:
|
|
1064
|
+
raise ValueError(
|
|
1065
|
+
'ssl_handshake_timeout is only meaningful with ssl')
|
|
1066
|
+
|
|
1067
|
+
if ssl_shutdown_timeout is not None and not ssl:
|
|
1068
|
+
raise ValueError(
|
|
1069
|
+
'ssl_shutdown_timeout is only meaningful with ssl')
|
|
1070
|
+
|
|
1071
|
+
if sock is not None:
|
|
1072
|
+
_check_ssl_socket(sock)
|
|
1073
|
+
|
|
1074
|
+
if happy_eyeballs_delay is not None and interleave is None:
|
|
1075
|
+
# If using happy eyeballs, default to interleave addresses by family
|
|
1076
|
+
interleave = 1
|
|
1077
|
+
|
|
1078
|
+
if host is not None or port is not None:
|
|
1079
|
+
if sock is not None:
|
|
1080
|
+
raise ValueError(
|
|
1081
|
+
'host/port and sock can not be specified at the same time')
|
|
1082
|
+
|
|
1083
|
+
infos = await self._ensure_resolved(
|
|
1084
|
+
(host, port), family=family,
|
|
1085
|
+
type=socket.SOCK_STREAM, proto=proto, flags=flags, loop=self)
|
|
1086
|
+
if not infos:
|
|
1087
|
+
raise OSError('getaddrinfo() returned empty list')
|
|
1088
|
+
|
|
1089
|
+
if local_addr is not None:
|
|
1090
|
+
laddr_infos = await self._ensure_resolved(
|
|
1091
|
+
local_addr, family=family,
|
|
1092
|
+
type=socket.SOCK_STREAM, proto=proto,
|
|
1093
|
+
flags=flags, loop=self)
|
|
1094
|
+
if not laddr_infos:
|
|
1095
|
+
raise OSError('getaddrinfo() returned empty list')
|
|
1096
|
+
else:
|
|
1097
|
+
laddr_infos = None
|
|
1098
|
+
|
|
1099
|
+
if interleave:
|
|
1100
|
+
infos = _interleave_addrinfos(infos, interleave)
|
|
1101
|
+
|
|
1102
|
+
exceptions = []
|
|
1103
|
+
if happy_eyeballs_delay is None:
|
|
1104
|
+
# not using happy eyeballs
|
|
1105
|
+
for addrinfo in infos:
|
|
1106
|
+
try:
|
|
1107
|
+
sock = await self._connect_sock(
|
|
1108
|
+
exceptions, addrinfo, laddr_infos)
|
|
1109
|
+
break
|
|
1110
|
+
except OSError:
|
|
1111
|
+
continue
|
|
1112
|
+
else: # using happy eyeballs
|
|
1113
|
+
sock = (await staggered.staggered_race(
|
|
1114
|
+
(
|
|
1115
|
+
# can't use functools.partial as it keeps a reference
|
|
1116
|
+
# to exceptions
|
|
1117
|
+
lambda addrinfo=addrinfo: self._connect_sock(
|
|
1118
|
+
exceptions, addrinfo, laddr_infos
|
|
1119
|
+
)
|
|
1120
|
+
for addrinfo in infos
|
|
1121
|
+
),
|
|
1122
|
+
happy_eyeballs_delay,
|
|
1123
|
+
loop=self,
|
|
1124
|
+
))[0] # can't use sock, _, _ as it keeks a reference to exceptions
|
|
1125
|
+
|
|
1126
|
+
if sock is None:
|
|
1127
|
+
exceptions = [exc for sub in exceptions for exc in sub]
|
|
1128
|
+
try:
|
|
1129
|
+
if all_errors:
|
|
1130
|
+
raise ExceptionGroup("create_connection failed", exceptions)
|
|
1131
|
+
if len(exceptions) == 1:
|
|
1132
|
+
raise exceptions[0]
|
|
1133
|
+
else:
|
|
1134
|
+
# If they all have the same str(), raise one.
|
|
1135
|
+
model = str(exceptions[0])
|
|
1136
|
+
if all(str(exc) == model for exc in exceptions):
|
|
1137
|
+
raise exceptions[0]
|
|
1138
|
+
# Raise a combined exception so the user can see all
|
|
1139
|
+
# the various error messages.
|
|
1140
|
+
raise OSError('Multiple exceptions: {}'.format(
|
|
1141
|
+
', '.join(str(exc) for exc in exceptions)))
|
|
1142
|
+
finally:
|
|
1143
|
+
exceptions = None
|
|
1144
|
+
|
|
1145
|
+
else:
|
|
1146
|
+
if sock is None:
|
|
1147
|
+
raise ValueError(
|
|
1148
|
+
'host and port was not specified and no sock specified')
|
|
1149
|
+
if sock.type != socket.SOCK_STREAM:
|
|
1150
|
+
# We allow AF_INET, AF_INET6, AF_UNIX as long as they
|
|
1151
|
+
# are SOCK_STREAM.
|
|
1152
|
+
# We support passing AF_UNIX sockets even though we have
|
|
1153
|
+
# a dedicated API for that: create_unix_connection.
|
|
1154
|
+
# Disallowing AF_UNIX in this method, breaks backwards
|
|
1155
|
+
# compatibility.
|
|
1156
|
+
raise ValueError(
|
|
1157
|
+
f'A Stream Socket was expected, got {sock!r}')
|
|
1158
|
+
|
|
1159
|
+
transport, protocol = await self._create_connection_transport(
|
|
1160
|
+
sock, protocol_factory, ssl, server_hostname,
|
|
1161
|
+
ssl_handshake_timeout=ssl_handshake_timeout,
|
|
1162
|
+
ssl_shutdown_timeout=ssl_shutdown_timeout)
|
|
1163
|
+
if self._debug:
|
|
1164
|
+
# Get the socket from the transport because SSL transport closes
|
|
1165
|
+
# the old socket and creates a new SSL socket
|
|
1166
|
+
sock = transport.get_extra_info('socket')
|
|
1167
|
+
logger.debug("%r connected to %s:%r: (%r, %r)",
|
|
1168
|
+
sock, host, port, transport, protocol)
|
|
1169
|
+
return transport, protocol
|
|
1170
|
+
|
|
1171
|
+
async def _create_connection_transport(
|
|
1172
|
+
self, sock, protocol_factory, ssl,
|
|
1173
|
+
server_hostname, server_side=False,
|
|
1174
|
+
ssl_handshake_timeout=None,
|
|
1175
|
+
ssl_shutdown_timeout=None):
|
|
1176
|
+
|
|
1177
|
+
sock.setblocking(False)
|
|
1178
|
+
|
|
1179
|
+
protocol = protocol_factory()
|
|
1180
|
+
waiter = self.create_future()
|
|
1181
|
+
if ssl:
|
|
1182
|
+
sslcontext = None if isinstance(ssl, bool) else ssl
|
|
1183
|
+
transport = self._make_ssl_transport(
|
|
1184
|
+
sock, protocol, sslcontext, waiter,
|
|
1185
|
+
server_side=server_side, server_hostname=server_hostname,
|
|
1186
|
+
ssl_handshake_timeout=ssl_handshake_timeout,
|
|
1187
|
+
ssl_shutdown_timeout=ssl_shutdown_timeout)
|
|
1188
|
+
else:
|
|
1189
|
+
transport = self._make_socket_transport(sock, protocol, waiter)
|
|
1190
|
+
|
|
1191
|
+
try:
|
|
1192
|
+
await waiter
|
|
1193
|
+
except:
|
|
1194
|
+
transport.close()
|
|
1195
|
+
raise
|
|
1196
|
+
|
|
1197
|
+
return transport, protocol
|
|
1198
|
+
|
|
1199
|
+
async def sendfile(self, transport, file, offset=0, count=None,
|
|
1200
|
+
*, fallback=True):
|
|
1201
|
+
"""Send a file to transport.
|
|
1202
|
+
|
|
1203
|
+
Return the total number of bytes which were sent.
|
|
1204
|
+
|
|
1205
|
+
The method uses high-performance os.sendfile if available.
|
|
1206
|
+
|
|
1207
|
+
file must be a regular file object opened in binary mode.
|
|
1208
|
+
|
|
1209
|
+
offset tells from where to start reading the file. If specified,
|
|
1210
|
+
count is the total number of bytes to transmit as opposed to
|
|
1211
|
+
sending the file until EOF is reached. File position is updated on
|
|
1212
|
+
return or also in case of error in which case file.tell()
|
|
1213
|
+
can be used to figure out the number of bytes
|
|
1214
|
+
which were sent.
|
|
1215
|
+
|
|
1216
|
+
fallback set to True makes asyncio to manually read and send
|
|
1217
|
+
the file when the platform does not support the sendfile syscall
|
|
1218
|
+
(e.g. Windows or SSL socket on Unix).
|
|
1219
|
+
|
|
1220
|
+
Raise SendfileNotAvailableError if the system does not support
|
|
1221
|
+
sendfile syscall and fallback is False.
|
|
1222
|
+
"""
|
|
1223
|
+
if transport.is_closing():
|
|
1224
|
+
raise RuntimeError("Transport is closing")
|
|
1225
|
+
mode = getattr(transport, '_sendfile_compatible',
|
|
1226
|
+
constants._SendfileMode.UNSUPPORTED)
|
|
1227
|
+
if mode is constants._SendfileMode.UNSUPPORTED:
|
|
1228
|
+
raise RuntimeError(
|
|
1229
|
+
f"sendfile is not supported for transport {transport!r}")
|
|
1230
|
+
if mode is constants._SendfileMode.TRY_NATIVE:
|
|
1231
|
+
try:
|
|
1232
|
+
return await self._sendfile_native(transport, file,
|
|
1233
|
+
offset, count)
|
|
1234
|
+
except exceptions.SendfileNotAvailableError as exc:
|
|
1235
|
+
if not fallback:
|
|
1236
|
+
raise
|
|
1237
|
+
|
|
1238
|
+
if not fallback:
|
|
1239
|
+
raise RuntimeError(
|
|
1240
|
+
f"fallback is disabled and native sendfile is not "
|
|
1241
|
+
f"supported for transport {transport!r}")
|
|
1242
|
+
|
|
1243
|
+
return await self._sendfile_fallback(transport, file,
|
|
1244
|
+
offset, count)
|
|
1245
|
+
|
|
1246
|
+
async def _sendfile_native(self, transp, file, offset, count):
|
|
1247
|
+
raise exceptions.SendfileNotAvailableError(
|
|
1248
|
+
"sendfile syscall is not supported")
|
|
1249
|
+
|
|
1250
|
+
async def _sendfile_fallback(self, transp, file, offset, count):
|
|
1251
|
+
if offset:
|
|
1252
|
+
file.seek(offset)
|
|
1253
|
+
blocksize = min(count, 16384) if count else 16384
|
|
1254
|
+
buf = bytearray(blocksize)
|
|
1255
|
+
total_sent = 0
|
|
1256
|
+
proto = _SendfileFallbackProtocol(transp)
|
|
1257
|
+
try:
|
|
1258
|
+
while True:
|
|
1259
|
+
if count:
|
|
1260
|
+
blocksize = min(count - total_sent, blocksize)
|
|
1261
|
+
if blocksize <= 0:
|
|
1262
|
+
return total_sent
|
|
1263
|
+
view = memoryview(buf)[:blocksize]
|
|
1264
|
+
read = await self.run_in_executor(None, file.readinto, view)
|
|
1265
|
+
if not read:
|
|
1266
|
+
return total_sent # EOF
|
|
1267
|
+
transp.write(view[:read])
|
|
1268
|
+
await proto.drain()
|
|
1269
|
+
total_sent += read
|
|
1270
|
+
finally:
|
|
1271
|
+
if total_sent > 0 and hasattr(file, 'seek'):
|
|
1272
|
+
file.seek(offset + total_sent)
|
|
1273
|
+
await proto.restore()
|
|
1274
|
+
|
|
1275
|
+
async def start_tls(self, transport, protocol, sslcontext, *,
|
|
1276
|
+
server_side=False,
|
|
1277
|
+
server_hostname=None,
|
|
1278
|
+
ssl_handshake_timeout=None,
|
|
1279
|
+
ssl_shutdown_timeout=None):
|
|
1280
|
+
"""Upgrade transport to TLS.
|
|
1281
|
+
|
|
1282
|
+
Return a new transport that *protocol* should start using
|
|
1283
|
+
immediately.
|
|
1284
|
+
"""
|
|
1285
|
+
if ssl is None:
|
|
1286
|
+
raise RuntimeError('Python ssl module is not available')
|
|
1287
|
+
|
|
1288
|
+
if not isinstance(sslcontext, ssl.SSLContext):
|
|
1289
|
+
raise TypeError(
|
|
1290
|
+
f'sslcontext is expected to be an instance of ssl.SSLContext, '
|
|
1291
|
+
f'got {sslcontext!r}')
|
|
1292
|
+
|
|
1293
|
+
if not getattr(transport, '_start_tls_compatible', False):
|
|
1294
|
+
raise TypeError(
|
|
1295
|
+
f'transport {transport!r} is not supported by start_tls()')
|
|
1296
|
+
|
|
1297
|
+
waiter = self.create_future()
|
|
1298
|
+
ssl_protocol = sslproto.SSLProtocol(
|
|
1299
|
+
self, protocol, sslcontext, waiter,
|
|
1300
|
+
server_side, server_hostname,
|
|
1301
|
+
ssl_handshake_timeout=ssl_handshake_timeout,
|
|
1302
|
+
ssl_shutdown_timeout=ssl_shutdown_timeout,
|
|
1303
|
+
call_connection_made=False)
|
|
1304
|
+
|
|
1305
|
+
# Pause early so that "ssl_protocol.data_received()" doesn't
|
|
1306
|
+
# have a chance to get called before "ssl_protocol.connection_made()".
|
|
1307
|
+
transport.pause_reading()
|
|
1308
|
+
|
|
1309
|
+
transport.set_protocol(ssl_protocol)
|
|
1310
|
+
conmade_cb = self.call_soon(ssl_protocol.connection_made, transport)
|
|
1311
|
+
resume_cb = self.call_soon(transport.resume_reading)
|
|
1312
|
+
|
|
1313
|
+
try:
|
|
1314
|
+
await waiter
|
|
1315
|
+
except BaseException:
|
|
1316
|
+
transport.close()
|
|
1317
|
+
conmade_cb.cancel()
|
|
1318
|
+
resume_cb.cancel()
|
|
1319
|
+
raise
|
|
1320
|
+
|
|
1321
|
+
return ssl_protocol._app_transport
|
|
1322
|
+
|
|
1323
|
+
async def create_datagram_endpoint(self, protocol_factory,
|
|
1324
|
+
local_addr=None, remote_addr=None, *,
|
|
1325
|
+
family=0, proto=0, flags=0,
|
|
1326
|
+
reuse_port=None,
|
|
1327
|
+
allow_broadcast=None, sock=None):
|
|
1328
|
+
"""Create datagram connection."""
|
|
1329
|
+
if sock is not None:
|
|
1330
|
+
if sock.type == socket.SOCK_STREAM:
|
|
1331
|
+
raise ValueError(
|
|
1332
|
+
f'A datagram socket was expected, got {sock!r}')
|
|
1333
|
+
if (local_addr or remote_addr or
|
|
1334
|
+
family or proto or flags or
|
|
1335
|
+
reuse_port or allow_broadcast):
|
|
1336
|
+
# show the problematic kwargs in exception msg
|
|
1337
|
+
opts = dict(local_addr=local_addr, remote_addr=remote_addr,
|
|
1338
|
+
family=family, proto=proto, flags=flags,
|
|
1339
|
+
reuse_port=reuse_port,
|
|
1340
|
+
allow_broadcast=allow_broadcast)
|
|
1341
|
+
problems = ', '.join(f'{k}={v}' for k, v in opts.items() if v)
|
|
1342
|
+
raise ValueError(
|
|
1343
|
+
f'socket modifier keyword arguments can not be used '
|
|
1344
|
+
f'when sock is specified. ({problems})')
|
|
1345
|
+
sock.setblocking(False)
|
|
1346
|
+
r_addr = None
|
|
1347
|
+
else:
|
|
1348
|
+
if not (local_addr or remote_addr):
|
|
1349
|
+
if family == 0:
|
|
1350
|
+
raise ValueError('unexpected address family')
|
|
1351
|
+
addr_pairs_info = (((family, proto), (None, None)),)
|
|
1352
|
+
elif hasattr(socket, 'AF_UNIX') and family == socket.AF_UNIX:
|
|
1353
|
+
for addr in (local_addr, remote_addr):
|
|
1354
|
+
if addr is not None and not isinstance(addr, str):
|
|
1355
|
+
raise TypeError('string is expected')
|
|
1356
|
+
|
|
1357
|
+
if local_addr and local_addr[0] not in (0, '\x00'):
|
|
1358
|
+
try:
|
|
1359
|
+
if stat.S_ISSOCK(os.stat(local_addr).st_mode):
|
|
1360
|
+
os.remove(local_addr)
|
|
1361
|
+
except FileNotFoundError:
|
|
1362
|
+
pass
|
|
1363
|
+
except OSError as err:
|
|
1364
|
+
# Directory may have permissions only to create socket.
|
|
1365
|
+
logger.error('Unable to check or remove stale UNIX '
|
|
1366
|
+
'socket %r: %r',
|
|
1367
|
+
local_addr, err)
|
|
1368
|
+
|
|
1369
|
+
addr_pairs_info = (((family, proto),
|
|
1370
|
+
(local_addr, remote_addr)), )
|
|
1371
|
+
else:
|
|
1372
|
+
# join address by (family, protocol)
|
|
1373
|
+
addr_infos = {} # Using order preserving dict
|
|
1374
|
+
for idx, addr in ((0, local_addr), (1, remote_addr)):
|
|
1375
|
+
if addr is not None:
|
|
1376
|
+
if not (isinstance(addr, tuple) and len(addr) == 2):
|
|
1377
|
+
raise TypeError('2-tuple is expected')
|
|
1378
|
+
|
|
1379
|
+
infos = await self._ensure_resolved(
|
|
1380
|
+
addr, family=family, type=socket.SOCK_DGRAM,
|
|
1381
|
+
proto=proto, flags=flags, loop=self)
|
|
1382
|
+
if not infos:
|
|
1383
|
+
raise OSError('getaddrinfo() returned empty list')
|
|
1384
|
+
|
|
1385
|
+
for fam, _, pro, _, address in infos:
|
|
1386
|
+
key = (fam, pro)
|
|
1387
|
+
if key not in addr_infos:
|
|
1388
|
+
addr_infos[key] = [None, None]
|
|
1389
|
+
addr_infos[key][idx] = address
|
|
1390
|
+
|
|
1391
|
+
# each addr has to have info for each (family, proto) pair
|
|
1392
|
+
addr_pairs_info = [
|
|
1393
|
+
(key, addr_pair) for key, addr_pair in addr_infos.items()
|
|
1394
|
+
if not ((local_addr and addr_pair[0] is None) or
|
|
1395
|
+
(remote_addr and addr_pair[1] is None))]
|
|
1396
|
+
|
|
1397
|
+
if not addr_pairs_info:
|
|
1398
|
+
raise ValueError('can not get address information')
|
|
1399
|
+
|
|
1400
|
+
exceptions = []
|
|
1401
|
+
|
|
1402
|
+
for ((family, proto),
|
|
1403
|
+
(local_address, remote_address)) in addr_pairs_info:
|
|
1404
|
+
sock = None
|
|
1405
|
+
r_addr = None
|
|
1406
|
+
try:
|
|
1407
|
+
sock = socket.socket(
|
|
1408
|
+
family=family, type=socket.SOCK_DGRAM, proto=proto)
|
|
1409
|
+
if reuse_port:
|
|
1410
|
+
_set_reuseport(sock)
|
|
1411
|
+
if allow_broadcast:
|
|
1412
|
+
sock.setsockopt(
|
|
1413
|
+
socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
|
|
1414
|
+
sock.setblocking(False)
|
|
1415
|
+
|
|
1416
|
+
if local_addr:
|
|
1417
|
+
sock.bind(local_address)
|
|
1418
|
+
if remote_addr:
|
|
1419
|
+
if not allow_broadcast:
|
|
1420
|
+
await self.sock_connect(sock, remote_address)
|
|
1421
|
+
r_addr = remote_address
|
|
1422
|
+
except OSError as exc:
|
|
1423
|
+
if sock is not None:
|
|
1424
|
+
sock.close()
|
|
1425
|
+
exceptions.append(exc)
|
|
1426
|
+
except:
|
|
1427
|
+
if sock is not None:
|
|
1428
|
+
sock.close()
|
|
1429
|
+
raise
|
|
1430
|
+
else:
|
|
1431
|
+
break
|
|
1432
|
+
else:
|
|
1433
|
+
raise exceptions[0]
|
|
1434
|
+
|
|
1435
|
+
protocol = protocol_factory()
|
|
1436
|
+
waiter = self.create_future()
|
|
1437
|
+
transport = self._make_datagram_transport(
|
|
1438
|
+
sock, protocol, r_addr, waiter)
|
|
1439
|
+
if self._debug:
|
|
1440
|
+
if local_addr:
|
|
1441
|
+
logger.info("Datagram endpoint local_addr=%r remote_addr=%r "
|
|
1442
|
+
"created: (%r, %r)",
|
|
1443
|
+
local_addr, remote_addr, transport, protocol)
|
|
1444
|
+
else:
|
|
1445
|
+
logger.debug("Datagram endpoint remote_addr=%r created: "
|
|
1446
|
+
"(%r, %r)",
|
|
1447
|
+
remote_addr, transport, protocol)
|
|
1448
|
+
|
|
1449
|
+
try:
|
|
1450
|
+
await waiter
|
|
1451
|
+
except:
|
|
1452
|
+
transport.close()
|
|
1453
|
+
raise
|
|
1454
|
+
|
|
1455
|
+
return transport, protocol
|
|
1456
|
+
|
|
1457
|
+
async def _ensure_resolved(self, address, *,
|
|
1458
|
+
family=0, type=socket.SOCK_STREAM,
|
|
1459
|
+
proto=0, flags=0, loop):
|
|
1460
|
+
host, port = address[:2]
|
|
1461
|
+
info = _ipaddr_info(host, port, family, type, proto, *address[2:])
|
|
1462
|
+
if info is not None:
|
|
1463
|
+
# "host" is already a resolved IP.
|
|
1464
|
+
return [info]
|
|
1465
|
+
else:
|
|
1466
|
+
return await loop.getaddrinfo(host, port, family=family, type=type,
|
|
1467
|
+
proto=proto, flags=flags)
|
|
1468
|
+
|
|
1469
|
+
async def _create_server_getaddrinfo(self, host, port, family, flags):
|
|
1470
|
+
infos = await self._ensure_resolved((host, port), family=family,
|
|
1471
|
+
type=socket.SOCK_STREAM,
|
|
1472
|
+
flags=flags, loop=self)
|
|
1473
|
+
if not infos:
|
|
1474
|
+
raise OSError(f'getaddrinfo({host!r}) returned empty list')
|
|
1475
|
+
return infos
|
|
1476
|
+
|
|
1477
|
+
async def create_server(
|
|
1478
|
+
self, protocol_factory, host=None, port=None,
|
|
1479
|
+
*,
|
|
1480
|
+
family=socket.AF_UNSPEC,
|
|
1481
|
+
flags=socket.AI_PASSIVE,
|
|
1482
|
+
sock=None,
|
|
1483
|
+
backlog=100,
|
|
1484
|
+
ssl=None,
|
|
1485
|
+
reuse_address=None,
|
|
1486
|
+
reuse_port=None,
|
|
1487
|
+
ssl_handshake_timeout=None,
|
|
1488
|
+
ssl_shutdown_timeout=None,
|
|
1489
|
+
start_serving=True):
|
|
1490
|
+
"""Create a TCP server.
|
|
1491
|
+
|
|
1492
|
+
The host parameter can be a string, in that case the TCP server is
|
|
1493
|
+
bound to host and port.
|
|
1494
|
+
|
|
1495
|
+
The host parameter can also be a sequence of strings and in that case
|
|
1496
|
+
the TCP server is bound to all hosts of the sequence. If a host
|
|
1497
|
+
appears multiple times (possibly indirectly e.g. when hostnames
|
|
1498
|
+
resolve to the same IP address), the server is only bound once to that
|
|
1499
|
+
host.
|
|
1500
|
+
|
|
1501
|
+
Return a Server object which can be used to stop the service.
|
|
1502
|
+
|
|
1503
|
+
This method is a coroutine.
|
|
1504
|
+
"""
|
|
1505
|
+
if isinstance(ssl, bool):
|
|
1506
|
+
raise TypeError('ssl argument must be an SSLContext or None')
|
|
1507
|
+
|
|
1508
|
+
if ssl_handshake_timeout is not None and ssl is None:
|
|
1509
|
+
raise ValueError(
|
|
1510
|
+
'ssl_handshake_timeout is only meaningful with ssl')
|
|
1511
|
+
|
|
1512
|
+
if ssl_shutdown_timeout is not None and ssl is None:
|
|
1513
|
+
raise ValueError(
|
|
1514
|
+
'ssl_shutdown_timeout is only meaningful with ssl')
|
|
1515
|
+
|
|
1516
|
+
if sock is not None:
|
|
1517
|
+
_check_ssl_socket(sock)
|
|
1518
|
+
|
|
1519
|
+
if host is not None or port is not None:
|
|
1520
|
+
if sock is not None:
|
|
1521
|
+
raise ValueError(
|
|
1522
|
+
'host/port and sock can not be specified at the same time')
|
|
1523
|
+
|
|
1524
|
+
if reuse_address is None:
|
|
1525
|
+
reuse_address = os.name == "posix" and sys.platform != "cygwin"
|
|
1526
|
+
sockets = []
|
|
1527
|
+
if host == '':
|
|
1528
|
+
hosts = [None]
|
|
1529
|
+
elif (isinstance(host, str) or
|
|
1530
|
+
not isinstance(host, collections.abc.Iterable)):
|
|
1531
|
+
hosts = [host]
|
|
1532
|
+
else:
|
|
1533
|
+
hosts = host
|
|
1534
|
+
|
|
1535
|
+
fs = [self._create_server_getaddrinfo(host, port, family=family,
|
|
1536
|
+
flags=flags)
|
|
1537
|
+
for host in hosts]
|
|
1538
|
+
infos = await tasks.gather(*fs)
|
|
1539
|
+
infos = set(itertools.chain.from_iterable(infos))
|
|
1540
|
+
|
|
1541
|
+
completed = False
|
|
1542
|
+
try:
|
|
1543
|
+
for res in infos:
|
|
1544
|
+
af, socktype, proto, canonname, sa = res
|
|
1545
|
+
try:
|
|
1546
|
+
sock = socket.socket(af, socktype, proto)
|
|
1547
|
+
except socket.error:
|
|
1548
|
+
# Assume it's a bad family/type/protocol combination.
|
|
1549
|
+
if self._debug:
|
|
1550
|
+
logger.warning('create_server() failed to create '
|
|
1551
|
+
'socket.socket(%r, %r, %r)',
|
|
1552
|
+
af, socktype, proto, exc_info=True)
|
|
1553
|
+
continue
|
|
1554
|
+
sockets.append(sock)
|
|
1555
|
+
if reuse_address:
|
|
1556
|
+
sock.setsockopt(
|
|
1557
|
+
socket.SOL_SOCKET, socket.SO_REUSEADDR, True)
|
|
1558
|
+
# Since Linux 6.12.9, SO_REUSEPORT is not allowed
|
|
1559
|
+
# on other address families than AF_INET/AF_INET6.
|
|
1560
|
+
if reuse_port and af in (socket.AF_INET, socket.AF_INET6):
|
|
1561
|
+
_set_reuseport(sock)
|
|
1562
|
+
# Disable IPv4/IPv6 dual stack support (enabled by
|
|
1563
|
+
# default on Linux) which makes a single socket
|
|
1564
|
+
# listen on both address families.
|
|
1565
|
+
if (_HAS_IPv6 and
|
|
1566
|
+
af == socket.AF_INET6 and
|
|
1567
|
+
hasattr(socket, 'IPPROTO_IPV6')):
|
|
1568
|
+
sock.setsockopt(socket.IPPROTO_IPV6,
|
|
1569
|
+
socket.IPV6_V6ONLY,
|
|
1570
|
+
True)
|
|
1571
|
+
try:
|
|
1572
|
+
sock.bind(sa)
|
|
1573
|
+
except OSError as err:
|
|
1574
|
+
msg = ('error while attempting '
|
|
1575
|
+
'to bind on address %r: %s'
|
|
1576
|
+
% (sa, str(err).lower()))
|
|
1577
|
+
if err.errno == errno.EADDRNOTAVAIL:
|
|
1578
|
+
# Assume the family is not enabled (bpo-30945)
|
|
1579
|
+
sockets.pop()
|
|
1580
|
+
sock.close()
|
|
1581
|
+
if self._debug:
|
|
1582
|
+
logger.warning(msg)
|
|
1583
|
+
continue
|
|
1584
|
+
raise OSError(err.errno, msg) from None
|
|
1585
|
+
|
|
1586
|
+
if not sockets:
|
|
1587
|
+
raise OSError('could not bind on any address out of %r'
|
|
1588
|
+
% ([info[4] for info in infos],))
|
|
1589
|
+
|
|
1590
|
+
completed = True
|
|
1591
|
+
finally:
|
|
1592
|
+
if not completed:
|
|
1593
|
+
for sock in sockets:
|
|
1594
|
+
sock.close()
|
|
1595
|
+
else:
|
|
1596
|
+
if sock is None:
|
|
1597
|
+
raise ValueError('Neither host/port nor sock were specified')
|
|
1598
|
+
if sock.type != socket.SOCK_STREAM:
|
|
1599
|
+
raise ValueError(f'A Stream Socket was expected, got {sock!r}')
|
|
1600
|
+
sockets = [sock]
|
|
1601
|
+
|
|
1602
|
+
for sock in sockets:
|
|
1603
|
+
sock.setblocking(False)
|
|
1604
|
+
|
|
1605
|
+
server = Server(self, sockets, protocol_factory,
|
|
1606
|
+
ssl, backlog, ssl_handshake_timeout,
|
|
1607
|
+
ssl_shutdown_timeout)
|
|
1608
|
+
if start_serving:
|
|
1609
|
+
server._start_serving()
|
|
1610
|
+
# Skip one loop iteration so that all 'loop.add_reader'
|
|
1611
|
+
# go through.
|
|
1612
|
+
await tasks.sleep(0)
|
|
1613
|
+
|
|
1614
|
+
if self._debug:
|
|
1615
|
+
logger.info("%r is serving", server)
|
|
1616
|
+
return server
|
|
1617
|
+
|
|
1618
|
+
async def connect_accepted_socket(
|
|
1619
|
+
self, protocol_factory, sock,
|
|
1620
|
+
*, ssl=None,
|
|
1621
|
+
ssl_handshake_timeout=None,
|
|
1622
|
+
ssl_shutdown_timeout=None):
|
|
1623
|
+
if sock.type != socket.SOCK_STREAM:
|
|
1624
|
+
raise ValueError(f'A Stream Socket was expected, got {sock!r}')
|
|
1625
|
+
|
|
1626
|
+
if ssl_handshake_timeout is not None and not ssl:
|
|
1627
|
+
raise ValueError(
|
|
1628
|
+
'ssl_handshake_timeout is only meaningful with ssl')
|
|
1629
|
+
|
|
1630
|
+
if ssl_shutdown_timeout is not None and not ssl:
|
|
1631
|
+
raise ValueError(
|
|
1632
|
+
'ssl_shutdown_timeout is only meaningful with ssl')
|
|
1633
|
+
|
|
1634
|
+
if sock is not None:
|
|
1635
|
+
_check_ssl_socket(sock)
|
|
1636
|
+
|
|
1637
|
+
transport, protocol = await self._create_connection_transport(
|
|
1638
|
+
sock, protocol_factory, ssl, '', server_side=True,
|
|
1639
|
+
ssl_handshake_timeout=ssl_handshake_timeout,
|
|
1640
|
+
ssl_shutdown_timeout=ssl_shutdown_timeout)
|
|
1641
|
+
if self._debug:
|
|
1642
|
+
# Get the socket from the transport because SSL transport closes
|
|
1643
|
+
# the old socket and creates a new SSL socket
|
|
1644
|
+
sock = transport.get_extra_info('socket')
|
|
1645
|
+
logger.debug("%r handled: (%r, %r)", sock, transport, protocol)
|
|
1646
|
+
return transport, protocol
|
|
1647
|
+
|
|
1648
|
+
async def connect_read_pipe(self, protocol_factory, pipe):
|
|
1649
|
+
protocol = protocol_factory()
|
|
1650
|
+
waiter = self.create_future()
|
|
1651
|
+
transport = self._make_read_pipe_transport(pipe, protocol, waiter)
|
|
1652
|
+
|
|
1653
|
+
try:
|
|
1654
|
+
await waiter
|
|
1655
|
+
except:
|
|
1656
|
+
transport.close()
|
|
1657
|
+
raise
|
|
1658
|
+
|
|
1659
|
+
if self._debug:
|
|
1660
|
+
logger.debug('Read pipe %r connected: (%r, %r)',
|
|
1661
|
+
pipe.fileno(), transport, protocol)
|
|
1662
|
+
return transport, protocol
|
|
1663
|
+
|
|
1664
|
+
async def connect_write_pipe(self, protocol_factory, pipe):
|
|
1665
|
+
protocol = protocol_factory()
|
|
1666
|
+
waiter = self.create_future()
|
|
1667
|
+
transport = self._make_write_pipe_transport(pipe, protocol, waiter)
|
|
1668
|
+
|
|
1669
|
+
try:
|
|
1670
|
+
await waiter
|
|
1671
|
+
except:
|
|
1672
|
+
transport.close()
|
|
1673
|
+
raise
|
|
1674
|
+
|
|
1675
|
+
if self._debug:
|
|
1676
|
+
logger.debug('Write pipe %r connected: (%r, %r)',
|
|
1677
|
+
pipe.fileno(), transport, protocol)
|
|
1678
|
+
return transport, protocol
|
|
1679
|
+
|
|
1680
|
+
def _log_subprocess(self, msg, stdin, stdout, stderr):
|
|
1681
|
+
info = [msg]
|
|
1682
|
+
if stdin is not None:
|
|
1683
|
+
info.append(f'stdin={_format_pipe(stdin)}')
|
|
1684
|
+
if stdout is not None and stderr == subprocess.STDOUT:
|
|
1685
|
+
info.append(f'stdout=stderr={_format_pipe(stdout)}')
|
|
1686
|
+
else:
|
|
1687
|
+
if stdout is not None:
|
|
1688
|
+
info.append(f'stdout={_format_pipe(stdout)}')
|
|
1689
|
+
if stderr is not None:
|
|
1690
|
+
info.append(f'stderr={_format_pipe(stderr)}')
|
|
1691
|
+
logger.debug(' '.join(info))
|
|
1692
|
+
|
|
1693
|
+
async def subprocess_shell(self, protocol_factory, cmd, *,
|
|
1694
|
+
stdin=subprocess.PIPE,
|
|
1695
|
+
stdout=subprocess.PIPE,
|
|
1696
|
+
stderr=subprocess.PIPE,
|
|
1697
|
+
universal_newlines=False,
|
|
1698
|
+
shell=True, bufsize=0,
|
|
1699
|
+
encoding=None, errors=None, text=None,
|
|
1700
|
+
**kwargs):
|
|
1701
|
+
if not isinstance(cmd, (bytes, str)):
|
|
1702
|
+
raise ValueError("cmd must be a string")
|
|
1703
|
+
if universal_newlines:
|
|
1704
|
+
raise ValueError("universal_newlines must be False")
|
|
1705
|
+
if not shell:
|
|
1706
|
+
raise ValueError("shell must be True")
|
|
1707
|
+
if bufsize != 0:
|
|
1708
|
+
raise ValueError("bufsize must be 0")
|
|
1709
|
+
if text:
|
|
1710
|
+
raise ValueError("text must be False")
|
|
1711
|
+
if encoding is not None:
|
|
1712
|
+
raise ValueError("encoding must be None")
|
|
1713
|
+
if errors is not None:
|
|
1714
|
+
raise ValueError("errors must be None")
|
|
1715
|
+
|
|
1716
|
+
protocol = protocol_factory()
|
|
1717
|
+
debug_log = None
|
|
1718
|
+
if self._debug:
|
|
1719
|
+
# don't log parameters: they may contain sensitive information
|
|
1720
|
+
# (password) and may be too long
|
|
1721
|
+
debug_log = 'run shell command %r' % cmd
|
|
1722
|
+
self._log_subprocess(debug_log, stdin, stdout, stderr)
|
|
1723
|
+
transport = await self._make_subprocess_transport(
|
|
1724
|
+
protocol, cmd, True, stdin, stdout, stderr, bufsize, **kwargs)
|
|
1725
|
+
if self._debug and debug_log is not None:
|
|
1726
|
+
logger.info('%s: %r', debug_log, transport)
|
|
1727
|
+
return transport, protocol
|
|
1728
|
+
|
|
1729
|
+
async def subprocess_exec(self, protocol_factory, program, *args,
|
|
1730
|
+
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
|
1731
|
+
stderr=subprocess.PIPE, universal_newlines=False,
|
|
1732
|
+
shell=False, bufsize=0,
|
|
1733
|
+
encoding=None, errors=None, text=None,
|
|
1734
|
+
**kwargs):
|
|
1735
|
+
if universal_newlines:
|
|
1736
|
+
raise ValueError("universal_newlines must be False")
|
|
1737
|
+
if shell:
|
|
1738
|
+
raise ValueError("shell must be False")
|
|
1739
|
+
if bufsize != 0:
|
|
1740
|
+
raise ValueError("bufsize must be 0")
|
|
1741
|
+
if text:
|
|
1742
|
+
raise ValueError("text must be False")
|
|
1743
|
+
if encoding is not None:
|
|
1744
|
+
raise ValueError("encoding must be None")
|
|
1745
|
+
if errors is not None:
|
|
1746
|
+
raise ValueError("errors must be None")
|
|
1747
|
+
|
|
1748
|
+
popen_args = (program,) + args
|
|
1749
|
+
protocol = protocol_factory()
|
|
1750
|
+
debug_log = None
|
|
1751
|
+
if self._debug:
|
|
1752
|
+
# don't log parameters: they may contain sensitive information
|
|
1753
|
+
# (password) and may be too long
|
|
1754
|
+
debug_log = f'execute program {program!r}'
|
|
1755
|
+
self._log_subprocess(debug_log, stdin, stdout, stderr)
|
|
1756
|
+
transport = await self._make_subprocess_transport(
|
|
1757
|
+
protocol, popen_args, False, stdin, stdout, stderr,
|
|
1758
|
+
bufsize, **kwargs)
|
|
1759
|
+
if self._debug and debug_log is not None:
|
|
1760
|
+
logger.info('%s: %r', debug_log, transport)
|
|
1761
|
+
return transport, protocol
|
|
1762
|
+
|
|
1763
|
+
def get_exception_handler(self):
|
|
1764
|
+
"""Return an exception handler, or None if the default one is in use.
|
|
1765
|
+
"""
|
|
1766
|
+
return self._exception_handler
|
|
1767
|
+
|
|
1768
|
+
def set_exception_handler(self, handler):
|
|
1769
|
+
"""Set handler as the new event loop exception handler.
|
|
1770
|
+
|
|
1771
|
+
If handler is None, the default exception handler will
|
|
1772
|
+
be set.
|
|
1773
|
+
|
|
1774
|
+
If handler is a callable object, it should have a
|
|
1775
|
+
signature matching '(loop, context)', where 'loop'
|
|
1776
|
+
will be a reference to the active event loop, 'context'
|
|
1777
|
+
will be a dict object (see `call_exception_handler()`
|
|
1778
|
+
documentation for details about context).
|
|
1779
|
+
"""
|
|
1780
|
+
if handler is not None and not callable(handler):
|
|
1781
|
+
raise TypeError(f'A callable object or None is expected, '
|
|
1782
|
+
f'got {handler!r}')
|
|
1783
|
+
self._exception_handler = handler
|
|
1784
|
+
|
|
1785
|
+
def default_exception_handler(self, context):
|
|
1786
|
+
"""Default exception handler.
|
|
1787
|
+
|
|
1788
|
+
This is called when an exception occurs and no exception
|
|
1789
|
+
handler is set, and can be called by a custom exception
|
|
1790
|
+
handler that wants to defer to the default behavior.
|
|
1791
|
+
|
|
1792
|
+
This default handler logs the error message and other
|
|
1793
|
+
context-dependent information. In debug mode, a truncated
|
|
1794
|
+
stack trace is also appended showing where the given object
|
|
1795
|
+
(e.g. a handle or future or task) was created, if any.
|
|
1796
|
+
|
|
1797
|
+
The context parameter has the same meaning as in
|
|
1798
|
+
`call_exception_handler()`.
|
|
1799
|
+
"""
|
|
1800
|
+
message = context.get('message')
|
|
1801
|
+
if not message:
|
|
1802
|
+
message = 'Unhandled exception in event loop'
|
|
1803
|
+
|
|
1804
|
+
exception = context.get('exception')
|
|
1805
|
+
if exception is not None:
|
|
1806
|
+
exc_info = (type(exception), exception, exception.__traceback__)
|
|
1807
|
+
else:
|
|
1808
|
+
exc_info = False
|
|
1809
|
+
|
|
1810
|
+
if ('source_traceback' not in context and
|
|
1811
|
+
self._current_handle is not None and
|
|
1812
|
+
self._current_handle._source_traceback):
|
|
1813
|
+
context['handle_traceback'] = \
|
|
1814
|
+
self._current_handle._source_traceback
|
|
1815
|
+
|
|
1816
|
+
log_lines = [message]
|
|
1817
|
+
for key in sorted(context):
|
|
1818
|
+
if key in {'message', 'exception'}:
|
|
1819
|
+
continue
|
|
1820
|
+
value = context[key]
|
|
1821
|
+
if key == 'source_traceback':
|
|
1822
|
+
tb = ''.join(traceback.format_list(value))
|
|
1823
|
+
value = 'Object created at (most recent call last):\n'
|
|
1824
|
+
value += tb.rstrip()
|
|
1825
|
+
elif key == 'handle_traceback':
|
|
1826
|
+
tb = ''.join(traceback.format_list(value))
|
|
1827
|
+
value = 'Handle created at (most recent call last):\n'
|
|
1828
|
+
value += tb.rstrip()
|
|
1829
|
+
else:
|
|
1830
|
+
value = repr(value)
|
|
1831
|
+
log_lines.append(f'{key}: {value}')
|
|
1832
|
+
|
|
1833
|
+
logger.error('\n'.join(log_lines), exc_info=exc_info)
|
|
1834
|
+
|
|
1835
|
+
def call_exception_handler(self, context):
|
|
1836
|
+
"""Call the current event loop's exception handler.
|
|
1837
|
+
|
|
1838
|
+
The context argument is a dict containing the following keys:
|
|
1839
|
+
|
|
1840
|
+
- 'message': Error message;
|
|
1841
|
+
- 'exception' (optional): Exception object;
|
|
1842
|
+
- 'future' (optional): Future instance;
|
|
1843
|
+
- 'task' (optional): Task instance;
|
|
1844
|
+
- 'handle' (optional): Handle instance;
|
|
1845
|
+
- 'protocol' (optional): Protocol instance;
|
|
1846
|
+
- 'transport' (optional): Transport instance;
|
|
1847
|
+
- 'socket' (optional): Socket instance;
|
|
1848
|
+
- 'asyncgen' (optional): Asynchronous generator that caused
|
|
1849
|
+
the exception.
|
|
1850
|
+
|
|
1851
|
+
New keys maybe introduced in the future.
|
|
1852
|
+
|
|
1853
|
+
Note: do not overload this method in an event loop subclass.
|
|
1854
|
+
For custom exception handling, use the
|
|
1855
|
+
`set_exception_handler()` method.
|
|
1856
|
+
"""
|
|
1857
|
+
if self._exception_handler is None:
|
|
1858
|
+
try:
|
|
1859
|
+
self.default_exception_handler(context)
|
|
1860
|
+
except (SystemExit, KeyboardInterrupt):
|
|
1861
|
+
raise
|
|
1862
|
+
except BaseException:
|
|
1863
|
+
# Second protection layer for unexpected errors
|
|
1864
|
+
# in the default implementation, as well as for subclassed
|
|
1865
|
+
# event loops with overloaded "default_exception_handler".
|
|
1866
|
+
logger.error('Exception in default exception handler',
|
|
1867
|
+
exc_info=True)
|
|
1868
|
+
else:
|
|
1869
|
+
try:
|
|
1870
|
+
ctx = None
|
|
1871
|
+
thing = context.get("task")
|
|
1872
|
+
if thing is None:
|
|
1873
|
+
# Even though Futures don't have a context,
|
|
1874
|
+
# Task is a subclass of Future,
|
|
1875
|
+
# and sometimes the 'future' key holds a Task.
|
|
1876
|
+
thing = context.get("future")
|
|
1877
|
+
if thing is None:
|
|
1878
|
+
# Handles also have a context.
|
|
1879
|
+
thing = context.get("handle")
|
|
1880
|
+
if thing is not None and hasattr(thing, "get_context"):
|
|
1881
|
+
ctx = thing.get_context()
|
|
1882
|
+
if ctx is not None and hasattr(ctx, "run"):
|
|
1883
|
+
ctx.run(self._exception_handler, self, context)
|
|
1884
|
+
else:
|
|
1885
|
+
self._exception_handler(self, context)
|
|
1886
|
+
except (SystemExit, KeyboardInterrupt):
|
|
1887
|
+
raise
|
|
1888
|
+
except BaseException as exc:
|
|
1889
|
+
# Exception in the user set custom exception handler.
|
|
1890
|
+
try:
|
|
1891
|
+
# Let's try default handler.
|
|
1892
|
+
self.default_exception_handler({
|
|
1893
|
+
'message': 'Unhandled error in exception handler',
|
|
1894
|
+
'exception': exc,
|
|
1895
|
+
'context': context,
|
|
1896
|
+
})
|
|
1897
|
+
except (SystemExit, KeyboardInterrupt):
|
|
1898
|
+
raise
|
|
1899
|
+
except BaseException:
|
|
1900
|
+
# Guard 'default_exception_handler' in case it is
|
|
1901
|
+
# overloaded.
|
|
1902
|
+
logger.error('Exception in default exception handler '
|
|
1903
|
+
'while handling an unexpected error '
|
|
1904
|
+
'in custom exception handler',
|
|
1905
|
+
exc_info=True)
|
|
1906
|
+
|
|
1907
|
+
def _add_callback(self, handle):
|
|
1908
|
+
"""Add a Handle to _ready."""
|
|
1909
|
+
if not handle._cancelled:
|
|
1910
|
+
self._ready.append(handle)
|
|
1911
|
+
|
|
1912
|
+
def _add_callback_signalsafe(self, handle):
|
|
1913
|
+
"""Like _add_callback() but called from a signal handler."""
|
|
1914
|
+
self._add_callback(handle)
|
|
1915
|
+
self._write_to_self()
|
|
1916
|
+
|
|
1917
|
+
def _timer_handle_cancelled(self, handle):
|
|
1918
|
+
"""Notification that a TimerHandle has been cancelled."""
|
|
1919
|
+
if handle._scheduled:
|
|
1920
|
+
self._timer_cancelled_count += 1
|
|
1921
|
+
|
|
1922
|
+
def _run_once(self):
|
|
1923
|
+
"""Run one full iteration of the event loop.
|
|
1924
|
+
|
|
1925
|
+
This calls all currently ready callbacks, polls for I/O,
|
|
1926
|
+
schedules the resulting callbacks, and finally schedules
|
|
1927
|
+
'call_later' callbacks.
|
|
1928
|
+
"""
|
|
1929
|
+
|
|
1930
|
+
sched_count = len(self._scheduled)
|
|
1931
|
+
if (sched_count > _MIN_SCHEDULED_TIMER_HANDLES and
|
|
1932
|
+
self._timer_cancelled_count / sched_count >
|
|
1933
|
+
_MIN_CANCELLED_TIMER_HANDLES_FRACTION):
|
|
1934
|
+
# Remove delayed calls that were cancelled if their number
|
|
1935
|
+
# is too high
|
|
1936
|
+
new_scheduled = []
|
|
1937
|
+
for handle in self._scheduled:
|
|
1938
|
+
if handle._cancelled:
|
|
1939
|
+
handle._scheduled = False
|
|
1940
|
+
else:
|
|
1941
|
+
new_scheduled.append(handle)
|
|
1942
|
+
|
|
1943
|
+
heapq.heapify(new_scheduled)
|
|
1944
|
+
self._scheduled = new_scheduled
|
|
1945
|
+
self._timer_cancelled_count = 0
|
|
1946
|
+
else:
|
|
1947
|
+
# Remove delayed calls that were cancelled from head of queue.
|
|
1948
|
+
while self._scheduled and self._scheduled[0]._cancelled:
|
|
1949
|
+
self._timer_cancelled_count -= 1
|
|
1950
|
+
handle = heapq.heappop(self._scheduled)
|
|
1951
|
+
handle._scheduled = False
|
|
1952
|
+
|
|
1953
|
+
timeout = None
|
|
1954
|
+
if self._ready or self._stopping:
|
|
1955
|
+
timeout = 0
|
|
1956
|
+
elif self._scheduled:
|
|
1957
|
+
# Compute the desired timeout.
|
|
1958
|
+
when = self._scheduled[0]._when
|
|
1959
|
+
timeout = min(max(0, when - self.time()), MAXIMUM_SELECT_TIMEOUT)
|
|
1960
|
+
|
|
1961
|
+
event_list = self._selector.select(timeout)
|
|
1962
|
+
self._process_events(event_list)
|
|
1963
|
+
# Needed to break cycles when an exception occurs.
|
|
1964
|
+
event_list = None
|
|
1965
|
+
|
|
1966
|
+
# Handle 'later' callbacks that are ready.
|
|
1967
|
+
end_time = self.time() + self._clock_resolution
|
|
1968
|
+
while self._scheduled:
|
|
1969
|
+
handle = self._scheduled[0]
|
|
1970
|
+
if handle._when >= end_time:
|
|
1971
|
+
break
|
|
1972
|
+
handle = heapq.heappop(self._scheduled)
|
|
1973
|
+
handle._scheduled = False
|
|
1974
|
+
self._ready.append(handle)
|
|
1975
|
+
|
|
1976
|
+
# This is the only place where callbacks are actually *called*.
|
|
1977
|
+
# All other places just add them to ready.
|
|
1978
|
+
# Note: We run all currently scheduled callbacks, but not any
|
|
1979
|
+
# callbacks scheduled by callbacks run this time around --
|
|
1980
|
+
# they will be run the next time (after another I/O poll).
|
|
1981
|
+
# Use an idiom that is thread-safe without using locks.
|
|
1982
|
+
ntodo = len(self._ready)
|
|
1983
|
+
for i in range(ntodo):
|
|
1984
|
+
handle = self._ready.popleft()
|
|
1985
|
+
if handle._cancelled:
|
|
1986
|
+
continue
|
|
1987
|
+
if self._debug:
|
|
1988
|
+
try:
|
|
1989
|
+
self._current_handle = handle
|
|
1990
|
+
t0 = self.time()
|
|
1991
|
+
handle._run()
|
|
1992
|
+
dt = self.time() - t0
|
|
1993
|
+
if dt >= self.slow_callback_duration:
|
|
1994
|
+
logger.warning('Executing %s took %.3f seconds',
|
|
1995
|
+
_format_handle(handle), dt)
|
|
1996
|
+
finally:
|
|
1997
|
+
self._current_handle = None
|
|
1998
|
+
else:
|
|
1999
|
+
handle._run()
|
|
2000
|
+
handle = None # Needed to break cycles when an exception occurs.
|
|
2001
|
+
|
|
2002
|
+
def _set_coroutine_origin_tracking(self, enabled):
|
|
2003
|
+
if bool(enabled) == bool(self._coroutine_origin_tracking_enabled):
|
|
2004
|
+
return
|
|
2005
|
+
|
|
2006
|
+
if enabled:
|
|
2007
|
+
self._coroutine_origin_tracking_saved_depth = (
|
|
2008
|
+
sys.get_coroutine_origin_tracking_depth())
|
|
2009
|
+
sys.set_coroutine_origin_tracking_depth(
|
|
2010
|
+
constants.DEBUG_STACK_DEPTH)
|
|
2011
|
+
else:
|
|
2012
|
+
sys.set_coroutine_origin_tracking_depth(
|
|
2013
|
+
self._coroutine_origin_tracking_saved_depth)
|
|
2014
|
+
|
|
2015
|
+
self._coroutine_origin_tracking_enabled = enabled
|
|
2016
|
+
|
|
2017
|
+
def get_debug(self):
|
|
2018
|
+
return self._debug
|
|
2019
|
+
|
|
2020
|
+
def set_debug(self, enabled):
|
|
2021
|
+
self._debug = enabled
|
|
2022
|
+
|
|
2023
|
+
if self.is_running():
|
|
2024
|
+
self.call_soon_threadsafe(self._set_coroutine_origin_tracking, enabled)
|