@steerable/runtime-darwin-arm64 0.0.0-stage → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness-0.9.1.dist-info/METADATA +13 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness-0.9.1.dist-info/RECORD +23 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_harness-0.9.1.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.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_protocol-0.9.1.dist-info/METADATA +12 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_protocol-0.9.1.dist-info/RECORD +11 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_protocol-0.9.1.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.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime-0.9.1.dist-info/METADATA +72 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime-0.9.1.dist-info/RECORD +147 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_agent_runtime-0.9.1.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.1.dist-info/INSTALLER +1 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar-0.9.1.dist-info/METADATA +58 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar-0.9.1.dist-info/RECORD +79 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar-0.9.1.dist-info/WHEEL +5 -0
- package/python-runtime/python/lib/python3.12/site-packages/steerable_sidecar-0.9.1.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,2216 @@
|
|
|
1
|
+
# subprocess - Subprocesses with accessible I/O streams
|
|
2
|
+
#
|
|
3
|
+
# For more information about this module, see PEP 324.
|
|
4
|
+
#
|
|
5
|
+
# Copyright (c) 2003-2005 by Peter Astrand <astrand@lysator.liu.se>
|
|
6
|
+
#
|
|
7
|
+
# Licensed to PSF under a Contributor Agreement.
|
|
8
|
+
|
|
9
|
+
r"""Subprocesses with accessible I/O streams
|
|
10
|
+
|
|
11
|
+
This module allows you to spawn processes, connect to their
|
|
12
|
+
input/output/error pipes, and obtain their return codes.
|
|
13
|
+
|
|
14
|
+
For a complete description of this module see the Python documentation.
|
|
15
|
+
|
|
16
|
+
Main API
|
|
17
|
+
========
|
|
18
|
+
run(...): Runs a command, waits for it to complete, then returns a
|
|
19
|
+
CompletedProcess instance.
|
|
20
|
+
Popen(...): A class for flexibly executing a command in a new process
|
|
21
|
+
|
|
22
|
+
Constants
|
|
23
|
+
---------
|
|
24
|
+
DEVNULL: Special value that indicates that os.devnull should be used
|
|
25
|
+
PIPE: Special value that indicates a pipe should be created
|
|
26
|
+
STDOUT: Special value that indicates that stderr should go to stdout
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Older API
|
|
30
|
+
=========
|
|
31
|
+
call(...): Runs a command, waits for it to complete, then returns
|
|
32
|
+
the return code.
|
|
33
|
+
check_call(...): Same as call() but raises CalledProcessError()
|
|
34
|
+
if return code is not 0
|
|
35
|
+
check_output(...): Same as check_call() but returns the contents of
|
|
36
|
+
stdout instead of a return code
|
|
37
|
+
getoutput(...): Runs a command in the shell, waits for it to complete,
|
|
38
|
+
then returns the output
|
|
39
|
+
getstatusoutput(...): Runs a command in the shell, waits for it to complete,
|
|
40
|
+
then returns a (exitcode, output) tuple
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
import builtins
|
|
44
|
+
import errno
|
|
45
|
+
import io
|
|
46
|
+
import locale
|
|
47
|
+
import os
|
|
48
|
+
import time
|
|
49
|
+
import signal
|
|
50
|
+
import sys
|
|
51
|
+
import threading
|
|
52
|
+
import warnings
|
|
53
|
+
import contextlib
|
|
54
|
+
from time import monotonic as _time
|
|
55
|
+
import types
|
|
56
|
+
|
|
57
|
+
try:
|
|
58
|
+
import fcntl
|
|
59
|
+
except ImportError:
|
|
60
|
+
fcntl = None
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
__all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput",
|
|
64
|
+
"getoutput", "check_output", "run", "CalledProcessError", "DEVNULL",
|
|
65
|
+
"SubprocessError", "TimeoutExpired", "CompletedProcess"]
|
|
66
|
+
# NOTE: We intentionally exclude list2cmdline as it is
|
|
67
|
+
# considered an internal implementation detail. issue10838.
|
|
68
|
+
|
|
69
|
+
# use presence of msvcrt to detect Windows-like platforms (see bpo-8110)
|
|
70
|
+
try:
|
|
71
|
+
import msvcrt
|
|
72
|
+
except ModuleNotFoundError:
|
|
73
|
+
_mswindows = False
|
|
74
|
+
else:
|
|
75
|
+
_mswindows = True
|
|
76
|
+
|
|
77
|
+
# wasm32-emscripten and wasm32-wasi do not support processes
|
|
78
|
+
_can_fork_exec = sys.platform not in {"emscripten", "wasi"}
|
|
79
|
+
|
|
80
|
+
if _mswindows:
|
|
81
|
+
import _winapi
|
|
82
|
+
from _winapi import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP,
|
|
83
|
+
STD_INPUT_HANDLE, STD_OUTPUT_HANDLE,
|
|
84
|
+
STD_ERROR_HANDLE, SW_HIDE,
|
|
85
|
+
STARTF_USESTDHANDLES, STARTF_USESHOWWINDOW,
|
|
86
|
+
ABOVE_NORMAL_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS,
|
|
87
|
+
HIGH_PRIORITY_CLASS, IDLE_PRIORITY_CLASS,
|
|
88
|
+
NORMAL_PRIORITY_CLASS, REALTIME_PRIORITY_CLASS,
|
|
89
|
+
CREATE_NO_WINDOW, DETACHED_PROCESS,
|
|
90
|
+
CREATE_DEFAULT_ERROR_MODE, CREATE_BREAKAWAY_FROM_JOB)
|
|
91
|
+
|
|
92
|
+
__all__.extend(["CREATE_NEW_CONSOLE", "CREATE_NEW_PROCESS_GROUP",
|
|
93
|
+
"STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE",
|
|
94
|
+
"STD_ERROR_HANDLE", "SW_HIDE",
|
|
95
|
+
"STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW",
|
|
96
|
+
"STARTUPINFO",
|
|
97
|
+
"ABOVE_NORMAL_PRIORITY_CLASS", "BELOW_NORMAL_PRIORITY_CLASS",
|
|
98
|
+
"HIGH_PRIORITY_CLASS", "IDLE_PRIORITY_CLASS",
|
|
99
|
+
"NORMAL_PRIORITY_CLASS", "REALTIME_PRIORITY_CLASS",
|
|
100
|
+
"CREATE_NO_WINDOW", "DETACHED_PROCESS",
|
|
101
|
+
"CREATE_DEFAULT_ERROR_MODE", "CREATE_BREAKAWAY_FROM_JOB"])
|
|
102
|
+
else:
|
|
103
|
+
if _can_fork_exec:
|
|
104
|
+
from _posixsubprocess import fork_exec as _fork_exec
|
|
105
|
+
# used in methods that are called by __del__
|
|
106
|
+
_waitpid = os.waitpid
|
|
107
|
+
_waitstatus_to_exitcode = os.waitstatus_to_exitcode
|
|
108
|
+
_WIFSTOPPED = os.WIFSTOPPED
|
|
109
|
+
_WSTOPSIG = os.WSTOPSIG
|
|
110
|
+
_WNOHANG = os.WNOHANG
|
|
111
|
+
else:
|
|
112
|
+
_fork_exec = None
|
|
113
|
+
_waitpid = None
|
|
114
|
+
_waitstatus_to_exitcode = None
|
|
115
|
+
_WIFSTOPPED = None
|
|
116
|
+
_WSTOPSIG = None
|
|
117
|
+
_WNOHANG = None
|
|
118
|
+
import select
|
|
119
|
+
import selectors
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
# Exception classes used by this module.
|
|
123
|
+
class SubprocessError(Exception): pass
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
class CalledProcessError(SubprocessError):
|
|
127
|
+
"""Raised when run() is called with check=True and the process
|
|
128
|
+
returns a non-zero exit status.
|
|
129
|
+
|
|
130
|
+
Attributes:
|
|
131
|
+
cmd, returncode, stdout, stderr, output
|
|
132
|
+
"""
|
|
133
|
+
def __init__(self, returncode, cmd, output=None, stderr=None):
|
|
134
|
+
self.returncode = returncode
|
|
135
|
+
self.cmd = cmd
|
|
136
|
+
self.output = output
|
|
137
|
+
self.stderr = stderr
|
|
138
|
+
|
|
139
|
+
def __str__(self):
|
|
140
|
+
if self.returncode and self.returncode < 0:
|
|
141
|
+
try:
|
|
142
|
+
return "Command '%s' died with %r." % (
|
|
143
|
+
self.cmd, signal.Signals(-self.returncode))
|
|
144
|
+
except ValueError:
|
|
145
|
+
return "Command '%s' died with unknown signal %d." % (
|
|
146
|
+
self.cmd, -self.returncode)
|
|
147
|
+
else:
|
|
148
|
+
return "Command '%s' returned non-zero exit status %d." % (
|
|
149
|
+
self.cmd, self.returncode)
|
|
150
|
+
|
|
151
|
+
@property
|
|
152
|
+
def stdout(self):
|
|
153
|
+
"""Alias for output attribute, to match stderr"""
|
|
154
|
+
return self.output
|
|
155
|
+
|
|
156
|
+
@stdout.setter
|
|
157
|
+
def stdout(self, value):
|
|
158
|
+
# There's no obvious reason to set this, but allow it anyway so
|
|
159
|
+
# .stdout is a transparent alias for .output
|
|
160
|
+
self.output = value
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
class TimeoutExpired(SubprocessError):
|
|
164
|
+
"""This exception is raised when the timeout expires while waiting for a
|
|
165
|
+
child process.
|
|
166
|
+
|
|
167
|
+
Attributes:
|
|
168
|
+
cmd, output, stdout, stderr, timeout
|
|
169
|
+
"""
|
|
170
|
+
def __init__(self, cmd, timeout, output=None, stderr=None):
|
|
171
|
+
self.cmd = cmd
|
|
172
|
+
self.timeout = timeout
|
|
173
|
+
self.output = output
|
|
174
|
+
self.stderr = stderr
|
|
175
|
+
|
|
176
|
+
def __str__(self):
|
|
177
|
+
return ("Command '%s' timed out after %s seconds" %
|
|
178
|
+
(self.cmd, self.timeout))
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
def stdout(self):
|
|
182
|
+
return self.output
|
|
183
|
+
|
|
184
|
+
@stdout.setter
|
|
185
|
+
def stdout(self, value):
|
|
186
|
+
# There's no obvious reason to set this, but allow it anyway so
|
|
187
|
+
# .stdout is a transparent alias for .output
|
|
188
|
+
self.output = value
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
if _mswindows:
|
|
192
|
+
class STARTUPINFO:
|
|
193
|
+
def __init__(self, *, dwFlags=0, hStdInput=None, hStdOutput=None,
|
|
194
|
+
hStdError=None, wShowWindow=0, lpAttributeList=None):
|
|
195
|
+
self.dwFlags = dwFlags
|
|
196
|
+
self.hStdInput = hStdInput
|
|
197
|
+
self.hStdOutput = hStdOutput
|
|
198
|
+
self.hStdError = hStdError
|
|
199
|
+
self.wShowWindow = wShowWindow
|
|
200
|
+
self.lpAttributeList = lpAttributeList or {"handle_list": []}
|
|
201
|
+
|
|
202
|
+
def copy(self):
|
|
203
|
+
attr_list = self.lpAttributeList.copy()
|
|
204
|
+
if 'handle_list' in attr_list:
|
|
205
|
+
attr_list['handle_list'] = list(attr_list['handle_list'])
|
|
206
|
+
|
|
207
|
+
return STARTUPINFO(dwFlags=self.dwFlags,
|
|
208
|
+
hStdInput=self.hStdInput,
|
|
209
|
+
hStdOutput=self.hStdOutput,
|
|
210
|
+
hStdError=self.hStdError,
|
|
211
|
+
wShowWindow=self.wShowWindow,
|
|
212
|
+
lpAttributeList=attr_list)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
class Handle(int):
|
|
216
|
+
closed = False
|
|
217
|
+
|
|
218
|
+
def Close(self, CloseHandle=_winapi.CloseHandle):
|
|
219
|
+
if not self.closed:
|
|
220
|
+
self.closed = True
|
|
221
|
+
CloseHandle(self)
|
|
222
|
+
|
|
223
|
+
def Detach(self):
|
|
224
|
+
if not self.closed:
|
|
225
|
+
self.closed = True
|
|
226
|
+
return int(self)
|
|
227
|
+
raise ValueError("already closed")
|
|
228
|
+
|
|
229
|
+
def __repr__(self):
|
|
230
|
+
return "%s(%d)" % (self.__class__.__name__, int(self))
|
|
231
|
+
|
|
232
|
+
__del__ = Close
|
|
233
|
+
else:
|
|
234
|
+
# When select or poll has indicated that the file is writable,
|
|
235
|
+
# we can write up to _PIPE_BUF bytes without risk of blocking.
|
|
236
|
+
# POSIX defines PIPE_BUF as >= 512.
|
|
237
|
+
_PIPE_BUF = getattr(select, 'PIPE_BUF', 512)
|
|
238
|
+
|
|
239
|
+
# poll/select have the advantage of not requiring any extra file
|
|
240
|
+
# descriptor, contrarily to epoll/kqueue (also, they require a single
|
|
241
|
+
# syscall).
|
|
242
|
+
if hasattr(selectors, 'PollSelector'):
|
|
243
|
+
_PopenSelector = selectors.PollSelector
|
|
244
|
+
else:
|
|
245
|
+
_PopenSelector = selectors.SelectSelector
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
if _mswindows:
|
|
249
|
+
# On Windows we just need to close `Popen._handle` when we no longer need
|
|
250
|
+
# it, so that the kernel can free it. `Popen._handle` gets closed
|
|
251
|
+
# implicitly when the `Popen` instance is finalized (see `Handle.__del__`,
|
|
252
|
+
# which is calling `CloseHandle` as requested in [1]), so there is nothing
|
|
253
|
+
# for `_cleanup` to do.
|
|
254
|
+
#
|
|
255
|
+
# [1] https://docs.microsoft.com/en-us/windows/desktop/ProcThread/
|
|
256
|
+
# creating-processes
|
|
257
|
+
_active = None
|
|
258
|
+
|
|
259
|
+
def _cleanup():
|
|
260
|
+
pass
|
|
261
|
+
else:
|
|
262
|
+
# This lists holds Popen instances for which the underlying process had not
|
|
263
|
+
# exited at the time its __del__ method got called: those processes are
|
|
264
|
+
# wait()ed for synchronously from _cleanup() when a new Popen object is
|
|
265
|
+
# created, to avoid zombie processes.
|
|
266
|
+
_active = []
|
|
267
|
+
|
|
268
|
+
def _cleanup():
|
|
269
|
+
if _active is None:
|
|
270
|
+
return
|
|
271
|
+
for inst in _active[:]:
|
|
272
|
+
res = inst._internal_poll(_deadstate=sys.maxsize)
|
|
273
|
+
if res is not None:
|
|
274
|
+
try:
|
|
275
|
+
_active.remove(inst)
|
|
276
|
+
except ValueError:
|
|
277
|
+
# This can happen if two threads create a new Popen instance.
|
|
278
|
+
# It's harmless that it was already removed, so ignore.
|
|
279
|
+
pass
|
|
280
|
+
|
|
281
|
+
PIPE = -1
|
|
282
|
+
STDOUT = -2
|
|
283
|
+
DEVNULL = -3
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
# XXX This function is only used by multiprocessing and the test suite,
|
|
287
|
+
# but it's here so that it can be imported when Python is compiled without
|
|
288
|
+
# threads.
|
|
289
|
+
|
|
290
|
+
def _optim_args_from_interpreter_flags():
|
|
291
|
+
"""Return a list of command-line arguments reproducing the current
|
|
292
|
+
optimization settings in sys.flags."""
|
|
293
|
+
args = []
|
|
294
|
+
value = sys.flags.optimize
|
|
295
|
+
if value > 0:
|
|
296
|
+
args.append('-' + 'O' * value)
|
|
297
|
+
return args
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
def _args_from_interpreter_flags():
|
|
301
|
+
"""Return a list of command-line arguments reproducing the current
|
|
302
|
+
settings in sys.flags, sys.warnoptions and sys._xoptions."""
|
|
303
|
+
flag_opt_map = {
|
|
304
|
+
'debug': 'd',
|
|
305
|
+
# 'inspect': 'i',
|
|
306
|
+
# 'interactive': 'i',
|
|
307
|
+
'dont_write_bytecode': 'B',
|
|
308
|
+
'no_site': 'S',
|
|
309
|
+
'verbose': 'v',
|
|
310
|
+
'bytes_warning': 'b',
|
|
311
|
+
'quiet': 'q',
|
|
312
|
+
# -O is handled in _optim_args_from_interpreter_flags()
|
|
313
|
+
}
|
|
314
|
+
args = _optim_args_from_interpreter_flags()
|
|
315
|
+
for flag, opt in flag_opt_map.items():
|
|
316
|
+
v = getattr(sys.flags, flag)
|
|
317
|
+
if v > 0:
|
|
318
|
+
args.append('-' + opt * v)
|
|
319
|
+
|
|
320
|
+
if sys.flags.isolated:
|
|
321
|
+
args.append('-I')
|
|
322
|
+
else:
|
|
323
|
+
if sys.flags.ignore_environment:
|
|
324
|
+
args.append('-E')
|
|
325
|
+
if sys.flags.no_user_site:
|
|
326
|
+
args.append('-s')
|
|
327
|
+
if sys.flags.safe_path:
|
|
328
|
+
args.append('-P')
|
|
329
|
+
|
|
330
|
+
# -W options
|
|
331
|
+
warnopts = sys.warnoptions[:]
|
|
332
|
+
xoptions = getattr(sys, '_xoptions', {})
|
|
333
|
+
bytes_warning = sys.flags.bytes_warning
|
|
334
|
+
dev_mode = sys.flags.dev_mode
|
|
335
|
+
|
|
336
|
+
if bytes_warning > 1:
|
|
337
|
+
warnopts.remove("error::BytesWarning")
|
|
338
|
+
elif bytes_warning:
|
|
339
|
+
warnopts.remove("default::BytesWarning")
|
|
340
|
+
if dev_mode:
|
|
341
|
+
warnopts.remove('default')
|
|
342
|
+
for opt in warnopts:
|
|
343
|
+
args.append('-W' + opt)
|
|
344
|
+
|
|
345
|
+
# -X options
|
|
346
|
+
if dev_mode:
|
|
347
|
+
args.extend(('-X', 'dev'))
|
|
348
|
+
for opt in ('faulthandler', 'tracemalloc', 'importtime',
|
|
349
|
+
'frozen_modules', 'showrefcount', 'utf8'):
|
|
350
|
+
if opt in xoptions:
|
|
351
|
+
value = xoptions[opt]
|
|
352
|
+
if value is True:
|
|
353
|
+
arg = opt
|
|
354
|
+
else:
|
|
355
|
+
arg = '%s=%s' % (opt, value)
|
|
356
|
+
args.extend(('-X', arg))
|
|
357
|
+
|
|
358
|
+
return args
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
def _text_encoding():
|
|
362
|
+
# Return default text encoding and emit EncodingWarning if
|
|
363
|
+
# sys.flags.warn_default_encoding is true.
|
|
364
|
+
if sys.flags.warn_default_encoding:
|
|
365
|
+
f = sys._getframe()
|
|
366
|
+
filename = f.f_code.co_filename
|
|
367
|
+
stacklevel = 2
|
|
368
|
+
while f := f.f_back:
|
|
369
|
+
if f.f_code.co_filename != filename:
|
|
370
|
+
break
|
|
371
|
+
stacklevel += 1
|
|
372
|
+
warnings.warn("'encoding' argument not specified.",
|
|
373
|
+
EncodingWarning, stacklevel)
|
|
374
|
+
|
|
375
|
+
if sys.flags.utf8_mode:
|
|
376
|
+
return "utf-8"
|
|
377
|
+
else:
|
|
378
|
+
return locale.getencoding()
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
def call(*popenargs, timeout=None, **kwargs):
|
|
382
|
+
"""Run command with arguments. Wait for command to complete or
|
|
383
|
+
for timeout seconds, then return the returncode attribute.
|
|
384
|
+
|
|
385
|
+
The arguments are the same as for the Popen constructor. Example:
|
|
386
|
+
|
|
387
|
+
retcode = call(["ls", "-l"])
|
|
388
|
+
"""
|
|
389
|
+
with Popen(*popenargs, **kwargs) as p:
|
|
390
|
+
try:
|
|
391
|
+
return p.wait(timeout=timeout)
|
|
392
|
+
except: # Including KeyboardInterrupt, wait handled that.
|
|
393
|
+
p.kill()
|
|
394
|
+
# We don't call p.wait() again as p.__exit__ does that for us.
|
|
395
|
+
raise
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
def check_call(*popenargs, **kwargs):
|
|
399
|
+
"""Run command with arguments. Wait for command to complete. If
|
|
400
|
+
the exit code was zero then return, otherwise raise
|
|
401
|
+
CalledProcessError. The CalledProcessError object will have the
|
|
402
|
+
return code in the returncode attribute.
|
|
403
|
+
|
|
404
|
+
The arguments are the same as for the call function. Example:
|
|
405
|
+
|
|
406
|
+
check_call(["ls", "-l"])
|
|
407
|
+
"""
|
|
408
|
+
retcode = call(*popenargs, **kwargs)
|
|
409
|
+
if retcode:
|
|
410
|
+
cmd = kwargs.get("args")
|
|
411
|
+
if cmd is None:
|
|
412
|
+
cmd = popenargs[0]
|
|
413
|
+
raise CalledProcessError(retcode, cmd)
|
|
414
|
+
return 0
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
def check_output(*popenargs, timeout=None, **kwargs):
|
|
418
|
+
r"""Run command with arguments and return its output.
|
|
419
|
+
|
|
420
|
+
If the exit code was non-zero it raises a CalledProcessError. The
|
|
421
|
+
CalledProcessError object will have the return code in the returncode
|
|
422
|
+
attribute and output in the output attribute.
|
|
423
|
+
|
|
424
|
+
The arguments are the same as for the Popen constructor. Example:
|
|
425
|
+
|
|
426
|
+
>>> check_output(["ls", "-l", "/dev/null"])
|
|
427
|
+
b'crw-rw-rw- 1 root root 1, 3 Oct 18 2007 /dev/null\n'
|
|
428
|
+
|
|
429
|
+
The stdout argument is not allowed as it is used internally.
|
|
430
|
+
To capture standard error in the result, use stderr=STDOUT.
|
|
431
|
+
|
|
432
|
+
>>> check_output(["/bin/sh", "-c",
|
|
433
|
+
... "ls -l non_existent_file ; exit 0"],
|
|
434
|
+
... stderr=STDOUT)
|
|
435
|
+
b'ls: non_existent_file: No such file or directory\n'
|
|
436
|
+
|
|
437
|
+
There is an additional optional argument, "input", allowing you to
|
|
438
|
+
pass a string to the subprocess's stdin. If you use this argument
|
|
439
|
+
you may not also use the Popen constructor's "stdin" argument, as
|
|
440
|
+
it too will be used internally. Example:
|
|
441
|
+
|
|
442
|
+
>>> check_output(["sed", "-e", "s/foo/bar/"],
|
|
443
|
+
... input=b"when in the course of fooman events\n")
|
|
444
|
+
b'when in the course of barman events\n'
|
|
445
|
+
|
|
446
|
+
By default, all communication is in bytes, and therefore any "input"
|
|
447
|
+
should be bytes, and the return value will be bytes. If in text mode,
|
|
448
|
+
any "input" should be a string, and the return value will be a string
|
|
449
|
+
decoded according to locale encoding, or by "encoding" if set. Text mode
|
|
450
|
+
is triggered by setting any of text, encoding, errors or universal_newlines.
|
|
451
|
+
"""
|
|
452
|
+
for kw in ('stdout', 'check'):
|
|
453
|
+
if kw in kwargs:
|
|
454
|
+
raise ValueError(f'{kw} argument not allowed, it will be overridden.')
|
|
455
|
+
|
|
456
|
+
if 'input' in kwargs and kwargs['input'] is None:
|
|
457
|
+
# Explicitly passing input=None was previously equivalent to passing an
|
|
458
|
+
# empty string. That is maintained here for backwards compatibility.
|
|
459
|
+
if kwargs.get('universal_newlines') or kwargs.get('text') or kwargs.get('encoding') \
|
|
460
|
+
or kwargs.get('errors'):
|
|
461
|
+
empty = ''
|
|
462
|
+
else:
|
|
463
|
+
empty = b''
|
|
464
|
+
kwargs['input'] = empty
|
|
465
|
+
|
|
466
|
+
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
|
|
467
|
+
**kwargs).stdout
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
class CompletedProcess(object):
|
|
471
|
+
"""A process that has finished running.
|
|
472
|
+
|
|
473
|
+
This is returned by run().
|
|
474
|
+
|
|
475
|
+
Attributes:
|
|
476
|
+
args: The list or str args passed to run().
|
|
477
|
+
returncode: The exit code of the process, negative for signals.
|
|
478
|
+
stdout: The standard output (None if not captured).
|
|
479
|
+
stderr: The standard error (None if not captured).
|
|
480
|
+
"""
|
|
481
|
+
def __init__(self, args, returncode, stdout=None, stderr=None):
|
|
482
|
+
self.args = args
|
|
483
|
+
self.returncode = returncode
|
|
484
|
+
self.stdout = stdout
|
|
485
|
+
self.stderr = stderr
|
|
486
|
+
|
|
487
|
+
def __repr__(self):
|
|
488
|
+
args = ['args={!r}'.format(self.args),
|
|
489
|
+
'returncode={!r}'.format(self.returncode)]
|
|
490
|
+
if self.stdout is not None:
|
|
491
|
+
args.append('stdout={!r}'.format(self.stdout))
|
|
492
|
+
if self.stderr is not None:
|
|
493
|
+
args.append('stderr={!r}'.format(self.stderr))
|
|
494
|
+
return "{}({})".format(type(self).__name__, ', '.join(args))
|
|
495
|
+
|
|
496
|
+
__class_getitem__ = classmethod(types.GenericAlias)
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
def check_returncode(self):
|
|
500
|
+
"""Raise CalledProcessError if the exit code is non-zero."""
|
|
501
|
+
if self.returncode:
|
|
502
|
+
raise CalledProcessError(self.returncode, self.args, self.stdout,
|
|
503
|
+
self.stderr)
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
def run(*popenargs,
|
|
507
|
+
input=None, capture_output=False, timeout=None, check=False, **kwargs):
|
|
508
|
+
"""Run command with arguments and return a CompletedProcess instance.
|
|
509
|
+
|
|
510
|
+
The returned instance will have attributes args, returncode, stdout and
|
|
511
|
+
stderr. By default, stdout and stderr are not captured, and those attributes
|
|
512
|
+
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
|
|
513
|
+
or pass capture_output=True to capture both.
|
|
514
|
+
|
|
515
|
+
If check is True and the exit code was non-zero, it raises a
|
|
516
|
+
CalledProcessError. The CalledProcessError object will have the return code
|
|
517
|
+
in the returncode attribute, and output & stderr attributes if those streams
|
|
518
|
+
were captured.
|
|
519
|
+
|
|
520
|
+
If timeout (seconds) is given and the process takes too long,
|
|
521
|
+
a TimeoutExpired exception will be raised.
|
|
522
|
+
|
|
523
|
+
There is an optional argument "input", allowing you to
|
|
524
|
+
pass bytes or a string to the subprocess's stdin. If you use this argument
|
|
525
|
+
you may not also use the Popen constructor's "stdin" argument, as
|
|
526
|
+
it will be used internally.
|
|
527
|
+
|
|
528
|
+
By default, all communication is in bytes, and therefore any "input" should
|
|
529
|
+
be bytes, and the stdout and stderr will be bytes. If in text mode, any
|
|
530
|
+
"input" should be a string, and stdout and stderr will be strings decoded
|
|
531
|
+
according to locale encoding, or by "encoding" if set. Text mode is
|
|
532
|
+
triggered by setting any of text, encoding, errors or universal_newlines.
|
|
533
|
+
|
|
534
|
+
The other arguments are the same as for the Popen constructor.
|
|
535
|
+
"""
|
|
536
|
+
if input is not None:
|
|
537
|
+
if kwargs.get('stdin') is not None:
|
|
538
|
+
raise ValueError('stdin and input arguments may not both be used.')
|
|
539
|
+
kwargs['stdin'] = PIPE
|
|
540
|
+
|
|
541
|
+
if capture_output:
|
|
542
|
+
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
|
|
543
|
+
raise ValueError('stdout and stderr arguments may not be used '
|
|
544
|
+
'with capture_output.')
|
|
545
|
+
kwargs['stdout'] = PIPE
|
|
546
|
+
kwargs['stderr'] = PIPE
|
|
547
|
+
|
|
548
|
+
with Popen(*popenargs, **kwargs) as process:
|
|
549
|
+
try:
|
|
550
|
+
stdout, stderr = process.communicate(input, timeout=timeout)
|
|
551
|
+
except TimeoutExpired as exc:
|
|
552
|
+
process.kill()
|
|
553
|
+
if _mswindows:
|
|
554
|
+
# Windows accumulates the output in a single blocking
|
|
555
|
+
# read() call run on child threads, with the timeout
|
|
556
|
+
# being done in a join() on those threads. communicate()
|
|
557
|
+
# _after_ kill() is required to collect that and add it
|
|
558
|
+
# to the exception.
|
|
559
|
+
exc.stdout, exc.stderr = process.communicate()
|
|
560
|
+
else:
|
|
561
|
+
# POSIX _communicate already populated the output so
|
|
562
|
+
# far into the TimeoutExpired exception.
|
|
563
|
+
process.wait()
|
|
564
|
+
raise
|
|
565
|
+
except: # Including KeyboardInterrupt, communicate handled that.
|
|
566
|
+
process.kill()
|
|
567
|
+
# We don't call process.wait() as .__exit__ does that for us.
|
|
568
|
+
raise
|
|
569
|
+
retcode = process.poll()
|
|
570
|
+
if check and retcode:
|
|
571
|
+
raise CalledProcessError(retcode, process.args,
|
|
572
|
+
output=stdout, stderr=stderr)
|
|
573
|
+
return CompletedProcess(process.args, retcode, stdout, stderr)
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
def list2cmdline(seq):
|
|
577
|
+
"""
|
|
578
|
+
Translate a sequence of arguments into a command line
|
|
579
|
+
string, using the same rules as the MS C runtime:
|
|
580
|
+
|
|
581
|
+
1) Arguments are delimited by white space, which is either a
|
|
582
|
+
space or a tab.
|
|
583
|
+
|
|
584
|
+
2) A string surrounded by double quotation marks is
|
|
585
|
+
interpreted as a single argument, regardless of white space
|
|
586
|
+
contained within. A quoted string can be embedded in an
|
|
587
|
+
argument.
|
|
588
|
+
|
|
589
|
+
3) A double quotation mark preceded by a backslash is
|
|
590
|
+
interpreted as a literal double quotation mark.
|
|
591
|
+
|
|
592
|
+
4) Backslashes are interpreted literally, unless they
|
|
593
|
+
immediately precede a double quotation mark.
|
|
594
|
+
|
|
595
|
+
5) If backslashes immediately precede a double quotation mark,
|
|
596
|
+
every pair of backslashes is interpreted as a literal
|
|
597
|
+
backslash. If the number of backslashes is odd, the last
|
|
598
|
+
backslash escapes the next double quotation mark as
|
|
599
|
+
described in rule 3.
|
|
600
|
+
"""
|
|
601
|
+
|
|
602
|
+
# See
|
|
603
|
+
# http://msdn.microsoft.com/en-us/library/17w5ykft.aspx
|
|
604
|
+
# or search http://msdn.microsoft.com for
|
|
605
|
+
# "Parsing C++ Command-Line Arguments"
|
|
606
|
+
result = []
|
|
607
|
+
needquote = False
|
|
608
|
+
for arg in map(os.fsdecode, seq):
|
|
609
|
+
bs_buf = []
|
|
610
|
+
|
|
611
|
+
# Add a space to separate this argument from the others
|
|
612
|
+
if result:
|
|
613
|
+
result.append(' ')
|
|
614
|
+
|
|
615
|
+
needquote = (" " in arg) or ("\t" in arg) or not arg
|
|
616
|
+
if needquote:
|
|
617
|
+
result.append('"')
|
|
618
|
+
|
|
619
|
+
for c in arg:
|
|
620
|
+
if c == '\\':
|
|
621
|
+
# Don't know if we need to double yet.
|
|
622
|
+
bs_buf.append(c)
|
|
623
|
+
elif c == '"':
|
|
624
|
+
# Double backslashes.
|
|
625
|
+
result.append('\\' * len(bs_buf)*2)
|
|
626
|
+
bs_buf = []
|
|
627
|
+
result.append('\\"')
|
|
628
|
+
else:
|
|
629
|
+
# Normal char
|
|
630
|
+
if bs_buf:
|
|
631
|
+
result.extend(bs_buf)
|
|
632
|
+
bs_buf = []
|
|
633
|
+
result.append(c)
|
|
634
|
+
|
|
635
|
+
# Add remaining backslashes, if any.
|
|
636
|
+
if bs_buf:
|
|
637
|
+
result.extend(bs_buf)
|
|
638
|
+
|
|
639
|
+
if needquote:
|
|
640
|
+
result.extend(bs_buf)
|
|
641
|
+
result.append('"')
|
|
642
|
+
|
|
643
|
+
return ''.join(result)
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
# Various tools for executing commands and looking at their output and status.
|
|
647
|
+
#
|
|
648
|
+
|
|
649
|
+
def getstatusoutput(cmd, *, encoding=None, errors=None):
|
|
650
|
+
"""Return (exitcode, output) of executing cmd in a shell.
|
|
651
|
+
|
|
652
|
+
Execute the string 'cmd' in a shell with 'check_output' and
|
|
653
|
+
return a 2-tuple (status, output). The locale encoding is used
|
|
654
|
+
to decode the output and process newlines.
|
|
655
|
+
|
|
656
|
+
A trailing newline is stripped from the output.
|
|
657
|
+
The exit status for the command can be interpreted
|
|
658
|
+
according to the rules for the function 'wait'. Example:
|
|
659
|
+
|
|
660
|
+
>>> import subprocess
|
|
661
|
+
>>> subprocess.getstatusoutput('ls /bin/ls')
|
|
662
|
+
(0, '/bin/ls')
|
|
663
|
+
>>> subprocess.getstatusoutput('cat /bin/junk')
|
|
664
|
+
(1, 'cat: /bin/junk: No such file or directory')
|
|
665
|
+
>>> subprocess.getstatusoutput('/bin/junk')
|
|
666
|
+
(127, 'sh: /bin/junk: not found')
|
|
667
|
+
>>> subprocess.getstatusoutput('/bin/kill $$')
|
|
668
|
+
(-15, '')
|
|
669
|
+
"""
|
|
670
|
+
try:
|
|
671
|
+
data = check_output(cmd, shell=True, text=True, stderr=STDOUT,
|
|
672
|
+
encoding=encoding, errors=errors)
|
|
673
|
+
exitcode = 0
|
|
674
|
+
except CalledProcessError as ex:
|
|
675
|
+
data = ex.output
|
|
676
|
+
exitcode = ex.returncode
|
|
677
|
+
if data[-1:] == '\n':
|
|
678
|
+
data = data[:-1]
|
|
679
|
+
return exitcode, data
|
|
680
|
+
|
|
681
|
+
def getoutput(cmd, *, encoding=None, errors=None):
|
|
682
|
+
"""Return output (stdout or stderr) of executing cmd in a shell.
|
|
683
|
+
|
|
684
|
+
Like getstatusoutput(), except the exit status is ignored and the return
|
|
685
|
+
value is a string containing the command's output. Example:
|
|
686
|
+
|
|
687
|
+
>>> import subprocess
|
|
688
|
+
>>> subprocess.getoutput('ls /bin/ls')
|
|
689
|
+
'/bin/ls'
|
|
690
|
+
"""
|
|
691
|
+
return getstatusoutput(cmd, encoding=encoding, errors=errors)[1]
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
def _use_posix_spawn():
|
|
696
|
+
"""Check if posix_spawn() can be used for subprocess.
|
|
697
|
+
|
|
698
|
+
subprocess requires a posix_spawn() implementation that properly reports
|
|
699
|
+
errors to the parent process, & sets errno on the following failures:
|
|
700
|
+
|
|
701
|
+
* Process attribute actions failed.
|
|
702
|
+
* File actions failed.
|
|
703
|
+
* exec() failed.
|
|
704
|
+
|
|
705
|
+
Prefer an implementation which can use vfork() in some cases for best
|
|
706
|
+
performance.
|
|
707
|
+
"""
|
|
708
|
+
if _mswindows or not hasattr(os, 'posix_spawn'):
|
|
709
|
+
# os.posix_spawn() is not available
|
|
710
|
+
return False
|
|
711
|
+
|
|
712
|
+
if sys.platform in ('darwin', 'sunos5'):
|
|
713
|
+
# posix_spawn() is a syscall on both macOS and Solaris,
|
|
714
|
+
# and properly reports errors
|
|
715
|
+
return True
|
|
716
|
+
|
|
717
|
+
# Check libc name and runtime libc version
|
|
718
|
+
try:
|
|
719
|
+
ver = os.confstr('CS_GNU_LIBC_VERSION')
|
|
720
|
+
# parse 'glibc 2.28' as ('glibc', (2, 28))
|
|
721
|
+
parts = ver.split(maxsplit=1)
|
|
722
|
+
if len(parts) != 2:
|
|
723
|
+
# reject unknown format
|
|
724
|
+
raise ValueError
|
|
725
|
+
libc = parts[0]
|
|
726
|
+
version = tuple(map(int, parts[1].split('.')))
|
|
727
|
+
|
|
728
|
+
if sys.platform == 'linux' and libc == 'glibc' and version >= (2, 24):
|
|
729
|
+
# glibc 2.24 has a new Linux posix_spawn implementation using vfork
|
|
730
|
+
# which properly reports errors to the parent process.
|
|
731
|
+
return True
|
|
732
|
+
# Note: Don't use the implementation in earlier glibc because it doesn't
|
|
733
|
+
# use vfork (even if glibc 2.26 added a pipe to properly report errors
|
|
734
|
+
# to the parent process).
|
|
735
|
+
except (AttributeError, ValueError, OSError):
|
|
736
|
+
# os.confstr() or CS_GNU_LIBC_VERSION value not available
|
|
737
|
+
pass
|
|
738
|
+
|
|
739
|
+
# By default, assume that posix_spawn() does not properly report errors.
|
|
740
|
+
return False
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
# These are primarily fail-safe knobs for negatives. A True value does not
|
|
744
|
+
# guarantee the given libc/syscall API will be used.
|
|
745
|
+
_USE_POSIX_SPAWN = _use_posix_spawn()
|
|
746
|
+
_USE_VFORK = True
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
class Popen:
|
|
750
|
+
""" Execute a child program in a new process.
|
|
751
|
+
|
|
752
|
+
For a complete description of the arguments see the Python documentation.
|
|
753
|
+
|
|
754
|
+
Arguments:
|
|
755
|
+
args: A string, or a sequence of program arguments.
|
|
756
|
+
|
|
757
|
+
bufsize: supplied as the buffering argument to the open() function when
|
|
758
|
+
creating the stdin/stdout/stderr pipe file objects
|
|
759
|
+
|
|
760
|
+
executable: A replacement program to execute.
|
|
761
|
+
|
|
762
|
+
stdin, stdout and stderr: These specify the executed programs' standard
|
|
763
|
+
input, standard output and standard error file handles, respectively.
|
|
764
|
+
|
|
765
|
+
preexec_fn: (POSIX only) An object to be called in the child process
|
|
766
|
+
just before the child is executed.
|
|
767
|
+
|
|
768
|
+
close_fds: Controls closing or inheriting of file descriptors.
|
|
769
|
+
|
|
770
|
+
shell: If true, the command will be executed through the shell.
|
|
771
|
+
|
|
772
|
+
cwd: Sets the current directory before the child is executed.
|
|
773
|
+
|
|
774
|
+
env: Defines the environment variables for the new process.
|
|
775
|
+
|
|
776
|
+
text: If true, decode stdin, stdout and stderr using the given encoding
|
|
777
|
+
(if set) or the system default otherwise.
|
|
778
|
+
|
|
779
|
+
universal_newlines: Alias of text, provided for backwards compatibility.
|
|
780
|
+
|
|
781
|
+
startupinfo and creationflags (Windows only)
|
|
782
|
+
|
|
783
|
+
restore_signals (POSIX only)
|
|
784
|
+
|
|
785
|
+
start_new_session (POSIX only)
|
|
786
|
+
|
|
787
|
+
process_group (POSIX only)
|
|
788
|
+
|
|
789
|
+
group (POSIX only)
|
|
790
|
+
|
|
791
|
+
extra_groups (POSIX only)
|
|
792
|
+
|
|
793
|
+
user (POSIX only)
|
|
794
|
+
|
|
795
|
+
umask (POSIX only)
|
|
796
|
+
|
|
797
|
+
pass_fds (POSIX only)
|
|
798
|
+
|
|
799
|
+
encoding and errors: Text mode encoding and error handling to use for
|
|
800
|
+
file objects stdin, stdout and stderr.
|
|
801
|
+
|
|
802
|
+
Attributes:
|
|
803
|
+
stdin, stdout, stderr, pid, returncode
|
|
804
|
+
"""
|
|
805
|
+
_child_created = False # Set here since __del__ checks it
|
|
806
|
+
|
|
807
|
+
def __init__(self, args, bufsize=-1, executable=None,
|
|
808
|
+
stdin=None, stdout=None, stderr=None,
|
|
809
|
+
preexec_fn=None, close_fds=True,
|
|
810
|
+
shell=False, cwd=None, env=None, universal_newlines=None,
|
|
811
|
+
startupinfo=None, creationflags=0,
|
|
812
|
+
restore_signals=True, start_new_session=False,
|
|
813
|
+
pass_fds=(), *, user=None, group=None, extra_groups=None,
|
|
814
|
+
encoding=None, errors=None, text=None, umask=-1, pipesize=-1,
|
|
815
|
+
process_group=None):
|
|
816
|
+
"""Create new Popen instance."""
|
|
817
|
+
if not _can_fork_exec:
|
|
818
|
+
raise OSError(
|
|
819
|
+
errno.ENOTSUP, f"{sys.platform} does not support processes."
|
|
820
|
+
)
|
|
821
|
+
|
|
822
|
+
_cleanup()
|
|
823
|
+
# Held while anything is calling waitpid before returncode has been
|
|
824
|
+
# updated to prevent clobbering returncode if wait() or poll() are
|
|
825
|
+
# called from multiple threads at once. After acquiring the lock,
|
|
826
|
+
# code must re-check self.returncode to see if another thread just
|
|
827
|
+
# finished a waitpid() call.
|
|
828
|
+
self._waitpid_lock = threading.Lock()
|
|
829
|
+
|
|
830
|
+
self._input = None
|
|
831
|
+
self._communication_started = False
|
|
832
|
+
if bufsize is None:
|
|
833
|
+
bufsize = -1 # Restore default
|
|
834
|
+
if not isinstance(bufsize, int):
|
|
835
|
+
raise TypeError("bufsize must be an integer")
|
|
836
|
+
|
|
837
|
+
if pipesize is None:
|
|
838
|
+
pipesize = -1 # Restore default
|
|
839
|
+
if not isinstance(pipesize, int):
|
|
840
|
+
raise TypeError("pipesize must be an integer")
|
|
841
|
+
|
|
842
|
+
if _mswindows:
|
|
843
|
+
if preexec_fn is not None:
|
|
844
|
+
raise ValueError("preexec_fn is not supported on Windows "
|
|
845
|
+
"platforms")
|
|
846
|
+
else:
|
|
847
|
+
# POSIX
|
|
848
|
+
if pass_fds and not close_fds:
|
|
849
|
+
warnings.warn("pass_fds overriding close_fds.", RuntimeWarning)
|
|
850
|
+
close_fds = True
|
|
851
|
+
if startupinfo is not None:
|
|
852
|
+
raise ValueError("startupinfo is only supported on Windows "
|
|
853
|
+
"platforms")
|
|
854
|
+
if creationflags != 0:
|
|
855
|
+
raise ValueError("creationflags is only supported on Windows "
|
|
856
|
+
"platforms")
|
|
857
|
+
|
|
858
|
+
self.args = args
|
|
859
|
+
self.stdin = None
|
|
860
|
+
self.stdout = None
|
|
861
|
+
self.stderr = None
|
|
862
|
+
self.pid = None
|
|
863
|
+
self.returncode = None
|
|
864
|
+
self.encoding = encoding
|
|
865
|
+
self.errors = errors
|
|
866
|
+
self.pipesize = pipesize
|
|
867
|
+
|
|
868
|
+
# Validate the combinations of text and universal_newlines
|
|
869
|
+
if (text is not None and universal_newlines is not None
|
|
870
|
+
and bool(universal_newlines) != bool(text)):
|
|
871
|
+
raise SubprocessError('Cannot disambiguate when both text '
|
|
872
|
+
'and universal_newlines are supplied but '
|
|
873
|
+
'different. Pass one or the other.')
|
|
874
|
+
|
|
875
|
+
self.text_mode = encoding or errors or text or universal_newlines
|
|
876
|
+
if self.text_mode and encoding is None:
|
|
877
|
+
self.encoding = encoding = _text_encoding()
|
|
878
|
+
|
|
879
|
+
# How long to resume waiting on a child after the first ^C.
|
|
880
|
+
# There is no right value for this. The purpose is to be polite
|
|
881
|
+
# yet remain good for interactive users trying to exit a tool.
|
|
882
|
+
self._sigint_wait_secs = 0.25 # 1/xkcd221.getRandomNumber()
|
|
883
|
+
|
|
884
|
+
self._closed_child_pipe_fds = False
|
|
885
|
+
|
|
886
|
+
if self.text_mode:
|
|
887
|
+
if bufsize == 1:
|
|
888
|
+
line_buffering = True
|
|
889
|
+
# Use the default buffer size for the underlying binary streams
|
|
890
|
+
# since they don't support line buffering.
|
|
891
|
+
bufsize = -1
|
|
892
|
+
else:
|
|
893
|
+
line_buffering = False
|
|
894
|
+
|
|
895
|
+
if process_group is None:
|
|
896
|
+
process_group = -1 # The internal APIs are int-only
|
|
897
|
+
|
|
898
|
+
gid = None
|
|
899
|
+
if group is not None:
|
|
900
|
+
if not hasattr(os, 'setregid'):
|
|
901
|
+
raise ValueError("The 'group' parameter is not supported on the "
|
|
902
|
+
"current platform")
|
|
903
|
+
|
|
904
|
+
elif isinstance(group, str):
|
|
905
|
+
try:
|
|
906
|
+
import grp
|
|
907
|
+
except ImportError:
|
|
908
|
+
raise ValueError("The group parameter cannot be a string "
|
|
909
|
+
"on systems without the grp module")
|
|
910
|
+
|
|
911
|
+
gid = grp.getgrnam(group).gr_gid
|
|
912
|
+
elif isinstance(group, int):
|
|
913
|
+
gid = group
|
|
914
|
+
else:
|
|
915
|
+
raise TypeError("Group must be a string or an integer, not {}"
|
|
916
|
+
.format(type(group)))
|
|
917
|
+
|
|
918
|
+
if gid < 0:
|
|
919
|
+
raise ValueError(f"Group ID cannot be negative, got {gid}")
|
|
920
|
+
|
|
921
|
+
gids = None
|
|
922
|
+
if extra_groups is not None:
|
|
923
|
+
if not hasattr(os, 'setgroups'):
|
|
924
|
+
raise ValueError("The 'extra_groups' parameter is not "
|
|
925
|
+
"supported on the current platform")
|
|
926
|
+
|
|
927
|
+
elif isinstance(extra_groups, str):
|
|
928
|
+
raise ValueError("Groups must be a list, not a string")
|
|
929
|
+
|
|
930
|
+
gids = []
|
|
931
|
+
for extra_group in extra_groups:
|
|
932
|
+
if isinstance(extra_group, str):
|
|
933
|
+
try:
|
|
934
|
+
import grp
|
|
935
|
+
except ImportError:
|
|
936
|
+
raise ValueError("Items in extra_groups cannot be "
|
|
937
|
+
"strings on systems without the "
|
|
938
|
+
"grp module")
|
|
939
|
+
|
|
940
|
+
gids.append(grp.getgrnam(extra_group).gr_gid)
|
|
941
|
+
elif isinstance(extra_group, int):
|
|
942
|
+
gids.append(extra_group)
|
|
943
|
+
else:
|
|
944
|
+
raise TypeError("Items in extra_groups must be a string "
|
|
945
|
+
"or integer, not {}"
|
|
946
|
+
.format(type(extra_group)))
|
|
947
|
+
|
|
948
|
+
# make sure that the gids are all positive here so we can do less
|
|
949
|
+
# checking in the C code
|
|
950
|
+
for gid_check in gids:
|
|
951
|
+
if gid_check < 0:
|
|
952
|
+
raise ValueError(f"Group ID cannot be negative, got {gid_check}")
|
|
953
|
+
|
|
954
|
+
uid = None
|
|
955
|
+
if user is not None:
|
|
956
|
+
if not hasattr(os, 'setreuid'):
|
|
957
|
+
raise ValueError("The 'user' parameter is not supported on "
|
|
958
|
+
"the current platform")
|
|
959
|
+
|
|
960
|
+
elif isinstance(user, str):
|
|
961
|
+
try:
|
|
962
|
+
import pwd
|
|
963
|
+
except ImportError:
|
|
964
|
+
raise ValueError("The user parameter cannot be a string "
|
|
965
|
+
"on systems without the pwd module")
|
|
966
|
+
uid = pwd.getpwnam(user).pw_uid
|
|
967
|
+
elif isinstance(user, int):
|
|
968
|
+
uid = user
|
|
969
|
+
else:
|
|
970
|
+
raise TypeError("User must be a string or an integer")
|
|
971
|
+
|
|
972
|
+
if uid < 0:
|
|
973
|
+
raise ValueError(f"User ID cannot be negative, got {uid}")
|
|
974
|
+
|
|
975
|
+
# Input and output objects. The general principle is like
|
|
976
|
+
# this:
|
|
977
|
+
#
|
|
978
|
+
# Parent Child
|
|
979
|
+
# ------ -----
|
|
980
|
+
# p2cwrite ---stdin---> p2cread
|
|
981
|
+
# c2pread <--stdout--- c2pwrite
|
|
982
|
+
# errread <--stderr--- errwrite
|
|
983
|
+
#
|
|
984
|
+
# On POSIX, the child objects are file descriptors. On
|
|
985
|
+
# Windows, these are Windows file handles. The parent objects
|
|
986
|
+
# are file descriptors on both platforms. The parent objects
|
|
987
|
+
# are -1 when not using PIPEs. The child objects are -1
|
|
988
|
+
# when not redirecting.
|
|
989
|
+
|
|
990
|
+
(p2cread, p2cwrite,
|
|
991
|
+
c2pread, c2pwrite,
|
|
992
|
+
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
|
|
993
|
+
|
|
994
|
+
# From here on, raising exceptions may cause file descriptor leakage
|
|
995
|
+
|
|
996
|
+
# We wrap OS handles *before* launching the child, otherwise a
|
|
997
|
+
# quickly terminating child could make our fds unwrappable
|
|
998
|
+
# (see #8458).
|
|
999
|
+
|
|
1000
|
+
if _mswindows:
|
|
1001
|
+
if p2cwrite != -1:
|
|
1002
|
+
p2cwrite = msvcrt.open_osfhandle(p2cwrite.Detach(), 0)
|
|
1003
|
+
if c2pread != -1:
|
|
1004
|
+
c2pread = msvcrt.open_osfhandle(c2pread.Detach(), 0)
|
|
1005
|
+
if errread != -1:
|
|
1006
|
+
errread = msvcrt.open_osfhandle(errread.Detach(), 0)
|
|
1007
|
+
|
|
1008
|
+
try:
|
|
1009
|
+
if p2cwrite != -1:
|
|
1010
|
+
self.stdin = io.open(p2cwrite, 'wb', bufsize)
|
|
1011
|
+
if self.text_mode:
|
|
1012
|
+
self.stdin = io.TextIOWrapper(self.stdin, write_through=True,
|
|
1013
|
+
line_buffering=line_buffering,
|
|
1014
|
+
encoding=encoding, errors=errors)
|
|
1015
|
+
if c2pread != -1:
|
|
1016
|
+
self.stdout = io.open(c2pread, 'rb', bufsize)
|
|
1017
|
+
if self.text_mode:
|
|
1018
|
+
self.stdout = io.TextIOWrapper(self.stdout,
|
|
1019
|
+
encoding=encoding, errors=errors)
|
|
1020
|
+
if errread != -1:
|
|
1021
|
+
self.stderr = io.open(errread, 'rb', bufsize)
|
|
1022
|
+
if self.text_mode:
|
|
1023
|
+
self.stderr = io.TextIOWrapper(self.stderr,
|
|
1024
|
+
encoding=encoding, errors=errors)
|
|
1025
|
+
|
|
1026
|
+
self._execute_child(args, executable, preexec_fn, close_fds,
|
|
1027
|
+
pass_fds, cwd, env,
|
|
1028
|
+
startupinfo, creationflags, shell,
|
|
1029
|
+
p2cread, p2cwrite,
|
|
1030
|
+
c2pread, c2pwrite,
|
|
1031
|
+
errread, errwrite,
|
|
1032
|
+
restore_signals,
|
|
1033
|
+
gid, gids, uid, umask,
|
|
1034
|
+
start_new_session, process_group)
|
|
1035
|
+
except:
|
|
1036
|
+
# Cleanup if the child failed starting.
|
|
1037
|
+
for f in filter(None, (self.stdin, self.stdout, self.stderr)):
|
|
1038
|
+
try:
|
|
1039
|
+
f.close()
|
|
1040
|
+
except OSError:
|
|
1041
|
+
pass # Ignore EBADF or other errors.
|
|
1042
|
+
|
|
1043
|
+
if not self._closed_child_pipe_fds:
|
|
1044
|
+
to_close = []
|
|
1045
|
+
if stdin == PIPE:
|
|
1046
|
+
to_close.append(p2cread)
|
|
1047
|
+
if stdout == PIPE:
|
|
1048
|
+
to_close.append(c2pwrite)
|
|
1049
|
+
if stderr == PIPE:
|
|
1050
|
+
to_close.append(errwrite)
|
|
1051
|
+
if hasattr(self, '_devnull'):
|
|
1052
|
+
to_close.append(self._devnull)
|
|
1053
|
+
for fd in to_close:
|
|
1054
|
+
try:
|
|
1055
|
+
if _mswindows and isinstance(fd, Handle):
|
|
1056
|
+
fd.Close()
|
|
1057
|
+
else:
|
|
1058
|
+
os.close(fd)
|
|
1059
|
+
except OSError:
|
|
1060
|
+
pass
|
|
1061
|
+
|
|
1062
|
+
raise
|
|
1063
|
+
|
|
1064
|
+
def __repr__(self):
|
|
1065
|
+
obj_repr = (
|
|
1066
|
+
f"<{self.__class__.__name__}: "
|
|
1067
|
+
f"returncode: {self.returncode} args: {self.args!r}>"
|
|
1068
|
+
)
|
|
1069
|
+
if len(obj_repr) > 80:
|
|
1070
|
+
obj_repr = obj_repr[:76] + "...>"
|
|
1071
|
+
return obj_repr
|
|
1072
|
+
|
|
1073
|
+
__class_getitem__ = classmethod(types.GenericAlias)
|
|
1074
|
+
|
|
1075
|
+
@property
|
|
1076
|
+
def universal_newlines(self):
|
|
1077
|
+
# universal_newlines as retained as an alias of text_mode for API
|
|
1078
|
+
# compatibility. bpo-31756
|
|
1079
|
+
return self.text_mode
|
|
1080
|
+
|
|
1081
|
+
@universal_newlines.setter
|
|
1082
|
+
def universal_newlines(self, universal_newlines):
|
|
1083
|
+
self.text_mode = bool(universal_newlines)
|
|
1084
|
+
|
|
1085
|
+
def _translate_newlines(self, data, encoding, errors):
|
|
1086
|
+
data = data.decode(encoding, errors)
|
|
1087
|
+
return data.replace("\r\n", "\n").replace("\r", "\n")
|
|
1088
|
+
|
|
1089
|
+
def __enter__(self):
|
|
1090
|
+
return self
|
|
1091
|
+
|
|
1092
|
+
def __exit__(self, exc_type, value, traceback):
|
|
1093
|
+
if self.stdout:
|
|
1094
|
+
self.stdout.close()
|
|
1095
|
+
if self.stderr:
|
|
1096
|
+
self.stderr.close()
|
|
1097
|
+
try: # Flushing a BufferedWriter may raise an error
|
|
1098
|
+
if self.stdin:
|
|
1099
|
+
self.stdin.close()
|
|
1100
|
+
finally:
|
|
1101
|
+
if exc_type == KeyboardInterrupt:
|
|
1102
|
+
# https://bugs.python.org/issue25942
|
|
1103
|
+
# In the case of a KeyboardInterrupt we assume the SIGINT
|
|
1104
|
+
# was also already sent to our child processes. We can't
|
|
1105
|
+
# block indefinitely as that is not user friendly.
|
|
1106
|
+
# If we have not already waited a brief amount of time in
|
|
1107
|
+
# an interrupted .wait() or .communicate() call, do so here
|
|
1108
|
+
# for consistency.
|
|
1109
|
+
if self._sigint_wait_secs > 0:
|
|
1110
|
+
try:
|
|
1111
|
+
self._wait(timeout=self._sigint_wait_secs)
|
|
1112
|
+
except TimeoutExpired:
|
|
1113
|
+
pass
|
|
1114
|
+
self._sigint_wait_secs = 0 # Note that this has been done.
|
|
1115
|
+
return # resume the KeyboardInterrupt
|
|
1116
|
+
|
|
1117
|
+
# Wait for the process to terminate, to avoid zombies.
|
|
1118
|
+
self.wait()
|
|
1119
|
+
|
|
1120
|
+
def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
|
|
1121
|
+
if not self._child_created:
|
|
1122
|
+
# We didn't get to successfully create a child process.
|
|
1123
|
+
return
|
|
1124
|
+
if self.returncode is None:
|
|
1125
|
+
# Not reading subprocess exit status creates a zombie process which
|
|
1126
|
+
# is only destroyed at the parent python process exit
|
|
1127
|
+
_warn("subprocess %s is still running" % self.pid,
|
|
1128
|
+
ResourceWarning, source=self)
|
|
1129
|
+
# In case the child hasn't been waited on, check if it's done.
|
|
1130
|
+
self._internal_poll(_deadstate=_maxsize)
|
|
1131
|
+
if self.returncode is None and _active is not None:
|
|
1132
|
+
# Child is still running, keep us alive until we can wait on it.
|
|
1133
|
+
_active.append(self)
|
|
1134
|
+
|
|
1135
|
+
def _get_devnull(self):
|
|
1136
|
+
if not hasattr(self, '_devnull'):
|
|
1137
|
+
self._devnull = os.open(os.devnull, os.O_RDWR)
|
|
1138
|
+
return self._devnull
|
|
1139
|
+
|
|
1140
|
+
def _stdin_write(self, input):
|
|
1141
|
+
if input:
|
|
1142
|
+
try:
|
|
1143
|
+
self.stdin.write(input)
|
|
1144
|
+
except BrokenPipeError:
|
|
1145
|
+
pass # communicate() must ignore broken pipe errors.
|
|
1146
|
+
except OSError as exc:
|
|
1147
|
+
if exc.errno == errno.EINVAL:
|
|
1148
|
+
# bpo-19612, bpo-30418: On Windows, stdin.write() fails
|
|
1149
|
+
# with EINVAL if the child process exited or if the child
|
|
1150
|
+
# process is still running but closed the pipe.
|
|
1151
|
+
pass
|
|
1152
|
+
else:
|
|
1153
|
+
raise
|
|
1154
|
+
|
|
1155
|
+
try:
|
|
1156
|
+
self.stdin.close()
|
|
1157
|
+
except BrokenPipeError:
|
|
1158
|
+
pass # communicate() must ignore broken pipe errors.
|
|
1159
|
+
except OSError as exc:
|
|
1160
|
+
if exc.errno == errno.EINVAL:
|
|
1161
|
+
pass
|
|
1162
|
+
else:
|
|
1163
|
+
raise
|
|
1164
|
+
|
|
1165
|
+
def communicate(self, input=None, timeout=None):
|
|
1166
|
+
"""Interact with process: Send data to stdin and close it.
|
|
1167
|
+
Read data from stdout and stderr, until end-of-file is
|
|
1168
|
+
reached. Wait for process to terminate.
|
|
1169
|
+
|
|
1170
|
+
The optional "input" argument should be data to be sent to the
|
|
1171
|
+
child process, or None, if no data should be sent to the child.
|
|
1172
|
+
communicate() returns a tuple (stdout, stderr).
|
|
1173
|
+
|
|
1174
|
+
By default, all communication is in bytes, and therefore any
|
|
1175
|
+
"input" should be bytes, and the (stdout, stderr) will be bytes.
|
|
1176
|
+
If in text mode (indicated by self.text_mode), any "input" should
|
|
1177
|
+
be a string, and (stdout, stderr) will be strings decoded
|
|
1178
|
+
according to locale encoding, or by "encoding" if set. Text mode
|
|
1179
|
+
is triggered by setting any of text, encoding, errors or
|
|
1180
|
+
universal_newlines.
|
|
1181
|
+
"""
|
|
1182
|
+
|
|
1183
|
+
if self._communication_started and input:
|
|
1184
|
+
raise ValueError("Cannot send input after starting communication")
|
|
1185
|
+
|
|
1186
|
+
# Optimization: If we are not worried about timeouts, we haven't
|
|
1187
|
+
# started communicating, and we have one or zero pipes, using select()
|
|
1188
|
+
# or threads is unnecessary.
|
|
1189
|
+
if (timeout is None and not self._communication_started and
|
|
1190
|
+
[self.stdin, self.stdout, self.stderr].count(None) >= 2):
|
|
1191
|
+
stdout = None
|
|
1192
|
+
stderr = None
|
|
1193
|
+
if self.stdin:
|
|
1194
|
+
self._stdin_write(input)
|
|
1195
|
+
elif self.stdout:
|
|
1196
|
+
stdout = self.stdout.read()
|
|
1197
|
+
self.stdout.close()
|
|
1198
|
+
elif self.stderr:
|
|
1199
|
+
stderr = self.stderr.read()
|
|
1200
|
+
self.stderr.close()
|
|
1201
|
+
self.wait()
|
|
1202
|
+
else:
|
|
1203
|
+
if timeout is not None:
|
|
1204
|
+
endtime = _time() + timeout
|
|
1205
|
+
else:
|
|
1206
|
+
endtime = None
|
|
1207
|
+
|
|
1208
|
+
try:
|
|
1209
|
+
stdout, stderr = self._communicate(input, endtime, timeout)
|
|
1210
|
+
except KeyboardInterrupt:
|
|
1211
|
+
# https://bugs.python.org/issue25942
|
|
1212
|
+
# See the detailed comment in .wait().
|
|
1213
|
+
if timeout is not None:
|
|
1214
|
+
sigint_timeout = min(self._sigint_wait_secs,
|
|
1215
|
+
self._remaining_time(endtime))
|
|
1216
|
+
else:
|
|
1217
|
+
sigint_timeout = self._sigint_wait_secs
|
|
1218
|
+
self._sigint_wait_secs = 0 # nothing else should wait.
|
|
1219
|
+
try:
|
|
1220
|
+
self._wait(timeout=sigint_timeout)
|
|
1221
|
+
except TimeoutExpired:
|
|
1222
|
+
pass
|
|
1223
|
+
raise # resume the KeyboardInterrupt
|
|
1224
|
+
|
|
1225
|
+
finally:
|
|
1226
|
+
self._communication_started = True
|
|
1227
|
+
|
|
1228
|
+
sts = self.wait(timeout=self._remaining_time(endtime))
|
|
1229
|
+
|
|
1230
|
+
return (stdout, stderr)
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
def poll(self):
|
|
1234
|
+
"""Check if child process has terminated. Set and return returncode
|
|
1235
|
+
attribute."""
|
|
1236
|
+
return self._internal_poll()
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
def _remaining_time(self, endtime):
|
|
1240
|
+
"""Convenience for _communicate when computing timeouts."""
|
|
1241
|
+
if endtime is None:
|
|
1242
|
+
return None
|
|
1243
|
+
else:
|
|
1244
|
+
return endtime - _time()
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq,
|
|
1248
|
+
skip_check_and_raise=False):
|
|
1249
|
+
"""Convenience for checking if a timeout has expired."""
|
|
1250
|
+
if endtime is None:
|
|
1251
|
+
return
|
|
1252
|
+
if skip_check_and_raise or _time() > endtime:
|
|
1253
|
+
raise TimeoutExpired(
|
|
1254
|
+
self.args, orig_timeout,
|
|
1255
|
+
output=b''.join(stdout_seq) if stdout_seq else None,
|
|
1256
|
+
stderr=b''.join(stderr_seq) if stderr_seq else None)
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
def wait(self, timeout=None):
|
|
1260
|
+
"""Wait for child process to terminate; returns self.returncode."""
|
|
1261
|
+
if timeout is not None:
|
|
1262
|
+
endtime = _time() + timeout
|
|
1263
|
+
try:
|
|
1264
|
+
return self._wait(timeout=timeout)
|
|
1265
|
+
except KeyboardInterrupt:
|
|
1266
|
+
# https://bugs.python.org/issue25942
|
|
1267
|
+
# The first keyboard interrupt waits briefly for the child to
|
|
1268
|
+
# exit under the common assumption that it also received the ^C
|
|
1269
|
+
# generated SIGINT and will exit rapidly.
|
|
1270
|
+
if timeout is not None:
|
|
1271
|
+
sigint_timeout = min(self._sigint_wait_secs,
|
|
1272
|
+
self._remaining_time(endtime))
|
|
1273
|
+
else:
|
|
1274
|
+
sigint_timeout = self._sigint_wait_secs
|
|
1275
|
+
self._sigint_wait_secs = 0 # nothing else should wait.
|
|
1276
|
+
try:
|
|
1277
|
+
self._wait(timeout=sigint_timeout)
|
|
1278
|
+
except TimeoutExpired:
|
|
1279
|
+
pass
|
|
1280
|
+
raise # resume the KeyboardInterrupt
|
|
1281
|
+
|
|
1282
|
+
def _close_pipe_fds(self,
|
|
1283
|
+
p2cread, p2cwrite,
|
|
1284
|
+
c2pread, c2pwrite,
|
|
1285
|
+
errread, errwrite):
|
|
1286
|
+
# self._devnull is not always defined.
|
|
1287
|
+
devnull_fd = getattr(self, '_devnull', None)
|
|
1288
|
+
|
|
1289
|
+
with contextlib.ExitStack() as stack:
|
|
1290
|
+
if _mswindows:
|
|
1291
|
+
if p2cread != -1:
|
|
1292
|
+
stack.callback(p2cread.Close)
|
|
1293
|
+
if c2pwrite != -1:
|
|
1294
|
+
stack.callback(c2pwrite.Close)
|
|
1295
|
+
if errwrite != -1:
|
|
1296
|
+
stack.callback(errwrite.Close)
|
|
1297
|
+
else:
|
|
1298
|
+
if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
|
|
1299
|
+
stack.callback(os.close, p2cread)
|
|
1300
|
+
if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
|
|
1301
|
+
stack.callback(os.close, c2pwrite)
|
|
1302
|
+
if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
|
|
1303
|
+
stack.callback(os.close, errwrite)
|
|
1304
|
+
|
|
1305
|
+
if devnull_fd is not None:
|
|
1306
|
+
stack.callback(os.close, devnull_fd)
|
|
1307
|
+
|
|
1308
|
+
# Prevent a double close of these handles/fds from __init__ on error.
|
|
1309
|
+
self._closed_child_pipe_fds = True
|
|
1310
|
+
|
|
1311
|
+
@contextlib.contextmanager
|
|
1312
|
+
def _on_error_fd_closer(self):
|
|
1313
|
+
"""Helper to ensure file descriptors opened in _get_handles are closed"""
|
|
1314
|
+
to_close = []
|
|
1315
|
+
try:
|
|
1316
|
+
yield to_close
|
|
1317
|
+
except:
|
|
1318
|
+
if hasattr(self, '_devnull'):
|
|
1319
|
+
to_close.append(self._devnull)
|
|
1320
|
+
del self._devnull
|
|
1321
|
+
for fd in to_close:
|
|
1322
|
+
try:
|
|
1323
|
+
if _mswindows and isinstance(fd, Handle):
|
|
1324
|
+
fd.Close()
|
|
1325
|
+
else:
|
|
1326
|
+
os.close(fd)
|
|
1327
|
+
except OSError:
|
|
1328
|
+
pass
|
|
1329
|
+
raise
|
|
1330
|
+
|
|
1331
|
+
if _mswindows:
|
|
1332
|
+
#
|
|
1333
|
+
# Windows methods
|
|
1334
|
+
#
|
|
1335
|
+
def _get_handles(self, stdin, stdout, stderr):
|
|
1336
|
+
"""Construct and return tuple with IO objects:
|
|
1337
|
+
p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite
|
|
1338
|
+
"""
|
|
1339
|
+
if stdin is None and stdout is None and stderr is None:
|
|
1340
|
+
return (-1, -1, -1, -1, -1, -1)
|
|
1341
|
+
|
|
1342
|
+
p2cread, p2cwrite = -1, -1
|
|
1343
|
+
c2pread, c2pwrite = -1, -1
|
|
1344
|
+
errread, errwrite = -1, -1
|
|
1345
|
+
|
|
1346
|
+
with self._on_error_fd_closer() as err_close_fds:
|
|
1347
|
+
if stdin is None:
|
|
1348
|
+
p2cread = _winapi.GetStdHandle(_winapi.STD_INPUT_HANDLE)
|
|
1349
|
+
if p2cread is None:
|
|
1350
|
+
p2cread, _ = _winapi.CreatePipe(None, 0)
|
|
1351
|
+
p2cread = Handle(p2cread)
|
|
1352
|
+
err_close_fds.append(p2cread)
|
|
1353
|
+
_winapi.CloseHandle(_)
|
|
1354
|
+
elif stdin == PIPE:
|
|
1355
|
+
p2cread, p2cwrite = _winapi.CreatePipe(None, 0)
|
|
1356
|
+
p2cread, p2cwrite = Handle(p2cread), Handle(p2cwrite)
|
|
1357
|
+
err_close_fds.extend((p2cread, p2cwrite))
|
|
1358
|
+
elif stdin == DEVNULL:
|
|
1359
|
+
p2cread = msvcrt.get_osfhandle(self._get_devnull())
|
|
1360
|
+
elif isinstance(stdin, int):
|
|
1361
|
+
p2cread = msvcrt.get_osfhandle(stdin)
|
|
1362
|
+
else:
|
|
1363
|
+
# Assuming file-like object
|
|
1364
|
+
p2cread = msvcrt.get_osfhandle(stdin.fileno())
|
|
1365
|
+
p2cread = self._make_inheritable(p2cread)
|
|
1366
|
+
|
|
1367
|
+
if stdout is None:
|
|
1368
|
+
c2pwrite = _winapi.GetStdHandle(_winapi.STD_OUTPUT_HANDLE)
|
|
1369
|
+
if c2pwrite is None:
|
|
1370
|
+
_, c2pwrite = _winapi.CreatePipe(None, 0)
|
|
1371
|
+
c2pwrite = Handle(c2pwrite)
|
|
1372
|
+
err_close_fds.append(c2pwrite)
|
|
1373
|
+
_winapi.CloseHandle(_)
|
|
1374
|
+
elif stdout == PIPE:
|
|
1375
|
+
c2pread, c2pwrite = _winapi.CreatePipe(None, 0)
|
|
1376
|
+
c2pread, c2pwrite = Handle(c2pread), Handle(c2pwrite)
|
|
1377
|
+
err_close_fds.extend((c2pread, c2pwrite))
|
|
1378
|
+
elif stdout == DEVNULL:
|
|
1379
|
+
c2pwrite = msvcrt.get_osfhandle(self._get_devnull())
|
|
1380
|
+
elif isinstance(stdout, int):
|
|
1381
|
+
c2pwrite = msvcrt.get_osfhandle(stdout)
|
|
1382
|
+
else:
|
|
1383
|
+
# Assuming file-like object
|
|
1384
|
+
c2pwrite = msvcrt.get_osfhandle(stdout.fileno())
|
|
1385
|
+
c2pwrite = self._make_inheritable(c2pwrite)
|
|
1386
|
+
|
|
1387
|
+
if stderr is None:
|
|
1388
|
+
errwrite = _winapi.GetStdHandle(_winapi.STD_ERROR_HANDLE)
|
|
1389
|
+
if errwrite is None:
|
|
1390
|
+
_, errwrite = _winapi.CreatePipe(None, 0)
|
|
1391
|
+
errwrite = Handle(errwrite)
|
|
1392
|
+
err_close_fds.append(errwrite)
|
|
1393
|
+
_winapi.CloseHandle(_)
|
|
1394
|
+
elif stderr == PIPE:
|
|
1395
|
+
errread, errwrite = _winapi.CreatePipe(None, 0)
|
|
1396
|
+
errread, errwrite = Handle(errread), Handle(errwrite)
|
|
1397
|
+
err_close_fds.extend((errread, errwrite))
|
|
1398
|
+
elif stderr == STDOUT:
|
|
1399
|
+
errwrite = c2pwrite
|
|
1400
|
+
elif stderr == DEVNULL:
|
|
1401
|
+
errwrite = msvcrt.get_osfhandle(self._get_devnull())
|
|
1402
|
+
elif isinstance(stderr, int):
|
|
1403
|
+
errwrite = msvcrt.get_osfhandle(stderr)
|
|
1404
|
+
else:
|
|
1405
|
+
# Assuming file-like object
|
|
1406
|
+
errwrite = msvcrt.get_osfhandle(stderr.fileno())
|
|
1407
|
+
errwrite = self._make_inheritable(errwrite)
|
|
1408
|
+
|
|
1409
|
+
return (p2cread, p2cwrite,
|
|
1410
|
+
c2pread, c2pwrite,
|
|
1411
|
+
errread, errwrite)
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
def _make_inheritable(self, handle):
|
|
1415
|
+
"""Return a duplicate of handle, which is inheritable"""
|
|
1416
|
+
h = _winapi.DuplicateHandle(
|
|
1417
|
+
_winapi.GetCurrentProcess(), handle,
|
|
1418
|
+
_winapi.GetCurrentProcess(), 0, 1,
|
|
1419
|
+
_winapi.DUPLICATE_SAME_ACCESS)
|
|
1420
|
+
return Handle(h)
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
def _filter_handle_list(self, handle_list):
|
|
1424
|
+
"""Filter out console handles that can't be used
|
|
1425
|
+
in lpAttributeList["handle_list"] and make sure the list
|
|
1426
|
+
isn't empty. This also removes duplicate handles."""
|
|
1427
|
+
# An handle with it's lowest two bits set might be a special console
|
|
1428
|
+
# handle that if passed in lpAttributeList["handle_list"], will
|
|
1429
|
+
# cause it to fail.
|
|
1430
|
+
return list({handle for handle in handle_list
|
|
1431
|
+
if handle & 0x3 != 0x3
|
|
1432
|
+
or _winapi.GetFileType(handle) !=
|
|
1433
|
+
_winapi.FILE_TYPE_CHAR})
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
def _execute_child(self, args, executable, preexec_fn, close_fds,
|
|
1437
|
+
pass_fds, cwd, env,
|
|
1438
|
+
startupinfo, creationflags, shell,
|
|
1439
|
+
p2cread, p2cwrite,
|
|
1440
|
+
c2pread, c2pwrite,
|
|
1441
|
+
errread, errwrite,
|
|
1442
|
+
unused_restore_signals,
|
|
1443
|
+
unused_gid, unused_gids, unused_uid,
|
|
1444
|
+
unused_umask,
|
|
1445
|
+
unused_start_new_session, unused_process_group):
|
|
1446
|
+
"""Execute program (MS Windows version)"""
|
|
1447
|
+
|
|
1448
|
+
assert not pass_fds, "pass_fds not supported on Windows."
|
|
1449
|
+
|
|
1450
|
+
if isinstance(args, str):
|
|
1451
|
+
pass
|
|
1452
|
+
elif isinstance(args, bytes):
|
|
1453
|
+
if shell:
|
|
1454
|
+
raise TypeError('bytes args is not allowed on Windows')
|
|
1455
|
+
args = list2cmdline([args])
|
|
1456
|
+
elif isinstance(args, os.PathLike):
|
|
1457
|
+
if shell:
|
|
1458
|
+
raise TypeError('path-like args is not allowed when '
|
|
1459
|
+
'shell is true')
|
|
1460
|
+
args = list2cmdline([args])
|
|
1461
|
+
else:
|
|
1462
|
+
args = list2cmdline(args)
|
|
1463
|
+
|
|
1464
|
+
if executable is not None:
|
|
1465
|
+
executable = os.fsdecode(executable)
|
|
1466
|
+
|
|
1467
|
+
# Process startup details
|
|
1468
|
+
if startupinfo is None:
|
|
1469
|
+
startupinfo = STARTUPINFO()
|
|
1470
|
+
else:
|
|
1471
|
+
# bpo-34044: Copy STARTUPINFO since it is modified above,
|
|
1472
|
+
# so the caller can reuse it multiple times.
|
|
1473
|
+
startupinfo = startupinfo.copy()
|
|
1474
|
+
|
|
1475
|
+
use_std_handles = -1 not in (p2cread, c2pwrite, errwrite)
|
|
1476
|
+
if use_std_handles:
|
|
1477
|
+
startupinfo.dwFlags |= _winapi.STARTF_USESTDHANDLES
|
|
1478
|
+
startupinfo.hStdInput = p2cread
|
|
1479
|
+
startupinfo.hStdOutput = c2pwrite
|
|
1480
|
+
startupinfo.hStdError = errwrite
|
|
1481
|
+
|
|
1482
|
+
attribute_list = startupinfo.lpAttributeList
|
|
1483
|
+
have_handle_list = bool(attribute_list and
|
|
1484
|
+
"handle_list" in attribute_list and
|
|
1485
|
+
attribute_list["handle_list"])
|
|
1486
|
+
|
|
1487
|
+
# If we were given an handle_list or need to create one
|
|
1488
|
+
if have_handle_list or (use_std_handles and close_fds):
|
|
1489
|
+
if attribute_list is None:
|
|
1490
|
+
attribute_list = startupinfo.lpAttributeList = {}
|
|
1491
|
+
handle_list = attribute_list["handle_list"] = \
|
|
1492
|
+
list(attribute_list.get("handle_list", []))
|
|
1493
|
+
|
|
1494
|
+
if use_std_handles:
|
|
1495
|
+
handle_list += [int(p2cread), int(c2pwrite), int(errwrite)]
|
|
1496
|
+
|
|
1497
|
+
handle_list[:] = self._filter_handle_list(handle_list)
|
|
1498
|
+
|
|
1499
|
+
if handle_list:
|
|
1500
|
+
if not close_fds:
|
|
1501
|
+
warnings.warn("startupinfo.lpAttributeList['handle_list'] "
|
|
1502
|
+
"overriding close_fds", RuntimeWarning)
|
|
1503
|
+
|
|
1504
|
+
# When using the handle_list we always request to inherit
|
|
1505
|
+
# handles but the only handles that will be inherited are
|
|
1506
|
+
# the ones in the handle_list
|
|
1507
|
+
close_fds = False
|
|
1508
|
+
|
|
1509
|
+
if shell:
|
|
1510
|
+
startupinfo.dwFlags |= _winapi.STARTF_USESHOWWINDOW
|
|
1511
|
+
startupinfo.wShowWindow = _winapi.SW_HIDE
|
|
1512
|
+
if not executable:
|
|
1513
|
+
# gh-101283: without a fully-qualified path, before Windows
|
|
1514
|
+
# checks the system directories, it first looks in the
|
|
1515
|
+
# application directory, and also the current directory if
|
|
1516
|
+
# NeedCurrentDirectoryForExePathW(ExeName) is true, so try
|
|
1517
|
+
# to avoid executing unqualified "cmd.exe".
|
|
1518
|
+
comspec = os.environ.get('ComSpec')
|
|
1519
|
+
if not comspec:
|
|
1520
|
+
system_root = os.environ.get('SystemRoot', '')
|
|
1521
|
+
comspec = os.path.join(system_root, 'System32', 'cmd.exe')
|
|
1522
|
+
if not os.path.isabs(comspec):
|
|
1523
|
+
raise FileNotFoundError('shell not found: neither %ComSpec% nor %SystemRoot% is set')
|
|
1524
|
+
if os.path.isabs(comspec):
|
|
1525
|
+
executable = comspec
|
|
1526
|
+
else:
|
|
1527
|
+
comspec = executable
|
|
1528
|
+
|
|
1529
|
+
args = '{} /c "{}"'.format (comspec, args)
|
|
1530
|
+
|
|
1531
|
+
if cwd is not None:
|
|
1532
|
+
cwd = os.fsdecode(cwd)
|
|
1533
|
+
|
|
1534
|
+
sys.audit("subprocess.Popen", executable, args, cwd, env)
|
|
1535
|
+
|
|
1536
|
+
# Start the process
|
|
1537
|
+
try:
|
|
1538
|
+
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
|
|
1539
|
+
# no special security
|
|
1540
|
+
None, None,
|
|
1541
|
+
int(not close_fds),
|
|
1542
|
+
creationflags,
|
|
1543
|
+
env,
|
|
1544
|
+
cwd,
|
|
1545
|
+
startupinfo)
|
|
1546
|
+
finally:
|
|
1547
|
+
# Child is launched. Close the parent's copy of those pipe
|
|
1548
|
+
# handles that only the child should have open. You need
|
|
1549
|
+
# to make sure that no handles to the write end of the
|
|
1550
|
+
# output pipe are maintained in this process or else the
|
|
1551
|
+
# pipe will not close when the child process exits and the
|
|
1552
|
+
# ReadFile will hang.
|
|
1553
|
+
self._close_pipe_fds(p2cread, p2cwrite,
|
|
1554
|
+
c2pread, c2pwrite,
|
|
1555
|
+
errread, errwrite)
|
|
1556
|
+
|
|
1557
|
+
# Retain the process handle, but close the thread handle
|
|
1558
|
+
self._child_created = True
|
|
1559
|
+
self._handle = Handle(hp)
|
|
1560
|
+
self.pid = pid
|
|
1561
|
+
_winapi.CloseHandle(ht)
|
|
1562
|
+
|
|
1563
|
+
def _internal_poll(self, _deadstate=None,
|
|
1564
|
+
_WaitForSingleObject=_winapi.WaitForSingleObject,
|
|
1565
|
+
_WAIT_OBJECT_0=_winapi.WAIT_OBJECT_0,
|
|
1566
|
+
_GetExitCodeProcess=_winapi.GetExitCodeProcess):
|
|
1567
|
+
"""Check if child process has terminated. Returns returncode
|
|
1568
|
+
attribute.
|
|
1569
|
+
|
|
1570
|
+
This method is called by __del__, so it can only refer to objects
|
|
1571
|
+
in its local scope.
|
|
1572
|
+
|
|
1573
|
+
"""
|
|
1574
|
+
if self.returncode is None:
|
|
1575
|
+
if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
|
|
1576
|
+
self.returncode = _GetExitCodeProcess(self._handle)
|
|
1577
|
+
return self.returncode
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
def _wait(self, timeout):
|
|
1581
|
+
"""Internal implementation of wait() on Windows."""
|
|
1582
|
+
if timeout is None:
|
|
1583
|
+
timeout_millis = _winapi.INFINITE
|
|
1584
|
+
elif timeout <= 0:
|
|
1585
|
+
timeout_millis = 0
|
|
1586
|
+
else:
|
|
1587
|
+
timeout_millis = int(timeout * 1000)
|
|
1588
|
+
if self.returncode is None:
|
|
1589
|
+
# API note: Returns immediately if timeout_millis == 0.
|
|
1590
|
+
result = _winapi.WaitForSingleObject(self._handle,
|
|
1591
|
+
timeout_millis)
|
|
1592
|
+
if result == _winapi.WAIT_TIMEOUT:
|
|
1593
|
+
raise TimeoutExpired(self.args, timeout)
|
|
1594
|
+
self.returncode = _winapi.GetExitCodeProcess(self._handle)
|
|
1595
|
+
return self.returncode
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
def _readerthread(self, fh, buffer):
|
|
1599
|
+
buffer.append(fh.read())
|
|
1600
|
+
fh.close()
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
def _communicate(self, input, endtime, orig_timeout):
|
|
1604
|
+
# Start reader threads feeding into a list hanging off of this
|
|
1605
|
+
# object, unless they've already been started.
|
|
1606
|
+
if self.stdout and not hasattr(self, "_stdout_buff"):
|
|
1607
|
+
self._stdout_buff = []
|
|
1608
|
+
self.stdout_thread = \
|
|
1609
|
+
threading.Thread(target=self._readerthread,
|
|
1610
|
+
args=(self.stdout, self._stdout_buff))
|
|
1611
|
+
self.stdout_thread.daemon = True
|
|
1612
|
+
self.stdout_thread.start()
|
|
1613
|
+
if self.stderr and not hasattr(self, "_stderr_buff"):
|
|
1614
|
+
self._stderr_buff = []
|
|
1615
|
+
self.stderr_thread = \
|
|
1616
|
+
threading.Thread(target=self._readerthread,
|
|
1617
|
+
args=(self.stderr, self._stderr_buff))
|
|
1618
|
+
self.stderr_thread.daemon = True
|
|
1619
|
+
self.stderr_thread.start()
|
|
1620
|
+
|
|
1621
|
+
if self.stdin:
|
|
1622
|
+
self._stdin_write(input)
|
|
1623
|
+
|
|
1624
|
+
# Wait for the reader threads, or time out. If we time out, the
|
|
1625
|
+
# threads remain reading and the fds left open in case the user
|
|
1626
|
+
# calls communicate again.
|
|
1627
|
+
if self.stdout is not None:
|
|
1628
|
+
self.stdout_thread.join(self._remaining_time(endtime))
|
|
1629
|
+
if self.stdout_thread.is_alive():
|
|
1630
|
+
raise TimeoutExpired(self.args, orig_timeout)
|
|
1631
|
+
if self.stderr is not None:
|
|
1632
|
+
self.stderr_thread.join(self._remaining_time(endtime))
|
|
1633
|
+
if self.stderr_thread.is_alive():
|
|
1634
|
+
raise TimeoutExpired(self.args, orig_timeout)
|
|
1635
|
+
|
|
1636
|
+
# Collect the output from and close both pipes, now that we know
|
|
1637
|
+
# both have been read successfully.
|
|
1638
|
+
stdout = None
|
|
1639
|
+
stderr = None
|
|
1640
|
+
if self.stdout:
|
|
1641
|
+
stdout = self._stdout_buff
|
|
1642
|
+
self.stdout.close()
|
|
1643
|
+
if self.stderr:
|
|
1644
|
+
stderr = self._stderr_buff
|
|
1645
|
+
self.stderr.close()
|
|
1646
|
+
|
|
1647
|
+
# All data exchanged. Translate lists into strings.
|
|
1648
|
+
stdout = stdout[0] if stdout else None
|
|
1649
|
+
stderr = stderr[0] if stderr else None
|
|
1650
|
+
|
|
1651
|
+
return (stdout, stderr)
|
|
1652
|
+
|
|
1653
|
+
def send_signal(self, sig):
|
|
1654
|
+
"""Send a signal to the process."""
|
|
1655
|
+
# Don't signal a process that we know has already died.
|
|
1656
|
+
if self.returncode is not None:
|
|
1657
|
+
return
|
|
1658
|
+
if sig == signal.SIGTERM:
|
|
1659
|
+
self.terminate()
|
|
1660
|
+
elif sig == signal.CTRL_C_EVENT:
|
|
1661
|
+
os.kill(self.pid, signal.CTRL_C_EVENT)
|
|
1662
|
+
elif sig == signal.CTRL_BREAK_EVENT:
|
|
1663
|
+
os.kill(self.pid, signal.CTRL_BREAK_EVENT)
|
|
1664
|
+
else:
|
|
1665
|
+
raise ValueError("Unsupported signal: {}".format(sig))
|
|
1666
|
+
|
|
1667
|
+
def terminate(self):
|
|
1668
|
+
"""Terminates the process."""
|
|
1669
|
+
# Don't terminate a process that we know has already died.
|
|
1670
|
+
if self.returncode is not None:
|
|
1671
|
+
return
|
|
1672
|
+
try:
|
|
1673
|
+
_winapi.TerminateProcess(self._handle, 1)
|
|
1674
|
+
except PermissionError:
|
|
1675
|
+
# ERROR_ACCESS_DENIED (winerror 5) is received when the
|
|
1676
|
+
# process already died.
|
|
1677
|
+
rc = _winapi.GetExitCodeProcess(self._handle)
|
|
1678
|
+
if rc == _winapi.STILL_ACTIVE:
|
|
1679
|
+
raise
|
|
1680
|
+
self.returncode = rc
|
|
1681
|
+
|
|
1682
|
+
kill = terminate
|
|
1683
|
+
|
|
1684
|
+
else:
|
|
1685
|
+
#
|
|
1686
|
+
# POSIX methods
|
|
1687
|
+
#
|
|
1688
|
+
def _get_handles(self, stdin, stdout, stderr):
|
|
1689
|
+
"""Construct and return tuple with IO objects:
|
|
1690
|
+
p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite
|
|
1691
|
+
"""
|
|
1692
|
+
p2cread, p2cwrite = -1, -1
|
|
1693
|
+
c2pread, c2pwrite = -1, -1
|
|
1694
|
+
errread, errwrite = -1, -1
|
|
1695
|
+
|
|
1696
|
+
with self._on_error_fd_closer() as err_close_fds:
|
|
1697
|
+
if stdin is None:
|
|
1698
|
+
pass
|
|
1699
|
+
elif stdin == PIPE:
|
|
1700
|
+
p2cread, p2cwrite = os.pipe()
|
|
1701
|
+
err_close_fds.extend((p2cread, p2cwrite))
|
|
1702
|
+
if self.pipesize > 0 and hasattr(fcntl, "F_SETPIPE_SZ"):
|
|
1703
|
+
fcntl.fcntl(p2cwrite, fcntl.F_SETPIPE_SZ, self.pipesize)
|
|
1704
|
+
elif stdin == DEVNULL:
|
|
1705
|
+
p2cread = self._get_devnull()
|
|
1706
|
+
elif isinstance(stdin, int):
|
|
1707
|
+
p2cread = stdin
|
|
1708
|
+
else:
|
|
1709
|
+
# Assuming file-like object
|
|
1710
|
+
p2cread = stdin.fileno()
|
|
1711
|
+
|
|
1712
|
+
if stdout is None:
|
|
1713
|
+
pass
|
|
1714
|
+
elif stdout == PIPE:
|
|
1715
|
+
c2pread, c2pwrite = os.pipe()
|
|
1716
|
+
err_close_fds.extend((c2pread, c2pwrite))
|
|
1717
|
+
if self.pipesize > 0 and hasattr(fcntl, "F_SETPIPE_SZ"):
|
|
1718
|
+
fcntl.fcntl(c2pwrite, fcntl.F_SETPIPE_SZ, self.pipesize)
|
|
1719
|
+
elif stdout == DEVNULL:
|
|
1720
|
+
c2pwrite = self._get_devnull()
|
|
1721
|
+
elif isinstance(stdout, int):
|
|
1722
|
+
c2pwrite = stdout
|
|
1723
|
+
else:
|
|
1724
|
+
# Assuming file-like object
|
|
1725
|
+
c2pwrite = stdout.fileno()
|
|
1726
|
+
|
|
1727
|
+
if stderr is None:
|
|
1728
|
+
pass
|
|
1729
|
+
elif stderr == PIPE:
|
|
1730
|
+
errread, errwrite = os.pipe()
|
|
1731
|
+
err_close_fds.extend((errread, errwrite))
|
|
1732
|
+
if self.pipesize > 0 and hasattr(fcntl, "F_SETPIPE_SZ"):
|
|
1733
|
+
fcntl.fcntl(errwrite, fcntl.F_SETPIPE_SZ, self.pipesize)
|
|
1734
|
+
elif stderr == STDOUT:
|
|
1735
|
+
if c2pwrite != -1:
|
|
1736
|
+
errwrite = c2pwrite
|
|
1737
|
+
else: # child's stdout is not set, use parent's stdout
|
|
1738
|
+
errwrite = sys.__stdout__.fileno()
|
|
1739
|
+
elif stderr == DEVNULL:
|
|
1740
|
+
errwrite = self._get_devnull()
|
|
1741
|
+
elif isinstance(stderr, int):
|
|
1742
|
+
errwrite = stderr
|
|
1743
|
+
else:
|
|
1744
|
+
# Assuming file-like object
|
|
1745
|
+
errwrite = stderr.fileno()
|
|
1746
|
+
|
|
1747
|
+
return (p2cread, p2cwrite,
|
|
1748
|
+
c2pread, c2pwrite,
|
|
1749
|
+
errread, errwrite)
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
def _posix_spawn(self, args, executable, env, restore_signals,
|
|
1753
|
+
p2cread, p2cwrite,
|
|
1754
|
+
c2pread, c2pwrite,
|
|
1755
|
+
errread, errwrite):
|
|
1756
|
+
"""Execute program using os.posix_spawn()."""
|
|
1757
|
+
if env is None:
|
|
1758
|
+
env = os.environ
|
|
1759
|
+
|
|
1760
|
+
kwargs = {}
|
|
1761
|
+
if restore_signals:
|
|
1762
|
+
# See _Py_RestoreSignals() in Python/pylifecycle.c
|
|
1763
|
+
sigset = []
|
|
1764
|
+
for signame in ('SIGPIPE', 'SIGXFZ', 'SIGXFSZ'):
|
|
1765
|
+
signum = getattr(signal, signame, None)
|
|
1766
|
+
if signum is not None:
|
|
1767
|
+
sigset.append(signum)
|
|
1768
|
+
kwargs['setsigdef'] = sigset
|
|
1769
|
+
|
|
1770
|
+
file_actions = []
|
|
1771
|
+
for fd in (p2cwrite, c2pread, errread):
|
|
1772
|
+
if fd != -1:
|
|
1773
|
+
file_actions.append((os.POSIX_SPAWN_CLOSE, fd))
|
|
1774
|
+
for fd, fd2 in (
|
|
1775
|
+
(p2cread, 0),
|
|
1776
|
+
(c2pwrite, 1),
|
|
1777
|
+
(errwrite, 2),
|
|
1778
|
+
):
|
|
1779
|
+
if fd != -1:
|
|
1780
|
+
file_actions.append((os.POSIX_SPAWN_DUP2, fd, fd2))
|
|
1781
|
+
if file_actions:
|
|
1782
|
+
kwargs['file_actions'] = file_actions
|
|
1783
|
+
|
|
1784
|
+
self.pid = os.posix_spawn(executable, args, env, **kwargs)
|
|
1785
|
+
self._child_created = True
|
|
1786
|
+
|
|
1787
|
+
self._close_pipe_fds(p2cread, p2cwrite,
|
|
1788
|
+
c2pread, c2pwrite,
|
|
1789
|
+
errread, errwrite)
|
|
1790
|
+
|
|
1791
|
+
def _execute_child(self, args, executable, preexec_fn, close_fds,
|
|
1792
|
+
pass_fds, cwd, env,
|
|
1793
|
+
startupinfo, creationflags, shell,
|
|
1794
|
+
p2cread, p2cwrite,
|
|
1795
|
+
c2pread, c2pwrite,
|
|
1796
|
+
errread, errwrite,
|
|
1797
|
+
restore_signals,
|
|
1798
|
+
gid, gids, uid, umask,
|
|
1799
|
+
start_new_session, process_group):
|
|
1800
|
+
"""Execute program (POSIX version)"""
|
|
1801
|
+
|
|
1802
|
+
if isinstance(args, (str, bytes)):
|
|
1803
|
+
args = [args]
|
|
1804
|
+
elif isinstance(args, os.PathLike):
|
|
1805
|
+
if shell:
|
|
1806
|
+
raise TypeError('path-like args is not allowed when '
|
|
1807
|
+
'shell is true')
|
|
1808
|
+
args = [args]
|
|
1809
|
+
else:
|
|
1810
|
+
args = list(args)
|
|
1811
|
+
|
|
1812
|
+
if shell:
|
|
1813
|
+
# On Android the default shell is at '/system/bin/sh'.
|
|
1814
|
+
unix_shell = ('/system/bin/sh' if
|
|
1815
|
+
hasattr(sys, 'getandroidapilevel') else '/bin/sh')
|
|
1816
|
+
args = [unix_shell, "-c"] + args
|
|
1817
|
+
if executable:
|
|
1818
|
+
args[0] = executable
|
|
1819
|
+
|
|
1820
|
+
if executable is None:
|
|
1821
|
+
executable = args[0]
|
|
1822
|
+
|
|
1823
|
+
sys.audit("subprocess.Popen", executable, args, cwd, env)
|
|
1824
|
+
|
|
1825
|
+
if (_USE_POSIX_SPAWN
|
|
1826
|
+
and os.path.dirname(executable)
|
|
1827
|
+
and preexec_fn is None
|
|
1828
|
+
and not close_fds
|
|
1829
|
+
and not pass_fds
|
|
1830
|
+
and cwd is None
|
|
1831
|
+
and (p2cread == -1 or p2cread > 2)
|
|
1832
|
+
and (c2pwrite == -1 or c2pwrite > 2)
|
|
1833
|
+
and (errwrite == -1 or errwrite > 2)
|
|
1834
|
+
and not start_new_session
|
|
1835
|
+
and process_group == -1
|
|
1836
|
+
and gid is None
|
|
1837
|
+
and gids is None
|
|
1838
|
+
and uid is None
|
|
1839
|
+
and umask < 0):
|
|
1840
|
+
self._posix_spawn(args, executable, env, restore_signals,
|
|
1841
|
+
p2cread, p2cwrite,
|
|
1842
|
+
c2pread, c2pwrite,
|
|
1843
|
+
errread, errwrite)
|
|
1844
|
+
return
|
|
1845
|
+
|
|
1846
|
+
orig_executable = executable
|
|
1847
|
+
|
|
1848
|
+
# For transferring possible exec failure from child to parent.
|
|
1849
|
+
# Data format: "exception name:hex errno:description"
|
|
1850
|
+
# Pickle is not used; it is complex and involves memory allocation.
|
|
1851
|
+
errpipe_read, errpipe_write = os.pipe()
|
|
1852
|
+
# errpipe_write must not be in the standard io 0, 1, or 2 fd range.
|
|
1853
|
+
low_fds_to_close = []
|
|
1854
|
+
while errpipe_write < 3:
|
|
1855
|
+
low_fds_to_close.append(errpipe_write)
|
|
1856
|
+
errpipe_write = os.dup(errpipe_write)
|
|
1857
|
+
for low_fd in low_fds_to_close:
|
|
1858
|
+
os.close(low_fd)
|
|
1859
|
+
try:
|
|
1860
|
+
try:
|
|
1861
|
+
# We must avoid complex work that could involve
|
|
1862
|
+
# malloc or free in the child process to avoid
|
|
1863
|
+
# potential deadlocks, thus we do all this here.
|
|
1864
|
+
# and pass it to fork_exec()
|
|
1865
|
+
|
|
1866
|
+
if env is not None:
|
|
1867
|
+
env_list = []
|
|
1868
|
+
for k, v in env.items():
|
|
1869
|
+
k = os.fsencode(k)
|
|
1870
|
+
if b'=' in k:
|
|
1871
|
+
raise ValueError("illegal environment variable name")
|
|
1872
|
+
env_list.append(k + b'=' + os.fsencode(v))
|
|
1873
|
+
else:
|
|
1874
|
+
env_list = None # Use execv instead of execve.
|
|
1875
|
+
executable = os.fsencode(executable)
|
|
1876
|
+
if os.path.dirname(executable):
|
|
1877
|
+
executable_list = (executable,)
|
|
1878
|
+
else:
|
|
1879
|
+
# This matches the behavior of os._execvpe().
|
|
1880
|
+
executable_list = tuple(
|
|
1881
|
+
os.path.join(os.fsencode(dir), executable)
|
|
1882
|
+
for dir in os.get_exec_path(env))
|
|
1883
|
+
fds_to_keep = set(pass_fds)
|
|
1884
|
+
fds_to_keep.add(errpipe_write)
|
|
1885
|
+
self.pid = _fork_exec(
|
|
1886
|
+
args, executable_list,
|
|
1887
|
+
close_fds, tuple(sorted(map(int, fds_to_keep))),
|
|
1888
|
+
cwd, env_list,
|
|
1889
|
+
p2cread, p2cwrite, c2pread, c2pwrite,
|
|
1890
|
+
errread, errwrite,
|
|
1891
|
+
errpipe_read, errpipe_write,
|
|
1892
|
+
restore_signals, start_new_session,
|
|
1893
|
+
process_group, gid, gids, uid, umask,
|
|
1894
|
+
preexec_fn, _USE_VFORK)
|
|
1895
|
+
self._child_created = True
|
|
1896
|
+
finally:
|
|
1897
|
+
# be sure the FD is closed no matter what
|
|
1898
|
+
os.close(errpipe_write)
|
|
1899
|
+
|
|
1900
|
+
self._close_pipe_fds(p2cread, p2cwrite,
|
|
1901
|
+
c2pread, c2pwrite,
|
|
1902
|
+
errread, errwrite)
|
|
1903
|
+
|
|
1904
|
+
# Wait for exec to fail or succeed; possibly raising an
|
|
1905
|
+
# exception (limited in size)
|
|
1906
|
+
errpipe_data = bytearray()
|
|
1907
|
+
while True:
|
|
1908
|
+
part = os.read(errpipe_read, 50000)
|
|
1909
|
+
errpipe_data += part
|
|
1910
|
+
if not part or len(errpipe_data) > 50000:
|
|
1911
|
+
break
|
|
1912
|
+
finally:
|
|
1913
|
+
# be sure the FD is closed no matter what
|
|
1914
|
+
os.close(errpipe_read)
|
|
1915
|
+
|
|
1916
|
+
if errpipe_data:
|
|
1917
|
+
try:
|
|
1918
|
+
pid, sts = os.waitpid(self.pid, 0)
|
|
1919
|
+
if pid == self.pid:
|
|
1920
|
+
self._handle_exitstatus(sts)
|
|
1921
|
+
else:
|
|
1922
|
+
self.returncode = sys.maxsize
|
|
1923
|
+
except ChildProcessError:
|
|
1924
|
+
pass
|
|
1925
|
+
|
|
1926
|
+
try:
|
|
1927
|
+
exception_name, hex_errno, err_msg = (
|
|
1928
|
+
errpipe_data.split(b':', 2))
|
|
1929
|
+
# The encoding here should match the encoding
|
|
1930
|
+
# written in by the subprocess implementations
|
|
1931
|
+
# like _posixsubprocess
|
|
1932
|
+
err_msg = err_msg.decode()
|
|
1933
|
+
except ValueError:
|
|
1934
|
+
exception_name = b'SubprocessError'
|
|
1935
|
+
hex_errno = b'0'
|
|
1936
|
+
err_msg = 'Bad exception data from child: {!r}'.format(
|
|
1937
|
+
bytes(errpipe_data))
|
|
1938
|
+
child_exception_type = getattr(
|
|
1939
|
+
builtins, exception_name.decode('ascii'),
|
|
1940
|
+
SubprocessError)
|
|
1941
|
+
if issubclass(child_exception_type, OSError) and hex_errno:
|
|
1942
|
+
errno_num = int(hex_errno, 16)
|
|
1943
|
+
if err_msg == "noexec:chdir":
|
|
1944
|
+
err_msg = ""
|
|
1945
|
+
# The error must be from chdir(cwd).
|
|
1946
|
+
err_filename = cwd
|
|
1947
|
+
elif err_msg == "noexec":
|
|
1948
|
+
err_msg = ""
|
|
1949
|
+
err_filename = None
|
|
1950
|
+
else:
|
|
1951
|
+
err_filename = orig_executable
|
|
1952
|
+
if errno_num != 0:
|
|
1953
|
+
err_msg = os.strerror(errno_num)
|
|
1954
|
+
if err_filename is not None:
|
|
1955
|
+
raise child_exception_type(errno_num, err_msg, err_filename)
|
|
1956
|
+
else:
|
|
1957
|
+
raise child_exception_type(errno_num, err_msg)
|
|
1958
|
+
raise child_exception_type(err_msg)
|
|
1959
|
+
|
|
1960
|
+
|
|
1961
|
+
def _handle_exitstatus(self, sts,
|
|
1962
|
+
_waitstatus_to_exitcode=_waitstatus_to_exitcode,
|
|
1963
|
+
_WIFSTOPPED=_WIFSTOPPED,
|
|
1964
|
+
_WSTOPSIG=_WSTOPSIG):
|
|
1965
|
+
"""All callers to this function MUST hold self._waitpid_lock."""
|
|
1966
|
+
# This method is called (indirectly) by __del__, so it cannot
|
|
1967
|
+
# refer to anything outside of its local scope.
|
|
1968
|
+
if _WIFSTOPPED(sts):
|
|
1969
|
+
self.returncode = -_WSTOPSIG(sts)
|
|
1970
|
+
else:
|
|
1971
|
+
self.returncode = _waitstatus_to_exitcode(sts)
|
|
1972
|
+
|
|
1973
|
+
def _internal_poll(self, _deadstate=None, _waitpid=_waitpid,
|
|
1974
|
+
_WNOHANG=_WNOHANG, _ECHILD=errno.ECHILD):
|
|
1975
|
+
"""Check if child process has terminated. Returns returncode
|
|
1976
|
+
attribute.
|
|
1977
|
+
|
|
1978
|
+
This method is called by __del__, so it cannot reference anything
|
|
1979
|
+
outside of the local scope (nor can any methods it calls).
|
|
1980
|
+
|
|
1981
|
+
"""
|
|
1982
|
+
if self.returncode is None:
|
|
1983
|
+
if not self._waitpid_lock.acquire(False):
|
|
1984
|
+
# Something else is busy calling waitpid. Don't allow two
|
|
1985
|
+
# at once. We know nothing yet.
|
|
1986
|
+
return None
|
|
1987
|
+
try:
|
|
1988
|
+
if self.returncode is not None:
|
|
1989
|
+
return self.returncode # Another thread waited.
|
|
1990
|
+
pid, sts = _waitpid(self.pid, _WNOHANG)
|
|
1991
|
+
if pid == self.pid:
|
|
1992
|
+
self._handle_exitstatus(sts)
|
|
1993
|
+
except OSError as e:
|
|
1994
|
+
if _deadstate is not None:
|
|
1995
|
+
self.returncode = _deadstate
|
|
1996
|
+
elif e.errno == _ECHILD:
|
|
1997
|
+
# This happens if SIGCLD is set to be ignored or
|
|
1998
|
+
# waiting for child processes has otherwise been
|
|
1999
|
+
# disabled for our process. This child is dead, we
|
|
2000
|
+
# can't get the status.
|
|
2001
|
+
# http://bugs.python.org/issue15756
|
|
2002
|
+
self.returncode = 0
|
|
2003
|
+
finally:
|
|
2004
|
+
self._waitpid_lock.release()
|
|
2005
|
+
return self.returncode
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
def _try_wait(self, wait_flags):
|
|
2009
|
+
"""All callers to this function MUST hold self._waitpid_lock."""
|
|
2010
|
+
try:
|
|
2011
|
+
(pid, sts) = os.waitpid(self.pid, wait_flags)
|
|
2012
|
+
except ChildProcessError:
|
|
2013
|
+
# This happens if SIGCLD is set to be ignored or waiting
|
|
2014
|
+
# for child processes has otherwise been disabled for our
|
|
2015
|
+
# process. This child is dead, we can't get the status.
|
|
2016
|
+
pid = self.pid
|
|
2017
|
+
sts = 0
|
|
2018
|
+
return (pid, sts)
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
def _wait(self, timeout):
|
|
2022
|
+
"""Internal implementation of wait() on POSIX."""
|
|
2023
|
+
if self.returncode is not None:
|
|
2024
|
+
return self.returncode
|
|
2025
|
+
|
|
2026
|
+
if timeout is not None:
|
|
2027
|
+
endtime = _time() + timeout
|
|
2028
|
+
# Enter a busy loop if we have a timeout. This busy loop was
|
|
2029
|
+
# cribbed from Lib/threading.py in Thread.wait() at r71065.
|
|
2030
|
+
delay = 0.0005 # 500 us -> initial delay of 1 ms
|
|
2031
|
+
while True:
|
|
2032
|
+
if self._waitpid_lock.acquire(False):
|
|
2033
|
+
try:
|
|
2034
|
+
if self.returncode is not None:
|
|
2035
|
+
break # Another thread waited.
|
|
2036
|
+
(pid, sts) = self._try_wait(os.WNOHANG)
|
|
2037
|
+
assert pid == self.pid or pid == 0
|
|
2038
|
+
if pid == self.pid:
|
|
2039
|
+
self._handle_exitstatus(sts)
|
|
2040
|
+
break
|
|
2041
|
+
finally:
|
|
2042
|
+
self._waitpid_lock.release()
|
|
2043
|
+
remaining = self._remaining_time(endtime)
|
|
2044
|
+
if remaining <= 0:
|
|
2045
|
+
raise TimeoutExpired(self.args, timeout)
|
|
2046
|
+
delay = min(delay * 2, remaining, .05)
|
|
2047
|
+
time.sleep(delay)
|
|
2048
|
+
else:
|
|
2049
|
+
while self.returncode is None:
|
|
2050
|
+
with self._waitpid_lock:
|
|
2051
|
+
if self.returncode is not None:
|
|
2052
|
+
break # Another thread waited.
|
|
2053
|
+
(pid, sts) = self._try_wait(0)
|
|
2054
|
+
# Check the pid and loop as waitpid has been known to
|
|
2055
|
+
# return 0 even without WNOHANG in odd situations.
|
|
2056
|
+
# http://bugs.python.org/issue14396.
|
|
2057
|
+
if pid == self.pid:
|
|
2058
|
+
self._handle_exitstatus(sts)
|
|
2059
|
+
return self.returncode
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
def _communicate(self, input, endtime, orig_timeout):
|
|
2063
|
+
if self.stdin and not self._communication_started:
|
|
2064
|
+
# Flush stdio buffer. This might block, if the user has
|
|
2065
|
+
# been writing to .stdin in an uncontrolled fashion.
|
|
2066
|
+
try:
|
|
2067
|
+
self.stdin.flush()
|
|
2068
|
+
except BrokenPipeError:
|
|
2069
|
+
pass # communicate() must ignore BrokenPipeError.
|
|
2070
|
+
if not input:
|
|
2071
|
+
try:
|
|
2072
|
+
self.stdin.close()
|
|
2073
|
+
except BrokenPipeError:
|
|
2074
|
+
pass # communicate() must ignore BrokenPipeError.
|
|
2075
|
+
|
|
2076
|
+
stdout = None
|
|
2077
|
+
stderr = None
|
|
2078
|
+
|
|
2079
|
+
# Only create this mapping if we haven't already.
|
|
2080
|
+
if not self._communication_started:
|
|
2081
|
+
self._fileobj2output = {}
|
|
2082
|
+
if self.stdout:
|
|
2083
|
+
self._fileobj2output[self.stdout] = []
|
|
2084
|
+
if self.stderr:
|
|
2085
|
+
self._fileobj2output[self.stderr] = []
|
|
2086
|
+
|
|
2087
|
+
if self.stdout:
|
|
2088
|
+
stdout = self._fileobj2output[self.stdout]
|
|
2089
|
+
if self.stderr:
|
|
2090
|
+
stderr = self._fileobj2output[self.stderr]
|
|
2091
|
+
|
|
2092
|
+
self._save_input(input)
|
|
2093
|
+
|
|
2094
|
+
if self._input:
|
|
2095
|
+
input_view = memoryview(self._input)
|
|
2096
|
+
|
|
2097
|
+
with _PopenSelector() as selector:
|
|
2098
|
+
if self.stdin and input:
|
|
2099
|
+
selector.register(self.stdin, selectors.EVENT_WRITE)
|
|
2100
|
+
if self.stdout and not self.stdout.closed:
|
|
2101
|
+
selector.register(self.stdout, selectors.EVENT_READ)
|
|
2102
|
+
if self.stderr and not self.stderr.closed:
|
|
2103
|
+
selector.register(self.stderr, selectors.EVENT_READ)
|
|
2104
|
+
|
|
2105
|
+
while selector.get_map():
|
|
2106
|
+
timeout = self._remaining_time(endtime)
|
|
2107
|
+
if timeout is not None and timeout < 0:
|
|
2108
|
+
self._check_timeout(endtime, orig_timeout,
|
|
2109
|
+
stdout, stderr,
|
|
2110
|
+
skip_check_and_raise=True)
|
|
2111
|
+
raise RuntimeError( # Impossible :)
|
|
2112
|
+
'_check_timeout(..., skip_check_and_raise=True) '
|
|
2113
|
+
'failed to raise TimeoutExpired.')
|
|
2114
|
+
|
|
2115
|
+
ready = selector.select(timeout)
|
|
2116
|
+
self._check_timeout(endtime, orig_timeout, stdout, stderr)
|
|
2117
|
+
|
|
2118
|
+
# XXX Rewrite these to use non-blocking I/O on the file
|
|
2119
|
+
# objects; they are no longer using C stdio!
|
|
2120
|
+
|
|
2121
|
+
for key, events in ready:
|
|
2122
|
+
if key.fileobj is self.stdin:
|
|
2123
|
+
chunk = input_view[self._input_offset :
|
|
2124
|
+
self._input_offset + _PIPE_BUF]
|
|
2125
|
+
try:
|
|
2126
|
+
self._input_offset += os.write(key.fd, chunk)
|
|
2127
|
+
except BrokenPipeError:
|
|
2128
|
+
selector.unregister(key.fileobj)
|
|
2129
|
+
key.fileobj.close()
|
|
2130
|
+
else:
|
|
2131
|
+
if self._input_offset >= len(self._input):
|
|
2132
|
+
selector.unregister(key.fileobj)
|
|
2133
|
+
key.fileobj.close()
|
|
2134
|
+
elif key.fileobj in (self.stdout, self.stderr):
|
|
2135
|
+
data = os.read(key.fd, 32768)
|
|
2136
|
+
if not data:
|
|
2137
|
+
selector.unregister(key.fileobj)
|
|
2138
|
+
key.fileobj.close()
|
|
2139
|
+
self._fileobj2output[key.fileobj].append(data)
|
|
2140
|
+
|
|
2141
|
+
self.wait(timeout=self._remaining_time(endtime))
|
|
2142
|
+
|
|
2143
|
+
# All data exchanged. Translate lists into strings.
|
|
2144
|
+
if stdout is not None:
|
|
2145
|
+
stdout = b''.join(stdout)
|
|
2146
|
+
if stderr is not None:
|
|
2147
|
+
stderr = b''.join(stderr)
|
|
2148
|
+
|
|
2149
|
+
# Translate newlines, if requested.
|
|
2150
|
+
# This also turns bytes into strings.
|
|
2151
|
+
if self.text_mode:
|
|
2152
|
+
if stdout is not None:
|
|
2153
|
+
stdout = self._translate_newlines(stdout,
|
|
2154
|
+
self.stdout.encoding,
|
|
2155
|
+
self.stdout.errors)
|
|
2156
|
+
if stderr is not None:
|
|
2157
|
+
stderr = self._translate_newlines(stderr,
|
|
2158
|
+
self.stderr.encoding,
|
|
2159
|
+
self.stderr.errors)
|
|
2160
|
+
|
|
2161
|
+
return (stdout, stderr)
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
def _save_input(self, input):
|
|
2165
|
+
# This method is called from the _communicate_with_*() methods
|
|
2166
|
+
# so that if we time out while communicating, we can continue
|
|
2167
|
+
# sending input if we retry.
|
|
2168
|
+
if self.stdin and self._input is None:
|
|
2169
|
+
self._input_offset = 0
|
|
2170
|
+
self._input = input
|
|
2171
|
+
if input is not None and self.text_mode:
|
|
2172
|
+
self._input = self._input.encode(self.stdin.encoding,
|
|
2173
|
+
self.stdin.errors)
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
def send_signal(self, sig):
|
|
2177
|
+
"""Send a signal to the process."""
|
|
2178
|
+
# bpo-38630: Polling reduces the risk of sending a signal to the
|
|
2179
|
+
# wrong process if the process completed, the Popen.returncode
|
|
2180
|
+
# attribute is still None, and the pid has been reassigned
|
|
2181
|
+
# (recycled) to a new different process. This race condition can
|
|
2182
|
+
# happens in two cases.
|
|
2183
|
+
#
|
|
2184
|
+
# Case 1. Thread A calls Popen.poll(), thread B calls
|
|
2185
|
+
# Popen.send_signal(). In thread A, waitpid() succeed and returns
|
|
2186
|
+
# the exit status. Thread B calls kill() because poll() in thread A
|
|
2187
|
+
# did not set returncode yet. Calling poll() in thread B prevents
|
|
2188
|
+
# the race condition thanks to Popen._waitpid_lock.
|
|
2189
|
+
#
|
|
2190
|
+
# Case 2. waitpid(pid, 0) has been called directly, without
|
|
2191
|
+
# using Popen methods: returncode is still None is this case.
|
|
2192
|
+
# Calling Popen.poll() will set returncode to a default value,
|
|
2193
|
+
# since waitpid() fails with ProcessLookupError.
|
|
2194
|
+
self.poll()
|
|
2195
|
+
if self.returncode is not None:
|
|
2196
|
+
# Skip signalling a process that we know has already died.
|
|
2197
|
+
return
|
|
2198
|
+
|
|
2199
|
+
# The race condition can still happen if the race condition
|
|
2200
|
+
# described above happens between the returncode test
|
|
2201
|
+
# and the kill() call.
|
|
2202
|
+
try:
|
|
2203
|
+
os.kill(self.pid, sig)
|
|
2204
|
+
except ProcessLookupError:
|
|
2205
|
+
# Suppress the race condition error; bpo-40550.
|
|
2206
|
+
pass
|
|
2207
|
+
|
|
2208
|
+
def terminate(self):
|
|
2209
|
+
"""Terminate the process with SIGTERM
|
|
2210
|
+
"""
|
|
2211
|
+
self.send_signal(signal.SIGTERM)
|
|
2212
|
+
|
|
2213
|
+
def kill(self):
|
|
2214
|
+
"""Kill the process with SIGKILL
|
|
2215
|
+
"""
|
|
2216
|
+
self.send_signal(signal.SIGKILL)
|