py2docfx 0.1.16.dev2052678__py3-none-any.whl → 0.1.16.dev2064350__py3-none-any.whl
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.
- py2docfx/convert_prepare/environment.py +3 -1
- py2docfx/convert_prepare/get_source.py +6 -1
- py2docfx/convert_prepare/package_info.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/babel/py.typed +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/markupsafe/_speedups.pyi +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/markupsafe/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/packaging/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/certifi/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/chardet/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/distro/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/idna/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/packaging/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/pyparsing/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/rich/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/tenacity/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/tomli/py.typed +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/truststore/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/py.typed +4 -0
- py2docfx/venv/basevenv/Lib/site-packages/pkg_resources/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_metadata/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/inflect/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/jaraco/collections/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/jaraco/functools/__init__.pyi +125 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/jaraco/functools/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/more_itertools/__init__.pyi +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/more_itertools/more.pyi +709 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/more_itertools/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/more_itertools/recipes.pyi +136 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/platformdirs/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/tomli/py.typed +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/typeguard/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinx/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinxcontrib/applehelp/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinxcontrib/htmlhelp/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinxcontrib/qthelp/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinxcontrib/serializinghtml/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/_version.py +9 -4
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/contrib/emscripten/response.py +8 -16
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/contrib/pyopenssl.py +10 -0
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/exceptions.py +12 -4
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/http2/connection.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/py.typed +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/util/ssl_.py +21 -1
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/util/ssl_match_hostname.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/wheel/__init__.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/wheel/__main__.py +7 -5
- py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/__init__.py +3 -5
- py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/convert.py +14 -9
- py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/pack.py +1 -2
- py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/tags.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/wheel/_metadata.py +184 -0
- py2docfx/venv/basevenv/Lib/site-packages/wheel/bdist_wheel.py +12 -23
- py2docfx/venv/basevenv/Lib/site-packages/wheel/macosx_libfile.py +4 -0
- py2docfx/venv/basevenv/Lib/site-packages/wheel/metadata.py +17 -183
- py2docfx/venv/basevenv/Lib/site-packages/wheel/wheelfile.py +30 -16
- py2docfx/venv/venv1/Lib/site-packages/azure/core/_version.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/credentials.py +5 -4
- py2docfx/venv/venv1/Lib/site-packages/azure/core/instrumentation.py +67 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/_base.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/_tools.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_authentication.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_authentication_async.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_distributed_tracing.py +152 -29
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_redirect.py +3 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_redirect_async.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_retry.py +3 -10
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_retry_async.py +3 -8
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_universal.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_aiohttp.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/polling/base_polling.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/rest/_http_response_impl_async.py +3 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/rest/_rest_py3.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/settings.py +27 -21
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/__init__.py +3 -7
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/_abstract_span.py +2 -35
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/_models.py +71 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/common.py +12 -4
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/decorator.py +66 -13
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/decorator_async.py +62 -23
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/ext/opencensus_span/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/opentelemetry.py +244 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_connection_string_parser.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_messaging_shared.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_pipeline_transport_rest_shared.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/certifi/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/__init__.pyi +28 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/_openssl.pyi +8 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/asn1.pyi +7 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/exceptions.pyi +17 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/ocsp.pyi +117 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi +72 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/aead.pyi +103 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi +38 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/cmac.pyi +18 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/dh.pyi +51 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/dsa.pyi +41 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ec.pyi +52 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi +12 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed448.pyi +12 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hashes.pyi +19 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hmac.pyi +21 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/kdf.pyi +43 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/keys.pyi +33 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi +13 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/rsa.pyi +55 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi +12 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x448.pyi +12 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs12.pyi +46 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs7.pyi +49 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/test_support.pyi +22 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/x509.pyi +246 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/annotations_pb2.pyi +24 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/auth_pb2.pyi +120 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/backend_pb2.pyi +102 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/billing_pb2.pyi +50 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/client_pb2.pyi +405 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/config_change_pb2.pyi +65 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/consumer_pb2.pyi +62 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/context_pb2.pyi +60 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/control_pb2.pyi +43 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/distribution_pb2.pyi +144 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/documentation_pb2.pyi +86 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/endpoint_pb2.pyi +41 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/error_reason_pb2.pyi +90 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/field_behavior_pb2.pyi +45 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/field_info_pb2.pyi +60 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/http_pb2.pyi +94 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/httpbody_pb2.pyi +41 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/label_pb2.pyi +47 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/launch_stage_pb2.pyi +40 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/log_pb2.pyi +47 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/logging_pb2.pyi +57 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/metric_pb2.pyi +186 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/monitored_resource_pb2.pyi +104 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/monitoring_pb2.pyi +57 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/policy_pb2.pyi +57 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/quota_pb2.pyi +116 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/resource_pb2.pyi +93 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/routing_pb2.pyi +49 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/service_pb2.pyi +170 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/source_info_pb2.pyi +34 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/system_parameter_pb2.pyi +60 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/usage_pb2.pyi +55 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/visibility_pb2.pyi +56 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api_core/py.typed +2 -0
- py2docfx/venv/venv1/Lib/site-packages/google/auth/py.typed +2 -0
- py2docfx/venv/venv1/Lib/site-packages/google/cloud/extended_operations_pb2.pyi +45 -0
- py2docfx/venv/venv1/Lib/site-packages/google/cloud/location/locations_pb2.pyi +96 -0
- py2docfx/venv/venv1/Lib/site-packages/google/gapic/metadata/gapic_metadata_pb2.pyi +118 -0
- py2docfx/venv/venv1/Lib/site-packages/google/logging/type/http_request_pb2.pyi +91 -0
- py2docfx/venv/venv1/Lib/site-packages/google/logging/type/log_severity_pb2.pyi +42 -0
- py2docfx/venv/venv1/Lib/site-packages/google/longrunning/operations_proto_pb2.pyi +126 -0
- py2docfx/venv/venv1/Lib/site-packages/google/oauth2/py.typed +2 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/code_pb2.pyi +58 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/context/attribute_context_pb2.pyi +309 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/context/audit_context_pb2.pyi +51 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/error_details_pb2.pyi +207 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/http_pb2.pyi +71 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/status_pb2.pyi +41 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/calendar_period_pb2.pyi +40 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/color_pb2.pyi +42 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/date_pb2.pyi +36 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/datetime_pb2.pyi +77 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/dayofweek_pb2.pyi +40 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/decimal_pb2.pyi +27 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/expr_pb2.pyi +39 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/fraction_pb2.pyi +31 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/interval_pb2.pyi +36 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/latlng_pb2.pyi +31 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/localized_text_pb2.pyi +31 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/money_pb2.pyi +36 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/month_pb2.pyi +50 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/phone_number_pb2.pyi +48 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/postal_address_pb2.pyi +74 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/quaternion_pb2.pyi +39 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/timeofday_pb2.pyi +39 -0
- py2docfx/venv/venv1/Lib/site-packages/idna/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/jwt/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/packaging/__init__.py +15 -0
- py2docfx/venv/venv1/Lib/site-packages/{wheel/vendored/packaging → packaging}/_elffile.py +9 -7
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/_manylinux.py +12 -9
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/_musllinux.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/{wheel/vendored/packaging → packaging}/_parser.py +11 -13
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/_tokenizer.py +10 -8
- py2docfx/venv/venv1/Lib/site-packages/packaging/licenses/__init__.py +145 -0
- py2docfx/venv/venv1/Lib/site-packages/packaging/licenses/_spdx.py +759 -0
- py2docfx/venv/venv1/Lib/site-packages/{wheel/vendored/packaging → packaging}/markers.py +103 -25
- py2docfx/venv/venv1/Lib/site-packages/packaging/metadata.py +863 -0
- py2docfx/venv/venv1/Lib/site-packages/packaging/py.typed +0 -0
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/requirements.py +5 -4
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/specifiers.py +40 -31
- py2docfx/venv/venv1/Lib/site-packages/{wheel/vendored/packaging → packaging}/tags.py +96 -50
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/utils.py +39 -48
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/version.py +53 -32
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/certifi/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/chardet/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/distro/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/idna/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/packaging/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/pyparsing/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/rich/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/tenacity/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/tomli/py.typed +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/truststore/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/py.typed +4 -0
- py2docfx/venv/venv1/Lib/site-packages/pkg_resources/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/rsa/py.typed +1 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_metadata/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/inflect/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/jaraco/collections/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/jaraco/functools/__init__.pyi +125 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/jaraco/functools/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/more_itertools/__init__.pyi +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/more_itertools/more.pyi +709 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/more_itertools/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/more_itertools/recipes.pyi +136 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/platformdirs/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/tomli/py.typed +1 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/typeguard/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/typing_extensions.py +30 -12
- py2docfx/venv/venv1/Lib/site-packages/urllib3/_version.py +9 -4
- py2docfx/venv/venv1/Lib/site-packages/urllib3/contrib/emscripten/response.py +8 -16
- py2docfx/venv/venv1/Lib/site-packages/urllib3/contrib/pyopenssl.py +10 -0
- py2docfx/venv/venv1/Lib/site-packages/urllib3/exceptions.py +12 -4
- py2docfx/venv/venv1/Lib/site-packages/urllib3/http2/connection.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/urllib3/py.typed +2 -0
- py2docfx/venv/venv1/Lib/site-packages/urllib3/util/ssl_.py +21 -1
- py2docfx/venv/venv1/Lib/site-packages/urllib3/util/ssl_match_hostname.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/wheel/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/wheel/__main__.py +7 -5
- py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/__init__.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/convert.py +14 -9
- py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/pack.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/tags.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/wheel/_metadata.py +184 -0
- py2docfx/venv/venv1/Lib/site-packages/wheel/bdist_wheel.py +12 -23
- py2docfx/venv/venv1/Lib/site-packages/wheel/macosx_libfile.py +4 -0
- py2docfx/venv/venv1/Lib/site-packages/wheel/metadata.py +17 -183
- py2docfx/venv/venv1/Lib/site-packages/wheel/wheelfile.py +30 -16
- {py2docfx-0.1.16.dev2052678.dist-info → py2docfx-0.1.16.dev2064350.dist-info}/METADATA +2 -3
- {py2docfx-0.1.16.dev2052678.dist-info → py2docfx-0.1.16.dev2064350.dist-info}/RECORD +263 -104
- {py2docfx-0.1.16.dev2052678.dist-info → py2docfx-0.1.16.dev2064350.dist-info}/WHEEL +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/wheel/_bdist_wheel.py +0 -613
- py2docfx/venv/basevenv/Lib/site-packages/wheel/_setuptools_logging.py +0 -26
- py2docfx/venv/basevenv/Lib/site-packages/wheel/util.py +0 -17
- py2docfx/venv/basevenv/Lib/site-packages/wheel/vendored/packaging/_elffile.py +0 -108
- py2docfx/venv/basevenv/Lib/site-packages/wheel/vendored/packaging/_parser.py +0 -356
- py2docfx/venv/basevenv/Lib/site-packages/wheel/vendored/packaging/markers.py +0 -253
- py2docfx/venv/basevenv/Lib/site-packages/wheel/vendored/packaging/tags.py +0 -571
- py2docfx/venv/venv1/Lib/site-packages/wheel/_bdist_wheel.py +0 -613
- py2docfx/venv/venv1/Lib/site-packages/wheel/_setuptools_logging.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/wheel/util.py +0 -17
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/_manylinux.py +0 -260
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/_musllinux.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/_structures.py +0 -61
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/_tokenizer.py +0 -192
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/requirements.py +0 -90
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/specifiers.py +0 -1011
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/utils.py +0 -172
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/version.py +0 -561
- /py2docfx/venv/basevenv/Lib/site-packages/{wheel/vendored/__init__.py → certifi/py.typed} +0 -0
- /py2docfx/venv/basevenv/Lib/site-packages/{wheel/vendored/packaging/__init__.py → charset_normalizer/py.typed} +0 -0
- /py2docfx/venv/{venv1/Lib/site-packages/wheel/vendored/__init__.py → basevenv/Lib/site-packages/idna/py.typed} +0 -0
- /py2docfx/venv/{venv1/Lib/site-packages/wheel/vendored/packaging/__init__.py → basevenv/Lib/site-packages/jinja2/py.typed} +0 -0
- /py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/unpack.py +0 -0
- /py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/_structures.py +0 -0
- /py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/unpack.py +0 -0
- {py2docfx-0.1.16.dev2052678.dist-info → py2docfx-0.1.16.dev2064350.dist-info}/top_level.txt +0 -0
@@ -4,7 +4,6 @@
|
|
4
4
|
# Licensed under the MIT License. See License.txt in the project root for
|
5
5
|
# license information.
|
6
6
|
# --------------------------------------------------------------------------
|
7
|
-
from __future__ import absolute_import
|
8
7
|
from collections.abc import Mapping
|
9
8
|
|
10
9
|
from io import BytesIO
|
@@ -130,6 +129,7 @@ def _prepare_multipart_body_helper(http_request: "HTTPRequestType", content_inde
|
|
130
129
|
correct context (sync/async)
|
131
130
|
|
132
131
|
Does nothing if "set_multipart_mixed" was never called.
|
132
|
+
|
133
133
|
:param http_request: The http request whose multipart body we are trying
|
134
134
|
to prepare
|
135
135
|
:type http_request: any
|
@@ -170,7 +170,7 @@ def get_running_async_lock() -> AsyncContextManager:
|
|
170
170
|
|
171
171
|
:return: An instance of the running async library's Lock class.
|
172
172
|
:rtype: AsyncContextManager
|
173
|
-
:raises
|
173
|
+
:raises RuntimeError: if the current context is not running under an async library.
|
174
174
|
"""
|
175
175
|
|
176
176
|
try:
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,28 @@
|
|
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
|
+
import typing
|
6
|
+
|
7
|
+
from cryptography.hazmat.primitives import padding
|
8
|
+
|
9
|
+
def check_ansix923_padding(data: bytes) -> bool: ...
|
10
|
+
|
11
|
+
class PKCS7PaddingContext(padding.PaddingContext):
|
12
|
+
def __init__(self, block_size: int) -> None: ...
|
13
|
+
def update(self, data: bytes) -> bytes: ...
|
14
|
+
def finalize(self) -> bytes: ...
|
15
|
+
|
16
|
+
class PKCS7UnpaddingContext(padding.PaddingContext):
|
17
|
+
def __init__(self, block_size: int) -> None: ...
|
18
|
+
def update(self, data: bytes) -> bytes: ...
|
19
|
+
def finalize(self) -> bytes: ...
|
20
|
+
|
21
|
+
class ObjectIdentifier:
|
22
|
+
def __init__(self, val: str) -> None: ...
|
23
|
+
@property
|
24
|
+
def dotted_string(self) -> str: ...
|
25
|
+
@property
|
26
|
+
def _name(self) -> str: ...
|
27
|
+
|
28
|
+
T = typing.TypeVar("T")
|
@@ -0,0 +1,7 @@
|
|
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
|
+
def decode_dss_signature(signature: bytes) -> tuple[int, int]: ...
|
6
|
+
def encode_dss_signature(r: int, s: int) -> bytes: ...
|
7
|
+
def parse_spki_for_data(data: bytes) -> bytes: ...
|
@@ -0,0 +1,17 @@
|
|
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
|
+
class _Reasons:
|
6
|
+
BACKEND_MISSING_INTERFACE: _Reasons
|
7
|
+
UNSUPPORTED_HASH: _Reasons
|
8
|
+
UNSUPPORTED_CIPHER: _Reasons
|
9
|
+
UNSUPPORTED_PADDING: _Reasons
|
10
|
+
UNSUPPORTED_MGF: _Reasons
|
11
|
+
UNSUPPORTED_PUBLIC_KEY_ALGORITHM: _Reasons
|
12
|
+
UNSUPPORTED_ELLIPTIC_CURVE: _Reasons
|
13
|
+
UNSUPPORTED_SERIALIZATION: _Reasons
|
14
|
+
UNSUPPORTED_X509: _Reasons
|
15
|
+
UNSUPPORTED_EXCHANGE_ALGORITHM: _Reasons
|
16
|
+
UNSUPPORTED_DIFFIE_HELLMAN: _Reasons
|
17
|
+
UNSUPPORTED_MAC: _Reasons
|
@@ -0,0 +1,117 @@
|
|
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
|
+
import datetime
|
6
|
+
import typing
|
7
|
+
|
8
|
+
from cryptography import x509
|
9
|
+
from cryptography.hazmat.primitives import hashes, serialization
|
10
|
+
from cryptography.hazmat.primitives.asymmetric.types import PrivateKeyTypes
|
11
|
+
from cryptography.x509 import ocsp
|
12
|
+
|
13
|
+
class OCSPRequest:
|
14
|
+
@property
|
15
|
+
def issuer_key_hash(self) -> bytes: ...
|
16
|
+
@property
|
17
|
+
def issuer_name_hash(self) -> bytes: ...
|
18
|
+
@property
|
19
|
+
def hash_algorithm(self) -> hashes.HashAlgorithm: ...
|
20
|
+
@property
|
21
|
+
def serial_number(self) -> int: ...
|
22
|
+
def public_bytes(self, encoding: serialization.Encoding) -> bytes: ...
|
23
|
+
@property
|
24
|
+
def extensions(self) -> x509.Extensions: ...
|
25
|
+
|
26
|
+
class OCSPResponse:
|
27
|
+
@property
|
28
|
+
def responses(self) -> typing.Iterator[OCSPSingleResponse]: ...
|
29
|
+
@property
|
30
|
+
def response_status(self) -> ocsp.OCSPResponseStatus: ...
|
31
|
+
@property
|
32
|
+
def signature_algorithm_oid(self) -> x509.ObjectIdentifier: ...
|
33
|
+
@property
|
34
|
+
def signature_hash_algorithm(
|
35
|
+
self,
|
36
|
+
) -> hashes.HashAlgorithm | None: ...
|
37
|
+
@property
|
38
|
+
def signature(self) -> bytes: ...
|
39
|
+
@property
|
40
|
+
def tbs_response_bytes(self) -> bytes: ...
|
41
|
+
@property
|
42
|
+
def certificates(self) -> list[x509.Certificate]: ...
|
43
|
+
@property
|
44
|
+
def responder_key_hash(self) -> bytes | None: ...
|
45
|
+
@property
|
46
|
+
def responder_name(self) -> x509.Name | None: ...
|
47
|
+
@property
|
48
|
+
def produced_at(self) -> datetime.datetime: ...
|
49
|
+
@property
|
50
|
+
def produced_at_utc(self) -> datetime.datetime: ...
|
51
|
+
@property
|
52
|
+
def certificate_status(self) -> ocsp.OCSPCertStatus: ...
|
53
|
+
@property
|
54
|
+
def revocation_time(self) -> datetime.datetime | None: ...
|
55
|
+
@property
|
56
|
+
def revocation_time_utc(self) -> datetime.datetime | None: ...
|
57
|
+
@property
|
58
|
+
def revocation_reason(self) -> x509.ReasonFlags | None: ...
|
59
|
+
@property
|
60
|
+
def this_update(self) -> datetime.datetime: ...
|
61
|
+
@property
|
62
|
+
def this_update_utc(self) -> datetime.datetime: ...
|
63
|
+
@property
|
64
|
+
def next_update(self) -> datetime.datetime | None: ...
|
65
|
+
@property
|
66
|
+
def next_update_utc(self) -> datetime.datetime | None: ...
|
67
|
+
@property
|
68
|
+
def issuer_key_hash(self) -> bytes: ...
|
69
|
+
@property
|
70
|
+
def issuer_name_hash(self) -> bytes: ...
|
71
|
+
@property
|
72
|
+
def hash_algorithm(self) -> hashes.HashAlgorithm: ...
|
73
|
+
@property
|
74
|
+
def serial_number(self) -> int: ...
|
75
|
+
@property
|
76
|
+
def extensions(self) -> x509.Extensions: ...
|
77
|
+
@property
|
78
|
+
def single_extensions(self) -> x509.Extensions: ...
|
79
|
+
def public_bytes(self, encoding: serialization.Encoding) -> bytes: ...
|
80
|
+
|
81
|
+
class OCSPSingleResponse:
|
82
|
+
@property
|
83
|
+
def certificate_status(self) -> ocsp.OCSPCertStatus: ...
|
84
|
+
@property
|
85
|
+
def revocation_time(self) -> datetime.datetime | None: ...
|
86
|
+
@property
|
87
|
+
def revocation_time_utc(self) -> datetime.datetime | None: ...
|
88
|
+
@property
|
89
|
+
def revocation_reason(self) -> x509.ReasonFlags | None: ...
|
90
|
+
@property
|
91
|
+
def this_update(self) -> datetime.datetime: ...
|
92
|
+
@property
|
93
|
+
def this_update_utc(self) -> datetime.datetime: ...
|
94
|
+
@property
|
95
|
+
def next_update(self) -> datetime.datetime | None: ...
|
96
|
+
@property
|
97
|
+
def next_update_utc(self) -> datetime.datetime | None: ...
|
98
|
+
@property
|
99
|
+
def issuer_key_hash(self) -> bytes: ...
|
100
|
+
@property
|
101
|
+
def issuer_name_hash(self) -> bytes: ...
|
102
|
+
@property
|
103
|
+
def hash_algorithm(self) -> hashes.HashAlgorithm: ...
|
104
|
+
@property
|
105
|
+
def serial_number(self) -> int: ...
|
106
|
+
|
107
|
+
def load_der_ocsp_request(data: bytes) -> ocsp.OCSPRequest: ...
|
108
|
+
def load_der_ocsp_response(data: bytes) -> ocsp.OCSPResponse: ...
|
109
|
+
def create_ocsp_request(
|
110
|
+
builder: ocsp.OCSPRequestBuilder,
|
111
|
+
) -> ocsp.OCSPRequest: ...
|
112
|
+
def create_ocsp_response(
|
113
|
+
status: ocsp.OCSPResponseStatus,
|
114
|
+
builder: ocsp.OCSPResponseBuilder | None,
|
115
|
+
private_key: PrivateKeyTypes | None,
|
116
|
+
hash_algorithm: hashes.HashAlgorithm | None,
|
117
|
+
) -> ocsp.OCSPResponse: ...
|
@@ -0,0 +1,72 @@
|
|
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
|
+
import typing
|
6
|
+
|
7
|
+
from cryptography.hazmat.bindings._rust.openssl import (
|
8
|
+
aead,
|
9
|
+
ciphers,
|
10
|
+
cmac,
|
11
|
+
dh,
|
12
|
+
dsa,
|
13
|
+
ec,
|
14
|
+
ed448,
|
15
|
+
ed25519,
|
16
|
+
hashes,
|
17
|
+
hmac,
|
18
|
+
kdf,
|
19
|
+
keys,
|
20
|
+
poly1305,
|
21
|
+
rsa,
|
22
|
+
x448,
|
23
|
+
x25519,
|
24
|
+
)
|
25
|
+
|
26
|
+
__all__ = [
|
27
|
+
"aead",
|
28
|
+
"ciphers",
|
29
|
+
"cmac",
|
30
|
+
"dh",
|
31
|
+
"dsa",
|
32
|
+
"ec",
|
33
|
+
"ed448",
|
34
|
+
"ed25519",
|
35
|
+
"hashes",
|
36
|
+
"hmac",
|
37
|
+
"kdf",
|
38
|
+
"keys",
|
39
|
+
"openssl_version",
|
40
|
+
"openssl_version_text",
|
41
|
+
"poly1305",
|
42
|
+
"raise_openssl_error",
|
43
|
+
"rsa",
|
44
|
+
"x448",
|
45
|
+
"x25519",
|
46
|
+
]
|
47
|
+
|
48
|
+
CRYPTOGRAPHY_IS_LIBRESSL: bool
|
49
|
+
CRYPTOGRAPHY_IS_BORINGSSL: bool
|
50
|
+
CRYPTOGRAPHY_OPENSSL_300_OR_GREATER: bool
|
51
|
+
CRYPTOGRAPHY_OPENSSL_309_OR_GREATER: bool
|
52
|
+
CRYPTOGRAPHY_OPENSSL_320_OR_GREATER: bool
|
53
|
+
|
54
|
+
class Providers: ...
|
55
|
+
|
56
|
+
_legacy_provider_loaded: bool
|
57
|
+
_providers: Providers
|
58
|
+
|
59
|
+
def openssl_version() -> int: ...
|
60
|
+
def openssl_version_text() -> str: ...
|
61
|
+
def raise_openssl_error() -> typing.NoReturn: ...
|
62
|
+
def capture_error_stack() -> list[OpenSSLError]: ...
|
63
|
+
def is_fips_enabled() -> bool: ...
|
64
|
+
def enable_fips(providers: Providers) -> None: ...
|
65
|
+
|
66
|
+
class OpenSSLError:
|
67
|
+
@property
|
68
|
+
def lib(self) -> int: ...
|
69
|
+
@property
|
70
|
+
def reason(self) -> int: ...
|
71
|
+
@property
|
72
|
+
def reason_text(self) -> bytes: ...
|
@@ -0,0 +1,103 @@
|
|
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
|
+
class AESGCM:
|
6
|
+
def __init__(self, key: bytes) -> None: ...
|
7
|
+
@staticmethod
|
8
|
+
def generate_key(key_size: int) -> bytes: ...
|
9
|
+
def encrypt(
|
10
|
+
self,
|
11
|
+
nonce: bytes,
|
12
|
+
data: bytes,
|
13
|
+
associated_data: bytes | None,
|
14
|
+
) -> bytes: ...
|
15
|
+
def decrypt(
|
16
|
+
self,
|
17
|
+
nonce: bytes,
|
18
|
+
data: bytes,
|
19
|
+
associated_data: bytes | None,
|
20
|
+
) -> bytes: ...
|
21
|
+
|
22
|
+
class ChaCha20Poly1305:
|
23
|
+
def __init__(self, key: bytes) -> None: ...
|
24
|
+
@staticmethod
|
25
|
+
def generate_key() -> bytes: ...
|
26
|
+
def encrypt(
|
27
|
+
self,
|
28
|
+
nonce: bytes,
|
29
|
+
data: bytes,
|
30
|
+
associated_data: bytes | None,
|
31
|
+
) -> bytes: ...
|
32
|
+
def decrypt(
|
33
|
+
self,
|
34
|
+
nonce: bytes,
|
35
|
+
data: bytes,
|
36
|
+
associated_data: bytes | None,
|
37
|
+
) -> bytes: ...
|
38
|
+
|
39
|
+
class AESCCM:
|
40
|
+
def __init__(self, key: bytes, tag_length: int = 16) -> None: ...
|
41
|
+
@staticmethod
|
42
|
+
def generate_key(key_size: int) -> bytes: ...
|
43
|
+
def encrypt(
|
44
|
+
self,
|
45
|
+
nonce: bytes,
|
46
|
+
data: bytes,
|
47
|
+
associated_data: bytes | None,
|
48
|
+
) -> bytes: ...
|
49
|
+
def decrypt(
|
50
|
+
self,
|
51
|
+
nonce: bytes,
|
52
|
+
data: bytes,
|
53
|
+
associated_data: bytes | None,
|
54
|
+
) -> bytes: ...
|
55
|
+
|
56
|
+
class AESSIV:
|
57
|
+
def __init__(self, key: bytes) -> None: ...
|
58
|
+
@staticmethod
|
59
|
+
def generate_key(key_size: int) -> bytes: ...
|
60
|
+
def encrypt(
|
61
|
+
self,
|
62
|
+
data: bytes,
|
63
|
+
associated_data: list[bytes] | None,
|
64
|
+
) -> bytes: ...
|
65
|
+
def decrypt(
|
66
|
+
self,
|
67
|
+
data: bytes,
|
68
|
+
associated_data: list[bytes] | None,
|
69
|
+
) -> bytes: ...
|
70
|
+
|
71
|
+
class AESOCB3:
|
72
|
+
def __init__(self, key: bytes) -> None: ...
|
73
|
+
@staticmethod
|
74
|
+
def generate_key(key_size: int) -> bytes: ...
|
75
|
+
def encrypt(
|
76
|
+
self,
|
77
|
+
nonce: bytes,
|
78
|
+
data: bytes,
|
79
|
+
associated_data: bytes | None,
|
80
|
+
) -> bytes: ...
|
81
|
+
def decrypt(
|
82
|
+
self,
|
83
|
+
nonce: bytes,
|
84
|
+
data: bytes,
|
85
|
+
associated_data: bytes | None,
|
86
|
+
) -> bytes: ...
|
87
|
+
|
88
|
+
class AESGCMSIV:
|
89
|
+
def __init__(self, key: bytes) -> None: ...
|
90
|
+
@staticmethod
|
91
|
+
def generate_key(key_size: int) -> bytes: ...
|
92
|
+
def encrypt(
|
93
|
+
self,
|
94
|
+
nonce: bytes,
|
95
|
+
data: bytes,
|
96
|
+
associated_data: bytes | None,
|
97
|
+
) -> bytes: ...
|
98
|
+
def decrypt(
|
99
|
+
self,
|
100
|
+
nonce: bytes,
|
101
|
+
data: bytes,
|
102
|
+
associated_data: bytes | None,
|
103
|
+
) -> bytes: ...
|
@@ -0,0 +1,38 @@
|
|
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
|
+
import typing
|
6
|
+
|
7
|
+
from cryptography.hazmat.primitives import ciphers
|
8
|
+
from cryptography.hazmat.primitives.ciphers import modes
|
9
|
+
|
10
|
+
@typing.overload
|
11
|
+
def create_encryption_ctx(
|
12
|
+
algorithm: ciphers.CipherAlgorithm, mode: modes.ModeWithAuthenticationTag
|
13
|
+
) -> ciphers.AEADEncryptionContext: ...
|
14
|
+
@typing.overload
|
15
|
+
def create_encryption_ctx(
|
16
|
+
algorithm: ciphers.CipherAlgorithm, mode: modes.Mode
|
17
|
+
) -> ciphers.CipherContext: ...
|
18
|
+
@typing.overload
|
19
|
+
def create_decryption_ctx(
|
20
|
+
algorithm: ciphers.CipherAlgorithm, mode: modes.ModeWithAuthenticationTag
|
21
|
+
) -> ciphers.AEADDecryptionContext: ...
|
22
|
+
@typing.overload
|
23
|
+
def create_decryption_ctx(
|
24
|
+
algorithm: ciphers.CipherAlgorithm, mode: modes.Mode
|
25
|
+
) -> ciphers.CipherContext: ...
|
26
|
+
def cipher_supported(
|
27
|
+
algorithm: ciphers.CipherAlgorithm, mode: modes.Mode
|
28
|
+
) -> bool: ...
|
29
|
+
def _advance(
|
30
|
+
ctx: ciphers.AEADEncryptionContext | ciphers.AEADDecryptionContext, n: int
|
31
|
+
) -> None: ...
|
32
|
+
def _advance_aad(
|
33
|
+
ctx: ciphers.AEADEncryptionContext | ciphers.AEADDecryptionContext, n: int
|
34
|
+
) -> None: ...
|
35
|
+
|
36
|
+
class CipherContext: ...
|
37
|
+
class AEADEncryptionContext: ...
|
38
|
+
class AEADDecryptionContext: ...
|
@@ -0,0 +1,18 @@
|
|
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
|
+
import typing
|
6
|
+
|
7
|
+
from cryptography.hazmat.primitives import ciphers
|
8
|
+
|
9
|
+
class CMAC:
|
10
|
+
def __init__(
|
11
|
+
self,
|
12
|
+
algorithm: ciphers.BlockCipherAlgorithm,
|
13
|
+
backend: typing.Any = None,
|
14
|
+
) -> None: ...
|
15
|
+
def update(self, data: bytes) -> None: ...
|
16
|
+
def finalize(self) -> bytes: ...
|
17
|
+
def verify(self, signature: bytes) -> None: ...
|
18
|
+
def copy(self) -> CMAC: ...
|
@@ -0,0 +1,51 @@
|
|
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
|
+
import typing
|
6
|
+
|
7
|
+
from cryptography.hazmat.primitives.asymmetric import dh
|
8
|
+
|
9
|
+
MIN_MODULUS_SIZE: int
|
10
|
+
|
11
|
+
class DHPrivateKey: ...
|
12
|
+
class DHPublicKey: ...
|
13
|
+
class DHParameters: ...
|
14
|
+
|
15
|
+
class DHPrivateNumbers:
|
16
|
+
def __init__(self, x: int, public_numbers: DHPublicNumbers) -> None: ...
|
17
|
+
def private_key(self, backend: typing.Any = None) -> dh.DHPrivateKey: ...
|
18
|
+
@property
|
19
|
+
def x(self) -> int: ...
|
20
|
+
@property
|
21
|
+
def public_numbers(self) -> DHPublicNumbers: ...
|
22
|
+
|
23
|
+
class DHPublicNumbers:
|
24
|
+
def __init__(
|
25
|
+
self, y: int, parameter_numbers: DHParameterNumbers
|
26
|
+
) -> None: ...
|
27
|
+
def public_key(self, backend: typing.Any = None) -> dh.DHPublicKey: ...
|
28
|
+
@property
|
29
|
+
def y(self) -> int: ...
|
30
|
+
@property
|
31
|
+
def parameter_numbers(self) -> DHParameterNumbers: ...
|
32
|
+
|
33
|
+
class DHParameterNumbers:
|
34
|
+
def __init__(self, p: int, g: int, q: int | None = None) -> None: ...
|
35
|
+
def parameters(self, backend: typing.Any = None) -> dh.DHParameters: ...
|
36
|
+
@property
|
37
|
+
def p(self) -> int: ...
|
38
|
+
@property
|
39
|
+
def g(self) -> int: ...
|
40
|
+
@property
|
41
|
+
def q(self) -> int | None: ...
|
42
|
+
|
43
|
+
def generate_parameters(
|
44
|
+
generator: int, key_size: int, backend: typing.Any = None
|
45
|
+
) -> dh.DHParameters: ...
|
46
|
+
def from_pem_parameters(
|
47
|
+
data: bytes, backend: typing.Any = None
|
48
|
+
) -> dh.DHParameters: ...
|
49
|
+
def from_der_parameters(
|
50
|
+
data: bytes, backend: typing.Any = None
|
51
|
+
) -> dh.DHParameters: ...
|
@@ -0,0 +1,41 @@
|
|
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
|
+
import typing
|
6
|
+
|
7
|
+
from cryptography.hazmat.primitives.asymmetric import dsa
|
8
|
+
|
9
|
+
class DSAPrivateKey: ...
|
10
|
+
class DSAPublicKey: ...
|
11
|
+
class DSAParameters: ...
|
12
|
+
|
13
|
+
class DSAPrivateNumbers:
|
14
|
+
def __init__(self, x: int, public_numbers: DSAPublicNumbers) -> None: ...
|
15
|
+
@property
|
16
|
+
def x(self) -> int: ...
|
17
|
+
@property
|
18
|
+
def public_numbers(self) -> DSAPublicNumbers: ...
|
19
|
+
def private_key(self, backend: typing.Any = None) -> dsa.DSAPrivateKey: ...
|
20
|
+
|
21
|
+
class DSAPublicNumbers:
|
22
|
+
def __init__(
|
23
|
+
self, y: int, parameter_numbers: DSAParameterNumbers
|
24
|
+
) -> None: ...
|
25
|
+
@property
|
26
|
+
def y(self) -> int: ...
|
27
|
+
@property
|
28
|
+
def parameter_numbers(self) -> DSAParameterNumbers: ...
|
29
|
+
def public_key(self, backend: typing.Any = None) -> dsa.DSAPublicKey: ...
|
30
|
+
|
31
|
+
class DSAParameterNumbers:
|
32
|
+
def __init__(self, p: int, q: int, g: int) -> None: ...
|
33
|
+
@property
|
34
|
+
def p(self) -> int: ...
|
35
|
+
@property
|
36
|
+
def q(self) -> int: ...
|
37
|
+
@property
|
38
|
+
def g(self) -> int: ...
|
39
|
+
def parameters(self, backend: typing.Any = None) -> dsa.DSAParameters: ...
|
40
|
+
|
41
|
+
def generate_parameters(key_size: int) -> dsa.DSAParameters: ...
|
@@ -0,0 +1,52 @@
|
|
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
|
+
import typing
|
6
|
+
|
7
|
+
from cryptography.hazmat.primitives.asymmetric import ec
|
8
|
+
|
9
|
+
class ECPrivateKey: ...
|
10
|
+
class ECPublicKey: ...
|
11
|
+
|
12
|
+
class EllipticCurvePrivateNumbers:
|
13
|
+
def __init__(
|
14
|
+
self, private_value: int, public_numbers: EllipticCurvePublicNumbers
|
15
|
+
) -> None: ...
|
16
|
+
def private_key(
|
17
|
+
self, backend: typing.Any = None
|
18
|
+
) -> ec.EllipticCurvePrivateKey: ...
|
19
|
+
@property
|
20
|
+
def private_value(self) -> int: ...
|
21
|
+
@property
|
22
|
+
def public_numbers(self) -> EllipticCurvePublicNumbers: ...
|
23
|
+
|
24
|
+
class EllipticCurvePublicNumbers:
|
25
|
+
def __init__(self, x: int, y: int, curve: ec.EllipticCurve) -> None: ...
|
26
|
+
def public_key(
|
27
|
+
self, backend: typing.Any = None
|
28
|
+
) -> ec.EllipticCurvePublicKey: ...
|
29
|
+
@property
|
30
|
+
def x(self) -> int: ...
|
31
|
+
@property
|
32
|
+
def y(self) -> int: ...
|
33
|
+
@property
|
34
|
+
def curve(self) -> ec.EllipticCurve: ...
|
35
|
+
def __eq__(self, other: object) -> bool: ...
|
36
|
+
|
37
|
+
def curve_supported(curve: ec.EllipticCurve) -> bool: ...
|
38
|
+
def generate_private_key(
|
39
|
+
curve: ec.EllipticCurve, backend: typing.Any = None
|
40
|
+
) -> ec.EllipticCurvePrivateKey: ...
|
41
|
+
def from_private_numbers(
|
42
|
+
numbers: ec.EllipticCurvePrivateNumbers,
|
43
|
+
) -> ec.EllipticCurvePrivateKey: ...
|
44
|
+
def from_public_numbers(
|
45
|
+
numbers: ec.EllipticCurvePublicNumbers,
|
46
|
+
) -> ec.EllipticCurvePublicKey: ...
|
47
|
+
def from_public_bytes(
|
48
|
+
curve: ec.EllipticCurve, data: bytes
|
49
|
+
) -> ec.EllipticCurvePublicKey: ...
|
50
|
+
def derive_private_key(
|
51
|
+
private_value: int, curve: ec.EllipticCurve
|
52
|
+
) -> ec.EllipticCurvePrivateKey: ...
|
@@ -0,0 +1,12 @@
|
|
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 cryptography.hazmat.primitives.asymmetric import ed25519
|
6
|
+
|
7
|
+
class Ed25519PrivateKey: ...
|
8
|
+
class Ed25519PublicKey: ...
|
9
|
+
|
10
|
+
def generate_key() -> ed25519.Ed25519PrivateKey: ...
|
11
|
+
def from_private_bytes(data: bytes) -> ed25519.Ed25519PrivateKey: ...
|
12
|
+
def from_public_bytes(data: bytes) -> ed25519.Ed25519PublicKey: ...
|
@@ -0,0 +1,12 @@
|
|
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 cryptography.hazmat.primitives.asymmetric import ed448
|
6
|
+
|
7
|
+
class Ed448PrivateKey: ...
|
8
|
+
class Ed448PublicKey: ...
|
9
|
+
|
10
|
+
def generate_key() -> ed448.Ed448PrivateKey: ...
|
11
|
+
def from_private_bytes(data: bytes) -> ed448.Ed448PrivateKey: ...
|
12
|
+
def from_public_bytes(data: bytes) -> ed448.Ed448PublicKey: ...
|
@@ -0,0 +1,19 @@
|
|
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
|
+
import typing
|
6
|
+
|
7
|
+
from cryptography.hazmat.primitives import hashes
|
8
|
+
|
9
|
+
class Hash(hashes.HashContext):
|
10
|
+
def __init__(
|
11
|
+
self, algorithm: hashes.HashAlgorithm, backend: typing.Any = None
|
12
|
+
) -> None: ...
|
13
|
+
@property
|
14
|
+
def algorithm(self) -> hashes.HashAlgorithm: ...
|
15
|
+
def update(self, data: bytes) -> None: ...
|
16
|
+
def finalize(self) -> bytes: ...
|
17
|
+
def copy(self) -> Hash: ...
|
18
|
+
|
19
|
+
def hash_supported(algorithm: hashes.HashAlgorithm) -> bool: ...
|
@@ -0,0 +1,21 @@
|
|
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
|
+
import typing
|
6
|
+
|
7
|
+
from cryptography.hazmat.primitives import hashes
|
8
|
+
|
9
|
+
class HMAC(hashes.HashContext):
|
10
|
+
def __init__(
|
11
|
+
self,
|
12
|
+
key: bytes,
|
13
|
+
algorithm: hashes.HashAlgorithm,
|
14
|
+
backend: typing.Any = None,
|
15
|
+
) -> None: ...
|
16
|
+
@property
|
17
|
+
def algorithm(self) -> hashes.HashAlgorithm: ...
|
18
|
+
def update(self, data: bytes) -> None: ...
|
19
|
+
def finalize(self) -> bytes: ...
|
20
|
+
def verify(self, signature: bytes) -> None: ...
|
21
|
+
def copy(self) -> HMAC: ...
|