@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,2533 @@
|
|
|
1
|
+
# This file is dual licensed under the terms of the Apache License, Version
|
|
2
|
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
|
3
|
+
# for complete details.
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
import abc
|
|
8
|
+
import datetime
|
|
9
|
+
import hashlib
|
|
10
|
+
import ipaddress
|
|
11
|
+
import typing
|
|
12
|
+
from collections.abc import Iterable, Iterator
|
|
13
|
+
|
|
14
|
+
from cryptography import utils
|
|
15
|
+
from cryptography.hazmat.bindings._rust import asn1
|
|
16
|
+
from cryptography.hazmat.bindings._rust import x509 as rust_x509
|
|
17
|
+
from cryptography.hazmat.primitives import _serialization, constant_time
|
|
18
|
+
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePublicKey
|
|
19
|
+
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPublicKey
|
|
20
|
+
from cryptography.hazmat.primitives.asymmetric.types import (
|
|
21
|
+
CertificateIssuerPublicKeyTypes,
|
|
22
|
+
CertificatePublicKeyTypes,
|
|
23
|
+
)
|
|
24
|
+
from cryptography.x509.certificate_transparency import (
|
|
25
|
+
SignedCertificateTimestamp,
|
|
26
|
+
)
|
|
27
|
+
from cryptography.x509.general_name import (
|
|
28
|
+
DirectoryName,
|
|
29
|
+
DNSName,
|
|
30
|
+
GeneralName,
|
|
31
|
+
IPAddress,
|
|
32
|
+
OtherName,
|
|
33
|
+
RegisteredID,
|
|
34
|
+
RFC822Name,
|
|
35
|
+
UniformResourceIdentifier,
|
|
36
|
+
_IPAddressTypes,
|
|
37
|
+
)
|
|
38
|
+
from cryptography.x509.name import Name, RelativeDistinguishedName
|
|
39
|
+
from cryptography.x509.oid import (
|
|
40
|
+
CRLEntryExtensionOID,
|
|
41
|
+
ExtensionOID,
|
|
42
|
+
ObjectIdentifier,
|
|
43
|
+
OCSPExtensionOID,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
ExtensionTypeVar = typing.TypeVar(
|
|
47
|
+
"ExtensionTypeVar", bound="ExtensionType", covariant=True
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _key_identifier_from_public_key(
|
|
52
|
+
public_key: CertificatePublicKeyTypes,
|
|
53
|
+
) -> bytes:
|
|
54
|
+
if isinstance(public_key, RSAPublicKey):
|
|
55
|
+
data = public_key.public_bytes(
|
|
56
|
+
_serialization.Encoding.DER,
|
|
57
|
+
_serialization.PublicFormat.PKCS1,
|
|
58
|
+
)
|
|
59
|
+
elif isinstance(public_key, EllipticCurvePublicKey):
|
|
60
|
+
data = public_key.public_bytes(
|
|
61
|
+
_serialization.Encoding.X962,
|
|
62
|
+
_serialization.PublicFormat.UncompressedPoint,
|
|
63
|
+
)
|
|
64
|
+
else:
|
|
65
|
+
# This is a very slow way to do this.
|
|
66
|
+
serialized = public_key.public_bytes(
|
|
67
|
+
_serialization.Encoding.DER,
|
|
68
|
+
_serialization.PublicFormat.SubjectPublicKeyInfo,
|
|
69
|
+
)
|
|
70
|
+
data = asn1.parse_spki_for_data(serialized)
|
|
71
|
+
|
|
72
|
+
return hashlib.sha1(data).digest()
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def _make_sequence_methods(field_name: str):
|
|
76
|
+
def len_method(self) -> int:
|
|
77
|
+
return len(getattr(self, field_name))
|
|
78
|
+
|
|
79
|
+
def iter_method(self):
|
|
80
|
+
return iter(getattr(self, field_name))
|
|
81
|
+
|
|
82
|
+
def getitem_method(self, idx):
|
|
83
|
+
return getattr(self, field_name)[idx]
|
|
84
|
+
|
|
85
|
+
return len_method, iter_method, getitem_method
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class DuplicateExtension(Exception):
|
|
89
|
+
def __init__(self, msg: str, oid: ObjectIdentifier) -> None:
|
|
90
|
+
super().__init__(msg)
|
|
91
|
+
self.oid = oid
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class ExtensionNotFound(Exception):
|
|
95
|
+
def __init__(self, msg: str, oid: ObjectIdentifier) -> None:
|
|
96
|
+
super().__init__(msg)
|
|
97
|
+
self.oid = oid
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class ExtensionType(metaclass=abc.ABCMeta):
|
|
101
|
+
oid: typing.ClassVar[ObjectIdentifier]
|
|
102
|
+
|
|
103
|
+
def public_bytes(self) -> bytes:
|
|
104
|
+
"""
|
|
105
|
+
Serializes the extension type to DER.
|
|
106
|
+
"""
|
|
107
|
+
raise NotImplementedError(
|
|
108
|
+
f"public_bytes is not implemented for extension type {self!r}"
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class Extensions:
|
|
113
|
+
def __init__(self, extensions: Iterable[Extension[ExtensionType]]) -> None:
|
|
114
|
+
self._extensions = list(extensions)
|
|
115
|
+
|
|
116
|
+
def get_extension_for_oid(
|
|
117
|
+
self, oid: ObjectIdentifier
|
|
118
|
+
) -> Extension[ExtensionType]:
|
|
119
|
+
for ext in self:
|
|
120
|
+
if ext.oid == oid:
|
|
121
|
+
return ext
|
|
122
|
+
|
|
123
|
+
raise ExtensionNotFound(f"No {oid} extension was found", oid)
|
|
124
|
+
|
|
125
|
+
def get_extension_for_class(
|
|
126
|
+
self, extclass: type[ExtensionTypeVar]
|
|
127
|
+
) -> Extension[ExtensionTypeVar]:
|
|
128
|
+
if extclass is UnrecognizedExtension:
|
|
129
|
+
raise TypeError(
|
|
130
|
+
"UnrecognizedExtension can't be used with "
|
|
131
|
+
"get_extension_for_class because more than one instance of the"
|
|
132
|
+
" class may be present."
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
for ext in self:
|
|
136
|
+
if isinstance(ext.value, extclass):
|
|
137
|
+
return ext
|
|
138
|
+
|
|
139
|
+
raise ExtensionNotFound(
|
|
140
|
+
f"No {extclass} extension was found", extclass.oid
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_extensions")
|
|
144
|
+
|
|
145
|
+
def __repr__(self) -> str:
|
|
146
|
+
return f"<Extensions({self._extensions})>"
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class CRLNumber(ExtensionType):
|
|
150
|
+
oid = ExtensionOID.CRL_NUMBER
|
|
151
|
+
|
|
152
|
+
def __init__(self, crl_number: int) -> None:
|
|
153
|
+
if not isinstance(crl_number, int):
|
|
154
|
+
raise TypeError("crl_number must be an integer")
|
|
155
|
+
|
|
156
|
+
self._crl_number = crl_number
|
|
157
|
+
|
|
158
|
+
def __eq__(self, other: object) -> bool:
|
|
159
|
+
if not isinstance(other, CRLNumber):
|
|
160
|
+
return NotImplemented
|
|
161
|
+
|
|
162
|
+
return self.crl_number == other.crl_number
|
|
163
|
+
|
|
164
|
+
def __hash__(self) -> int:
|
|
165
|
+
return hash(self.crl_number)
|
|
166
|
+
|
|
167
|
+
def __repr__(self) -> str:
|
|
168
|
+
return f"<CRLNumber({self.crl_number})>"
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
def crl_number(self) -> int:
|
|
172
|
+
return self._crl_number
|
|
173
|
+
|
|
174
|
+
def public_bytes(self) -> bytes:
|
|
175
|
+
return rust_x509.encode_extension_value(self)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class AuthorityKeyIdentifier(ExtensionType):
|
|
179
|
+
oid = ExtensionOID.AUTHORITY_KEY_IDENTIFIER
|
|
180
|
+
|
|
181
|
+
def __init__(
|
|
182
|
+
self,
|
|
183
|
+
key_identifier: bytes | None,
|
|
184
|
+
authority_cert_issuer: Iterable[GeneralName] | None,
|
|
185
|
+
authority_cert_serial_number: int | None,
|
|
186
|
+
) -> None:
|
|
187
|
+
if (authority_cert_issuer is None) != (
|
|
188
|
+
authority_cert_serial_number is None
|
|
189
|
+
):
|
|
190
|
+
raise ValueError(
|
|
191
|
+
"authority_cert_issuer and authority_cert_serial_number "
|
|
192
|
+
"must both be present or both None"
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
if authority_cert_issuer is not None:
|
|
196
|
+
authority_cert_issuer = list(authority_cert_issuer)
|
|
197
|
+
if not all(
|
|
198
|
+
isinstance(x, GeneralName) for x in authority_cert_issuer
|
|
199
|
+
):
|
|
200
|
+
raise TypeError(
|
|
201
|
+
"authority_cert_issuer must be a list of GeneralName "
|
|
202
|
+
"objects"
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
if authority_cert_serial_number is not None and not isinstance(
|
|
206
|
+
authority_cert_serial_number, int
|
|
207
|
+
):
|
|
208
|
+
raise TypeError("authority_cert_serial_number must be an integer")
|
|
209
|
+
|
|
210
|
+
self._key_identifier = key_identifier
|
|
211
|
+
self._authority_cert_issuer = authority_cert_issuer
|
|
212
|
+
self._authority_cert_serial_number = authority_cert_serial_number
|
|
213
|
+
|
|
214
|
+
# This takes a subset of CertificatePublicKeyTypes because an issuer
|
|
215
|
+
# cannot have an X25519/X448 key. This introduces some unfortunate
|
|
216
|
+
# asymmetry that requires typing users to explicitly
|
|
217
|
+
# narrow their type, but we should make this accurate and not just
|
|
218
|
+
# convenient.
|
|
219
|
+
@classmethod
|
|
220
|
+
def from_issuer_public_key(
|
|
221
|
+
cls, public_key: CertificateIssuerPublicKeyTypes
|
|
222
|
+
) -> AuthorityKeyIdentifier:
|
|
223
|
+
digest = _key_identifier_from_public_key(public_key)
|
|
224
|
+
return cls(
|
|
225
|
+
key_identifier=digest,
|
|
226
|
+
authority_cert_issuer=None,
|
|
227
|
+
authority_cert_serial_number=None,
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
@classmethod
|
|
231
|
+
def from_issuer_subject_key_identifier(
|
|
232
|
+
cls, ski: SubjectKeyIdentifier
|
|
233
|
+
) -> AuthorityKeyIdentifier:
|
|
234
|
+
return cls(
|
|
235
|
+
key_identifier=ski.digest,
|
|
236
|
+
authority_cert_issuer=None,
|
|
237
|
+
authority_cert_serial_number=None,
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
def __repr__(self) -> str:
|
|
241
|
+
return (
|
|
242
|
+
f"<AuthorityKeyIdentifier(key_identifier={self.key_identifier!r}, "
|
|
243
|
+
f"authority_cert_issuer={self.authority_cert_issuer}, "
|
|
244
|
+
f"authority_cert_serial_number={self.authority_cert_serial_number}"
|
|
245
|
+
")>"
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
def __eq__(self, other: object) -> bool:
|
|
249
|
+
if not isinstance(other, AuthorityKeyIdentifier):
|
|
250
|
+
return NotImplemented
|
|
251
|
+
|
|
252
|
+
return (
|
|
253
|
+
self.key_identifier == other.key_identifier
|
|
254
|
+
and self.authority_cert_issuer == other.authority_cert_issuer
|
|
255
|
+
and self.authority_cert_serial_number
|
|
256
|
+
== other.authority_cert_serial_number
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
def __hash__(self) -> int:
|
|
260
|
+
if self.authority_cert_issuer is None:
|
|
261
|
+
aci = None
|
|
262
|
+
else:
|
|
263
|
+
aci = tuple(self.authority_cert_issuer)
|
|
264
|
+
return hash(
|
|
265
|
+
(self.key_identifier, aci, self.authority_cert_serial_number)
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
def key_identifier(self) -> bytes | None:
|
|
270
|
+
return self._key_identifier
|
|
271
|
+
|
|
272
|
+
@property
|
|
273
|
+
def authority_cert_issuer(
|
|
274
|
+
self,
|
|
275
|
+
) -> list[GeneralName] | None:
|
|
276
|
+
return self._authority_cert_issuer
|
|
277
|
+
|
|
278
|
+
@property
|
|
279
|
+
def authority_cert_serial_number(self) -> int | None:
|
|
280
|
+
return self._authority_cert_serial_number
|
|
281
|
+
|
|
282
|
+
def public_bytes(self) -> bytes:
|
|
283
|
+
return rust_x509.encode_extension_value(self)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
class SubjectKeyIdentifier(ExtensionType):
|
|
287
|
+
oid = ExtensionOID.SUBJECT_KEY_IDENTIFIER
|
|
288
|
+
|
|
289
|
+
def __init__(self, digest: bytes) -> None:
|
|
290
|
+
self._digest = digest
|
|
291
|
+
|
|
292
|
+
@classmethod
|
|
293
|
+
def from_public_key(
|
|
294
|
+
cls, public_key: CertificatePublicKeyTypes
|
|
295
|
+
) -> SubjectKeyIdentifier:
|
|
296
|
+
return cls(_key_identifier_from_public_key(public_key))
|
|
297
|
+
|
|
298
|
+
@property
|
|
299
|
+
def digest(self) -> bytes:
|
|
300
|
+
return self._digest
|
|
301
|
+
|
|
302
|
+
@property
|
|
303
|
+
def key_identifier(self) -> bytes:
|
|
304
|
+
return self._digest
|
|
305
|
+
|
|
306
|
+
def __repr__(self) -> str:
|
|
307
|
+
return f"<SubjectKeyIdentifier(digest={self.digest!r})>"
|
|
308
|
+
|
|
309
|
+
def __eq__(self, other: object) -> bool:
|
|
310
|
+
if not isinstance(other, SubjectKeyIdentifier):
|
|
311
|
+
return NotImplemented
|
|
312
|
+
|
|
313
|
+
return constant_time.bytes_eq(self.digest, other.digest)
|
|
314
|
+
|
|
315
|
+
def __hash__(self) -> int:
|
|
316
|
+
return hash(self.digest)
|
|
317
|
+
|
|
318
|
+
def public_bytes(self) -> bytes:
|
|
319
|
+
return rust_x509.encode_extension_value(self)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
class AuthorityInformationAccess(ExtensionType):
|
|
323
|
+
oid = ExtensionOID.AUTHORITY_INFORMATION_ACCESS
|
|
324
|
+
|
|
325
|
+
def __init__(self, descriptions: Iterable[AccessDescription]) -> None:
|
|
326
|
+
descriptions = list(descriptions)
|
|
327
|
+
if not all(isinstance(x, AccessDescription) for x in descriptions):
|
|
328
|
+
raise TypeError(
|
|
329
|
+
"Every item in the descriptions list must be an "
|
|
330
|
+
"AccessDescription"
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
self._descriptions = descriptions
|
|
334
|
+
|
|
335
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_descriptions")
|
|
336
|
+
|
|
337
|
+
def __repr__(self) -> str:
|
|
338
|
+
return f"<AuthorityInformationAccess({self._descriptions})>"
|
|
339
|
+
|
|
340
|
+
def __eq__(self, other: object) -> bool:
|
|
341
|
+
if not isinstance(other, AuthorityInformationAccess):
|
|
342
|
+
return NotImplemented
|
|
343
|
+
|
|
344
|
+
return self._descriptions == other._descriptions
|
|
345
|
+
|
|
346
|
+
def __hash__(self) -> int:
|
|
347
|
+
return hash(tuple(self._descriptions))
|
|
348
|
+
|
|
349
|
+
def public_bytes(self) -> bytes:
|
|
350
|
+
return rust_x509.encode_extension_value(self)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
class SubjectInformationAccess(ExtensionType):
|
|
354
|
+
oid = ExtensionOID.SUBJECT_INFORMATION_ACCESS
|
|
355
|
+
|
|
356
|
+
def __init__(self, descriptions: Iterable[AccessDescription]) -> None:
|
|
357
|
+
descriptions = list(descriptions)
|
|
358
|
+
if not all(isinstance(x, AccessDescription) for x in descriptions):
|
|
359
|
+
raise TypeError(
|
|
360
|
+
"Every item in the descriptions list must be an "
|
|
361
|
+
"AccessDescription"
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
self._descriptions = descriptions
|
|
365
|
+
|
|
366
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_descriptions")
|
|
367
|
+
|
|
368
|
+
def __repr__(self) -> str:
|
|
369
|
+
return f"<SubjectInformationAccess({self._descriptions})>"
|
|
370
|
+
|
|
371
|
+
def __eq__(self, other: object) -> bool:
|
|
372
|
+
if not isinstance(other, SubjectInformationAccess):
|
|
373
|
+
return NotImplemented
|
|
374
|
+
|
|
375
|
+
return self._descriptions == other._descriptions
|
|
376
|
+
|
|
377
|
+
def __hash__(self) -> int:
|
|
378
|
+
return hash(tuple(self._descriptions))
|
|
379
|
+
|
|
380
|
+
def public_bytes(self) -> bytes:
|
|
381
|
+
return rust_x509.encode_extension_value(self)
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
class AccessDescription:
|
|
385
|
+
def __init__(
|
|
386
|
+
self, access_method: ObjectIdentifier, access_location: GeneralName
|
|
387
|
+
) -> None:
|
|
388
|
+
if not isinstance(access_method, ObjectIdentifier):
|
|
389
|
+
raise TypeError("access_method must be an ObjectIdentifier")
|
|
390
|
+
|
|
391
|
+
if not isinstance(access_location, GeneralName):
|
|
392
|
+
raise TypeError("access_location must be a GeneralName")
|
|
393
|
+
|
|
394
|
+
self._access_method = access_method
|
|
395
|
+
self._access_location = access_location
|
|
396
|
+
|
|
397
|
+
def __repr__(self) -> str:
|
|
398
|
+
return (
|
|
399
|
+
f"<AccessDescription(access_method={self.access_method}, "
|
|
400
|
+
f"access_location={self.access_location})>"
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
def __eq__(self, other: object) -> bool:
|
|
404
|
+
if not isinstance(other, AccessDescription):
|
|
405
|
+
return NotImplemented
|
|
406
|
+
|
|
407
|
+
return (
|
|
408
|
+
self.access_method == other.access_method
|
|
409
|
+
and self.access_location == other.access_location
|
|
410
|
+
)
|
|
411
|
+
|
|
412
|
+
def __hash__(self) -> int:
|
|
413
|
+
return hash((self.access_method, self.access_location))
|
|
414
|
+
|
|
415
|
+
@property
|
|
416
|
+
def access_method(self) -> ObjectIdentifier:
|
|
417
|
+
return self._access_method
|
|
418
|
+
|
|
419
|
+
@property
|
|
420
|
+
def access_location(self) -> GeneralName:
|
|
421
|
+
return self._access_location
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
class BasicConstraints(ExtensionType):
|
|
425
|
+
oid = ExtensionOID.BASIC_CONSTRAINTS
|
|
426
|
+
|
|
427
|
+
def __init__(self, ca: bool, path_length: int | None) -> None:
|
|
428
|
+
if not isinstance(ca, bool):
|
|
429
|
+
raise TypeError("ca must be a boolean value")
|
|
430
|
+
|
|
431
|
+
if path_length is not None and not ca:
|
|
432
|
+
raise ValueError("path_length must be None when ca is False")
|
|
433
|
+
|
|
434
|
+
if path_length is not None and (
|
|
435
|
+
not isinstance(path_length, int) or path_length < 0
|
|
436
|
+
):
|
|
437
|
+
raise TypeError(
|
|
438
|
+
"path_length must be a non-negative integer or None"
|
|
439
|
+
)
|
|
440
|
+
|
|
441
|
+
self._ca = ca
|
|
442
|
+
self._path_length = path_length
|
|
443
|
+
|
|
444
|
+
@property
|
|
445
|
+
def ca(self) -> bool:
|
|
446
|
+
return self._ca
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
def path_length(self) -> int | None:
|
|
450
|
+
return self._path_length
|
|
451
|
+
|
|
452
|
+
def __repr__(self) -> str:
|
|
453
|
+
return (
|
|
454
|
+
f"<BasicConstraints(ca={self.ca}, path_length={self.path_length})>"
|
|
455
|
+
)
|
|
456
|
+
|
|
457
|
+
def __eq__(self, other: object) -> bool:
|
|
458
|
+
if not isinstance(other, BasicConstraints):
|
|
459
|
+
return NotImplemented
|
|
460
|
+
|
|
461
|
+
return self.ca == other.ca and self.path_length == other.path_length
|
|
462
|
+
|
|
463
|
+
def __hash__(self) -> int:
|
|
464
|
+
return hash((self.ca, self.path_length))
|
|
465
|
+
|
|
466
|
+
def public_bytes(self) -> bytes:
|
|
467
|
+
return rust_x509.encode_extension_value(self)
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
class DeltaCRLIndicator(ExtensionType):
|
|
471
|
+
oid = ExtensionOID.DELTA_CRL_INDICATOR
|
|
472
|
+
|
|
473
|
+
def __init__(self, crl_number: int) -> None:
|
|
474
|
+
if not isinstance(crl_number, int):
|
|
475
|
+
raise TypeError("crl_number must be an integer")
|
|
476
|
+
|
|
477
|
+
self._crl_number = crl_number
|
|
478
|
+
|
|
479
|
+
@property
|
|
480
|
+
def crl_number(self) -> int:
|
|
481
|
+
return self._crl_number
|
|
482
|
+
|
|
483
|
+
def __eq__(self, other: object) -> bool:
|
|
484
|
+
if not isinstance(other, DeltaCRLIndicator):
|
|
485
|
+
return NotImplemented
|
|
486
|
+
|
|
487
|
+
return self.crl_number == other.crl_number
|
|
488
|
+
|
|
489
|
+
def __hash__(self) -> int:
|
|
490
|
+
return hash(self.crl_number)
|
|
491
|
+
|
|
492
|
+
def __repr__(self) -> str:
|
|
493
|
+
return f"<DeltaCRLIndicator(crl_number={self.crl_number})>"
|
|
494
|
+
|
|
495
|
+
def public_bytes(self) -> bytes:
|
|
496
|
+
return rust_x509.encode_extension_value(self)
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
class CRLDistributionPoints(ExtensionType):
|
|
500
|
+
oid = ExtensionOID.CRL_DISTRIBUTION_POINTS
|
|
501
|
+
|
|
502
|
+
def __init__(
|
|
503
|
+
self, distribution_points: Iterable[DistributionPoint]
|
|
504
|
+
) -> None:
|
|
505
|
+
distribution_points = list(distribution_points)
|
|
506
|
+
if not all(
|
|
507
|
+
isinstance(x, DistributionPoint) for x in distribution_points
|
|
508
|
+
):
|
|
509
|
+
raise TypeError(
|
|
510
|
+
"distribution_points must be a list of DistributionPoint "
|
|
511
|
+
"objects"
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
self._distribution_points = distribution_points
|
|
515
|
+
|
|
516
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods(
|
|
517
|
+
"_distribution_points"
|
|
518
|
+
)
|
|
519
|
+
|
|
520
|
+
def __repr__(self) -> str:
|
|
521
|
+
return f"<CRLDistributionPoints({self._distribution_points})>"
|
|
522
|
+
|
|
523
|
+
def __eq__(self, other: object) -> bool:
|
|
524
|
+
if not isinstance(other, CRLDistributionPoints):
|
|
525
|
+
return NotImplemented
|
|
526
|
+
|
|
527
|
+
return self._distribution_points == other._distribution_points
|
|
528
|
+
|
|
529
|
+
def __hash__(self) -> int:
|
|
530
|
+
return hash(tuple(self._distribution_points))
|
|
531
|
+
|
|
532
|
+
def public_bytes(self) -> bytes:
|
|
533
|
+
return rust_x509.encode_extension_value(self)
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
class FreshestCRL(ExtensionType):
|
|
537
|
+
oid = ExtensionOID.FRESHEST_CRL
|
|
538
|
+
|
|
539
|
+
def __init__(
|
|
540
|
+
self, distribution_points: Iterable[DistributionPoint]
|
|
541
|
+
) -> None:
|
|
542
|
+
distribution_points = list(distribution_points)
|
|
543
|
+
if not all(
|
|
544
|
+
isinstance(x, DistributionPoint) for x in distribution_points
|
|
545
|
+
):
|
|
546
|
+
raise TypeError(
|
|
547
|
+
"distribution_points must be a list of DistributionPoint "
|
|
548
|
+
"objects"
|
|
549
|
+
)
|
|
550
|
+
|
|
551
|
+
self._distribution_points = distribution_points
|
|
552
|
+
|
|
553
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods(
|
|
554
|
+
"_distribution_points"
|
|
555
|
+
)
|
|
556
|
+
|
|
557
|
+
def __repr__(self) -> str:
|
|
558
|
+
return f"<FreshestCRL({self._distribution_points})>"
|
|
559
|
+
|
|
560
|
+
def __eq__(self, other: object) -> bool:
|
|
561
|
+
if not isinstance(other, FreshestCRL):
|
|
562
|
+
return NotImplemented
|
|
563
|
+
|
|
564
|
+
return self._distribution_points == other._distribution_points
|
|
565
|
+
|
|
566
|
+
def __hash__(self) -> int:
|
|
567
|
+
return hash(tuple(self._distribution_points))
|
|
568
|
+
|
|
569
|
+
def public_bytes(self) -> bytes:
|
|
570
|
+
return rust_x509.encode_extension_value(self)
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
class DistributionPoint:
|
|
574
|
+
def __init__(
|
|
575
|
+
self,
|
|
576
|
+
full_name: Iterable[GeneralName] | None,
|
|
577
|
+
relative_name: RelativeDistinguishedName | None,
|
|
578
|
+
reasons: frozenset[ReasonFlags] | None,
|
|
579
|
+
crl_issuer: Iterable[GeneralName] | None,
|
|
580
|
+
) -> None:
|
|
581
|
+
if full_name and relative_name:
|
|
582
|
+
raise ValueError(
|
|
583
|
+
"You cannot provide both full_name and relative_name, at "
|
|
584
|
+
"least one must be None."
|
|
585
|
+
)
|
|
586
|
+
if not full_name and not relative_name and not crl_issuer:
|
|
587
|
+
raise ValueError(
|
|
588
|
+
"Either full_name, relative_name or crl_issuer must be "
|
|
589
|
+
"provided."
|
|
590
|
+
)
|
|
591
|
+
|
|
592
|
+
if full_name is not None:
|
|
593
|
+
full_name = list(full_name)
|
|
594
|
+
if not all(isinstance(x, GeneralName) for x in full_name):
|
|
595
|
+
raise TypeError(
|
|
596
|
+
"full_name must be a list of GeneralName objects"
|
|
597
|
+
)
|
|
598
|
+
|
|
599
|
+
if relative_name:
|
|
600
|
+
if not isinstance(relative_name, RelativeDistinguishedName):
|
|
601
|
+
raise TypeError(
|
|
602
|
+
"relative_name must be a RelativeDistinguishedName"
|
|
603
|
+
)
|
|
604
|
+
|
|
605
|
+
if crl_issuer is not None:
|
|
606
|
+
crl_issuer = list(crl_issuer)
|
|
607
|
+
if not all(isinstance(x, GeneralName) for x in crl_issuer):
|
|
608
|
+
raise TypeError(
|
|
609
|
+
"crl_issuer must be None or a list of general names"
|
|
610
|
+
)
|
|
611
|
+
|
|
612
|
+
if reasons and (
|
|
613
|
+
not isinstance(reasons, frozenset)
|
|
614
|
+
or not all(isinstance(x, ReasonFlags) for x in reasons)
|
|
615
|
+
):
|
|
616
|
+
raise TypeError("reasons must be None or frozenset of ReasonFlags")
|
|
617
|
+
|
|
618
|
+
if reasons and (
|
|
619
|
+
ReasonFlags.unspecified in reasons
|
|
620
|
+
or ReasonFlags.remove_from_crl in reasons
|
|
621
|
+
):
|
|
622
|
+
raise ValueError(
|
|
623
|
+
"unspecified and remove_from_crl are not valid reasons in a "
|
|
624
|
+
"DistributionPoint"
|
|
625
|
+
)
|
|
626
|
+
|
|
627
|
+
self._full_name = full_name
|
|
628
|
+
self._relative_name = relative_name
|
|
629
|
+
self._reasons = reasons
|
|
630
|
+
self._crl_issuer = crl_issuer
|
|
631
|
+
|
|
632
|
+
def __repr__(self) -> str:
|
|
633
|
+
return (
|
|
634
|
+
"<DistributionPoint(full_name={0.full_name}, relative_name={0.rela"
|
|
635
|
+
"tive_name}, reasons={0.reasons}, "
|
|
636
|
+
"crl_issuer={0.crl_issuer})>".format(self)
|
|
637
|
+
)
|
|
638
|
+
|
|
639
|
+
def __eq__(self, other: object) -> bool:
|
|
640
|
+
if not isinstance(other, DistributionPoint):
|
|
641
|
+
return NotImplemented
|
|
642
|
+
|
|
643
|
+
return (
|
|
644
|
+
self.full_name == other.full_name
|
|
645
|
+
and self.relative_name == other.relative_name
|
|
646
|
+
and self.reasons == other.reasons
|
|
647
|
+
and self.crl_issuer == other.crl_issuer
|
|
648
|
+
)
|
|
649
|
+
|
|
650
|
+
def __hash__(self) -> int:
|
|
651
|
+
if self.full_name is not None:
|
|
652
|
+
fn: tuple[GeneralName, ...] | None = tuple(self.full_name)
|
|
653
|
+
else:
|
|
654
|
+
fn = None
|
|
655
|
+
|
|
656
|
+
if self.crl_issuer is not None:
|
|
657
|
+
crl_issuer: tuple[GeneralName, ...] | None = tuple(self.crl_issuer)
|
|
658
|
+
else:
|
|
659
|
+
crl_issuer = None
|
|
660
|
+
|
|
661
|
+
return hash((fn, self.relative_name, self.reasons, crl_issuer))
|
|
662
|
+
|
|
663
|
+
@property
|
|
664
|
+
def full_name(self) -> list[GeneralName] | None:
|
|
665
|
+
return self._full_name
|
|
666
|
+
|
|
667
|
+
@property
|
|
668
|
+
def relative_name(self) -> RelativeDistinguishedName | None:
|
|
669
|
+
return self._relative_name
|
|
670
|
+
|
|
671
|
+
@property
|
|
672
|
+
def reasons(self) -> frozenset[ReasonFlags] | None:
|
|
673
|
+
return self._reasons
|
|
674
|
+
|
|
675
|
+
@property
|
|
676
|
+
def crl_issuer(self) -> list[GeneralName] | None:
|
|
677
|
+
return self._crl_issuer
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
class ReasonFlags(utils.Enum):
|
|
681
|
+
unspecified = "unspecified"
|
|
682
|
+
key_compromise = "keyCompromise"
|
|
683
|
+
ca_compromise = "cACompromise"
|
|
684
|
+
affiliation_changed = "affiliationChanged"
|
|
685
|
+
superseded = "superseded"
|
|
686
|
+
cessation_of_operation = "cessationOfOperation"
|
|
687
|
+
certificate_hold = "certificateHold"
|
|
688
|
+
privilege_withdrawn = "privilegeWithdrawn"
|
|
689
|
+
aa_compromise = "aACompromise"
|
|
690
|
+
remove_from_crl = "removeFromCRL"
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
# These are distribution point bit string mappings. Not to be confused with
|
|
694
|
+
# CRLReason reason flags bit string mappings.
|
|
695
|
+
# ReasonFlags ::= BIT STRING {
|
|
696
|
+
# unused (0),
|
|
697
|
+
# keyCompromise (1),
|
|
698
|
+
# cACompromise (2),
|
|
699
|
+
# affiliationChanged (3),
|
|
700
|
+
# superseded (4),
|
|
701
|
+
# cessationOfOperation (5),
|
|
702
|
+
# certificateHold (6),
|
|
703
|
+
# privilegeWithdrawn (7),
|
|
704
|
+
# aACompromise (8) }
|
|
705
|
+
_REASON_BIT_MAPPING = {
|
|
706
|
+
1: ReasonFlags.key_compromise,
|
|
707
|
+
2: ReasonFlags.ca_compromise,
|
|
708
|
+
3: ReasonFlags.affiliation_changed,
|
|
709
|
+
4: ReasonFlags.superseded,
|
|
710
|
+
5: ReasonFlags.cessation_of_operation,
|
|
711
|
+
6: ReasonFlags.certificate_hold,
|
|
712
|
+
7: ReasonFlags.privilege_withdrawn,
|
|
713
|
+
8: ReasonFlags.aa_compromise,
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
_CRLREASONFLAGS = {
|
|
717
|
+
ReasonFlags.key_compromise: 1,
|
|
718
|
+
ReasonFlags.ca_compromise: 2,
|
|
719
|
+
ReasonFlags.affiliation_changed: 3,
|
|
720
|
+
ReasonFlags.superseded: 4,
|
|
721
|
+
ReasonFlags.cessation_of_operation: 5,
|
|
722
|
+
ReasonFlags.certificate_hold: 6,
|
|
723
|
+
ReasonFlags.privilege_withdrawn: 7,
|
|
724
|
+
ReasonFlags.aa_compromise: 8,
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
# CRLReason ::= ENUMERATED {
|
|
728
|
+
# unspecified (0),
|
|
729
|
+
# keyCompromise (1),
|
|
730
|
+
# cACompromise (2),
|
|
731
|
+
# affiliationChanged (3),
|
|
732
|
+
# superseded (4),
|
|
733
|
+
# cessationOfOperation (5),
|
|
734
|
+
# certificateHold (6),
|
|
735
|
+
# -- value 7 is not used
|
|
736
|
+
# removeFromCRL (8),
|
|
737
|
+
# privilegeWithdrawn (9),
|
|
738
|
+
# aACompromise (10) }
|
|
739
|
+
_CRL_ENTRY_REASON_ENUM_TO_CODE = {
|
|
740
|
+
ReasonFlags.unspecified: 0,
|
|
741
|
+
ReasonFlags.key_compromise: 1,
|
|
742
|
+
ReasonFlags.ca_compromise: 2,
|
|
743
|
+
ReasonFlags.affiliation_changed: 3,
|
|
744
|
+
ReasonFlags.superseded: 4,
|
|
745
|
+
ReasonFlags.cessation_of_operation: 5,
|
|
746
|
+
ReasonFlags.certificate_hold: 6,
|
|
747
|
+
ReasonFlags.remove_from_crl: 8,
|
|
748
|
+
ReasonFlags.privilege_withdrawn: 9,
|
|
749
|
+
ReasonFlags.aa_compromise: 10,
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
class PolicyConstraints(ExtensionType):
|
|
754
|
+
oid = ExtensionOID.POLICY_CONSTRAINTS
|
|
755
|
+
|
|
756
|
+
def __init__(
|
|
757
|
+
self,
|
|
758
|
+
require_explicit_policy: int | None,
|
|
759
|
+
inhibit_policy_mapping: int | None,
|
|
760
|
+
) -> None:
|
|
761
|
+
if require_explicit_policy is not None and not isinstance(
|
|
762
|
+
require_explicit_policy, int
|
|
763
|
+
):
|
|
764
|
+
raise TypeError(
|
|
765
|
+
"require_explicit_policy must be a non-negative integer or "
|
|
766
|
+
"None"
|
|
767
|
+
)
|
|
768
|
+
|
|
769
|
+
if inhibit_policy_mapping is not None and not isinstance(
|
|
770
|
+
inhibit_policy_mapping, int
|
|
771
|
+
):
|
|
772
|
+
raise TypeError(
|
|
773
|
+
"inhibit_policy_mapping must be a non-negative integer or None"
|
|
774
|
+
)
|
|
775
|
+
|
|
776
|
+
if inhibit_policy_mapping is None and require_explicit_policy is None:
|
|
777
|
+
raise ValueError(
|
|
778
|
+
"At least one of require_explicit_policy and "
|
|
779
|
+
"inhibit_policy_mapping must not be None"
|
|
780
|
+
)
|
|
781
|
+
|
|
782
|
+
self._require_explicit_policy = require_explicit_policy
|
|
783
|
+
self._inhibit_policy_mapping = inhibit_policy_mapping
|
|
784
|
+
|
|
785
|
+
def __repr__(self) -> str:
|
|
786
|
+
return (
|
|
787
|
+
"<PolicyConstraints(require_explicit_policy={0.require_explicit"
|
|
788
|
+
"_policy}, inhibit_policy_mapping={0.inhibit_policy_"
|
|
789
|
+
"mapping})>".format(self)
|
|
790
|
+
)
|
|
791
|
+
|
|
792
|
+
def __eq__(self, other: object) -> bool:
|
|
793
|
+
if not isinstance(other, PolicyConstraints):
|
|
794
|
+
return NotImplemented
|
|
795
|
+
|
|
796
|
+
return (
|
|
797
|
+
self.require_explicit_policy == other.require_explicit_policy
|
|
798
|
+
and self.inhibit_policy_mapping == other.inhibit_policy_mapping
|
|
799
|
+
)
|
|
800
|
+
|
|
801
|
+
def __hash__(self) -> int:
|
|
802
|
+
return hash(
|
|
803
|
+
(self.require_explicit_policy, self.inhibit_policy_mapping)
|
|
804
|
+
)
|
|
805
|
+
|
|
806
|
+
@property
|
|
807
|
+
def require_explicit_policy(self) -> int | None:
|
|
808
|
+
return self._require_explicit_policy
|
|
809
|
+
|
|
810
|
+
@property
|
|
811
|
+
def inhibit_policy_mapping(self) -> int | None:
|
|
812
|
+
return self._inhibit_policy_mapping
|
|
813
|
+
|
|
814
|
+
def public_bytes(self) -> bytes:
|
|
815
|
+
return rust_x509.encode_extension_value(self)
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
class CertificatePolicies(ExtensionType):
|
|
819
|
+
oid = ExtensionOID.CERTIFICATE_POLICIES
|
|
820
|
+
|
|
821
|
+
def __init__(self, policies: Iterable[PolicyInformation]) -> None:
|
|
822
|
+
policies = list(policies)
|
|
823
|
+
if not all(isinstance(x, PolicyInformation) for x in policies):
|
|
824
|
+
raise TypeError(
|
|
825
|
+
"Every item in the policies list must be a PolicyInformation"
|
|
826
|
+
)
|
|
827
|
+
|
|
828
|
+
self._policies = policies
|
|
829
|
+
|
|
830
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_policies")
|
|
831
|
+
|
|
832
|
+
def __repr__(self) -> str:
|
|
833
|
+
return f"<CertificatePolicies({self._policies})>"
|
|
834
|
+
|
|
835
|
+
def __eq__(self, other: object) -> bool:
|
|
836
|
+
if not isinstance(other, CertificatePolicies):
|
|
837
|
+
return NotImplemented
|
|
838
|
+
|
|
839
|
+
return self._policies == other._policies
|
|
840
|
+
|
|
841
|
+
def __hash__(self) -> int:
|
|
842
|
+
return hash(tuple(self._policies))
|
|
843
|
+
|
|
844
|
+
def public_bytes(self) -> bytes:
|
|
845
|
+
return rust_x509.encode_extension_value(self)
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
class PolicyInformation:
|
|
849
|
+
def __init__(
|
|
850
|
+
self,
|
|
851
|
+
policy_identifier: ObjectIdentifier,
|
|
852
|
+
policy_qualifiers: Iterable[str | UserNotice] | None,
|
|
853
|
+
) -> None:
|
|
854
|
+
if not isinstance(policy_identifier, ObjectIdentifier):
|
|
855
|
+
raise TypeError("policy_identifier must be an ObjectIdentifier")
|
|
856
|
+
|
|
857
|
+
self._policy_identifier = policy_identifier
|
|
858
|
+
|
|
859
|
+
if policy_qualifiers is not None:
|
|
860
|
+
policy_qualifiers = list(policy_qualifiers)
|
|
861
|
+
if not all(
|
|
862
|
+
isinstance(x, (str, UserNotice)) for x in policy_qualifiers
|
|
863
|
+
):
|
|
864
|
+
raise TypeError(
|
|
865
|
+
"policy_qualifiers must be a list of strings and/or "
|
|
866
|
+
"UserNotice objects or None"
|
|
867
|
+
)
|
|
868
|
+
|
|
869
|
+
self._policy_qualifiers = policy_qualifiers
|
|
870
|
+
|
|
871
|
+
def __repr__(self) -> str:
|
|
872
|
+
return (
|
|
873
|
+
f"<PolicyInformation(policy_identifier={self.policy_identifier}, "
|
|
874
|
+
f"policy_qualifiers={self.policy_qualifiers})>"
|
|
875
|
+
)
|
|
876
|
+
|
|
877
|
+
def __eq__(self, other: object) -> bool:
|
|
878
|
+
if not isinstance(other, PolicyInformation):
|
|
879
|
+
return NotImplemented
|
|
880
|
+
|
|
881
|
+
return (
|
|
882
|
+
self.policy_identifier == other.policy_identifier
|
|
883
|
+
and self.policy_qualifiers == other.policy_qualifiers
|
|
884
|
+
)
|
|
885
|
+
|
|
886
|
+
def __hash__(self) -> int:
|
|
887
|
+
if self.policy_qualifiers is not None:
|
|
888
|
+
pq = tuple(self.policy_qualifiers)
|
|
889
|
+
else:
|
|
890
|
+
pq = None
|
|
891
|
+
|
|
892
|
+
return hash((self.policy_identifier, pq))
|
|
893
|
+
|
|
894
|
+
@property
|
|
895
|
+
def policy_identifier(self) -> ObjectIdentifier:
|
|
896
|
+
return self._policy_identifier
|
|
897
|
+
|
|
898
|
+
@property
|
|
899
|
+
def policy_qualifiers(
|
|
900
|
+
self,
|
|
901
|
+
) -> list[str | UserNotice] | None:
|
|
902
|
+
return self._policy_qualifiers
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
class UserNotice:
|
|
906
|
+
def __init__(
|
|
907
|
+
self,
|
|
908
|
+
notice_reference: NoticeReference | None,
|
|
909
|
+
explicit_text: str | None,
|
|
910
|
+
) -> None:
|
|
911
|
+
if notice_reference and not isinstance(
|
|
912
|
+
notice_reference, NoticeReference
|
|
913
|
+
):
|
|
914
|
+
raise TypeError(
|
|
915
|
+
"notice_reference must be None or a NoticeReference"
|
|
916
|
+
)
|
|
917
|
+
|
|
918
|
+
self._notice_reference = notice_reference
|
|
919
|
+
self._explicit_text = explicit_text
|
|
920
|
+
|
|
921
|
+
def __repr__(self) -> str:
|
|
922
|
+
return (
|
|
923
|
+
f"<UserNotice(notice_reference={self.notice_reference}, "
|
|
924
|
+
f"explicit_text={self.explicit_text!r})>"
|
|
925
|
+
)
|
|
926
|
+
|
|
927
|
+
def __eq__(self, other: object) -> bool:
|
|
928
|
+
if not isinstance(other, UserNotice):
|
|
929
|
+
return NotImplemented
|
|
930
|
+
|
|
931
|
+
return (
|
|
932
|
+
self.notice_reference == other.notice_reference
|
|
933
|
+
and self.explicit_text == other.explicit_text
|
|
934
|
+
)
|
|
935
|
+
|
|
936
|
+
def __hash__(self) -> int:
|
|
937
|
+
return hash((self.notice_reference, self.explicit_text))
|
|
938
|
+
|
|
939
|
+
@property
|
|
940
|
+
def notice_reference(self) -> NoticeReference | None:
|
|
941
|
+
return self._notice_reference
|
|
942
|
+
|
|
943
|
+
@property
|
|
944
|
+
def explicit_text(self) -> str | None:
|
|
945
|
+
return self._explicit_text
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
class NoticeReference:
|
|
949
|
+
def __init__(
|
|
950
|
+
self,
|
|
951
|
+
organization: str | None,
|
|
952
|
+
notice_numbers: Iterable[int],
|
|
953
|
+
) -> None:
|
|
954
|
+
self._organization = organization
|
|
955
|
+
notice_numbers = list(notice_numbers)
|
|
956
|
+
if not all(isinstance(x, int) for x in notice_numbers):
|
|
957
|
+
raise TypeError("notice_numbers must be a list of integers")
|
|
958
|
+
|
|
959
|
+
self._notice_numbers = notice_numbers
|
|
960
|
+
|
|
961
|
+
def __repr__(self) -> str:
|
|
962
|
+
return (
|
|
963
|
+
f"<NoticeReference(organization={self.organization!r}, "
|
|
964
|
+
f"notice_numbers={self.notice_numbers})>"
|
|
965
|
+
)
|
|
966
|
+
|
|
967
|
+
def __eq__(self, other: object) -> bool:
|
|
968
|
+
if not isinstance(other, NoticeReference):
|
|
969
|
+
return NotImplemented
|
|
970
|
+
|
|
971
|
+
return (
|
|
972
|
+
self.organization == other.organization
|
|
973
|
+
and self.notice_numbers == other.notice_numbers
|
|
974
|
+
)
|
|
975
|
+
|
|
976
|
+
def __hash__(self) -> int:
|
|
977
|
+
return hash((self.organization, tuple(self.notice_numbers)))
|
|
978
|
+
|
|
979
|
+
@property
|
|
980
|
+
def organization(self) -> str | None:
|
|
981
|
+
return self._organization
|
|
982
|
+
|
|
983
|
+
@property
|
|
984
|
+
def notice_numbers(self) -> list[int]:
|
|
985
|
+
return self._notice_numbers
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
class ExtendedKeyUsage(ExtensionType):
|
|
989
|
+
oid = ExtensionOID.EXTENDED_KEY_USAGE
|
|
990
|
+
|
|
991
|
+
def __init__(self, usages: Iterable[ObjectIdentifier]) -> None:
|
|
992
|
+
usages = list(usages)
|
|
993
|
+
if not all(isinstance(x, ObjectIdentifier) for x in usages):
|
|
994
|
+
raise TypeError(
|
|
995
|
+
"Every item in the usages list must be an ObjectIdentifier"
|
|
996
|
+
)
|
|
997
|
+
|
|
998
|
+
self._usages = usages
|
|
999
|
+
|
|
1000
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_usages")
|
|
1001
|
+
|
|
1002
|
+
def __repr__(self) -> str:
|
|
1003
|
+
return f"<ExtendedKeyUsage({self._usages})>"
|
|
1004
|
+
|
|
1005
|
+
def __eq__(self, other: object) -> bool:
|
|
1006
|
+
if not isinstance(other, ExtendedKeyUsage):
|
|
1007
|
+
return NotImplemented
|
|
1008
|
+
|
|
1009
|
+
return self._usages == other._usages
|
|
1010
|
+
|
|
1011
|
+
def __hash__(self) -> int:
|
|
1012
|
+
return hash(tuple(self._usages))
|
|
1013
|
+
|
|
1014
|
+
def public_bytes(self) -> bytes:
|
|
1015
|
+
return rust_x509.encode_extension_value(self)
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
class OCSPNoCheck(ExtensionType):
|
|
1019
|
+
oid = ExtensionOID.OCSP_NO_CHECK
|
|
1020
|
+
|
|
1021
|
+
def __eq__(self, other: object) -> bool:
|
|
1022
|
+
if not isinstance(other, OCSPNoCheck):
|
|
1023
|
+
return NotImplemented
|
|
1024
|
+
|
|
1025
|
+
return True
|
|
1026
|
+
|
|
1027
|
+
def __hash__(self) -> int:
|
|
1028
|
+
return hash(OCSPNoCheck)
|
|
1029
|
+
|
|
1030
|
+
def __repr__(self) -> str:
|
|
1031
|
+
return "<OCSPNoCheck()>"
|
|
1032
|
+
|
|
1033
|
+
def public_bytes(self) -> bytes:
|
|
1034
|
+
return rust_x509.encode_extension_value(self)
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
class PrecertPoison(ExtensionType):
|
|
1038
|
+
oid = ExtensionOID.PRECERT_POISON
|
|
1039
|
+
|
|
1040
|
+
def __eq__(self, other: object) -> bool:
|
|
1041
|
+
if not isinstance(other, PrecertPoison):
|
|
1042
|
+
return NotImplemented
|
|
1043
|
+
|
|
1044
|
+
return True
|
|
1045
|
+
|
|
1046
|
+
def __hash__(self) -> int:
|
|
1047
|
+
return hash(PrecertPoison)
|
|
1048
|
+
|
|
1049
|
+
def __repr__(self) -> str:
|
|
1050
|
+
return "<PrecertPoison()>"
|
|
1051
|
+
|
|
1052
|
+
def public_bytes(self) -> bytes:
|
|
1053
|
+
return rust_x509.encode_extension_value(self)
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
class TLSFeature(ExtensionType):
|
|
1057
|
+
oid = ExtensionOID.TLS_FEATURE
|
|
1058
|
+
|
|
1059
|
+
def __init__(self, features: Iterable[TLSFeatureType]) -> None:
|
|
1060
|
+
features = list(features)
|
|
1061
|
+
if (
|
|
1062
|
+
not all(isinstance(x, TLSFeatureType) for x in features)
|
|
1063
|
+
or len(features) == 0
|
|
1064
|
+
):
|
|
1065
|
+
raise TypeError(
|
|
1066
|
+
"features must be a list of elements from the TLSFeatureType "
|
|
1067
|
+
"enum"
|
|
1068
|
+
)
|
|
1069
|
+
|
|
1070
|
+
self._features = features
|
|
1071
|
+
|
|
1072
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_features")
|
|
1073
|
+
|
|
1074
|
+
def __repr__(self) -> str:
|
|
1075
|
+
return f"<TLSFeature(features={self._features})>"
|
|
1076
|
+
|
|
1077
|
+
def __eq__(self, other: object) -> bool:
|
|
1078
|
+
if not isinstance(other, TLSFeature):
|
|
1079
|
+
return NotImplemented
|
|
1080
|
+
|
|
1081
|
+
return self._features == other._features
|
|
1082
|
+
|
|
1083
|
+
def __hash__(self) -> int:
|
|
1084
|
+
return hash(tuple(self._features))
|
|
1085
|
+
|
|
1086
|
+
def public_bytes(self) -> bytes:
|
|
1087
|
+
return rust_x509.encode_extension_value(self)
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
class TLSFeatureType(utils.Enum):
|
|
1091
|
+
# status_request is defined in RFC 6066 and is used for what is commonly
|
|
1092
|
+
# called OCSP Must-Staple when present in the TLS Feature extension in an
|
|
1093
|
+
# X.509 certificate.
|
|
1094
|
+
status_request = 5
|
|
1095
|
+
# status_request_v2 is defined in RFC 6961 and allows multiple OCSP
|
|
1096
|
+
# responses to be provided. It is not currently in use by clients or
|
|
1097
|
+
# servers.
|
|
1098
|
+
status_request_v2 = 17
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
_TLS_FEATURE_TYPE_TO_ENUM = {x.value: x for x in TLSFeatureType}
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
class InhibitAnyPolicy(ExtensionType):
|
|
1105
|
+
oid = ExtensionOID.INHIBIT_ANY_POLICY
|
|
1106
|
+
|
|
1107
|
+
def __init__(self, skip_certs: int) -> None:
|
|
1108
|
+
if not isinstance(skip_certs, int):
|
|
1109
|
+
raise TypeError("skip_certs must be an integer")
|
|
1110
|
+
|
|
1111
|
+
if skip_certs < 0:
|
|
1112
|
+
raise ValueError("skip_certs must be a non-negative integer")
|
|
1113
|
+
|
|
1114
|
+
self._skip_certs = skip_certs
|
|
1115
|
+
|
|
1116
|
+
def __repr__(self) -> str:
|
|
1117
|
+
return f"<InhibitAnyPolicy(skip_certs={self.skip_certs})>"
|
|
1118
|
+
|
|
1119
|
+
def __eq__(self, other: object) -> bool:
|
|
1120
|
+
if not isinstance(other, InhibitAnyPolicy):
|
|
1121
|
+
return NotImplemented
|
|
1122
|
+
|
|
1123
|
+
return self.skip_certs == other.skip_certs
|
|
1124
|
+
|
|
1125
|
+
def __hash__(self) -> int:
|
|
1126
|
+
return hash(self.skip_certs)
|
|
1127
|
+
|
|
1128
|
+
@property
|
|
1129
|
+
def skip_certs(self) -> int:
|
|
1130
|
+
return self._skip_certs
|
|
1131
|
+
|
|
1132
|
+
def public_bytes(self) -> bytes:
|
|
1133
|
+
return rust_x509.encode_extension_value(self)
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
class KeyUsage(ExtensionType):
|
|
1137
|
+
oid = ExtensionOID.KEY_USAGE
|
|
1138
|
+
|
|
1139
|
+
def __init__(
|
|
1140
|
+
self,
|
|
1141
|
+
digital_signature: bool,
|
|
1142
|
+
content_commitment: bool,
|
|
1143
|
+
key_encipherment: bool,
|
|
1144
|
+
data_encipherment: bool,
|
|
1145
|
+
key_agreement: bool,
|
|
1146
|
+
key_cert_sign: bool,
|
|
1147
|
+
crl_sign: bool,
|
|
1148
|
+
encipher_only: bool,
|
|
1149
|
+
decipher_only: bool,
|
|
1150
|
+
) -> None:
|
|
1151
|
+
if not key_agreement and (encipher_only or decipher_only):
|
|
1152
|
+
raise ValueError(
|
|
1153
|
+
"encipher_only and decipher_only can only be true when "
|
|
1154
|
+
"key_agreement is true"
|
|
1155
|
+
)
|
|
1156
|
+
|
|
1157
|
+
self._digital_signature = digital_signature
|
|
1158
|
+
self._content_commitment = content_commitment
|
|
1159
|
+
self._key_encipherment = key_encipherment
|
|
1160
|
+
self._data_encipherment = data_encipherment
|
|
1161
|
+
self._key_agreement = key_agreement
|
|
1162
|
+
self._key_cert_sign = key_cert_sign
|
|
1163
|
+
self._crl_sign = crl_sign
|
|
1164
|
+
self._encipher_only = encipher_only
|
|
1165
|
+
self._decipher_only = decipher_only
|
|
1166
|
+
|
|
1167
|
+
@property
|
|
1168
|
+
def digital_signature(self) -> bool:
|
|
1169
|
+
return self._digital_signature
|
|
1170
|
+
|
|
1171
|
+
@property
|
|
1172
|
+
def content_commitment(self) -> bool:
|
|
1173
|
+
return self._content_commitment
|
|
1174
|
+
|
|
1175
|
+
@property
|
|
1176
|
+
def key_encipherment(self) -> bool:
|
|
1177
|
+
return self._key_encipherment
|
|
1178
|
+
|
|
1179
|
+
@property
|
|
1180
|
+
def data_encipherment(self) -> bool:
|
|
1181
|
+
return self._data_encipherment
|
|
1182
|
+
|
|
1183
|
+
@property
|
|
1184
|
+
def key_agreement(self) -> bool:
|
|
1185
|
+
return self._key_agreement
|
|
1186
|
+
|
|
1187
|
+
@property
|
|
1188
|
+
def key_cert_sign(self) -> bool:
|
|
1189
|
+
return self._key_cert_sign
|
|
1190
|
+
|
|
1191
|
+
@property
|
|
1192
|
+
def crl_sign(self) -> bool:
|
|
1193
|
+
return self._crl_sign
|
|
1194
|
+
|
|
1195
|
+
@property
|
|
1196
|
+
def encipher_only(self) -> bool:
|
|
1197
|
+
if not self.key_agreement:
|
|
1198
|
+
raise ValueError(
|
|
1199
|
+
"encipher_only is undefined unless key_agreement is true"
|
|
1200
|
+
)
|
|
1201
|
+
else:
|
|
1202
|
+
return self._encipher_only
|
|
1203
|
+
|
|
1204
|
+
@property
|
|
1205
|
+
def decipher_only(self) -> bool:
|
|
1206
|
+
if not self.key_agreement:
|
|
1207
|
+
raise ValueError(
|
|
1208
|
+
"decipher_only is undefined unless key_agreement is true"
|
|
1209
|
+
)
|
|
1210
|
+
else:
|
|
1211
|
+
return self._decipher_only
|
|
1212
|
+
|
|
1213
|
+
def __repr__(self) -> str:
|
|
1214
|
+
try:
|
|
1215
|
+
encipher_only = self.encipher_only
|
|
1216
|
+
decipher_only = self.decipher_only
|
|
1217
|
+
except ValueError:
|
|
1218
|
+
# Users found None confusing because even though encipher/decipher
|
|
1219
|
+
# have no meaning unless key_agreement is true, to construct an
|
|
1220
|
+
# instance of the class you still need to pass False.
|
|
1221
|
+
encipher_only = False
|
|
1222
|
+
decipher_only = False
|
|
1223
|
+
|
|
1224
|
+
return (
|
|
1225
|
+
f"<KeyUsage(digital_signature={self.digital_signature}, "
|
|
1226
|
+
f"content_commitment={self.content_commitment}, "
|
|
1227
|
+
f"key_encipherment={self.key_encipherment}, "
|
|
1228
|
+
f"data_encipherment={self.data_encipherment}, "
|
|
1229
|
+
f"key_agreement={self.key_agreement}, "
|
|
1230
|
+
f"key_cert_sign={self.key_cert_sign}, crl_sign={self.crl_sign}, "
|
|
1231
|
+
f"encipher_only={encipher_only}, decipher_only={decipher_only})>"
|
|
1232
|
+
)
|
|
1233
|
+
|
|
1234
|
+
def __eq__(self, other: object) -> bool:
|
|
1235
|
+
if not isinstance(other, KeyUsage):
|
|
1236
|
+
return NotImplemented
|
|
1237
|
+
|
|
1238
|
+
return (
|
|
1239
|
+
self.digital_signature == other.digital_signature
|
|
1240
|
+
and self.content_commitment == other.content_commitment
|
|
1241
|
+
and self.key_encipherment == other.key_encipherment
|
|
1242
|
+
and self.data_encipherment == other.data_encipherment
|
|
1243
|
+
and self.key_agreement == other.key_agreement
|
|
1244
|
+
and self.key_cert_sign == other.key_cert_sign
|
|
1245
|
+
and self.crl_sign == other.crl_sign
|
|
1246
|
+
and self._encipher_only == other._encipher_only
|
|
1247
|
+
and self._decipher_only == other._decipher_only
|
|
1248
|
+
)
|
|
1249
|
+
|
|
1250
|
+
def __hash__(self) -> int:
|
|
1251
|
+
return hash(
|
|
1252
|
+
(
|
|
1253
|
+
self.digital_signature,
|
|
1254
|
+
self.content_commitment,
|
|
1255
|
+
self.key_encipherment,
|
|
1256
|
+
self.data_encipherment,
|
|
1257
|
+
self.key_agreement,
|
|
1258
|
+
self.key_cert_sign,
|
|
1259
|
+
self.crl_sign,
|
|
1260
|
+
self._encipher_only,
|
|
1261
|
+
self._decipher_only,
|
|
1262
|
+
)
|
|
1263
|
+
)
|
|
1264
|
+
|
|
1265
|
+
def public_bytes(self) -> bytes:
|
|
1266
|
+
return rust_x509.encode_extension_value(self)
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
class PrivateKeyUsagePeriod(ExtensionType):
|
|
1270
|
+
oid = ExtensionOID.PRIVATE_KEY_USAGE_PERIOD
|
|
1271
|
+
|
|
1272
|
+
def __init__(
|
|
1273
|
+
self,
|
|
1274
|
+
not_before: datetime.datetime | None,
|
|
1275
|
+
not_after: datetime.datetime | None,
|
|
1276
|
+
) -> None:
|
|
1277
|
+
if (
|
|
1278
|
+
not isinstance(not_before, datetime.datetime)
|
|
1279
|
+
and not_before is not None
|
|
1280
|
+
):
|
|
1281
|
+
raise TypeError("not_before must be a datetime.datetime or None")
|
|
1282
|
+
|
|
1283
|
+
if (
|
|
1284
|
+
not isinstance(not_after, datetime.datetime)
|
|
1285
|
+
and not_after is not None
|
|
1286
|
+
):
|
|
1287
|
+
raise TypeError("not_after must be a datetime.datetime or None")
|
|
1288
|
+
|
|
1289
|
+
if not_before is None and not_after is None:
|
|
1290
|
+
raise ValueError(
|
|
1291
|
+
"At least one of not_before and not_after must not be None"
|
|
1292
|
+
)
|
|
1293
|
+
|
|
1294
|
+
if (
|
|
1295
|
+
not_before is not None
|
|
1296
|
+
and not_after is not None
|
|
1297
|
+
and not_before > not_after
|
|
1298
|
+
):
|
|
1299
|
+
raise ValueError("not_before must be before not_after")
|
|
1300
|
+
|
|
1301
|
+
self._not_before = not_before
|
|
1302
|
+
self._not_after = not_after
|
|
1303
|
+
|
|
1304
|
+
@property
|
|
1305
|
+
def not_before(self) -> datetime.datetime | None:
|
|
1306
|
+
return self._not_before
|
|
1307
|
+
|
|
1308
|
+
@property
|
|
1309
|
+
def not_after(self) -> datetime.datetime | None:
|
|
1310
|
+
return self._not_after
|
|
1311
|
+
|
|
1312
|
+
def __repr__(self) -> str:
|
|
1313
|
+
return (
|
|
1314
|
+
f"<PrivateKeyUsagePeriod(not_before={self.not_before}, "
|
|
1315
|
+
f"not_after={self.not_after})>"
|
|
1316
|
+
)
|
|
1317
|
+
|
|
1318
|
+
def __eq__(self, other: object) -> bool:
|
|
1319
|
+
if not isinstance(other, PrivateKeyUsagePeriod):
|
|
1320
|
+
return NotImplemented
|
|
1321
|
+
|
|
1322
|
+
return (
|
|
1323
|
+
self.not_before == other.not_before
|
|
1324
|
+
and self.not_after == other.not_after
|
|
1325
|
+
)
|
|
1326
|
+
|
|
1327
|
+
def __hash__(self) -> int:
|
|
1328
|
+
return hash((self.not_before, self.not_after))
|
|
1329
|
+
|
|
1330
|
+
def public_bytes(self) -> bytes:
|
|
1331
|
+
return rust_x509.encode_extension_value(self)
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
class NameConstraints(ExtensionType):
|
|
1335
|
+
oid = ExtensionOID.NAME_CONSTRAINTS
|
|
1336
|
+
|
|
1337
|
+
def __init__(
|
|
1338
|
+
self,
|
|
1339
|
+
permitted_subtrees: Iterable[GeneralName] | None,
|
|
1340
|
+
excluded_subtrees: Iterable[GeneralName] | None,
|
|
1341
|
+
) -> None:
|
|
1342
|
+
if permitted_subtrees is not None:
|
|
1343
|
+
permitted_subtrees = list(permitted_subtrees)
|
|
1344
|
+
if not permitted_subtrees:
|
|
1345
|
+
raise ValueError(
|
|
1346
|
+
"permitted_subtrees must be a non-empty list or None"
|
|
1347
|
+
)
|
|
1348
|
+
if not all(isinstance(x, GeneralName) for x in permitted_subtrees):
|
|
1349
|
+
raise TypeError(
|
|
1350
|
+
"permitted_subtrees must be a list of GeneralName objects "
|
|
1351
|
+
"or None"
|
|
1352
|
+
)
|
|
1353
|
+
|
|
1354
|
+
self._validate_tree(permitted_subtrees)
|
|
1355
|
+
|
|
1356
|
+
if excluded_subtrees is not None:
|
|
1357
|
+
excluded_subtrees = list(excluded_subtrees)
|
|
1358
|
+
if not excluded_subtrees:
|
|
1359
|
+
raise ValueError(
|
|
1360
|
+
"excluded_subtrees must be a non-empty list or None"
|
|
1361
|
+
)
|
|
1362
|
+
if not all(isinstance(x, GeneralName) for x in excluded_subtrees):
|
|
1363
|
+
raise TypeError(
|
|
1364
|
+
"excluded_subtrees must be a list of GeneralName objects "
|
|
1365
|
+
"or None"
|
|
1366
|
+
)
|
|
1367
|
+
|
|
1368
|
+
self._validate_tree(excluded_subtrees)
|
|
1369
|
+
|
|
1370
|
+
if permitted_subtrees is None and excluded_subtrees is None:
|
|
1371
|
+
raise ValueError(
|
|
1372
|
+
"At least one of permitted_subtrees and excluded_subtrees "
|
|
1373
|
+
"must not be None"
|
|
1374
|
+
)
|
|
1375
|
+
|
|
1376
|
+
self._permitted_subtrees = permitted_subtrees
|
|
1377
|
+
self._excluded_subtrees = excluded_subtrees
|
|
1378
|
+
|
|
1379
|
+
def __eq__(self, other: object) -> bool:
|
|
1380
|
+
if not isinstance(other, NameConstraints):
|
|
1381
|
+
return NotImplemented
|
|
1382
|
+
|
|
1383
|
+
return (
|
|
1384
|
+
self.excluded_subtrees == other.excluded_subtrees
|
|
1385
|
+
and self.permitted_subtrees == other.permitted_subtrees
|
|
1386
|
+
)
|
|
1387
|
+
|
|
1388
|
+
def _validate_tree(self, tree: Iterable[GeneralName]) -> None:
|
|
1389
|
+
self._validate_ip_name(tree)
|
|
1390
|
+
self._validate_dns_name(tree)
|
|
1391
|
+
|
|
1392
|
+
def _validate_ip_name(self, tree: Iterable[GeneralName]) -> None:
|
|
1393
|
+
if any(
|
|
1394
|
+
isinstance(name, IPAddress)
|
|
1395
|
+
and not isinstance(
|
|
1396
|
+
name.value, (ipaddress.IPv4Network, ipaddress.IPv6Network)
|
|
1397
|
+
)
|
|
1398
|
+
for name in tree
|
|
1399
|
+
):
|
|
1400
|
+
raise TypeError(
|
|
1401
|
+
"IPAddress name constraints must be an IPv4Network or"
|
|
1402
|
+
" IPv6Network object"
|
|
1403
|
+
)
|
|
1404
|
+
|
|
1405
|
+
def _validate_dns_name(self, tree: Iterable[GeneralName]) -> None:
|
|
1406
|
+
if any(
|
|
1407
|
+
isinstance(name, DNSName) and "*" in name.value for name in tree
|
|
1408
|
+
):
|
|
1409
|
+
raise ValueError(
|
|
1410
|
+
"DNSName name constraints must not contain the '*' wildcard"
|
|
1411
|
+
" character"
|
|
1412
|
+
)
|
|
1413
|
+
|
|
1414
|
+
def __repr__(self) -> str:
|
|
1415
|
+
return (
|
|
1416
|
+
f"<NameConstraints(permitted_subtrees={self.permitted_subtrees}, "
|
|
1417
|
+
f"excluded_subtrees={self.excluded_subtrees})>"
|
|
1418
|
+
)
|
|
1419
|
+
|
|
1420
|
+
def __hash__(self) -> int:
|
|
1421
|
+
if self.permitted_subtrees is not None:
|
|
1422
|
+
ps: tuple[GeneralName, ...] | None = tuple(self.permitted_subtrees)
|
|
1423
|
+
else:
|
|
1424
|
+
ps = None
|
|
1425
|
+
|
|
1426
|
+
if self.excluded_subtrees is not None:
|
|
1427
|
+
es: tuple[GeneralName, ...] | None = tuple(self.excluded_subtrees)
|
|
1428
|
+
else:
|
|
1429
|
+
es = None
|
|
1430
|
+
|
|
1431
|
+
return hash((ps, es))
|
|
1432
|
+
|
|
1433
|
+
@property
|
|
1434
|
+
def permitted_subtrees(
|
|
1435
|
+
self,
|
|
1436
|
+
) -> list[GeneralName] | None:
|
|
1437
|
+
return self._permitted_subtrees
|
|
1438
|
+
|
|
1439
|
+
@property
|
|
1440
|
+
def excluded_subtrees(
|
|
1441
|
+
self,
|
|
1442
|
+
) -> list[GeneralName] | None:
|
|
1443
|
+
return self._excluded_subtrees
|
|
1444
|
+
|
|
1445
|
+
def public_bytes(self) -> bytes:
|
|
1446
|
+
return rust_x509.encode_extension_value(self)
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
class Extension(typing.Generic[ExtensionTypeVar]):
|
|
1450
|
+
def __init__(
|
|
1451
|
+
self, oid: ObjectIdentifier, critical: bool, value: ExtensionTypeVar
|
|
1452
|
+
) -> None:
|
|
1453
|
+
if not isinstance(oid, ObjectIdentifier):
|
|
1454
|
+
raise TypeError(
|
|
1455
|
+
"oid argument must be an ObjectIdentifier instance."
|
|
1456
|
+
)
|
|
1457
|
+
|
|
1458
|
+
if not isinstance(critical, bool):
|
|
1459
|
+
raise TypeError("critical must be a boolean value")
|
|
1460
|
+
|
|
1461
|
+
self._oid = oid
|
|
1462
|
+
self._critical = critical
|
|
1463
|
+
self._value = value
|
|
1464
|
+
|
|
1465
|
+
@property
|
|
1466
|
+
def oid(self) -> ObjectIdentifier:
|
|
1467
|
+
return self._oid
|
|
1468
|
+
|
|
1469
|
+
@property
|
|
1470
|
+
def critical(self) -> bool:
|
|
1471
|
+
return self._critical
|
|
1472
|
+
|
|
1473
|
+
@property
|
|
1474
|
+
def value(self) -> ExtensionTypeVar:
|
|
1475
|
+
return self._value
|
|
1476
|
+
|
|
1477
|
+
def __repr__(self) -> str:
|
|
1478
|
+
return (
|
|
1479
|
+
f"<Extension(oid={self.oid}, critical={self.critical}, "
|
|
1480
|
+
f"value={self.value})>"
|
|
1481
|
+
)
|
|
1482
|
+
|
|
1483
|
+
def __eq__(self, other: object) -> bool:
|
|
1484
|
+
if not isinstance(other, Extension):
|
|
1485
|
+
return NotImplemented
|
|
1486
|
+
|
|
1487
|
+
return (
|
|
1488
|
+
self.oid == other.oid
|
|
1489
|
+
and self.critical == other.critical
|
|
1490
|
+
and self.value == other.value
|
|
1491
|
+
)
|
|
1492
|
+
|
|
1493
|
+
def __hash__(self) -> int:
|
|
1494
|
+
return hash((self.oid, self.critical, self.value))
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
class GeneralNames:
|
|
1498
|
+
def __init__(self, general_names: Iterable[GeneralName]) -> None:
|
|
1499
|
+
general_names = list(general_names)
|
|
1500
|
+
if not all(isinstance(x, GeneralName) for x in general_names):
|
|
1501
|
+
raise TypeError(
|
|
1502
|
+
"Every item in the general_names list must be an "
|
|
1503
|
+
"object conforming to the GeneralName interface"
|
|
1504
|
+
)
|
|
1505
|
+
|
|
1506
|
+
self._general_names = general_names
|
|
1507
|
+
|
|
1508
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_general_names")
|
|
1509
|
+
|
|
1510
|
+
@typing.overload
|
|
1511
|
+
def get_values_for_type(
|
|
1512
|
+
self,
|
|
1513
|
+
type: type[DNSName]
|
|
1514
|
+
| type[UniformResourceIdentifier]
|
|
1515
|
+
| type[RFC822Name],
|
|
1516
|
+
) -> list[str]: ...
|
|
1517
|
+
|
|
1518
|
+
@typing.overload
|
|
1519
|
+
def get_values_for_type(
|
|
1520
|
+
self,
|
|
1521
|
+
type: type[DirectoryName],
|
|
1522
|
+
) -> list[Name]: ...
|
|
1523
|
+
|
|
1524
|
+
@typing.overload
|
|
1525
|
+
def get_values_for_type(
|
|
1526
|
+
self,
|
|
1527
|
+
type: type[RegisteredID],
|
|
1528
|
+
) -> list[ObjectIdentifier]: ...
|
|
1529
|
+
|
|
1530
|
+
@typing.overload
|
|
1531
|
+
def get_values_for_type(
|
|
1532
|
+
self, type: type[IPAddress]
|
|
1533
|
+
) -> list[_IPAddressTypes]: ...
|
|
1534
|
+
|
|
1535
|
+
@typing.overload
|
|
1536
|
+
def get_values_for_type(
|
|
1537
|
+
self, type: type[OtherName]
|
|
1538
|
+
) -> list[OtherName]: ...
|
|
1539
|
+
|
|
1540
|
+
def get_values_for_type(
|
|
1541
|
+
self,
|
|
1542
|
+
type: type[DNSName]
|
|
1543
|
+
| type[DirectoryName]
|
|
1544
|
+
| type[IPAddress]
|
|
1545
|
+
| type[OtherName]
|
|
1546
|
+
| type[RFC822Name]
|
|
1547
|
+
| type[RegisteredID]
|
|
1548
|
+
| type[UniformResourceIdentifier],
|
|
1549
|
+
) -> (
|
|
1550
|
+
list[_IPAddressTypes]
|
|
1551
|
+
| list[str]
|
|
1552
|
+
| list[OtherName]
|
|
1553
|
+
| list[Name]
|
|
1554
|
+
| list[ObjectIdentifier]
|
|
1555
|
+
):
|
|
1556
|
+
# Return the value of each GeneralName, except for OtherName instances
|
|
1557
|
+
# which we return directly because it has two important properties not
|
|
1558
|
+
# just one value.
|
|
1559
|
+
objs = (i for i in self if isinstance(i, type))
|
|
1560
|
+
if type != OtherName:
|
|
1561
|
+
return [i.value for i in objs] # type: ignore[return-value,unused-ignore]
|
|
1562
|
+
return list(objs) # type: ignore[return-value,unused-ignore]
|
|
1563
|
+
|
|
1564
|
+
def __repr__(self) -> str:
|
|
1565
|
+
return f"<GeneralNames({self._general_names})>"
|
|
1566
|
+
|
|
1567
|
+
def __eq__(self, other: object) -> bool:
|
|
1568
|
+
if not isinstance(other, GeneralNames):
|
|
1569
|
+
return NotImplemented
|
|
1570
|
+
|
|
1571
|
+
return self._general_names == other._general_names
|
|
1572
|
+
|
|
1573
|
+
def __hash__(self) -> int:
|
|
1574
|
+
return hash(tuple(self._general_names))
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
class SubjectAlternativeName(ExtensionType):
|
|
1578
|
+
oid = ExtensionOID.SUBJECT_ALTERNATIVE_NAME
|
|
1579
|
+
|
|
1580
|
+
def __init__(self, general_names: Iterable[GeneralName]) -> None:
|
|
1581
|
+
self._general_names = GeneralNames(general_names)
|
|
1582
|
+
|
|
1583
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_general_names")
|
|
1584
|
+
|
|
1585
|
+
@typing.overload
|
|
1586
|
+
def get_values_for_type(
|
|
1587
|
+
self,
|
|
1588
|
+
type: type[DNSName]
|
|
1589
|
+
| type[UniformResourceIdentifier]
|
|
1590
|
+
| type[RFC822Name],
|
|
1591
|
+
) -> list[str]: ...
|
|
1592
|
+
|
|
1593
|
+
@typing.overload
|
|
1594
|
+
def get_values_for_type(
|
|
1595
|
+
self,
|
|
1596
|
+
type: type[DirectoryName],
|
|
1597
|
+
) -> list[Name]: ...
|
|
1598
|
+
|
|
1599
|
+
@typing.overload
|
|
1600
|
+
def get_values_for_type(
|
|
1601
|
+
self,
|
|
1602
|
+
type: type[RegisteredID],
|
|
1603
|
+
) -> list[ObjectIdentifier]: ...
|
|
1604
|
+
|
|
1605
|
+
@typing.overload
|
|
1606
|
+
def get_values_for_type(
|
|
1607
|
+
self, type: type[IPAddress]
|
|
1608
|
+
) -> list[_IPAddressTypes]: ...
|
|
1609
|
+
|
|
1610
|
+
@typing.overload
|
|
1611
|
+
def get_values_for_type(
|
|
1612
|
+
self, type: type[OtherName]
|
|
1613
|
+
) -> list[OtherName]: ...
|
|
1614
|
+
|
|
1615
|
+
def get_values_for_type(
|
|
1616
|
+
self,
|
|
1617
|
+
type: type[DNSName]
|
|
1618
|
+
| type[DirectoryName]
|
|
1619
|
+
| type[IPAddress]
|
|
1620
|
+
| type[OtherName]
|
|
1621
|
+
| type[RFC822Name]
|
|
1622
|
+
| type[RegisteredID]
|
|
1623
|
+
| type[UniformResourceIdentifier],
|
|
1624
|
+
) -> (
|
|
1625
|
+
list[_IPAddressTypes]
|
|
1626
|
+
| list[str]
|
|
1627
|
+
| list[OtherName]
|
|
1628
|
+
| list[Name]
|
|
1629
|
+
| list[ObjectIdentifier]
|
|
1630
|
+
):
|
|
1631
|
+
return self._general_names.get_values_for_type(type)
|
|
1632
|
+
|
|
1633
|
+
def __repr__(self) -> str:
|
|
1634
|
+
return f"<SubjectAlternativeName({self._general_names})>"
|
|
1635
|
+
|
|
1636
|
+
def __eq__(self, other: object) -> bool:
|
|
1637
|
+
if not isinstance(other, SubjectAlternativeName):
|
|
1638
|
+
return NotImplemented
|
|
1639
|
+
|
|
1640
|
+
return self._general_names == other._general_names
|
|
1641
|
+
|
|
1642
|
+
def __hash__(self) -> int:
|
|
1643
|
+
return hash(self._general_names)
|
|
1644
|
+
|
|
1645
|
+
def public_bytes(self) -> bytes:
|
|
1646
|
+
return rust_x509.encode_extension_value(self)
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
class IssuerAlternativeName(ExtensionType):
|
|
1650
|
+
oid = ExtensionOID.ISSUER_ALTERNATIVE_NAME
|
|
1651
|
+
|
|
1652
|
+
def __init__(self, general_names: Iterable[GeneralName]) -> None:
|
|
1653
|
+
self._general_names = GeneralNames(general_names)
|
|
1654
|
+
|
|
1655
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_general_names")
|
|
1656
|
+
|
|
1657
|
+
@typing.overload
|
|
1658
|
+
def get_values_for_type(
|
|
1659
|
+
self,
|
|
1660
|
+
type: type[DNSName]
|
|
1661
|
+
| type[UniformResourceIdentifier]
|
|
1662
|
+
| type[RFC822Name],
|
|
1663
|
+
) -> list[str]: ...
|
|
1664
|
+
|
|
1665
|
+
@typing.overload
|
|
1666
|
+
def get_values_for_type(
|
|
1667
|
+
self,
|
|
1668
|
+
type: type[DirectoryName],
|
|
1669
|
+
) -> list[Name]: ...
|
|
1670
|
+
|
|
1671
|
+
@typing.overload
|
|
1672
|
+
def get_values_for_type(
|
|
1673
|
+
self,
|
|
1674
|
+
type: type[RegisteredID],
|
|
1675
|
+
) -> list[ObjectIdentifier]: ...
|
|
1676
|
+
|
|
1677
|
+
@typing.overload
|
|
1678
|
+
def get_values_for_type(
|
|
1679
|
+
self, type: type[IPAddress]
|
|
1680
|
+
) -> list[_IPAddressTypes]: ...
|
|
1681
|
+
|
|
1682
|
+
@typing.overload
|
|
1683
|
+
def get_values_for_type(
|
|
1684
|
+
self, type: type[OtherName]
|
|
1685
|
+
) -> list[OtherName]: ...
|
|
1686
|
+
|
|
1687
|
+
def get_values_for_type(
|
|
1688
|
+
self,
|
|
1689
|
+
type: type[DNSName]
|
|
1690
|
+
| type[DirectoryName]
|
|
1691
|
+
| type[IPAddress]
|
|
1692
|
+
| type[OtherName]
|
|
1693
|
+
| type[RFC822Name]
|
|
1694
|
+
| type[RegisteredID]
|
|
1695
|
+
| type[UniformResourceIdentifier],
|
|
1696
|
+
) -> (
|
|
1697
|
+
list[_IPAddressTypes]
|
|
1698
|
+
| list[str]
|
|
1699
|
+
| list[OtherName]
|
|
1700
|
+
| list[Name]
|
|
1701
|
+
| list[ObjectIdentifier]
|
|
1702
|
+
):
|
|
1703
|
+
return self._general_names.get_values_for_type(type)
|
|
1704
|
+
|
|
1705
|
+
def __repr__(self) -> str:
|
|
1706
|
+
return f"<IssuerAlternativeName({self._general_names})>"
|
|
1707
|
+
|
|
1708
|
+
def __eq__(self, other: object) -> bool:
|
|
1709
|
+
if not isinstance(other, IssuerAlternativeName):
|
|
1710
|
+
return NotImplemented
|
|
1711
|
+
|
|
1712
|
+
return self._general_names == other._general_names
|
|
1713
|
+
|
|
1714
|
+
def __hash__(self) -> int:
|
|
1715
|
+
return hash(self._general_names)
|
|
1716
|
+
|
|
1717
|
+
def public_bytes(self) -> bytes:
|
|
1718
|
+
return rust_x509.encode_extension_value(self)
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
class CertificateIssuer(ExtensionType):
|
|
1722
|
+
oid = CRLEntryExtensionOID.CERTIFICATE_ISSUER
|
|
1723
|
+
|
|
1724
|
+
def __init__(self, general_names: Iterable[GeneralName]) -> None:
|
|
1725
|
+
self._general_names = GeneralNames(general_names)
|
|
1726
|
+
|
|
1727
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_general_names")
|
|
1728
|
+
|
|
1729
|
+
@typing.overload
|
|
1730
|
+
def get_values_for_type(
|
|
1731
|
+
self,
|
|
1732
|
+
type: type[DNSName]
|
|
1733
|
+
| type[UniformResourceIdentifier]
|
|
1734
|
+
| type[RFC822Name],
|
|
1735
|
+
) -> list[str]: ...
|
|
1736
|
+
|
|
1737
|
+
@typing.overload
|
|
1738
|
+
def get_values_for_type(
|
|
1739
|
+
self,
|
|
1740
|
+
type: type[DirectoryName],
|
|
1741
|
+
) -> list[Name]: ...
|
|
1742
|
+
|
|
1743
|
+
@typing.overload
|
|
1744
|
+
def get_values_for_type(
|
|
1745
|
+
self,
|
|
1746
|
+
type: type[RegisteredID],
|
|
1747
|
+
) -> list[ObjectIdentifier]: ...
|
|
1748
|
+
|
|
1749
|
+
@typing.overload
|
|
1750
|
+
def get_values_for_type(
|
|
1751
|
+
self, type: type[IPAddress]
|
|
1752
|
+
) -> list[_IPAddressTypes]: ...
|
|
1753
|
+
|
|
1754
|
+
@typing.overload
|
|
1755
|
+
def get_values_for_type(
|
|
1756
|
+
self, type: type[OtherName]
|
|
1757
|
+
) -> list[OtherName]: ...
|
|
1758
|
+
|
|
1759
|
+
def get_values_for_type(
|
|
1760
|
+
self,
|
|
1761
|
+
type: type[DNSName]
|
|
1762
|
+
| type[DirectoryName]
|
|
1763
|
+
| type[IPAddress]
|
|
1764
|
+
| type[OtherName]
|
|
1765
|
+
| type[RFC822Name]
|
|
1766
|
+
| type[RegisteredID]
|
|
1767
|
+
| type[UniformResourceIdentifier],
|
|
1768
|
+
) -> (
|
|
1769
|
+
list[_IPAddressTypes]
|
|
1770
|
+
| list[str]
|
|
1771
|
+
| list[OtherName]
|
|
1772
|
+
| list[Name]
|
|
1773
|
+
| list[ObjectIdentifier]
|
|
1774
|
+
):
|
|
1775
|
+
return self._general_names.get_values_for_type(type)
|
|
1776
|
+
|
|
1777
|
+
def __repr__(self) -> str:
|
|
1778
|
+
return f"<CertificateIssuer({self._general_names})>"
|
|
1779
|
+
|
|
1780
|
+
def __eq__(self, other: object) -> bool:
|
|
1781
|
+
if not isinstance(other, CertificateIssuer):
|
|
1782
|
+
return NotImplemented
|
|
1783
|
+
|
|
1784
|
+
return self._general_names == other._general_names
|
|
1785
|
+
|
|
1786
|
+
def __hash__(self) -> int:
|
|
1787
|
+
return hash(self._general_names)
|
|
1788
|
+
|
|
1789
|
+
def public_bytes(self) -> bytes:
|
|
1790
|
+
return rust_x509.encode_extension_value(self)
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
class CRLReason(ExtensionType):
|
|
1794
|
+
oid = CRLEntryExtensionOID.CRL_REASON
|
|
1795
|
+
|
|
1796
|
+
def __init__(self, reason: ReasonFlags) -> None:
|
|
1797
|
+
if not isinstance(reason, ReasonFlags):
|
|
1798
|
+
raise TypeError("reason must be an element from ReasonFlags")
|
|
1799
|
+
|
|
1800
|
+
self._reason = reason
|
|
1801
|
+
|
|
1802
|
+
def __repr__(self) -> str:
|
|
1803
|
+
return f"<CRLReason(reason={self._reason})>"
|
|
1804
|
+
|
|
1805
|
+
def __eq__(self, other: object) -> bool:
|
|
1806
|
+
if not isinstance(other, CRLReason):
|
|
1807
|
+
return NotImplemented
|
|
1808
|
+
|
|
1809
|
+
return self.reason == other.reason
|
|
1810
|
+
|
|
1811
|
+
def __hash__(self) -> int:
|
|
1812
|
+
return hash(self.reason)
|
|
1813
|
+
|
|
1814
|
+
@property
|
|
1815
|
+
def reason(self) -> ReasonFlags:
|
|
1816
|
+
return self._reason
|
|
1817
|
+
|
|
1818
|
+
def public_bytes(self) -> bytes:
|
|
1819
|
+
return rust_x509.encode_extension_value(self)
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
class InvalidityDate(ExtensionType):
|
|
1823
|
+
oid = CRLEntryExtensionOID.INVALIDITY_DATE
|
|
1824
|
+
|
|
1825
|
+
def __init__(self, invalidity_date: datetime.datetime) -> None:
|
|
1826
|
+
if not isinstance(invalidity_date, datetime.datetime):
|
|
1827
|
+
raise TypeError("invalidity_date must be a datetime.datetime")
|
|
1828
|
+
|
|
1829
|
+
self._invalidity_date = invalidity_date
|
|
1830
|
+
|
|
1831
|
+
def __repr__(self) -> str:
|
|
1832
|
+
return f"<InvalidityDate(invalidity_date={self._invalidity_date})>"
|
|
1833
|
+
|
|
1834
|
+
def __eq__(self, other: object) -> bool:
|
|
1835
|
+
if not isinstance(other, InvalidityDate):
|
|
1836
|
+
return NotImplemented
|
|
1837
|
+
|
|
1838
|
+
return self.invalidity_date == other.invalidity_date
|
|
1839
|
+
|
|
1840
|
+
def __hash__(self) -> int:
|
|
1841
|
+
return hash(self.invalidity_date)
|
|
1842
|
+
|
|
1843
|
+
@property
|
|
1844
|
+
def invalidity_date(self) -> datetime.datetime:
|
|
1845
|
+
return self._invalidity_date
|
|
1846
|
+
|
|
1847
|
+
@property
|
|
1848
|
+
def invalidity_date_utc(self) -> datetime.datetime:
|
|
1849
|
+
if self._invalidity_date.tzinfo is None:
|
|
1850
|
+
return self._invalidity_date.replace(tzinfo=datetime.timezone.utc)
|
|
1851
|
+
else:
|
|
1852
|
+
return self._invalidity_date.astimezone(tz=datetime.timezone.utc)
|
|
1853
|
+
|
|
1854
|
+
def public_bytes(self) -> bytes:
|
|
1855
|
+
return rust_x509.encode_extension_value(self)
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
class PrecertificateSignedCertificateTimestamps(ExtensionType):
|
|
1859
|
+
oid = ExtensionOID.PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS
|
|
1860
|
+
|
|
1861
|
+
def __init__(
|
|
1862
|
+
self,
|
|
1863
|
+
signed_certificate_timestamps: Iterable[SignedCertificateTimestamp],
|
|
1864
|
+
) -> None:
|
|
1865
|
+
signed_certificate_timestamps = list(signed_certificate_timestamps)
|
|
1866
|
+
if not all(
|
|
1867
|
+
isinstance(sct, SignedCertificateTimestamp)
|
|
1868
|
+
for sct in signed_certificate_timestamps
|
|
1869
|
+
):
|
|
1870
|
+
raise TypeError(
|
|
1871
|
+
"Every item in the signed_certificate_timestamps list must be "
|
|
1872
|
+
"a SignedCertificateTimestamp"
|
|
1873
|
+
)
|
|
1874
|
+
self._signed_certificate_timestamps = signed_certificate_timestamps
|
|
1875
|
+
|
|
1876
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods(
|
|
1877
|
+
"_signed_certificate_timestamps"
|
|
1878
|
+
)
|
|
1879
|
+
|
|
1880
|
+
def __repr__(self) -> str:
|
|
1881
|
+
return f"<PrecertificateSignedCertificateTimestamps({list(self)})>"
|
|
1882
|
+
|
|
1883
|
+
def __hash__(self) -> int:
|
|
1884
|
+
return hash(tuple(self._signed_certificate_timestamps))
|
|
1885
|
+
|
|
1886
|
+
def __eq__(self, other: object) -> bool:
|
|
1887
|
+
if not isinstance(other, PrecertificateSignedCertificateTimestamps):
|
|
1888
|
+
return NotImplemented
|
|
1889
|
+
|
|
1890
|
+
return (
|
|
1891
|
+
self._signed_certificate_timestamps
|
|
1892
|
+
== other._signed_certificate_timestamps
|
|
1893
|
+
)
|
|
1894
|
+
|
|
1895
|
+
def public_bytes(self) -> bytes:
|
|
1896
|
+
return rust_x509.encode_extension_value(self)
|
|
1897
|
+
|
|
1898
|
+
|
|
1899
|
+
class SignedCertificateTimestamps(ExtensionType):
|
|
1900
|
+
oid = ExtensionOID.SIGNED_CERTIFICATE_TIMESTAMPS
|
|
1901
|
+
|
|
1902
|
+
def __init__(
|
|
1903
|
+
self,
|
|
1904
|
+
signed_certificate_timestamps: Iterable[SignedCertificateTimestamp],
|
|
1905
|
+
) -> None:
|
|
1906
|
+
signed_certificate_timestamps = list(signed_certificate_timestamps)
|
|
1907
|
+
if not all(
|
|
1908
|
+
isinstance(sct, SignedCertificateTimestamp)
|
|
1909
|
+
for sct in signed_certificate_timestamps
|
|
1910
|
+
):
|
|
1911
|
+
raise TypeError(
|
|
1912
|
+
"Every item in the signed_certificate_timestamps list must be "
|
|
1913
|
+
"a SignedCertificateTimestamp"
|
|
1914
|
+
)
|
|
1915
|
+
self._signed_certificate_timestamps = signed_certificate_timestamps
|
|
1916
|
+
|
|
1917
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods(
|
|
1918
|
+
"_signed_certificate_timestamps"
|
|
1919
|
+
)
|
|
1920
|
+
|
|
1921
|
+
def __repr__(self) -> str:
|
|
1922
|
+
return f"<SignedCertificateTimestamps({list(self)})>"
|
|
1923
|
+
|
|
1924
|
+
def __hash__(self) -> int:
|
|
1925
|
+
return hash(tuple(self._signed_certificate_timestamps))
|
|
1926
|
+
|
|
1927
|
+
def __eq__(self, other: object) -> bool:
|
|
1928
|
+
if not isinstance(other, SignedCertificateTimestamps):
|
|
1929
|
+
return NotImplemented
|
|
1930
|
+
|
|
1931
|
+
return (
|
|
1932
|
+
self._signed_certificate_timestamps
|
|
1933
|
+
== other._signed_certificate_timestamps
|
|
1934
|
+
)
|
|
1935
|
+
|
|
1936
|
+
def public_bytes(self) -> bytes:
|
|
1937
|
+
return rust_x509.encode_extension_value(self)
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
class OCSPNonce(ExtensionType):
|
|
1941
|
+
oid = OCSPExtensionOID.NONCE
|
|
1942
|
+
|
|
1943
|
+
def __init__(self, nonce: bytes) -> None:
|
|
1944
|
+
if not isinstance(nonce, bytes):
|
|
1945
|
+
raise TypeError("nonce must be bytes")
|
|
1946
|
+
|
|
1947
|
+
self._nonce = nonce
|
|
1948
|
+
|
|
1949
|
+
def __eq__(self, other: object) -> bool:
|
|
1950
|
+
if not isinstance(other, OCSPNonce):
|
|
1951
|
+
return NotImplemented
|
|
1952
|
+
|
|
1953
|
+
return self.nonce == other.nonce
|
|
1954
|
+
|
|
1955
|
+
def __hash__(self) -> int:
|
|
1956
|
+
return hash(self.nonce)
|
|
1957
|
+
|
|
1958
|
+
def __repr__(self) -> str:
|
|
1959
|
+
return f"<OCSPNonce(nonce={self.nonce!r})>"
|
|
1960
|
+
|
|
1961
|
+
@property
|
|
1962
|
+
def nonce(self) -> bytes:
|
|
1963
|
+
return self._nonce
|
|
1964
|
+
|
|
1965
|
+
def public_bytes(self) -> bytes:
|
|
1966
|
+
return rust_x509.encode_extension_value(self)
|
|
1967
|
+
|
|
1968
|
+
|
|
1969
|
+
class OCSPAcceptableResponses(ExtensionType):
|
|
1970
|
+
oid = OCSPExtensionOID.ACCEPTABLE_RESPONSES
|
|
1971
|
+
|
|
1972
|
+
def __init__(self, responses: Iterable[ObjectIdentifier]) -> None:
|
|
1973
|
+
responses = list(responses)
|
|
1974
|
+
if any(not isinstance(r, ObjectIdentifier) for r in responses):
|
|
1975
|
+
raise TypeError("All responses must be ObjectIdentifiers")
|
|
1976
|
+
|
|
1977
|
+
self._responses = responses
|
|
1978
|
+
|
|
1979
|
+
def __eq__(self, other: object) -> bool:
|
|
1980
|
+
if not isinstance(other, OCSPAcceptableResponses):
|
|
1981
|
+
return NotImplemented
|
|
1982
|
+
|
|
1983
|
+
return self._responses == other._responses
|
|
1984
|
+
|
|
1985
|
+
def __hash__(self) -> int:
|
|
1986
|
+
return hash(tuple(self._responses))
|
|
1987
|
+
|
|
1988
|
+
def __repr__(self) -> str:
|
|
1989
|
+
return f"<OCSPAcceptableResponses(responses={self._responses})>"
|
|
1990
|
+
|
|
1991
|
+
def __iter__(self) -> Iterator[ObjectIdentifier]:
|
|
1992
|
+
return iter(self._responses)
|
|
1993
|
+
|
|
1994
|
+
def public_bytes(self) -> bytes:
|
|
1995
|
+
return rust_x509.encode_extension_value(self)
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
class IssuingDistributionPoint(ExtensionType):
|
|
1999
|
+
oid = ExtensionOID.ISSUING_DISTRIBUTION_POINT
|
|
2000
|
+
|
|
2001
|
+
def __init__(
|
|
2002
|
+
self,
|
|
2003
|
+
full_name: Iterable[GeneralName] | None,
|
|
2004
|
+
relative_name: RelativeDistinguishedName | None,
|
|
2005
|
+
only_contains_user_certs: bool,
|
|
2006
|
+
only_contains_ca_certs: bool,
|
|
2007
|
+
only_some_reasons: frozenset[ReasonFlags] | None,
|
|
2008
|
+
indirect_crl: bool,
|
|
2009
|
+
only_contains_attribute_certs: bool,
|
|
2010
|
+
) -> None:
|
|
2011
|
+
if full_name is not None:
|
|
2012
|
+
full_name = list(full_name)
|
|
2013
|
+
|
|
2014
|
+
if only_some_reasons and (
|
|
2015
|
+
not isinstance(only_some_reasons, frozenset)
|
|
2016
|
+
or not all(isinstance(x, ReasonFlags) for x in only_some_reasons)
|
|
2017
|
+
):
|
|
2018
|
+
raise TypeError(
|
|
2019
|
+
"only_some_reasons must be None or frozenset of ReasonFlags"
|
|
2020
|
+
)
|
|
2021
|
+
|
|
2022
|
+
if only_some_reasons and (
|
|
2023
|
+
ReasonFlags.unspecified in only_some_reasons
|
|
2024
|
+
or ReasonFlags.remove_from_crl in only_some_reasons
|
|
2025
|
+
):
|
|
2026
|
+
raise ValueError(
|
|
2027
|
+
"unspecified and remove_from_crl are not valid reasons in an "
|
|
2028
|
+
"IssuingDistributionPoint"
|
|
2029
|
+
)
|
|
2030
|
+
|
|
2031
|
+
if not (
|
|
2032
|
+
isinstance(only_contains_user_certs, bool)
|
|
2033
|
+
and isinstance(only_contains_ca_certs, bool)
|
|
2034
|
+
and isinstance(indirect_crl, bool)
|
|
2035
|
+
and isinstance(only_contains_attribute_certs, bool)
|
|
2036
|
+
):
|
|
2037
|
+
raise TypeError(
|
|
2038
|
+
"only_contains_user_certs, only_contains_ca_certs, "
|
|
2039
|
+
"indirect_crl and only_contains_attribute_certs "
|
|
2040
|
+
"must all be boolean."
|
|
2041
|
+
)
|
|
2042
|
+
|
|
2043
|
+
# Per RFC5280 Section 5.2.5, the Issuing Distribution Point extension
|
|
2044
|
+
# in a CRL can have only one of onlyContainsUserCerts,
|
|
2045
|
+
# onlyContainsCACerts, onlyContainsAttributeCerts set to TRUE.
|
|
2046
|
+
crl_constraints = [
|
|
2047
|
+
only_contains_user_certs,
|
|
2048
|
+
only_contains_ca_certs,
|
|
2049
|
+
only_contains_attribute_certs,
|
|
2050
|
+
]
|
|
2051
|
+
|
|
2052
|
+
if len([x for x in crl_constraints if x]) > 1:
|
|
2053
|
+
raise ValueError(
|
|
2054
|
+
"Only one of the following can be set to True: "
|
|
2055
|
+
"only_contains_user_certs, only_contains_ca_certs, "
|
|
2056
|
+
"only_contains_attribute_certs"
|
|
2057
|
+
)
|
|
2058
|
+
|
|
2059
|
+
if not any(
|
|
2060
|
+
[
|
|
2061
|
+
only_contains_user_certs,
|
|
2062
|
+
only_contains_ca_certs,
|
|
2063
|
+
indirect_crl,
|
|
2064
|
+
only_contains_attribute_certs,
|
|
2065
|
+
full_name,
|
|
2066
|
+
relative_name,
|
|
2067
|
+
only_some_reasons,
|
|
2068
|
+
]
|
|
2069
|
+
):
|
|
2070
|
+
raise ValueError(
|
|
2071
|
+
"Cannot create empty extension: "
|
|
2072
|
+
"if only_contains_user_certs, only_contains_ca_certs, "
|
|
2073
|
+
"indirect_crl, and only_contains_attribute_certs are all False"
|
|
2074
|
+
", then either full_name, relative_name, or only_some_reasons "
|
|
2075
|
+
"must have a value."
|
|
2076
|
+
)
|
|
2077
|
+
|
|
2078
|
+
self._only_contains_user_certs = only_contains_user_certs
|
|
2079
|
+
self._only_contains_ca_certs = only_contains_ca_certs
|
|
2080
|
+
self._indirect_crl = indirect_crl
|
|
2081
|
+
self._only_contains_attribute_certs = only_contains_attribute_certs
|
|
2082
|
+
self._only_some_reasons = only_some_reasons
|
|
2083
|
+
self._full_name = full_name
|
|
2084
|
+
self._relative_name = relative_name
|
|
2085
|
+
|
|
2086
|
+
def __repr__(self) -> str:
|
|
2087
|
+
return (
|
|
2088
|
+
f"<IssuingDistributionPoint(full_name={self.full_name}, "
|
|
2089
|
+
f"relative_name={self.relative_name}, "
|
|
2090
|
+
f"only_contains_user_certs={self.only_contains_user_certs}, "
|
|
2091
|
+
f"only_contains_ca_certs={self.only_contains_ca_certs}, "
|
|
2092
|
+
f"only_some_reasons={self.only_some_reasons}, "
|
|
2093
|
+
f"indirect_crl={self.indirect_crl}, "
|
|
2094
|
+
"only_contains_attribute_certs="
|
|
2095
|
+
f"{self.only_contains_attribute_certs})>"
|
|
2096
|
+
)
|
|
2097
|
+
|
|
2098
|
+
def __eq__(self, other: object) -> bool:
|
|
2099
|
+
if not isinstance(other, IssuingDistributionPoint):
|
|
2100
|
+
return NotImplemented
|
|
2101
|
+
|
|
2102
|
+
return (
|
|
2103
|
+
self.full_name == other.full_name
|
|
2104
|
+
and self.relative_name == other.relative_name
|
|
2105
|
+
and self.only_contains_user_certs == other.only_contains_user_certs
|
|
2106
|
+
and self.only_contains_ca_certs == other.only_contains_ca_certs
|
|
2107
|
+
and self.only_some_reasons == other.only_some_reasons
|
|
2108
|
+
and self.indirect_crl == other.indirect_crl
|
|
2109
|
+
and self.only_contains_attribute_certs
|
|
2110
|
+
== other.only_contains_attribute_certs
|
|
2111
|
+
)
|
|
2112
|
+
|
|
2113
|
+
def __hash__(self) -> int:
|
|
2114
|
+
if self.full_name is not None:
|
|
2115
|
+
full_name: tuple[GeneralName, ...] | None = tuple(self.full_name)
|
|
2116
|
+
else:
|
|
2117
|
+
full_name = None
|
|
2118
|
+
|
|
2119
|
+
return hash(
|
|
2120
|
+
(
|
|
2121
|
+
full_name,
|
|
2122
|
+
self.relative_name,
|
|
2123
|
+
self.only_contains_user_certs,
|
|
2124
|
+
self.only_contains_ca_certs,
|
|
2125
|
+
self.only_some_reasons,
|
|
2126
|
+
self.indirect_crl,
|
|
2127
|
+
self.only_contains_attribute_certs,
|
|
2128
|
+
)
|
|
2129
|
+
)
|
|
2130
|
+
|
|
2131
|
+
@property
|
|
2132
|
+
def full_name(self) -> list[GeneralName] | None:
|
|
2133
|
+
return self._full_name
|
|
2134
|
+
|
|
2135
|
+
@property
|
|
2136
|
+
def relative_name(self) -> RelativeDistinguishedName | None:
|
|
2137
|
+
return self._relative_name
|
|
2138
|
+
|
|
2139
|
+
@property
|
|
2140
|
+
def only_contains_user_certs(self) -> bool:
|
|
2141
|
+
return self._only_contains_user_certs
|
|
2142
|
+
|
|
2143
|
+
@property
|
|
2144
|
+
def only_contains_ca_certs(self) -> bool:
|
|
2145
|
+
return self._only_contains_ca_certs
|
|
2146
|
+
|
|
2147
|
+
@property
|
|
2148
|
+
def only_some_reasons(
|
|
2149
|
+
self,
|
|
2150
|
+
) -> frozenset[ReasonFlags] | None:
|
|
2151
|
+
return self._only_some_reasons
|
|
2152
|
+
|
|
2153
|
+
@property
|
|
2154
|
+
def indirect_crl(self) -> bool:
|
|
2155
|
+
return self._indirect_crl
|
|
2156
|
+
|
|
2157
|
+
@property
|
|
2158
|
+
def only_contains_attribute_certs(self) -> bool:
|
|
2159
|
+
return self._only_contains_attribute_certs
|
|
2160
|
+
|
|
2161
|
+
def public_bytes(self) -> bytes:
|
|
2162
|
+
return rust_x509.encode_extension_value(self)
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
class MSCertificateTemplate(ExtensionType):
|
|
2166
|
+
oid = ExtensionOID.MS_CERTIFICATE_TEMPLATE
|
|
2167
|
+
|
|
2168
|
+
def __init__(
|
|
2169
|
+
self,
|
|
2170
|
+
template_id: ObjectIdentifier,
|
|
2171
|
+
major_version: int | None,
|
|
2172
|
+
minor_version: int | None,
|
|
2173
|
+
) -> None:
|
|
2174
|
+
if not isinstance(template_id, ObjectIdentifier):
|
|
2175
|
+
raise TypeError("oid must be an ObjectIdentifier")
|
|
2176
|
+
self._template_id = template_id
|
|
2177
|
+
if (
|
|
2178
|
+
major_version is not None and not isinstance(major_version, int)
|
|
2179
|
+
) or (
|
|
2180
|
+
minor_version is not None and not isinstance(minor_version, int)
|
|
2181
|
+
):
|
|
2182
|
+
raise TypeError(
|
|
2183
|
+
"major_version and minor_version must be integers or None"
|
|
2184
|
+
)
|
|
2185
|
+
self._major_version = major_version
|
|
2186
|
+
self._minor_version = minor_version
|
|
2187
|
+
|
|
2188
|
+
@property
|
|
2189
|
+
def template_id(self) -> ObjectIdentifier:
|
|
2190
|
+
return self._template_id
|
|
2191
|
+
|
|
2192
|
+
@property
|
|
2193
|
+
def major_version(self) -> int | None:
|
|
2194
|
+
return self._major_version
|
|
2195
|
+
|
|
2196
|
+
@property
|
|
2197
|
+
def minor_version(self) -> int | None:
|
|
2198
|
+
return self._minor_version
|
|
2199
|
+
|
|
2200
|
+
def __repr__(self) -> str:
|
|
2201
|
+
return (
|
|
2202
|
+
f"<MSCertificateTemplate(template_id={self.template_id}, "
|
|
2203
|
+
f"major_version={self.major_version}, "
|
|
2204
|
+
f"minor_version={self.minor_version})>"
|
|
2205
|
+
)
|
|
2206
|
+
|
|
2207
|
+
def __eq__(self, other: object) -> bool:
|
|
2208
|
+
if not isinstance(other, MSCertificateTemplate):
|
|
2209
|
+
return NotImplemented
|
|
2210
|
+
|
|
2211
|
+
return (
|
|
2212
|
+
self.template_id == other.template_id
|
|
2213
|
+
and self.major_version == other.major_version
|
|
2214
|
+
and self.minor_version == other.minor_version
|
|
2215
|
+
)
|
|
2216
|
+
|
|
2217
|
+
def __hash__(self) -> int:
|
|
2218
|
+
return hash((self.template_id, self.major_version, self.minor_version))
|
|
2219
|
+
|
|
2220
|
+
def public_bytes(self) -> bytes:
|
|
2221
|
+
return rust_x509.encode_extension_value(self)
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
class NamingAuthority:
|
|
2225
|
+
def __init__(
|
|
2226
|
+
self,
|
|
2227
|
+
id: ObjectIdentifier | None,
|
|
2228
|
+
url: str | None,
|
|
2229
|
+
text: str | None,
|
|
2230
|
+
) -> None:
|
|
2231
|
+
if id is not None and not isinstance(id, ObjectIdentifier):
|
|
2232
|
+
raise TypeError("id must be an ObjectIdentifier")
|
|
2233
|
+
|
|
2234
|
+
if url is not None and not isinstance(url, str):
|
|
2235
|
+
raise TypeError("url must be a str")
|
|
2236
|
+
|
|
2237
|
+
if text is not None and not isinstance(text, str):
|
|
2238
|
+
raise TypeError("text must be a str")
|
|
2239
|
+
|
|
2240
|
+
self._id = id
|
|
2241
|
+
self._url = url
|
|
2242
|
+
self._text = text
|
|
2243
|
+
|
|
2244
|
+
@property
|
|
2245
|
+
def id(self) -> ObjectIdentifier | None:
|
|
2246
|
+
return self._id
|
|
2247
|
+
|
|
2248
|
+
@property
|
|
2249
|
+
def url(self) -> str | None:
|
|
2250
|
+
return self._url
|
|
2251
|
+
|
|
2252
|
+
@property
|
|
2253
|
+
def text(self) -> str | None:
|
|
2254
|
+
return self._text
|
|
2255
|
+
|
|
2256
|
+
def __repr__(self) -> str:
|
|
2257
|
+
return (
|
|
2258
|
+
f"<NamingAuthority("
|
|
2259
|
+
f"id={self.id}, url={self.url}, text={self.text})>"
|
|
2260
|
+
)
|
|
2261
|
+
|
|
2262
|
+
def __eq__(self, other: object) -> bool:
|
|
2263
|
+
if not isinstance(other, NamingAuthority):
|
|
2264
|
+
return NotImplemented
|
|
2265
|
+
|
|
2266
|
+
return (
|
|
2267
|
+
self.id == other.id
|
|
2268
|
+
and self.url == other.url
|
|
2269
|
+
and self.text == other.text
|
|
2270
|
+
)
|
|
2271
|
+
|
|
2272
|
+
def __hash__(self) -> int:
|
|
2273
|
+
return hash(
|
|
2274
|
+
(
|
|
2275
|
+
self.id,
|
|
2276
|
+
self.url,
|
|
2277
|
+
self.text,
|
|
2278
|
+
)
|
|
2279
|
+
)
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
class ProfessionInfo:
|
|
2283
|
+
def __init__(
|
|
2284
|
+
self,
|
|
2285
|
+
naming_authority: NamingAuthority | None,
|
|
2286
|
+
profession_items: Iterable[str],
|
|
2287
|
+
profession_oids: Iterable[ObjectIdentifier] | None,
|
|
2288
|
+
registration_number: str | None,
|
|
2289
|
+
add_profession_info: bytes | None,
|
|
2290
|
+
) -> None:
|
|
2291
|
+
if naming_authority is not None and not isinstance(
|
|
2292
|
+
naming_authority, NamingAuthority
|
|
2293
|
+
):
|
|
2294
|
+
raise TypeError("naming_authority must be a NamingAuthority")
|
|
2295
|
+
|
|
2296
|
+
profession_items = list(profession_items)
|
|
2297
|
+
if not all(isinstance(item, str) for item in profession_items):
|
|
2298
|
+
raise TypeError(
|
|
2299
|
+
"Every item in the profession_items list must be a str"
|
|
2300
|
+
)
|
|
2301
|
+
|
|
2302
|
+
if profession_oids is not None:
|
|
2303
|
+
profession_oids = list(profession_oids)
|
|
2304
|
+
if not all(
|
|
2305
|
+
isinstance(oid, ObjectIdentifier) for oid in profession_oids
|
|
2306
|
+
):
|
|
2307
|
+
raise TypeError(
|
|
2308
|
+
"Every item in the profession_oids list must be an "
|
|
2309
|
+
"ObjectIdentifier"
|
|
2310
|
+
)
|
|
2311
|
+
|
|
2312
|
+
if registration_number is not None and not isinstance(
|
|
2313
|
+
registration_number, str
|
|
2314
|
+
):
|
|
2315
|
+
raise TypeError("registration_number must be a str")
|
|
2316
|
+
|
|
2317
|
+
if add_profession_info is not None and not isinstance(
|
|
2318
|
+
add_profession_info, bytes
|
|
2319
|
+
):
|
|
2320
|
+
raise TypeError("add_profession_info must be bytes")
|
|
2321
|
+
|
|
2322
|
+
self._naming_authority = naming_authority
|
|
2323
|
+
self._profession_items = profession_items
|
|
2324
|
+
self._profession_oids = profession_oids
|
|
2325
|
+
self._registration_number = registration_number
|
|
2326
|
+
self._add_profession_info = add_profession_info
|
|
2327
|
+
|
|
2328
|
+
@property
|
|
2329
|
+
def naming_authority(self) -> NamingAuthority | None:
|
|
2330
|
+
return self._naming_authority
|
|
2331
|
+
|
|
2332
|
+
@property
|
|
2333
|
+
def profession_items(self) -> list[str]:
|
|
2334
|
+
return self._profession_items
|
|
2335
|
+
|
|
2336
|
+
@property
|
|
2337
|
+
def profession_oids(self) -> list[ObjectIdentifier] | None:
|
|
2338
|
+
return self._profession_oids
|
|
2339
|
+
|
|
2340
|
+
@property
|
|
2341
|
+
def registration_number(self) -> str | None:
|
|
2342
|
+
return self._registration_number
|
|
2343
|
+
|
|
2344
|
+
@property
|
|
2345
|
+
def add_profession_info(self) -> bytes | None:
|
|
2346
|
+
return self._add_profession_info
|
|
2347
|
+
|
|
2348
|
+
def __repr__(self) -> str:
|
|
2349
|
+
return (
|
|
2350
|
+
f"<ProfessionInfo(naming_authority={self.naming_authority}, "
|
|
2351
|
+
f"profession_items={self.profession_items}, "
|
|
2352
|
+
f"profession_oids={self.profession_oids}, "
|
|
2353
|
+
f"registration_number={self.registration_number}, "
|
|
2354
|
+
f"add_profession_info={self.add_profession_info!r})>"
|
|
2355
|
+
)
|
|
2356
|
+
|
|
2357
|
+
def __eq__(self, other: object) -> bool:
|
|
2358
|
+
if not isinstance(other, ProfessionInfo):
|
|
2359
|
+
return NotImplemented
|
|
2360
|
+
|
|
2361
|
+
return (
|
|
2362
|
+
self.naming_authority == other.naming_authority
|
|
2363
|
+
and self.profession_items == other.profession_items
|
|
2364
|
+
and self.profession_oids == other.profession_oids
|
|
2365
|
+
and self.registration_number == other.registration_number
|
|
2366
|
+
and self.add_profession_info == other.add_profession_info
|
|
2367
|
+
)
|
|
2368
|
+
|
|
2369
|
+
def __hash__(self) -> int:
|
|
2370
|
+
if self.profession_oids is not None:
|
|
2371
|
+
profession_oids = tuple(self.profession_oids)
|
|
2372
|
+
else:
|
|
2373
|
+
profession_oids = None
|
|
2374
|
+
return hash(
|
|
2375
|
+
(
|
|
2376
|
+
self.naming_authority,
|
|
2377
|
+
tuple(self.profession_items),
|
|
2378
|
+
profession_oids,
|
|
2379
|
+
self.registration_number,
|
|
2380
|
+
self.add_profession_info,
|
|
2381
|
+
)
|
|
2382
|
+
)
|
|
2383
|
+
|
|
2384
|
+
|
|
2385
|
+
class Admission:
|
|
2386
|
+
def __init__(
|
|
2387
|
+
self,
|
|
2388
|
+
admission_authority: GeneralName | None,
|
|
2389
|
+
naming_authority: NamingAuthority | None,
|
|
2390
|
+
profession_infos: Iterable[ProfessionInfo],
|
|
2391
|
+
) -> None:
|
|
2392
|
+
if admission_authority is not None and not isinstance(
|
|
2393
|
+
admission_authority, GeneralName
|
|
2394
|
+
):
|
|
2395
|
+
raise TypeError("admission_authority must be a GeneralName")
|
|
2396
|
+
|
|
2397
|
+
if naming_authority is not None and not isinstance(
|
|
2398
|
+
naming_authority, NamingAuthority
|
|
2399
|
+
):
|
|
2400
|
+
raise TypeError("naming_authority must be a NamingAuthority")
|
|
2401
|
+
|
|
2402
|
+
profession_infos = list(profession_infos)
|
|
2403
|
+
if not all(
|
|
2404
|
+
isinstance(info, ProfessionInfo) for info in profession_infos
|
|
2405
|
+
):
|
|
2406
|
+
raise TypeError(
|
|
2407
|
+
"Every item in the profession_infos list must be a "
|
|
2408
|
+
"ProfessionInfo"
|
|
2409
|
+
)
|
|
2410
|
+
|
|
2411
|
+
self._admission_authority = admission_authority
|
|
2412
|
+
self._naming_authority = naming_authority
|
|
2413
|
+
self._profession_infos = profession_infos
|
|
2414
|
+
|
|
2415
|
+
@property
|
|
2416
|
+
def admission_authority(self) -> GeneralName | None:
|
|
2417
|
+
return self._admission_authority
|
|
2418
|
+
|
|
2419
|
+
@property
|
|
2420
|
+
def naming_authority(self) -> NamingAuthority | None:
|
|
2421
|
+
return self._naming_authority
|
|
2422
|
+
|
|
2423
|
+
@property
|
|
2424
|
+
def profession_infos(self) -> list[ProfessionInfo]:
|
|
2425
|
+
return self._profession_infos
|
|
2426
|
+
|
|
2427
|
+
def __repr__(self) -> str:
|
|
2428
|
+
return (
|
|
2429
|
+
f"<Admission(admission_authority={self.admission_authority}, "
|
|
2430
|
+
f"naming_authority={self.naming_authority}, "
|
|
2431
|
+
f"profession_infos={self.profession_infos})>"
|
|
2432
|
+
)
|
|
2433
|
+
|
|
2434
|
+
def __eq__(self, other: object) -> bool:
|
|
2435
|
+
if not isinstance(other, Admission):
|
|
2436
|
+
return NotImplemented
|
|
2437
|
+
|
|
2438
|
+
return (
|
|
2439
|
+
self.admission_authority == other.admission_authority
|
|
2440
|
+
and self.naming_authority == other.naming_authority
|
|
2441
|
+
and self.profession_infos == other.profession_infos
|
|
2442
|
+
)
|
|
2443
|
+
|
|
2444
|
+
def __hash__(self) -> int:
|
|
2445
|
+
return hash(
|
|
2446
|
+
(
|
|
2447
|
+
self.admission_authority,
|
|
2448
|
+
self.naming_authority,
|
|
2449
|
+
tuple(self.profession_infos),
|
|
2450
|
+
)
|
|
2451
|
+
)
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
class Admissions(ExtensionType):
|
|
2455
|
+
oid = ExtensionOID.ADMISSIONS
|
|
2456
|
+
|
|
2457
|
+
def __init__(
|
|
2458
|
+
self,
|
|
2459
|
+
authority: GeneralName | None,
|
|
2460
|
+
admissions: Iterable[Admission],
|
|
2461
|
+
) -> None:
|
|
2462
|
+
if authority is not None and not isinstance(authority, GeneralName):
|
|
2463
|
+
raise TypeError("authority must be a GeneralName")
|
|
2464
|
+
|
|
2465
|
+
admissions = list(admissions)
|
|
2466
|
+
if not all(
|
|
2467
|
+
isinstance(admission, Admission) for admission in admissions
|
|
2468
|
+
):
|
|
2469
|
+
raise TypeError(
|
|
2470
|
+
"Every item in the contents_of_admissions list must be an "
|
|
2471
|
+
"Admission"
|
|
2472
|
+
)
|
|
2473
|
+
|
|
2474
|
+
self._authority = authority
|
|
2475
|
+
self._admissions = admissions
|
|
2476
|
+
|
|
2477
|
+
__len__, __iter__, __getitem__ = _make_sequence_methods("_admissions")
|
|
2478
|
+
|
|
2479
|
+
@property
|
|
2480
|
+
def authority(self) -> GeneralName | None:
|
|
2481
|
+
return self._authority
|
|
2482
|
+
|
|
2483
|
+
def __repr__(self) -> str:
|
|
2484
|
+
return (
|
|
2485
|
+
f"<Admissions(authority={self._authority}, "
|
|
2486
|
+
f"admissions={self._admissions})>"
|
|
2487
|
+
)
|
|
2488
|
+
|
|
2489
|
+
def __eq__(self, other: object) -> bool:
|
|
2490
|
+
if not isinstance(other, Admissions):
|
|
2491
|
+
return NotImplemented
|
|
2492
|
+
|
|
2493
|
+
return (
|
|
2494
|
+
self.authority == other.authority
|
|
2495
|
+
and self._admissions == other._admissions
|
|
2496
|
+
)
|
|
2497
|
+
|
|
2498
|
+
def __hash__(self) -> int:
|
|
2499
|
+
return hash((self.authority, tuple(self._admissions)))
|
|
2500
|
+
|
|
2501
|
+
def public_bytes(self) -> bytes:
|
|
2502
|
+
return rust_x509.encode_extension_value(self)
|
|
2503
|
+
|
|
2504
|
+
|
|
2505
|
+
class UnrecognizedExtension(ExtensionType):
|
|
2506
|
+
def __init__(self, oid: ObjectIdentifier, value: bytes) -> None:
|
|
2507
|
+
if not isinstance(oid, ObjectIdentifier):
|
|
2508
|
+
raise TypeError("oid must be an ObjectIdentifier")
|
|
2509
|
+
self._oid = oid
|
|
2510
|
+
self._value = value
|
|
2511
|
+
|
|
2512
|
+
@property
|
|
2513
|
+
def oid(self) -> ObjectIdentifier: # type: ignore[override]
|
|
2514
|
+
return self._oid
|
|
2515
|
+
|
|
2516
|
+
@property
|
|
2517
|
+
def value(self) -> bytes:
|
|
2518
|
+
return self._value
|
|
2519
|
+
|
|
2520
|
+
def __repr__(self) -> str:
|
|
2521
|
+
return f"<UnrecognizedExtension(oid={self.oid}, value={self.value!r})>"
|
|
2522
|
+
|
|
2523
|
+
def __eq__(self, other: object) -> bool:
|
|
2524
|
+
if not isinstance(other, UnrecognizedExtension):
|
|
2525
|
+
return NotImplemented
|
|
2526
|
+
|
|
2527
|
+
return self.oid == other.oid and self.value == other.value
|
|
2528
|
+
|
|
2529
|
+
def __hash__(self) -> int:
|
|
2530
|
+
return hash((self.oid, self.value))
|
|
2531
|
+
|
|
2532
|
+
def public_bytes(self) -> bytes:
|
|
2533
|
+
return self.value
|