content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
class AlreadyFinalized(Exception): ...\nclass AlreadyUpdated(Exception): ...\nclass InvalidKey(Exception): ...\nclass InvalidSignature(Exception): ...\nclass InvalidTag(Exception): ...\nclass NotYetFinalized(Exception): ...\nclass UnsupportedAlgorithm(Exception): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\exceptions.pyi | exceptions.pyi | Other | 262 | 0.85 | 1 | 0 | python-kit | 297 | 2023-10-16T04:43:49.275978 | MIT | false | 866792dc8f3657a15852e9a0f211b785 |
from typing import List, Optional, Text, Union\n\nclass InvalidToken(Exception): ...\n\nclass Fernet(object):\n def __init__(self, key: Union[bytes, Text]) -> None: ...\n def decrypt(self, token: bytes, ttl: Optional[int] = ...) -> bytes: ...\n # decrypt_at_time accepts None ttl at runtime but it's an implementtion detail and it doesn't really\n # make sense for the client code to use it like that, so the parameter is typed as int as opposed to\n # Optional[int].\n def decrypt_at_time(self, token: bytes, ttl: int, current_time: int) -> bytes: ...\n def encrypt(self, data: bytes) -> bytes: ...\n def encrypt_at_time(self, data: bytes, current_time: int) -> bytes: ...\n def extract_timestamp(self, token: bytes) -> int: ...\n @classmethod\n def generate_key(cls) -> bytes: ...\n\nclass MultiFernet(object):\n def __init__(self, fernets: List[Fernet]) -> None: ...\n def decrypt(self, token: bytes, ttl: Optional[int] = ...) -> bytes: ...\n # See a note above on the typing of the ttl parameter.\n def decrypt_at_time(self, token: bytes, ttl: int, current_time: int) -> bytes: ...\n def encrypt(self, data: bytes) -> bytes: ...\n def encrypt_at_time(self, data: bytes, current_time: int) -> bytes: ...\n def rotate(self, msg: bytes) -> bytes: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\fernet.pyi | fernet.pyi | Other | 1,282 | 0.95 | 0.68 | 0.181818 | react-lib | 592 | 2025-07-05T10:27:54.426894 | GPL-3.0 | false | 97c33f15d98bc454067b5279bb2fefe2 |
from typing import Any\n\ndef __getattr__(name: str) -> Any: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\__init__.pyi | __init__.pyi | Other | 63 | 0.65 | 0.333333 | 0 | python-kit | 373 | 2023-07-11T02:57:31.610039 | BSD-3-Clause | false | 84a27291937d76e46b277653002601f2 |
from abc import ABCMeta, abstractmethod\nfrom typing import Any, Optional, Union\n\nfrom cryptography.hazmat.primitives.asymmetric.dh import (\n DHParameterNumbers,\n DHParameters,\n DHPrivateKey,\n DHPrivateNumbers,\n DHPublicKey,\n DHPublicNumbers,\n)\nfrom cryptography.hazmat.primitives.asymmetric.dsa import (\n DSAParameterNumbers,\n DSAParameters,\n DSAPrivateKey,\n DSAPrivateNumbers,\n DSAPublicKey,\n DSAPublicNumbers,\n)\nfrom cryptography.hazmat.primitives.asymmetric.ec import (\n EllipticCurve,\n EllipticCurvePrivateKey,\n EllipticCurvePrivateNumbers,\n EllipticCurvePublicKey,\n EllipticCurvePublicNumbers,\n EllipticCurveSignatureAlgorithm,\n)\nfrom cryptography.hazmat.primitives.asymmetric.padding import AsymmetricPadding\nfrom cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPrivateNumbers, RSAPublicKey, RSAPublicNumbers\nfrom cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm, CipherAlgorithm, CipherContext\nfrom cryptography.hazmat.primitives.ciphers.modes import Mode\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm, HashContext\nfrom cryptography.x509 import (\n Certificate,\n CertificateBuilder,\n CertificateRevocationList,\n CertificateRevocationListBuilder,\n CertificateSigningRequest,\n CertificateSigningRequestBuilder,\n Name,\n RevokedCertificate,\n RevokedCertificateBuilder,\n)\n\nclass CipherBackend(metaclass=ABCMeta):\n @abstractmethod\n def cipher_supported(self, cipher: CipherAlgorithm, mode: Mode) -> bool: ...\n @abstractmethod\n def create_symmetric_encryption_ctx(self, cipher: CipherAlgorithm, mode: Mode) -> CipherContext: ...\n @abstractmethod\n def create_symmetric_decryption_ctx(self, cipher: CipherAlgorithm, mode: Mode) -> CipherContext: ...\n\nclass CMACBackend(metaclass=ABCMeta):\n @abstractmethod\n def cmac_algorithm_supported(self, algorithm: BlockCipherAlgorithm) -> bool: ...\n @abstractmethod\n def create_cmac_ctx(self, algorithm: BlockCipherAlgorithm) -> Any: ...\n\nclass DERSerializationBackend(metaclass=ABCMeta):\n @abstractmethod\n def load_der_parameters(self, data: bytes) -> Any: ...\n @abstractmethod\n def load_der_private_key(self, data: bytes, password: Optional[bytes]) -> Any: ...\n @abstractmethod\n def load_der_public_key(self, data: bytes) -> Any: ...\n\nclass DHBackend(metaclass=ABCMeta):\n @abstractmethod\n def dh_parameters_supported(self, p: int, g: int, q: Optional[int]) -> bool: ...\n @abstractmethod\n def dh_x942_serialization_supported(self) -> bool: ...\n @abstractmethod\n def generate_dh_parameters(self, generator: int, key_size: int) -> DHParameters: ...\n @abstractmethod\n def generate_dh_private_key(self, parameters: DHParameters) -> DHPrivateKey: ...\n @abstractmethod\n def generate_dh_private_key_and_parameters(self, generator: int, key_size: int) -> DHPrivateKey: ...\n @abstractmethod\n def load_dh_parameter_numbers(self, numbers: DHParameterNumbers) -> DHParameters: ...\n @abstractmethod\n def load_dh_private_numbers(self, numbers: DHPrivateNumbers) -> DHPrivateKey: ...\n @abstractmethod\n def load_dh_public_numbers(self, numbers: DHPublicNumbers) -> DHPublicKey: ...\n\nclass DSABackend(metaclass=ABCMeta):\n @abstractmethod\n def dsa_hash_supported(self, algorithm: HashAlgorithm) -> bool: ...\n @abstractmethod\n def dsa_parameters_supported(self, p: int, q: int, g: int) -> bool: ...\n @abstractmethod\n def generate_dsa_parameters(self, key_size: int) -> DSAParameters: ...\n @abstractmethod\n def generate_dsa_private_key(self, parameters: DSAParameters) -> DSAPrivateKey: ...\n @abstractmethod\n def generate_dsa_private_key_and_parameters(self, key_size: int) -> DSAPrivateKey: ...\n @abstractmethod\n def load_dsa_parameter_numbers(self, numbers: DSAParameterNumbers) -> DSAParameters: ...\n @abstractmethod\n def load_dsa_private_numbers(self, numbers: DSAPrivateNumbers) -> DSAPrivateKey: ...\n @abstractmethod\n def load_dsa_public_numbers(self, numbers: DSAPublicNumbers) -> DSAPublicKey: ...\n\nclass EllipticCurveBackend(metaclass=ABCMeta):\n @abstractmethod\n def derive_elliptic_curve_private_key(self, private_value: int, curve: EllipticCurve) -> EllipticCurvePrivateKey: ...\n @abstractmethod\n def elliptic_curve_signature_algorithm_supported(\n self, signature_algorithm: EllipticCurveSignatureAlgorithm, curve: EllipticCurve\n ) -> bool: ...\n @abstractmethod\n def elliptic_curve_supported(self, curve: EllipticCurve) -> bool: ...\n @abstractmethod\n def generate_elliptic_curve_private_key(self, curve: EllipticCurve) -> EllipticCurvePrivateKey: ...\n @abstractmethod\n def load_elliptic_curve_private_numbers(self, numbers: EllipticCurvePrivateNumbers) -> EllipticCurvePrivateKey: ...\n @abstractmethod\n def load_elliptic_curve_public_numbers(self, numbers: EllipticCurvePublicNumbers) -> EllipticCurvePublicKey: ...\n\nclass HMACBackend(metaclass=ABCMeta):\n @abstractmethod\n def create_hmac_ctx(self, key: bytes, algorithm: HashAlgorithm) -> HashContext: ...\n @abstractmethod\n def cmac_algorithm_supported(self, algorithm: HashAlgorithm) -> bool: ...\n\nclass HashBackend(metaclass=ABCMeta):\n @abstractmethod\n def create_hash_ctx(self, algorithm: HashAlgorithm) -> HashContext: ...\n @abstractmethod\n def hash_supported(self, algorithm: HashAlgorithm) -> bool: ...\n\nclass PBKDF2HMACBackend(metaclass=ABCMeta):\n @abstractmethod\n def derive_pbkdf2_hmac(\n self, algorithm: HashAlgorithm, length: int, salt: bytes, iterations: int, key_material: bytes\n ) -> bytes: ...\n @abstractmethod\n def pbkdf2_hmac_supported(self, algorithm: HashAlgorithm) -> bool: ...\n\nclass PEMSerializationBackend(metaclass=ABCMeta):\n @abstractmethod\n def load_pem_parameters(self, data: bytes) -> Any: ...\n @abstractmethod\n def load_pem_private_key(self, data: bytes, password: Optional[bytes]) -> Any: ...\n @abstractmethod\n def load_pem_public_key(self, data: bytes) -> Any: ...\n\nclass RSABackend(metaclass=ABCMeta):\n @abstractmethod\n def generate_rsa_parameters_supported(self, public_exponent: int, key_size: int) -> bool: ...\n @abstractmethod\n def generate_rsa_private_key(self, public_exponent: int, key_size: int) -> RSAPrivateKey: ...\n @abstractmethod\n def load_rsa_public_numbers(self, numbers: RSAPublicNumbers) -> RSAPublicKey: ...\n @abstractmethod\n def load_rsa_private_numbers(self, numbers: RSAPrivateNumbers) -> RSAPrivateKey: ...\n @abstractmethod\n def rsa_padding_supported(self, padding: AsymmetricPadding) -> bool: ...\n\nclass ScryptBackend(metaclass=ABCMeta):\n @abstractmethod\n def derive_scrypt(self, key_material: bytes, salt: bytes, length: int, n: int, r: int, p: int) -> bytes: ...\n\nclass X509Backend(metaclass=ABCMeta):\n @abstractmethod\n def create_x509_certificate(\n self,\n builder: CertificateBuilder,\n private_key: Union[DSAPrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],\n algorithm: HashAlgorithm,\n ) -> Certificate: ...\n @abstractmethod\n def create_x509_crl(\n self,\n builder: CertificateRevocationListBuilder,\n private_key: Union[DSAPrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],\n algorithm: HashAlgorithm,\n ) -> CertificateRevocationList: ...\n @abstractmethod\n def create_x509_csr(\n self,\n builder: CertificateSigningRequestBuilder,\n private_key: Union[DSAPrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],\n algorithm: HashAlgorithm,\n ) -> CertificateSigningRequest: ...\n @abstractmethod\n def create_x509_revoked_certificate(self, builder: RevokedCertificateBuilder) -> RevokedCertificate: ...\n @abstractmethod\n def load_der_x509_certificate(self, data: bytes) -> Certificate: ...\n @abstractmethod\n def load_der_x509_csr(self, data: bytes) -> CertificateSigningRequest: ...\n @abstractmethod\n def load_pem_x509_certificate(self, data: bytes) -> Certificate: ...\n @abstractmethod\n def load_pem_x509_csr(self, data: bytes) -> CertificateSigningRequest: ...\n @abstractmethod\n def x509_name_bytes(self, name: Name) -> bytes: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\backends\interfaces.pyi | interfaces.pyi | Other | 8,238 | 0.85 | 0.341837 | 0 | awesome-app | 834 | 2024-12-25T17:38:35.848794 | MIT | false | 12a190c013b5e1e8fa72a0a68a170cc3 |
from typing import Any\n\ndef default_backend() -> Any: ...\n\n# TODO: add some backends\ndef __getattr__(name: str) -> Any: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\backends\__init__.pyi | __init__.pyi | Other | 124 | 0.95 | 0.333333 | 0.25 | react-lib | 50 | 2024-10-05T23:33:35.775225 | MIT | false | 47a2dc0ef37b2d81c371082272e4ce7c |
from typing import Any, Optional\n\nclass Binding(object):\n ffi: Optional[Any]\n lib: Optional[Any]\n def init_static_locks(self) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\bindings\openssl\binding.pyi | binding.pyi | Other | 148 | 0.85 | 0.333333 | 0 | python-kit | 452 | 2024-04-22T08:53:29.952811 | BSD-3-Clause | false | c012683d2a7497efdf34fed23f3e9f5d |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import CMACBackend\nfrom cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm\n\nclass CMAC(object):\n def __init__(self, algorithm: BlockCipherAlgorithm, backend: Optional[CMACBackend] = ...) -> None: ...\n def copy(self) -> CMAC: ...\n def finalize(self) -> bytes: ...\n def update(self, data: bytes) -> None: ...\n def verify(self, signature: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\cmac.pyi | cmac.pyi | Other | 461 | 0.85 | 0.545455 | 0 | vue-tools | 276 | 2023-11-21T07:44:35.459647 | GPL-3.0 | false | 6def99f318ed95dda3992d42574b75af |
def bytes_eq(a: bytes, b: bytes) -> bool: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\constant_time.pyi | constant_time.pyi | Other | 46 | 0.65 | 1 | 0 | awesome-app | 902 | 2023-10-21T15:28:04.508697 | MIT | false | dea56ac8f2ab7b75f5e3f2eb4facc990 |
from abc import ABCMeta, abstractmethod\nfrom typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import HashBackend\n\nclass HashAlgorithm(metaclass=ABCMeta):\n digest_size: int\n name: str\n\nclass HashContext(metaclass=ABCMeta):\n algorithm: HashAlgorithm\n @abstractmethod\n def copy(self) -> HashContext: ...\n @abstractmethod\n def finalize(self) -> bytes: ...\n @abstractmethod\n def update(self, data: bytes) -> None: ...\n\nclass BLAKE2b(HashAlgorithm): ...\nclass BLAKE2s(HashAlgorithm): ...\nclass MD5(HashAlgorithm): ...\nclass SHA1(HashAlgorithm): ...\nclass SHA224(HashAlgorithm): ...\nclass SHA256(HashAlgorithm): ...\nclass SHA384(HashAlgorithm): ...\nclass SHA3_224(HashAlgorithm): ...\nclass SHA3_256(HashAlgorithm): ...\nclass SHA3_384(HashAlgorithm): ...\nclass SHA3_512(HashAlgorithm): ...\nclass SHA512(HashAlgorithm): ...\nclass SHA512_224(HashAlgorithm): ...\nclass SHA512_256(HashAlgorithm): ...\n\nclass SHAKE128(HashAlgorithm):\n def __init__(self, digest_size: int) -> None: ...\n\nclass SHAKE256(HashAlgorithm):\n def __init__(self, digest_size: int) -> None: ...\n\nclass Hash(HashContext):\n def __init__(self, algorithm: HashAlgorithm, backend: Optional[HashBackend] = ...): ...\n def copy(self) -> Hash: ...\n def finalize(self) -> bytes: ...\n def update(self, data: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\hashes.pyi | hashes.pyi | Other | 1,342 | 0.85 | 0.636364 | 0 | python-kit | 745 | 2023-08-17T19:45:53.390419 | Apache-2.0 | false | 1161c363ad02fa8ee0859cc748144fcf |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import HMACBackend\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\n\nclass HMAC(object):\n def __init__(self, key: bytes, algorithm: HashAlgorithm, backend: Optional[HMACBackend] = ...) -> None: ...\n def copy(self) -> HMAC: ...\n def finalize(self) -> bytes: ...\n def update(self, msg: bytes) -> None: ...\n def verify(self, signature: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\hmac.pyi | hmac.pyi | Other | 457 | 0.85 | 0.545455 | 0 | vue-tools | 33 | 2024-03-26T15:26:28.027100 | Apache-2.0 | false | 1763f99ee9003645cbdb1ad2725cc7c2 |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import CipherBackend\n\ndef aes_key_wrap(wrapping_key: bytes, key_to_wrap: bytes, backend: Optional[CipherBackend] = ...) -> bytes: ...\ndef aes_key_wrap_with_padding(wrapping_key: bytes, key_to_wrap: bytes, backend: Optional[CipherBackend] = ...) -> bytes: ...\ndef aes_key_unwrap(wrapping_key: bytes, wrapped_key: bytes, backend: Optional[CipherBackend] = ...) -> bytes: ...\ndef aes_key_unwrap_with_padding(wrapping_key: bytes, wrapped_key: bytes, backend: Optional[CipherBackend] = ...) -> bytes: ...\n\nclass InvalidUnwrap(Exception): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\keywrap.pyi | keywrap.pyi | Other | 611 | 0.85 | 0.5 | 0 | python-kit | 858 | 2024-07-23T21:15:05.494025 | MIT | false | e5bd9d4b686292a6f9014ea15a585714 |
from abc import ABCMeta, abstractmethod\n\nclass PaddingContext(metaclass=ABCMeta):\n @abstractmethod\n def finalize(self) -> bytes: ...\n @abstractmethod\n def update(self, data: bytes) -> bytes: ...\n\nclass ANSIX923(object):\n def __init__(self, block_size: int) -> None: ...\n def padder(self) -> PaddingContext: ...\n def unpadder(self) -> PaddingContext: ...\n\nclass PKCS7(object):\n def __init__(self, block_size: int) -> None: ...\n def padder(self) -> PaddingContext: ...\n def unpadder(self) -> PaddingContext: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\padding.pyi | padding.pyi | Other | 540 | 0.85 | 0.647059 | 0 | node-utils | 13 | 2023-09-10T13:46:34.964893 | MIT | false | 0d14e3ea6ebe8c6b9840b716a3224192 |
class Poly1305(object):\n def __init__(self, key: bytes) -> None: ...\n def finalize(self) -> bytes: ...\n @classmethod\n def generate_tag(cls, key: bytes, data: bytes) -> bytes: ...\n def update(self, data: bytes) -> None: ...\n def verify(self, tag: bytes) -> None: ...\n @classmethod\n def verify_tag(cls, key: bytes, data: bytes, tag: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\poly1305.pyi | poly1305.pyi | Other | 375 | 0.85 | 0.777778 | 0 | python-kit | 218 | 2023-12-05T12:33:55.841884 | MIT | false | 34b2824ce722a436cf8d55e061e6a652 |
from typing import Any\n\ndef __getattr__(name: str) -> Any: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\__init__.pyi | __init__.pyi | Other | 63 | 0.65 | 0.333333 | 0 | vue-tools | 346 | 2023-09-22T05:21:32.970104 | GPL-3.0 | false | 84a27291937d76e46b277653002601f2 |
from abc import ABCMeta, abstractmethod\nfrom typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import DHBackend\nfrom cryptography.hazmat.primitives.serialization import (\n Encoding,\n KeySerializationEncryption,\n ParameterFormat,\n PrivateFormat,\n PublicFormat,\n)\n\nclass DHParameters(metaclass=ABCMeta):\n @abstractmethod\n def generate_private_key(self) -> DHPrivateKey: ...\n @abstractmethod\n def parameter_bytes(self, encoding: Encoding, format: ParameterFormat) -> bytes: ...\n @abstractmethod\n def parameter_numbers(self) -> DHParameterNumbers: ...\n\nDHParametersWithSerialization = DHParameters\n\nclass DHParameterNumbers(object):\n @property\n def p(self) -> int: ...\n @property\n def g(self) -> int: ...\n @property\n def q(self) -> int: ...\n def __init__(self, p: int, g: int, q: Optional[int]) -> None: ...\n def parameters(self, backend: Optional[DHBackend] = ...) -> DHParameters: ...\n\nclass DHPrivateKey(metaclass=ABCMeta):\n key_size: int\n @abstractmethod\n def exchange(self, peer_public_key: DHPublicKey) -> bytes: ...\n @abstractmethod\n def parameters(self) -> DHParameters: ...\n @abstractmethod\n def public_key(self) -> DHPublicKey: ...\n\nclass DHPrivateKeyWithSerialization(DHPrivateKey):\n @abstractmethod\n def private_bytes(\n self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption\n ) -> bytes: ...\n @abstractmethod\n def private_numbers(self) -> DHPrivateNumbers: ...\n\nclass DHPrivateNumbers(object):\n @property\n def public_numbers(self) -> DHPublicNumbers: ...\n @property\n def x(self) -> int: ...\n def __init__(self, x: int, public_numbers: DHPublicNumbers) -> None: ...\n def private_key(self, backend: Optional[DHBackend] = ...) -> DHPrivateKey: ...\n\nclass DHPublicKey(metaclass=ABCMeta):\n @property\n @abstractmethod\n def key_size(self) -> int: ...\n @abstractmethod\n def parameters(self) -> DHParameters: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...\n @abstractmethod\n def public_numbers(self) -> DHPublicNumbers: ...\n\nDHPublicKeyWithSerialization = DHPublicKey\n\nclass DHPublicNumbers(object):\n @property\n def parameter_numbers(self) -> DHParameterNumbers: ...\n @property\n def y(self) -> int: ...\n def __init__(self, y: int, parameter_numbers: DHParameterNumbers) -> None: ...\n def public_key(self, backend: Optional[DHBackend] = ...) -> DHPublicKey: ...\n\ndef generate_parameters(generator: int, key_size: int, backend: Optional[DHBackend] = ...) -> DHParameters: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\dh.pyi | dh.pyi | Other | 2,651 | 0.85 | 0.417722 | 0 | awesome-app | 282 | 2024-07-25T17:08:32.885108 | MIT | false | 360f8a665d63bd267a48fd2fc748de0c |
from abc import ABCMeta, abstractmethod\nfrom typing import Optional, Union\n\nfrom cryptography.hazmat.backends.interfaces import DSABackend\nfrom cryptography.hazmat.primitives.asymmetric import AsymmetricVerificationContext\nfrom cryptography.hazmat.primitives.asymmetric.utils import Prehashed\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat\n\nclass DSAParameters(metaclass=ABCMeta):\n @abstractmethod\n def generate_private_key(self) -> DSAPrivateKey: ...\n\nclass DSAParametersWithNumbers(DSAParameters):\n @abstractmethod\n def parameter_numbers(self) -> DSAParameterNumbers: ...\n\nclass DSAParameterNumbers(object):\n @property\n def p(self) -> int: ...\n @property\n def q(self) -> int: ...\n @property\n def g(self) -> int: ...\n def __init__(self, p: int, q: int, g: int) -> None: ...\n def parameters(self, backend: Optional[DSABackend] = ...) -> DSAParameters: ...\n\nclass DSAPrivateKey(metaclass=ABCMeta):\n @property\n @abstractmethod\n def key_size(self) -> int: ...\n @abstractmethod\n def parameters(self) -> DSAParameters: ...\n @abstractmethod\n def public_key(self) -> DSAPublicKey: ...\n @abstractmethod\n def sign(self, data: bytes, algorithm: Union[HashAlgorithm, Prehashed]) -> bytes: ...\n\nclass DSAPrivateKeyWithSerialization(DSAPrivateKey):\n @abstractmethod\n def private_bytes(\n self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption\n ) -> bytes: ...\n @abstractmethod\n def private_numbers(self) -> DSAPrivateNumbers: ...\n\nclass DSAPrivateNumbers(object):\n @property\n def x(self) -> int: ...\n @property\n def public_numbers(self) -> DSAPublicNumbers: ...\n def __init__(self, x: int, public_numbers: DSAPublicNumbers) -> None: ...\n\nclass DSAPublicKey(metaclass=ABCMeta):\n @property\n @abstractmethod\n def key_size(self) -> int: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...\n @abstractmethod\n def public_numbers(self) -> DSAPublicNumbers: ...\n @abstractmethod\n def verifier(\n self, signature: bytes, signature_algorithm: Union[HashAlgorithm, Prehashed]\n ) -> AsymmetricVerificationContext: ...\n @abstractmethod\n def verify(self, signature: bytes, data: bytes, algorithm: Union[HashAlgorithm, Prehashed]) -> None: ...\n\nDSAPublicKeyWithSerialization = DSAPublicKey\n\nclass DSAPublicNumbers(object):\n @property\n def y(self) -> int: ...\n @property\n def parameter_numbers(self) -> DSAParameterNumbers: ...\n def __init__(self, y: int, parameter_numbers: DSAParameterNumbers) -> None: ...\n\ndef generate_parameters(key_size: int, backend: Optional[DSABackend] = ...) -> DSAParameters: ...\ndef generate_private_key(key_size: int, backend: Optional[DSABackend] = ...) -> DSAPrivateKey: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\dsa.pyi | dsa.pyi | Other | 2,965 | 0.85 | 0.43038 | 0 | vue-tools | 75 | 2024-07-05T12:51:44.702782 | MIT | false | 9d4a8adf22366094518389c88c9c73eb |
from abc import ABCMeta, abstractmethod\nfrom typing import ClassVar, Optional, Union\n\nfrom cryptography.hazmat.backends.interfaces import EllipticCurveBackend\nfrom cryptography.hazmat.primitives.asymmetric import AsymmetricVerificationContext\nfrom cryptography.hazmat.primitives.asymmetric.utils import Prehashed\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat\nfrom cryptography.x509 import ObjectIdentifier\n\nclass EllipticCurve(metaclass=ABCMeta):\n @property\n @abstractmethod\n def key_size(self) -> int: ...\n @property\n @abstractmethod\n def name(self) -> str: ...\n\nclass BrainpoolP256R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass BrainpoolP384R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass BrainpoolP512R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECP192R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECP224R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECP256K1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECP256R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECP384R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECP521R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT163K1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT163R2(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT233K1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT233R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT283K1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT283R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT409K1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT409R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT571K1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass SECT571R1(EllipticCurve):\n key_size: int = ...\n name: str = ...\n\nclass EllipticCurveOID(object):\n SECP192R1: ClassVar[ObjectIdentifier]\n SECP224R1: ClassVar[ObjectIdentifier]\n SECP256K1: ClassVar[ObjectIdentifier]\n SECP256R1: ClassVar[ObjectIdentifier]\n SECP384R1: ClassVar[ObjectIdentifier]\n SECP521R1: ClassVar[ObjectIdentifier]\n BRAINPOOLP256R1: ClassVar[ObjectIdentifier]\n BRAINPOOLP384R1: ClassVar[ObjectIdentifier]\n BRAINPOOLP512R1: ClassVar[ObjectIdentifier]\n SECT163K1: ClassVar[ObjectIdentifier]\n SECT163R2: ClassVar[ObjectIdentifier]\n SECT233K1: ClassVar[ObjectIdentifier]\n SECT233R1: ClassVar[ObjectIdentifier]\n SECT283K1: ClassVar[ObjectIdentifier]\n SECT283R1: ClassVar[ObjectIdentifier]\n SECT409K1: ClassVar[ObjectIdentifier]\n SECT409R1: ClassVar[ObjectIdentifier]\n SECT571K1: ClassVar[ObjectIdentifier]\n SECT571R1: ClassVar[ObjectIdentifier]\n\nclass EllipticCurvePrivateKey(metaclass=ABCMeta):\n @property\n @abstractmethod\n def curve(self) -> EllipticCurve: ...\n @property\n @abstractmethod\n def key_size(self) -> int: ...\n @abstractmethod\n def exchange(self, algorithm: ECDH, peer_public_key: EllipticCurvePublicKey) -> bytes: ...\n @abstractmethod\n def public_key(self) -> EllipticCurvePublicKey: ...\n @abstractmethod\n def sign(self, data: bytes, signature_algorithm: EllipticCurveSignatureAlgorithm) -> bytes: ...\n\nclass EllipticCurvePrivateKeyWithSerialization(EllipticCurvePrivateKey):\n @abstractmethod\n def private_bytes(\n self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption\n ) -> bytes: ...\n @abstractmethod\n def private_numbers(self) -> EllipticCurvePrivateNumbers: ...\n\nclass EllipticCurvePrivateNumbers(object):\n @property\n def private_value(self) -> int: ...\n @property\n def public_numbers(self) -> EllipticCurvePublicNumbers: ...\n def __init__(self, private_value: int, public_numbers: EllipticCurvePublicNumbers) -> None: ...\n def private_key(self, backend: Optional[EllipticCurveBackend] = ...) -> EllipticCurvePrivateKey: ...\n\nclass EllipticCurvePublicKey(metaclass=ABCMeta):\n @property\n @abstractmethod\n def curve(self) -> EllipticCurve: ...\n @property\n @abstractmethod\n def key_size(self) -> int: ...\n @classmethod\n def from_encoded_point(cls, curve: EllipticCurve, data: bytes) -> EllipticCurvePublicKey: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...\n @abstractmethod\n def public_numbers(self) -> EllipticCurvePublicNumbers: ...\n @abstractmethod\n def verifier(\n self, signature: bytes, signature_algorithm: EllipticCurveSignatureAlgorithm\n ) -> AsymmetricVerificationContext: ...\n @abstractmethod\n def verify(self, signature: bytes, data: bytes, signature_algorithm: EllipticCurveSignatureAlgorithm) -> None: ...\n\nEllipticCurvePublicKeyWithSerialization = EllipticCurvePublicKey\n\nclass EllipticCurvePublicNumbers(object):\n @property\n def curve(self) -> EllipticCurve: ...\n @property\n def x(self) -> int: ...\n @property\n def y(self) -> int: ...\n def __init__(self, x: int, y: int, curve: EllipticCurve) -> None: ...\n @classmethod\n def from_encoded_point(cls, curve: EllipticCurve, data: bytes) -> EllipticCurvePublicNumbers: ...\n def public_key(self, backend: Optional[EllipticCurveBackend] = ...) -> EllipticCurvePublicKey: ...\n\nclass EllipticCurveSignatureAlgorithm(metaclass=ABCMeta):\n @property\n @abstractmethod\n def algorithm(self) -> Union[HashAlgorithm, Prehashed]: ...\n\nclass ECDH(object): ...\n\nclass ECDSA(EllipticCurveSignatureAlgorithm):\n def __init__(self, algorithm: Union[HashAlgorithm, Prehashed]): ...\n @property\n def algorithm(self) -> Union[HashAlgorithm, Prehashed]: ...\n\ndef derive_private_key(\n private_value: int, curve: EllipticCurve, backend: Optional[EllipticCurveBackend] = ...\n) -> EllipticCurvePrivateKey: ...\ndef generate_private_key(curve: EllipticCurve, backend: Optional[EllipticCurveBackend] = ...) -> EllipticCurvePrivateKey: ...\ndef get_curve_for_oid(oid: ObjectIdentifier) -> EllipticCurve: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\ec.pyi | ec.pyi | Other | 6,340 | 0.85 | 0.311224 | 0 | awesome-app | 759 | 2024-08-18T23:03:21.658170 | GPL-3.0 | false | d651f6e1b02e37f247671bb68235cbbc |
from abc import ABCMeta, abstractmethod\n\nfrom cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat\n\nclass Ed25519PrivateKey(metaclass=ABCMeta):\n @classmethod\n def generate(cls) -> Ed25519PrivateKey: ...\n @classmethod\n def from_private_bytes(cls, data: bytes) -> Ed25519PrivateKey: ...\n @abstractmethod\n def private_bytes(\n self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption\n ) -> bytes: ...\n @abstractmethod\n def public_key(self) -> Ed25519PublicKey: ...\n @abstractmethod\n def sign(self, data: bytes) -> bytes: ...\n\nclass Ed25519PublicKey(metaclass=ABCMeta):\n @classmethod\n def from_public_bytes(cls, data: bytes) -> Ed25519PublicKey: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...\n @abstractmethod\n def verify(self, signature: bytes, data: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\ed25519.pyi | ed25519.pyi | Other | 985 | 0.85 | 0.4 | 0 | python-kit | 626 | 2024-08-07T05:01:36.284519 | BSD-3-Clause | false | c8cdd25965ab010c5e965055397780c7 |
from abc import ABCMeta, abstractmethod\n\nfrom cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat\n\nclass Ed448PrivateKey(metaclass=ABCMeta):\n @classmethod\n def generate(cls) -> Ed448PrivateKey: ...\n @classmethod\n def from_private_bytes(cls, data: bytes) -> Ed448PrivateKey: ...\n @abstractmethod\n def private_bytes(\n self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption\n ) -> bytes: ...\n @abstractmethod\n def public_key(self) -> Ed448PublicKey: ...\n @abstractmethod\n def sign(self, data: bytes) -> bytes: ...\n\nclass Ed448PublicKey(metaclass=ABCMeta):\n @classmethod\n def from_public_bytes(cls, data: bytes) -> Ed448PublicKey: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...\n @abstractmethod\n def verify(self, signature: bytes, data: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\ed448.pyi | ed448.pyi | Other | 973 | 0.85 | 0.4 | 0 | awesome-app | 392 | 2024-08-17T14:38:58.438251 | BSD-3-Clause | false | 633a6ca7545b5a396a31e144986ddf93 |
from abc import ABCMeta, abstractmethod\nfrom typing import ClassVar, Optional, Union\n\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\n\nclass AsymmetricPadding(metaclass=ABCMeta):\n @property\n @abstractmethod\n def name(self) -> str: ...\n\nclass MGF1(object):\n def __init__(self, algorithm: HashAlgorithm) -> None: ...\n\nclass OAEP(AsymmetricPadding):\n def __init__(self, mgf: MGF1, algorithm: HashAlgorithm, label: Optional[bytes]) -> None: ...\n @property\n def name(self) -> str: ...\n\nclass PKCS1v15(AsymmetricPadding):\n @property\n def name(self) -> str: ...\n\nclass PSS(AsymmetricPadding):\n MAX_LENGTH: ClassVar[object]\n def __init__(self, mgf: MGF1, salt_length: Union[int, object]) -> None: ...\n @property\n def name(self) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\padding.pyi | padding.pyi | Other | 787 | 0.85 | 0.444444 | 0 | awesome-app | 546 | 2024-05-24T18:14:40.894734 | MIT | false | 6f0e9f83b4247f426cf59612c4fd7a34 |
from abc import ABCMeta, abstractmethod\nfrom typing import Optional, Tuple, Union\n\nfrom cryptography.hazmat.backends.interfaces import RSABackend\nfrom cryptography.hazmat.primitives.asymmetric import AsymmetricVerificationContext\nfrom cryptography.hazmat.primitives.asymmetric.padding import AsymmetricPadding\nfrom cryptography.hazmat.primitives.asymmetric.utils import Prehashed\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat\n\nclass RSAPrivateKey(metaclass=ABCMeta):\n @property\n @abstractmethod\n def key_size(self) -> int: ...\n @abstractmethod\n def decrypt(self, ciphertext: bytes, padding: AsymmetricPadding) -> bytes: ...\n @abstractmethod\n def public_key(self) -> RSAPublicKey: ...\n @abstractmethod\n def sign(self, data: bytes, padding: AsymmetricPadding, algorithm: Union[HashAlgorithm, Prehashed]) -> bytes: ...\n\nclass RSAPrivateKeyWithSerialization(RSAPrivateKey):\n @abstractmethod\n def private_bytes(\n self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption\n ) -> bytes: ...\n @abstractmethod\n def private_numbers(self) -> RSAPrivateNumbers: ...\n\nclass RSAPublicKey(metaclass=ABCMeta):\n @property\n @abstractmethod\n def key_size(self) -> int: ...\n @abstractmethod\n def encrypt(self, plaintext: bytes, padding: AsymmetricPadding) -> bytes: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...\n @abstractmethod\n def public_numbers(self) -> RSAPublicNumbers: ...\n @abstractmethod\n def verifier(\n self, signature: bytes, padding: AsymmetricPadding, algorithm: Union[HashAlgorithm, Prehashed]\n ) -> AsymmetricVerificationContext: ...\n @abstractmethod\n def verify(\n self, signature: bytes, data: bytes, padding: AsymmetricPadding, algorithm: Union[HashAlgorithm, Prehashed]\n ) -> None: ...\n\nRSAPublicKeyWithSerialization = RSAPublicKey\n\ndef generate_private_key(\n public_exponent: int, key_size: int, backend: Optional[RSABackend] = ...\n) -> RSAPrivateKeyWithSerialization: ...\ndef rsa_crt_iqmp(p: int, q: int) -> int: ...\ndef rsa_crt_dmp1(private_exponent: int, p: int) -> int: ...\ndef rsa_crt_dmq1(private_exponent: int, q: int) -> int: ...\ndef rsa_recover_prime_factors(n: int, e: int, d: int) -> Tuple[int, int]: ...\n\nclass RSAPrivateNumbers(object):\n def __init__(self, p: int, q: int, d: int, dmp1: int, dmq1: int, iqmp: int, public_numbers: RSAPublicNumbers) -> None: ...\n @property\n def p(self) -> int: ...\n @property\n def q(self) -> int: ...\n @property\n def d(self) -> int: ...\n @property\n def dmp1(self) -> int: ...\n @property\n def dmq1(self) -> int: ...\n @property\n def iqmp(self) -> int: ...\n @property\n def public_numbers(self) -> RSAPublicNumbers: ...\n def private_key(self, backend: Optional[RSABackend] = ...) -> RSAPrivateKey: ...\n\nclass RSAPublicNumbers(object):\n def __init__(self, e: int, n: int) -> None: ...\n @property\n def e(self) -> int: ...\n @property\n def n(self) -> int: ...\n def public_key(self, backend: Optional[RSABackend] = ...) -> RSAPublicKey: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\rsa.pyi | rsa.pyi | Other | 3,288 | 0.85 | 0.421687 | 0 | vue-tools | 87 | 2024-11-30T15:01:00.037937 | MIT | false | 085bd53a02fce095130f6b181d3d94a1 |
from typing import Tuple\n\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\n\ndef decode_dss_signature(signature: bytes) -> Tuple[int, int]: ...\ndef encode_dss_signature(r: int, s: int) -> bytes: ...\n\nclass Prehashed(object):\n _algorithm: HashAlgorithm # undocumented\n _digest_size: int # undocumented\n def __init__(self, algorithm: HashAlgorithm) -> None: ...\n digest_size: int\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\utils.pyi | utils.pyi | Other | 406 | 0.95 | 0.333333 | 0 | react-lib | 208 | 2024-12-22T15:00:27.259504 | MIT | false | 2e1ea93bb56e47b2036137f229807878 |
from abc import ABCMeta, abstractmethod\n\nfrom cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat\n\nclass X25519PrivateKey(metaclass=ABCMeta):\n @classmethod\n def from_private_bytes(cls, data: bytes) -> X25519PrivateKey: ...\n @classmethod\n def generate(cls) -> X25519PrivateKey: ...\n @abstractmethod\n def exchange(self, peer_public_key: X25519PublicKey) -> bytes: ...\n @abstractmethod\n def private_bytes(\n self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption\n ) -> bytes: ...\n @abstractmethod\n def public_key(self) -> X25519PublicKey: ...\n\nclass X25519PublicKey(metaclass=ABCMeta):\n @classmethod\n def from_public_bytes(cls, data: bytes) -> X25519PublicKey: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\x25519.pyi | x25519.pyi | Other | 919 | 0.85 | 0.391304 | 0 | vue-tools | 148 | 2024-08-16T01:30:27.758581 | Apache-2.0 | false | 09335b4ce4858db76eac11fdfe405d6e |
from abc import ABCMeta, abstractmethod\n\nfrom cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat\n\nclass X448PrivateKey(metaclass=ABCMeta):\n @classmethod\n def from_private_bytes(cls, data: bytes) -> X448PrivateKey: ...\n @classmethod\n def generate(cls) -> X448PrivateKey: ...\n @abstractmethod\n def exchange(self, peer_public_key: X448PublicKey) -> bytes: ...\n @abstractmethod\n def private_bytes(\n self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption\n ) -> bytes: ...\n @abstractmethod\n def public_key(self) -> X448PublicKey: ...\n\nclass X448PublicKey(metaclass=ABCMeta):\n @classmethod\n def from_public_bytes(cls, data: bytes) -> X448PublicKey: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\x448.pyi | x448.pyi | Other | 905 | 0.85 | 0.391304 | 0 | node-utils | 1 | 2024-03-19T07:03:36.527606 | Apache-2.0 | false | 2f5ea4d264ab94d98039bba6251324b1 |
from typing import Any\n\ndef __getattr__(name: str) -> Any: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\asymmetric\__init__.pyi | __init__.pyi | Other | 63 | 0.65 | 0.333333 | 0 | react-lib | 317 | 2024-09-08T21:17:29.767747 | MIT | false | 84a27291937d76e46b277653002601f2 |
from typing import Optional\n\nclass AESCCM(object):\n def __init__(self, key: bytes, tag_length: Optional[int]) -> None: ...\n def decrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...\n def encrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...\n @classmethod\n def generate_key(cls, bit_length: int) -> bytes: ...\n\nclass AESGCM(object):\n def __init__(self, key: bytes) -> None: ...\n def decrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...\n def encrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...\n @classmethod\n def generate_key(cls, bit_length: int) -> bytes: ...\n\nclass ChaCha20Poly1305(object):\n def __init__(self, key: bytes) -> None: ...\n def decrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...\n def encrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...\n @classmethod\n def generate_key(cls) -> bytes: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\ciphers\aead.pyi | aead.pyi | Other | 1,065 | 0.85 | 0.681818 | 0 | awesome-app | 268 | 2024-05-23T14:34:20.484390 | GPL-3.0 | false | abe5d2f46d8ff73735ccfac1d832e622 |
from typing import FrozenSet\n\nfrom cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm, CipherAlgorithm\nfrom cryptography.hazmat.primitives.ciphers.modes import ModeWithNonce\n\nclass AES(BlockCipherAlgorithm, CipherAlgorithm):\n def __init__(self, key: bytes) -> None: ...\n block_size: int = ...\n name: str = ...\n key_sizes: FrozenSet[int] = ...\n @property\n def key_size(self) -> int: ...\n\nclass ARC4(CipherAlgorithm):\n def __init__(self, key: bytes) -> None: ...\n @property\n def key_size(self) -> int: ...\n name: str = ...\n key_sizes: FrozenSet[int] = ...\n\nclass Blowfish(BlockCipherAlgorithm, CipherAlgorithm):\n def __init__(self, key: bytes) -> None: ...\n @property\n def key_size(self) -> int: ...\n block_size: int = ...\n name: str = ...\n key_sizes: FrozenSet[int] = ...\n\nclass Camellia(BlockCipherAlgorithm, CipherAlgorithm):\n def __init__(self, key: bytes) -> None: ...\n @property\n def key_size(self) -> int: ...\n block_size: int = ...\n name: str = ...\n key_sizes: FrozenSet[int] = ...\n\nclass CAST5(BlockCipherAlgorithm, CipherAlgorithm):\n def __init__(self, key: bytes) -> None: ...\n @property\n def key_size(self) -> int: ...\n block_size: int = ...\n name: str = ...\n key_sizes: FrozenSet[int] = ...\n\nclass ChaCha20(CipherAlgorithm, ModeWithNonce):\n def __init__(self, key: bytes, nonce: bytes) -> None: ...\n @property\n def key_size(self) -> int: ...\n name: str = ...\n key_sizes: FrozenSet[int] = ...\n @property\n def nonce(self) -> bytes: ...\n\nclass IDEA(CipherAlgorithm):\n def __init__(self, key: bytes) -> None: ...\n @property\n def key_size(self) -> int: ...\n block_size: int = ...\n name: str = ...\n key_sizes: FrozenSet[int] = ...\n\nclass SEED(BlockCipherAlgorithm, CipherAlgorithm):\n def __init__(self, key: bytes) -> None: ...\n @property\n def key_size(self) -> int: ...\n block_size: int = ...\n name: str = ...\n key_sizes: FrozenSet[int] = ...\n\nclass TripleDES(BlockCipherAlgorithm, CipherAlgorithm):\n def __init__(self, key: bytes) -> None: ...\n @property\n def key_size(self) -> int: ...\n block_size: int = ...\n name: str = ...\n key_sizes: FrozenSet[int] = ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\ciphers\algorithms.pyi | algorithms.pyi | Other | 2,245 | 0.85 | 0.368421 | 0 | awesome-app | 938 | 2024-05-10T16:46:10.187728 | GPL-3.0 | false | 3de61ad57d85e5a5edcc4dfae7ffc549 |
from abc import ABCMeta, abstractmethod\nfrom typing import Optional\n\nfrom cryptography.hazmat.primitives.ciphers import CipherAlgorithm\n\nclass Mode(metaclass=ABCMeta):\n @property\n @abstractmethod\n def name(self) -> str: ...\n @abstractmethod\n def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...\n\nclass ModeWithAuthenticationTag(metaclass=ABCMeta):\n @property\n @abstractmethod\n def tag(self) -> bytes: ...\n\nclass ModeWithInitializationVector(metaclass=ABCMeta):\n @property\n @abstractmethod\n def initialization_vector(self) -> bytes: ...\n\nclass ModeWithNonce(metaclass=ABCMeta):\n @property\n @abstractmethod\n def nonce(self) -> bytes: ...\n\nclass ModeWithTweak(metaclass=ABCMeta):\n @property\n @abstractmethod\n def tweak(self) -> bytes: ...\n\nclass CBC(Mode, ModeWithInitializationVector):\n def __init__(self, initialization_vector: bytes) -> None: ...\n @property\n def initialization_vector(self) -> bytes: ...\n @property\n def name(self) -> str: ...\n def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...\n\nclass CTR(Mode, ModeWithNonce):\n def __init__(self, nonce: bytes) -> None: ...\n @property\n def name(self) -> str: ...\n @property\n def nonce(self) -> bytes: ...\n def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...\n\nclass CFB(Mode, ModeWithInitializationVector):\n def __init__(self, initialization_vector: bytes) -> None: ...\n @property\n def initialization_vector(self) -> bytes: ...\n @property\n def name(self) -> str: ...\n def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...\n\nclass CFB8(Mode, ModeWithInitializationVector):\n def __init__(self, initialization_vector: bytes) -> None: ...\n @property\n def initialization_vector(self) -> bytes: ...\n @property\n def name(self) -> str: ...\n def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...\n\nclass ECB(Mode):\n @property\n def name(self) -> str: ...\n def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...\n\nclass GCM(Mode, ModeWithInitializationVector, ModeWithAuthenticationTag):\n def __init__(self, initialization_vector: bytes, tag: Optional[bytes], min_tag_length: Optional[int]) -> None: ...\n @property\n def initialization_vector(self) -> bytes: ...\n @property\n def name(self) -> str: ...\n @property\n def tag(self) -> bytes: ...\n def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...\n\nclass OFB(Mode, ModeWithInitializationVector):\n def __init__(self, initialization_vector: bytes) -> None: ...\n @property\n def initialization_vector(self) -> bytes: ...\n @property\n def name(self) -> str: ...\n def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...\n\nclass XTS(Mode, ModeWithTweak):\n def __init__(self, tweak: bytes) -> None: ...\n @property\n def name(self) -> str: ...\n @property\n def tweak(self) -> bytes: ...\n def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\ciphers\modes.pyi | modes.pyi | Other | 3,089 | 0.85 | 0.531915 | 0 | node-utils | 695 | 2024-01-11T17:57:22.376716 | GPL-3.0 | false | 79c5fdeb2d8eb75b57b746845be197a9 |
from abc import ABCMeta, abstractmethod\nfrom typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import CipherBackend\nfrom cryptography.hazmat.primitives.ciphers.modes import Mode\n\nclass AEADCipherContext(metaclass=ABCMeta):\n @abstractmethod\n def authenticate_additional_data(self, data: bytes) -> None: ...\n\nclass AEADDecryptionContext(metaclass=ABCMeta):\n @abstractmethod\n def finalize_with_tag(self, tag: bytes) -> bytes: ...\n\nclass AEADEncryptionContext(metaclass=ABCMeta):\n @property\n @abstractmethod\n def tag(self) -> bytes: ...\n\nclass BlockCipherAlgorithm(metaclass=ABCMeta):\n @property\n @abstractmethod\n def block_size(self) -> int: ...\n\nclass Cipher(object):\n def __init__(self, algorithm: CipherAlgorithm, mode: Optional[Mode], backend: Optional[CipherBackend] = ...) -> None: ...\n def decryptor(self) -> CipherContext: ...\n def encryptor(self) -> CipherContext: ...\n\nclass CipherAlgorithm(metaclass=ABCMeta):\n @property\n @abstractmethod\n def key_size(self) -> int: ...\n @property\n @abstractmethod\n def name(self) -> str: ...\n\nclass CipherContext(metaclass=ABCMeta):\n @abstractmethod\n def finalize(self) -> bytes: ...\n @abstractmethod\n def update(self, data: bytes) -> bytes: ...\n @abstractmethod\n def update_into(self, data: bytes, buf: bytearray) -> int: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\ciphers\__init__.pyi | __init__.pyi | Other | 1,363 | 0.85 | 0.431818 | 0 | react-lib | 69 | 2024-09-13T20:46:38.002343 | MIT | false | b51219aaa908647d5091535b6349eab2 |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import HashBackend, HMACBackend\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.hazmat.primitives.kdf import KeyDerivationFunction\n\nclass ConcatKDFHash(KeyDerivationFunction):\n def __init__(\n self, algorithm: HashAlgorithm, length: int, otherinfo: Optional[bytes], backend: Optional[HashBackend] = ...\n ): ...\n def derive(self, key_material: bytes) -> bytes: ...\n def verify(self, key_material: bytes, expected_key: bytes) -> None: ...\n\nclass ConcatKDFHMAC(KeyDerivationFunction):\n def __init__(\n self,\n algorithm: HashAlgorithm,\n length: int,\n salt: Optional[bytes],\n otherinfo: Optional[bytes],\n backend: Optional[HMACBackend] = ...,\n ): ...\n def derive(self, key_material: bytes) -> bytes: ...\n def verify(self, key_material: bytes, expected_key: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\kdf\concatkdf.pyi | concatkdf.pyi | Other | 951 | 0.85 | 0.333333 | 0 | awesome-app | 88 | 2025-05-06T02:43:37.410646 | MIT | false | 9fcf655beb7a2ce334dcb866b955e969 |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import HMACBackend\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.hazmat.primitives.kdf import KeyDerivationFunction\n\nclass HKDF(KeyDerivationFunction):\n def __init__(\n self,\n algorithm: HashAlgorithm,\n length: int,\n salt: Optional[bytes],\n info: Optional[bytes],\n backend: Optional[HMACBackend] = ...,\n ): ...\n def derive(self, key_material: bytes) -> bytes: ...\n def verify(self, key_material: bytes, expected_key: bytes) -> None: ...\n\nclass HKDFExpand(KeyDerivationFunction):\n def __init__(self, algorithm: HashAlgorithm, length: int, info: Optional[bytes], backend: Optional[HMACBackend] = ...): ...\n def derive(self, key_material: bytes) -> bytes: ...\n def verify(self, key_material: bytes, expected_key: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\kdf\hkdf.pyi | hkdf.pyi | Other | 902 | 0.85 | 0.363636 | 0 | react-lib | 913 | 2024-12-08T00:22:00.051460 | BSD-3-Clause | false | cfa09a7fc09250f8db01e343b63e4800 |
from enum import Enum\nfrom typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import HMACBackend\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.hazmat.primitives.kdf import KeyDerivationFunction\n\nclass Mode(Enum):\n CounterMode: str\n\nclass CounterLocation(Enum):\n BeforeFixed: str\n AfterFixed: str\n\nclass KBKDFHMAC(KeyDerivationFunction):\n def __init__(\n self,\n algorithm: HashAlgorithm,\n mode: Mode,\n length: int,\n rlen: int,\n llen: int,\n location: CounterLocation,\n label: Optional[bytes],\n context: Optional[bytes],\n fixed: Optional[bytes],\n backend: Optional[HMACBackend] = ...,\n ): ...\n def derive(self, key_material: bytes) -> bytes: ...\n def verify(self, key_material: bytes, expected_key: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\kdf\kbkdf.pyi | kbkdf.pyi | Other | 867 | 0.85 | 0.2 | 0 | awesome-app | 88 | 2024-02-01T12:33:38.199247 | Apache-2.0 | false | a80815e692f7850f8a1c572263442ea9 |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import PBKDF2HMACBackend\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.hazmat.primitives.kdf import KeyDerivationFunction\n\nclass PBKDF2HMAC(KeyDerivationFunction):\n def __init__(\n self, algorithm: HashAlgorithm, length: int, salt: bytes, iterations: int, backend: Optional[PBKDF2HMACBackend] = ...\n ): ...\n def derive(self, key_material: bytes) -> bytes: ...\n def verify(self, key_material: bytes, expected_key: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\kdf\pbkdf2.pyi | pbkdf2.pyi | Other | 561 | 0.85 | 0.333333 | 0 | python-kit | 214 | 2023-11-15T21:05:21.529581 | BSD-3-Clause | false | 869dd7f4f9702ebee010b59a909a5144 |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import ScryptBackend\nfrom cryptography.hazmat.primitives.kdf import KeyDerivationFunction\n\nclass Scrypt(KeyDerivationFunction):\n def __init__(self, salt: bytes, length: int, n: int, r: int, p: int, backend: Optional[ScryptBackend] = ...): ...\n def derive(self, key_material: bytes) -> bytes: ...\n def verify(self, key_material: bytes, expected_key: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\kdf\scrypt.pyi | scrypt.pyi | Other | 452 | 0.85 | 0.444444 | 0 | vue-tools | 911 | 2024-05-27T19:39:42.586472 | Apache-2.0 | false | 5ba90ad52c6bba4320cdc783e86049de |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import HashBackend\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.hazmat.primitives.kdf import KeyDerivationFunction\n\nclass X963KDF(KeyDerivationFunction):\n def __init__(\n self, algorithm: HashAlgorithm, length: int, sharedinfo: Optional[bytes], backend: Optional[HashBackend] = ...\n ): ...\n def derive(self, key_material: bytes) -> bytes: ...\n def verify(self, key_material: bytes, expected_key: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\kdf\x963kdf.pyi | x963kdf.pyi | Other | 545 | 0.85 | 0.333333 | 0 | python-kit | 796 | 2024-08-06T04:14:46.110957 | BSD-3-Clause | false | 6e6dbd3d7e7148848b24d2951eb47e9a |
from abc import ABCMeta, abstractmethod\n\nclass KeyDerivationFunction(metaclass=ABCMeta):\n @abstractmethod\n def derive(self, key_material: bytes) -> bytes: ...\n @abstractmethod\n def verify(self, key_material: bytes, expected_key: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\kdf\__init__.pyi | __init__.pyi | Other | 261 | 0.85 | 0.428571 | 0 | awesome-app | 607 | 2024-07-03T04:53:45.510528 | Apache-2.0 | false | 77f9c2ee91facb19db525d6266ba68ea |
from typing import Any, List, Optional, Tuple, Union\n\nfrom cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKeyWithSerialization\nfrom cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKeyWithSerialization\nfrom cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKeyWithSerialization\nfrom cryptography.hazmat.primitives.serialization import KeySerializationEncryption\nfrom cryptography.x509 import Certificate\n\ndef load_key_and_certificates(\n data: bytes, password: Optional[bytes], backend: Optional[Any] = ...\n) -> Tuple[Optional[Any], Optional[Certificate], List[Certificate]]: ...\ndef serialize_key_and_certificates(\n name: bytes,\n key: Union[RSAPrivateKeyWithSerialization, EllipticCurvePrivateKeyWithSerialization, DSAPrivateKeyWithSerialization],\n cert: Optional[Certificate],\n cas: Optional[List[Certificate]],\n enc: KeySerializationEncryption,\n) -> bytes: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\serialization\pkcs12.pyi | pkcs12.pyi | Other | 933 | 0.85 | 0.111111 | 0 | vue-tools | 634 | 2024-10-12T09:54:20.147663 | GPL-3.0 | false | 26f81bd19916601ee4c4617fa69bf523 |
from abc import ABCMeta\nfrom enum import Enum\nfrom typing import Any, Optional, Union\n\nfrom cryptography.hazmat.backends.interfaces import (\n DERSerializationBackend,\n DSABackend,\n EllipticCurveBackend,\n PEMSerializationBackend,\n RSABackend,\n)\nfrom cryptography.hazmat.primitives.asymmetric.dh import DHPrivateKey, DHPublicKey\nfrom cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey\nfrom cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKey, EllipticCurvePublicKey\nfrom cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PublicKey\nfrom cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey\n\ndef load_pem_private_key(\n data: bytes, password: Optional[bytes], backend: Optional[PEMSerializationBackend] = ...\n) -> Any: ... # actually Union[RSAPrivateKey, DSAPrivateKey, DHPrivateKey, EllipticCurvePrivateKey]\ndef load_pem_public_key(\n data: bytes, backend: Optional[PEMSerializationBackend] = ...\n) -> Any: ... # actually Union[RSAPublicKey, DSAPublicKey, DHPublicKey, EllipticCurvePublicKey]\ndef load_der_private_key(\n data: bytes, password: Optional[bytes], backend: Optional[DERSerializationBackend] = ...\n) -> Any: ... # actually Union[RSAPrivateKey, DSAPrivateKey, DHPrivateKey, EllipticCurvePrivateKey]\ndef load_der_public_key(\n data: bytes, backend: Optional[DERSerializationBackend] = ...\n) -> Any: ... # actually Union[RSAPublicKey, DSAPublicKey, DHPublicKey, EllipticCurvePublicKey]\ndef load_ssh_public_key(\n data: bytes, backend: Union[RSABackend, DSABackend, EllipticCurveBackend, None]\n) -> Any: ... # actually Union[RSAPublicKey, DSAPublicKey, DHPublicKey, EllipticCurvePublicKey, Ed25519PublicKey]\n\nclass Encoding(Enum):\n PEM: str\n DER: str\n OpenSSH: str\n Raw: str\n X962: str\n\nclass PrivateFormat(Enum):\n PKCS8: str\n TraditionalOpenSSL: str\n Raw: str\n\nclass PublicFormat(Enum):\n SubjectPublicKeyInfo: str\n PKCS1: str\n OpenSSH: str\n Raw: str\n CompressedPoint: str\n UncompressedPoint: str\n\nclass ParameterFormat(Enum):\n PKCS3: str\n\nclass KeySerializationEncryption(metaclass=ABCMeta): ...\n\nclass BestAvailableEncryption(KeySerializationEncryption):\n password: bytes\n def __init__(self, password: bytes) -> None: ...\n\nclass NoEncryption(KeySerializationEncryption): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\serialization\__init__.pyi | __init__.pyi | Other | 2,359 | 0.95 | 0.206349 | 0 | awesome-app | 430 | 2023-12-03T11:19:37.196076 | Apache-2.0 | false | a3488677641fbf763387e630e0f3657a |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import HMACBackend\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\n\nclass HOTP(object):\n def __init__(\n self, key: bytes, length: int, algorithm: HashAlgorithm, backend: HMACBackend, enforce_key_length: bool = ...\n ): ...\n def generate(self, counter: int) -> bytes: ...\n def get_provisioning_uri(self, account_name: str, counter: int, issuer: Optional[str]) -> str: ...\n def verify(self, hotp: bytes, counter: int) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\twofactor\hotp.pyi | hotp.pyi | Other | 540 | 0.85 | 0.416667 | 0 | awesome-app | 339 | 2025-06-26T19:41:48.691013 | GPL-3.0 | false | ea6e9bd405d06631ff1ef66d373d9d8f |
from typing import Optional\n\nfrom cryptography.hazmat.backends.interfaces import HMACBackend\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\n\nclass TOTP(object):\n def __init__(\n self,\n key: bytes,\n length: int,\n algorithm: HashAlgorithm,\n time_step: int,\n backend: HMACBackend,\n enforce_key_length: bool = ...,\n ): ...\n def generate(self, time: int) -> bytes: ...\n def get_provisioning_uri(self, account_name: str, issuer: Optional[str]) -> str: ...\n def verify(self, totp: bytes, time: int) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\twofactor\totp.pyi | totp.pyi | Other | 585 | 0.85 | 0.277778 | 0 | node-utils | 803 | 2023-10-02T02:06:27.292797 | MIT | false | 612212a7dc132efa982821df1af0eaf8 |
class InvalidToken(Exception): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\hazmat\primitives\twofactor\__init__.pyi | __init__.pyi | Other | 35 | 0.65 | 1 | 0 | node-utils | 297 | 2023-07-29T22:28:46.269427 | Apache-2.0 | false | fe5929a6c7e818d84076a82f2234d72e |
from typing import Any, Iterator\n\nfrom cryptography.x509 import GeneralName, ObjectIdentifier\n\nclass Extension:\n value: Any = ...\n\nclass GeneralNames:\n def __iter__(self) -> Iterator[GeneralName]: ...\n\nclass DistributionPoint:\n full_name: GeneralNames = ...\n\nclass CRLDistributionPoints:\n def __iter__(self) -> Iterator[DistributionPoint]: ...\n\nclass AccessDescription:\n access_method: ObjectIdentifier = ...\n access_location: GeneralName = ...\n\nclass AuthorityInformationAccess:\n def __iter__(self) -> Iterator[AccessDescription]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\x509\extensions.pyi | extensions.pyi | Other | 557 | 0.85 | 0.409091 | 0 | vue-tools | 917 | 2024-04-13T21:19:49.152360 | BSD-3-Clause | false | df51c0ef3d5eea1ab8622ac647b0a42f |
from typing import Dict, Optional\n\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.x509 import ObjectIdentifier\n\nclass ExtensionOID:\n SUBJECT_DIRECTORY_ATTRIBUTES: ObjectIdentifier = ...\n SUBJECT_KEY_IDENTIFIER: ObjectIdentifier = ...\n KEY_USAGE: ObjectIdentifier = ...\n SUBJECT_ALTERNATIVE_NAME: ObjectIdentifier = ...\n ISSUER_ALTERNATIVE_NAME: ObjectIdentifier = ...\n BASIC_CONSTRAINTS: ObjectIdentifier = ...\n NAME_CONSTRAINTS: ObjectIdentifier = ...\n CRL_DISTRIBUTION_POINTS: ObjectIdentifier = ...\n CERTIFICATE_POLICIES: ObjectIdentifier = ...\n POLICY_MAPPINGS: ObjectIdentifier = ...\n AUTHORITY_KEY_IDENTIFIER: ObjectIdentifier = ...\n POLICY_CONSTRAINTS: ObjectIdentifier = ...\n EXTENDED_KEY_USAGE: ObjectIdentifier = ...\n FRESHEST_CRL: ObjectIdentifier = ...\n INHIBIT_ANY_POLICY: ObjectIdentifier = ...\n ISSUING_DISTRIBUTION_POINT: ObjectIdentifier = ...\n AUTHORITY_INFORMATION_ACCESS: ObjectIdentifier = ...\n SUBJECT_INFORMATION_ACCESS: ObjectIdentifier = ...\n OCSP_NO_CHECK: ObjectIdentifier = ...\n TLS_FEATURE: ObjectIdentifier = ...\n CRL_NUMBER: ObjectIdentifier = ...\n DELTA_CRL_INDICATOR: ObjectIdentifier = ...\n PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS: ObjectIdentifier = ...\n PRECERT_POISON: ObjectIdentifier = ...\n\nclass OCSPExtensionOID:\n NONCE: ObjectIdentifier = ...\n\nclass CRLEntryExtensionOID:\n CERTIFICATE_ISSUER: ObjectIdentifier = ...\n CRL_REASON: ObjectIdentifier = ...\n INVALIDITY_DATE: ObjectIdentifier = ...\n\nclass NameOID:\n COMMON_NAME: ObjectIdentifier = ...\n COUNTRY_NAME: ObjectIdentifier = ...\n LOCALITY_NAME: ObjectIdentifier = ...\n STATE_OR_PROVINCE_NAME: ObjectIdentifier = ...\n STREET_ADDRESS: ObjectIdentifier = ...\n ORGANIZATION_NAME: ObjectIdentifier = ...\n ORGANIZATIONAL_UNIT_NAME: ObjectIdentifier = ...\n SERIAL_NUMBER: ObjectIdentifier = ...\n SURNAME: ObjectIdentifier = ...\n GIVEN_NAME: ObjectIdentifier = ...\n TITLE: ObjectIdentifier = ...\n GENERATION_QUALIFIER: ObjectIdentifier = ...\n X500_UNIQUE_IDENTIFIER: ObjectIdentifier = ...\n DN_QUALIFIER: ObjectIdentifier = ...\n PSEUDONYM: ObjectIdentifier = ...\n USER_ID: ObjectIdentifier = ...\n DOMAIN_COMPONENT: ObjectIdentifier = ...\n EMAIL_ADDRESS: ObjectIdentifier = ...\n JURISDICTION_COUNTRY_NAME: ObjectIdentifier = ...\n JURISDICTION_LOCALITY_NAME: ObjectIdentifier = ...\n JURISDICTION_STATE_OR_PROVINCE_NAME: ObjectIdentifier = ...\n BUSINESS_CATEGORY: ObjectIdentifier = ...\n POSTAL_ADDRESS: ObjectIdentifier = ...\n POSTAL_CODE: ObjectIdentifier = ...\n\nclass SignatureAlgorithmOID:\n RSA_WITH_MD5: ObjectIdentifier = ...\n RSA_WITH_SHA1: ObjectIdentifier = ...\n _RSA_WITH_SHA1: ObjectIdentifier = ...\n RSA_WITH_SHA224: ObjectIdentifier = ...\n RSA_WITH_SHA256: ObjectIdentifier = ...\n RSA_WITH_SHA384: ObjectIdentifier = ...\n RSA_WITH_SHA512: ObjectIdentifier = ...\n RSASSA_PSS: ObjectIdentifier = ...\n ECDSA_WITH_SHA1: ObjectIdentifier = ...\n ECDSA_WITH_SHA224: ObjectIdentifier = ...\n ECDSA_WITH_SHA256: ObjectIdentifier = ...\n ECDSA_WITH_SHA384: ObjectIdentifier = ...\n ECDSA_WITH_SHA512: ObjectIdentifier = ...\n DSA_WITH_SHA1: ObjectIdentifier = ...\n DSA_WITH_SHA224: ObjectIdentifier = ...\n DSA_WITH_SHA256: ObjectIdentifier = ...\n ED25519: ObjectIdentifier = ...\n ED448: ObjectIdentifier = ...\n\nclass ExtendedKeyUsageOID:\n SERVER_AUTH: ObjectIdentifier = ...\n CLIENT_AUTH: ObjectIdentifier = ...\n CODE_SIGNING: ObjectIdentifier = ...\n EMAIL_PROTECTION: ObjectIdentifier = ...\n TIME_STAMPING: ObjectIdentifier = ...\n OCSP_SIGNING: ObjectIdentifier = ...\n ANY_EXTENDED_KEY_USAGE: ObjectIdentifier = ...\n\nclass AuthorityInformationAccessOID:\n CA_ISSUERS: ObjectIdentifier = ...\n OCSP: ObjectIdentifier = ...\n\nclass CertificatePoliciesOID:\n CPS_QUALIFIER: ObjectIdentifier = ...\n CPS_USER_NOTICE: ObjectIdentifier = ...\n ANY_POLICY: ObjectIdentifier = ...\n\n_OID_NAMES: Dict[ObjectIdentifier, str] = ...\n\n_SIG_OIDS_TO_HASH: Dict[ObjectIdentifier, Optional[HashAlgorithm]] = ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\x509\oid.pyi | oid.pyi | Other | 4,153 | 0.85 | 0.075472 | 0 | node-utils | 863 | 2023-11-24T10:13:46.891576 | BSD-3-Clause | false | 7827e56325c199f67d462afd22c6973e |
import datetime\nfrom abc import ABCMeta, abstractmethod\nfrom enum import Enum\nfrom ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network\nfrom typing import Any, ClassVar, Generator, Generic, Iterable, List, Optional, Sequence, Text, Type, TypeVar, Union\n\nfrom cryptography.hazmat.backends.interfaces import X509Backend\nfrom cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey\nfrom cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKey, EllipticCurvePublicKey\nfrom cryptography.hazmat.primitives.asymmetric.ed448 import Ed448PrivateKey, Ed448PublicKey\nfrom cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey, Ed25519PublicKey\nfrom cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey\nfrom cryptography.hazmat.primitives.hashes import HashAlgorithm\nfrom cryptography.hazmat.primitives.serialization import Encoding\n\nclass ObjectIdentifier(object):\n dotted_string: str\n def __init__(self, dotted_string: str) -> None: ...\n\nclass CRLEntryExtensionOID(object):\n CERTIFICATE_ISSUER: ClassVar[ObjectIdentifier]\n CRL_REASON: ClassVar[ObjectIdentifier]\n INVALIDITY_DATE: ClassVar[ObjectIdentifier]\n\nclass ExtensionOID(object):\n AUTHORITY_INFORMATION_ACCESS: ClassVar[ObjectIdentifier]\n AUTHORITY_KEY_IDENTIFIER: ClassVar[ObjectIdentifier]\n BASIC_CONSTRAINTS: ClassVar[ObjectIdentifier]\n CERTIFICATE_POLICIES: ClassVar[ObjectIdentifier]\n CRL_DISTRIBUTION_POINTS: ClassVar[ObjectIdentifier]\n CRL_NUMBER: ClassVar[ObjectIdentifier]\n DELTA_CRL_INDICATOR: ClassVar[ObjectIdentifier]\n EXTENDED_KEY_USAGE: ClassVar[ObjectIdentifier]\n FRESHEST_CRL: ClassVar[ObjectIdentifier]\n INHIBIT_ANY_POLICY: ClassVar[ObjectIdentifier]\n ISSUER_ALTERNATIVE_NAME: ClassVar[ObjectIdentifier]\n ISSUING_DISTRIBUTION_POINT: ClassVar[ObjectIdentifier]\n KEY_USAGE: ClassVar[ObjectIdentifier]\n NAME_CONSTRAINTS: ClassVar[ObjectIdentifier]\n OCSP_NO_CHECK: ClassVar[ObjectIdentifier]\n POLICY_CONSTRAINTS: ClassVar[ObjectIdentifier]\n POLICY_MAPPINGS: ClassVar[ObjectIdentifier]\n PRECERT_POISON: ClassVar[ObjectIdentifier]\n PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS: ClassVar[ObjectIdentifier]\n SUBJECT_ALTERNATIVE_NAME: ClassVar[ObjectIdentifier]\n SUBJECT_DIRECTORY_ATTRIBUTES: ClassVar[ObjectIdentifier]\n SUBJECT_INFORMATION_ACCESS: ClassVar[ObjectIdentifier]\n SUBJECT_KEY_IDENTIFIER: ClassVar[ObjectIdentifier]\n TLS_FEATURE: ClassVar[ObjectIdentifier]\n\nclass NameOID(object):\n BUSINESS_CATEGORY: ClassVar[ObjectIdentifier]\n COMMON_NAME: ClassVar[ObjectIdentifier]\n COUNTRY_NAME: ClassVar[ObjectIdentifier]\n DN_QUALIFIER: ClassVar[ObjectIdentifier]\n DOMAIN_COMPONENT: ClassVar[ObjectIdentifier]\n EMAIL_ADDRESS: ClassVar[ObjectIdentifier]\n GENERATION_QUALIFIER: ClassVar[ObjectIdentifier]\n GIVEN_NAME: ClassVar[ObjectIdentifier]\n JURISDICTION_COUNTRY_NAME: ClassVar[ObjectIdentifier]\n JURISDICTION_LOCALITY_NAME: ClassVar[ObjectIdentifier]\n JURISDICTION_STATE_OR_PROVINCE_NAME: ClassVar[ObjectIdentifier]\n LOCALITY_NAME: ClassVar[ObjectIdentifier]\n ORGANIZATIONAL_UNIT_NAME: ClassVar[ObjectIdentifier]\n ORGANIZATION_NAME: ClassVar[ObjectIdentifier]\n POSTAL_ADDRESS: ClassVar[ObjectIdentifier]\n POSTAL_CODE: ClassVar[ObjectIdentifier]\n PSEUDONYM: ClassVar[ObjectIdentifier]\n SERIAL_NUMBER: ClassVar[ObjectIdentifier]\n STATE_OR_PROVINCE_NAME: ClassVar[ObjectIdentifier]\n STREET_ADDRESS: ClassVar[ObjectIdentifier]\n SURNAME: ClassVar[ObjectIdentifier]\n TITLE: ClassVar[ObjectIdentifier]\n USER_ID: ClassVar[ObjectIdentifier]\n X500_UNIQUE_IDENTIFIER: ClassVar[ObjectIdentifier]\n\nclass OCSPExtensionOID(object):\n NONCE: ClassVar[ObjectIdentifier]\n\nclass SignatureAlgorithmOID(object):\n DSA_WITH_SHA1: ClassVar[ObjectIdentifier]\n DSA_WITH_SHA224: ClassVar[ObjectIdentifier]\n DSA_WITH_SHA256: ClassVar[ObjectIdentifier]\n ECDSA_WITH_SHA1: ClassVar[ObjectIdentifier]\n ECDSA_WITH_SHA224: ClassVar[ObjectIdentifier]\n ECDSA_WITH_SHA256: ClassVar[ObjectIdentifier]\n ECDSA_WITH_SHA384: ClassVar[ObjectIdentifier]\n ECDSA_WITH_SHA512: ClassVar[ObjectIdentifier]\n ED25519: ClassVar[ObjectIdentifier]\n ED448: ClassVar[ObjectIdentifier]\n RSASSA_PSS: ClassVar[ObjectIdentifier]\n RSA_WITH_MD5: ClassVar[ObjectIdentifier]\n RSA_WITH_SHA1: ClassVar[ObjectIdentifier]\n RSA_WITH_SHA224: ClassVar[ObjectIdentifier]\n RSA_WITH_SHA256: ClassVar[ObjectIdentifier]\n RSA_WITH_SHA384: ClassVar[ObjectIdentifier]\n RSA_WITH_SHA512: ClassVar[ObjectIdentifier]\n\nclass ExtendedKeyUsageOID(object):\n SERVER_AUTH: ClassVar[ObjectIdentifier]\n CLIENT_AUTH: ClassVar[ObjectIdentifier]\n CODE_SIGNING: ClassVar[ObjectIdentifier]\n EMAIL_PROTECTION: ClassVar[ObjectIdentifier]\n TIME_STAMPING: ClassVar[ObjectIdentifier]\n OCSP_SIGNING: ClassVar[ObjectIdentifier]\n ANY_EXTENDED_KEY_USAGE: ClassVar[ObjectIdentifier]\n\nclass NameAttribute(object):\n oid: ObjectIdentifier\n value: Text\n def __init__(self, oid: ObjectIdentifier, value: Text) -> None: ...\n def rfc4514_string(self) -> str: ...\n\nclass RelativeDistinguishedName(object):\n def __init__(self, attributes: List[NameAttribute]) -> None: ...\n def __iter__(self) -> Generator[NameAttribute, None, None]: ...\n def get_attributes_for_oid(self, oid: ObjectIdentifier) -> List[NameAttribute]: ...\n def rfc4514_string(self) -> str: ...\n\nclass Name(object):\n rdns: List[RelativeDistinguishedName]\n def __init__(self, attributes: Sequence[Union[NameAttribute, RelativeDistinguishedName]]) -> None: ...\n def __iter__(self) -> Generator[NameAttribute, None, None]: ...\n def __len__(self) -> int: ...\n def get_attributes_for_oid(self, oid: ObjectIdentifier) -> List[NameAttribute]: ...\n def public_bytes(self, backend: Optional[X509Backend] = ...) -> bytes: ...\n def rfc4514_string(self) -> str: ...\n\nclass Version(Enum):\n v1: int\n v3: int\n\nclass Certificate(metaclass=ABCMeta):\n extensions: Extensions\n issuer: Name\n not_valid_after: datetime.datetime\n not_valid_before: datetime.datetime\n serial_number: int\n signature: bytes\n signature_algorithm_oid: ObjectIdentifier\n signature_hash_algorithm: HashAlgorithm\n tbs_certificate_bytes: bytes\n subject: Name\n version: Version\n @abstractmethod\n def fingerprint(self, algorithm: HashAlgorithm) -> bytes: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding) -> bytes: ...\n @abstractmethod\n def public_key(self) -> Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]: ...\n\nclass CertificateBuilder(object):\n def __init__(\n self,\n issuer_name: Optional[Name] = ...,\n subject_name: Optional[Name] = ...,\n public_key: Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey, None] = ...,\n serial_number: Optional[int] = ...,\n not_valid_before: Optional[datetime.datetime] = ...,\n not_valid_after: Optional[datetime.datetime] = ...,\n extensions: Optional[Iterable[ExtensionType]] = ...,\n ) -> None: ...\n def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateBuilder: ...\n def issuer_name(self, name: Name) -> CertificateBuilder: ...\n def not_valid_after(self, time: datetime.datetime) -> CertificateBuilder: ...\n def not_valid_before(self, time: datetime.datetime) -> CertificateBuilder: ...\n def public_key(\n self, public_key: Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]\n ) -> CertificateBuilder: ...\n def serial_number(self, serial_number: int) -> CertificateBuilder: ...\n def sign(\n self,\n private_key: Union[DSAPrivateKey, Ed25519PrivateKey, Ed448PrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],\n algorithm: Optional[HashAlgorithm],\n backend: Optional[X509Backend] = ...,\n ) -> Certificate: ...\n def subject_name(self, name: Name) -> CertificateBuilder: ...\n\nclass CertificateRevocationList(metaclass=ABCMeta):\n extensions: Extensions\n issuer: Name\n last_update: datetime.datetime\n next_update: datetime.datetime\n signature: bytes\n signature_algorithm_oid: ObjectIdentifier\n signature_hash_algorithm: HashAlgorithm\n tbs_certlist_bytes: bytes\n @abstractmethod\n def fingerprint(self, algorithm: HashAlgorithm) -> bytes: ...\n @abstractmethod\n def get_revoked_certificate_by_serial_number(self, serial_number: int) -> RevokedCertificate: ...\n @abstractmethod\n def is_signature_valid(\n self, public_key: Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]\n ) -> bool: ...\n @abstractmethod\n def public_bytes(self, encoding: Encoding) -> bytes: ...\n\nclass CertificateRevocationListBuilder(object):\n def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateRevocationListBuilder: ...\n def add_revoked_certificate(self, revoked_certificate: RevokedCertificate) -> CertificateRevocationListBuilder: ...\n def issuer_name(self, name: Name) -> CertificateRevocationListBuilder: ...\n def last_update(self, time: datetime.datetime) -> CertificateRevocationListBuilder: ...\n def next_update(self, time: datetime.datetime) -> CertificateRevocationListBuilder: ...\n def sign(\n self,\n private_key: Union[DSAPrivateKey, Ed25519PrivateKey, Ed448PrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],\n algorithm: Optional[HashAlgorithm],\n backend: Optional[X509Backend] = ...,\n ) -> CertificateRevocationList: ...\n\nclass CertificateSigningRequest(metaclass=ABCMeta):\n extensions: Extensions\n is_signature_valid: bool\n signature: bytes\n signature_algorithm_oid: ObjectIdentifier\n signature_hash_algorithm: HashAlgorithm\n subject: Name\n tbs_certrequest_bytes: bytes\n @abstractmethod\n def public_bytes(self, encoding: Encoding) -> bytes: ...\n @abstractmethod\n def public_key(self) -> Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]: ...\n\nclass CertificateSigningRequestBuilder(object):\n def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateSigningRequestBuilder: ...\n def subject_name(self, name: Name) -> CertificateSigningRequestBuilder: ...\n def sign(\n self,\n private_key: Union[DSAPrivateKey, Ed25519PrivateKey, Ed448PrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],\n algorithm: Optional[HashAlgorithm],\n backend: Optional[X509Backend] = ...,\n ) -> CertificateSigningRequest: ...\n\nclass RevokedCertificate(metaclass=ABCMeta):\n extensions: Extensions\n revocation_date: datetime.datetime\n serial_number: int\n\nclass RevokedCertificateBuilder(object):\n def add_extension(self, extension: ExtensionType, critical: bool) -> RevokedCertificateBuilder: ...\n def build(self, backend: Optional[X509Backend] = ...) -> RevokedCertificate: ...\n def revocation_date(self, time: datetime.datetime) -> RevokedCertificateBuilder: ...\n def serial_number(self, serial_number: int) -> RevokedCertificateBuilder: ...\n\n# General Name Classes\n\nclass GeneralName(metaclass=ABCMeta):\n value: Any\n\nclass DirectoryName(GeneralName):\n value: Name\n def __init__(self, value: Name) -> None: ...\n\nclass DNSName(GeneralName):\n value: Text\n def __init__(self, value: Text) -> None: ...\n\nclass IPAddress(GeneralName):\n value: Union[IPv4Address, IPv6Address, IPv4Network, IPv6Network]\n def __init__(self, value: Union[IPv4Address, IPv6Address, IPv4Network, IPv6Network]) -> None: ...\n\nclass OtherName(GeneralName):\n type_id: ObjectIdentifier\n value: bytes\n def __init__(self, type_id: ObjectIdentifier, value: bytes) -> None: ...\n\nclass RegisteredID(GeneralName):\n value: ObjectIdentifier\n def __init__(self, value: ObjectIdentifier) -> None: ...\n\nclass RFC822Name(GeneralName):\n value: Text\n def __init__(self, value: Text) -> None: ...\n\nclass UniformResourceIdentifier(GeneralName):\n value: Text\n def __init__(self, value: Text) -> None: ...\n\n# X.509 Extensions\n\nclass ExtensionType(metaclass=ABCMeta):\n oid: ObjectIdentifier\n\n_T = TypeVar("_T", bound="ExtensionType")\n\nclass Extension(Generic[_T]):\n critical: bool\n oid: ObjectIdentifier\n value: _T\n\nclass Extensions(object):\n def __init__(self, general_names: List[Extension[Any]]) -> None: ...\n def __iter__(self) -> Generator[Extension[Any], None, None]: ...\n def get_extension_for_oid(self, oid: ObjectIdentifier) -> Extension[Any]: ...\n def get_extension_for_class(self, extclass: Type[_T]) -> Extension[_T]: ...\n\nclass DuplicateExtension(Exception):\n oid: ObjectIdentifier\n def __init__(self, msg: str, oid: ObjectIdentifier) -> None: ...\n\nclass ExtensionNotFound(Exception):\n oid: ObjectIdentifier\n def __init__(self, msg: str, oid: ObjectIdentifier) -> None: ...\n\nclass IssuerAlternativeName(ExtensionType):\n def __init__(self, general_names: List[GeneralName]) -> None: ...\n def __iter__(self) -> Generator[GeneralName, None, None]: ...\n def get_values_for_type(self, type: Type[GeneralName]) -> List[Any]: ...\n\nclass SubjectAlternativeName(ExtensionType):\n def __init__(self, general_names: List[GeneralName]) -> None: ...\n def __iter__(self) -> Generator[GeneralName, None, None]: ...\n def get_values_for_type(self, type: Type[GeneralName]) -> List[Any]: ...\n\nclass AuthorityKeyIdentifier(ExtensionType):\n @property\n def key_identifier(self) -> bytes: ...\n @property\n def authority_cert_issuer(self) -> Optional[List[GeneralName]]: ...\n @property\n def authority_cert_serial_number(self) -> Optional[int]: ...\n def __init__(\n self,\n key_identifier: bytes,\n authority_cert_issuer: Optional[Iterable[GeneralName]],\n authority_cert_serial_number: Optional[int],\n ) -> None: ...\n @classmethod\n def from_issuer_public_key(\n cls, public_key: Union[RSAPublicKey, DSAPublicKey, EllipticCurvePublicKey, Ed25519PublicKey, Ed448PublicKey]\n ) -> AuthorityKeyIdentifier: ...\n @classmethod\n def from_issuer_subject_key_identifier(cls, ski: SubjectKeyIdentifier) -> AuthorityKeyIdentifier: ...\n\nclass SubjectKeyIdentifier(ExtensionType):\n @property\n def digest(self) -> bytes: ...\n def __init__(self, digest: bytes) -> None: ...\n @classmethod\n def from_public_key(\n cls, public_key: Union[RSAPublicKey, DSAPublicKey, EllipticCurvePublicKey, Ed25519PublicKey, Ed448PublicKey]\n ) -> SubjectKeyIdentifier: ...\n\nclass AccessDescription:\n @property\n def access_method(self) -> ObjectIdentifier: ...\n @property\n def access_location(self) -> GeneralName: ...\n def __init__(self, access_method: ObjectIdentifier, access_location: GeneralName) -> None: ...\n\nclass AuthorityInformationAccess(ExtensionType):\n def __init__(self, descriptions: Iterable[AccessDescription]) -> None: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Generator[AccessDescription, None, None]: ...\n def __getitem__(self, item: int) -> AccessDescription: ...\n\nclass SubjectInformationAccess(ExtensionType):\n def __init__(self, descriptions: Iterable[AccessDescription]) -> None: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Generator[AccessDescription, None, None]: ...\n def __getitem__(self, item: int) -> AccessDescription: ...\n\nclass BasicConstraints(ExtensionType):\n @property\n def ca(self) -> bool: ...\n @property\n def path_length(self) -> Optional[int]: ...\n def __init__(self, ca: bool, path_length: Optional[int]) -> None: ...\n\nclass KeyUsage(ExtensionType):\n @property\n def digital_signature(self) -> bool: ...\n @property\n def content_commitment(self) -> bool: ...\n @property\n def key_encipherment(self) -> bool: ...\n @property\n def data_encipherment(self) -> bool: ...\n @property\n def key_agreement(self) -> bool: ...\n @property\n def key_cert_sign(self) -> bool: ...\n @property\n def crl_sign(self) -> bool: ...\n @property\n def encipher_only(self) -> bool: ...\n @property\n def decipher_only(self) -> bool: ...\n def __init__(\n self,\n digital_signature: bool,\n content_commitment: bool,\n key_encipherment: bool,\n data_encipherment: bool,\n key_agreement: bool,\n key_cert_sign: bool,\n crl_sign: bool,\n encipher_only: bool,\n decipher_only: bool,\n ) -> None: ...\n\nclass ExtendedKeyUsage(ExtensionType):\n def __init__(self, usages: Iterable[ObjectIdentifier]) -> None: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Generator[ObjectIdentifier, None, None]: ...\n def __getitem__(self, item: int) -> ObjectIdentifier: ...\n\nclass UnrecognizedExtension(ExtensionType):\n @property\n def value(self) -> bytes: ...\n def __init__(self, oid: ObjectIdentifier, value: bytes) -> None: ...\n\ndef load_der_x509_certificate(data: bytes, backend: Optional[X509Backend] = ...) -> Certificate: ...\ndef load_pem_x509_certificate(data: bytes, backend: Optional[X509Backend] = ...) -> Certificate: ...\ndef load_der_x509_crl(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateRevocationList: ...\ndef load_pem_x509_crl(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateRevocationList: ...\ndef load_der_x509_csr(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateSigningRequest: ...\ndef load_pem_x509_csr(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateSigningRequest: ...\ndef __getattr__(name: str) -> Any: ... # incomplete\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\cryptography\x509\__init__.pyi | __init__.pyi | Other | 17,734 | 0.95 | 0.361905 | 0.005376 | python-kit | 894 | 2024-11-06T19:47:25.243291 | BSD-3-Clause | false | 9d19be6c4e07addd07a33b6df625a26b |
import datetime\nfrom typing import Iterable, Optional, Union\n\nfrom dateutil.relativedelta import relativedelta\n\nclass DateTimeRange(object):\n NOT_A_TIME_STR: str\n start_time_format: str\n end_time_format: str\n is_output_elapse: bool\n separator: str\n def __init__(\n self,\n start_datetime: Optional[Union[datetime.datetime, str]] = ...,\n end_datetime: Optional[Union[datetime.datetime, str]] = ...,\n start_time_format: str = ...,\n end_time_format: str = ...,\n ) -> None: ...\n def __eq__(self, other) -> bool: ...\n def __ne__(self, other) -> bool: ...\n def __add__(self, other) -> DateTimeRange: ...\n def __iadd__(self, other) -> DateTimeRange: ...\n def __sub__(self, other) -> DateTimeRange: ...\n def __isub__(self, other) -> DateTimeRange: ...\n def __contains__(self, x) -> bool: ...\n @property\n def start_datetime(self) -> datetime.datetime: ...\n @property\n def end_datetime(self) -> datetime.datetime: ...\n @property\n def timedelta(self) -> datetime.timedelta: ...\n def is_set(self) -> bool: ...\n def validate_time_inversion(self) -> None: ...\n def is_valid_timerange(self) -> bool: ...\n def is_intersection(self, x) -> bool: ...\n def get_start_time_str(self) -> str: ...\n def get_end_time_str(self) -> str: ...\n def get_timedelta_second(self) -> float: ...\n def set_start_datetime(self, value: Optional[Union[datetime.datetime, str]], timezone: Optional[str] = ...) -> None: ...\n def set_end_datetime(self, value: Optional[Union[datetime.datetime, str]], timezone: Optional[str] = ...) -> None: ...\n def set_time_range(\n self, start: Optional[Union[datetime.datetime, str]], end: Optional[Union[datetime.datetime, str]]\n ) -> None: ...\n def range(self, step: Union[datetime.timedelta, relativedelta]) -> Iterable[datetime.datetime]: ...\n def intersection(self, x: DateTimeRange) -> DateTimeRange: ...\n def encompass(self, x: DateTimeRange) -> DateTimeRange: ...\n def truncate(self, percentage: float) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\datetimerange\__init__.pyi | __init__.pyi | Other | 2,062 | 0.85 | 0.553191 | 0 | python-kit | 248 | 2024-07-03T03:56:18.038505 | GPL-3.0 | false | 93ae221a207863b58853acafbfc8557b |
from datetime import date\nfrom typing_extensions import Literal\n\nEASTER_JULIAN: Literal[1]\nEASTER_ORTHODOX: Literal[2]\nEASTER_WESTERN: Literal[3]\n\ndef easter(year: int, method: Literal[1, 2, 3] = ...) -> date: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\dateutil\easter.pyi | easter.pyi | Other | 214 | 0.85 | 0.125 | 0 | vue-tools | 307 | 2023-12-30T07:03:05.084361 | BSD-3-Clause | false | 5ccca153cdddbb6559fd89c8b40cb37e |
from datetime import datetime, tzinfo\nfrom typing import IO, Any, Dict, List, Mapping, Optional, Text, Tuple, Union\n\n_FileOrStr = Union[bytes, Text, IO[str], IO[Any]]\n\nclass parserinfo(object):\n JUMP: List[str]\n WEEKDAYS: List[Tuple[str, str]]\n MONTHS: List[Tuple[str, str]]\n HMS: List[Tuple[str, str, str]]\n AMPM: List[Tuple[str, str]]\n UTCZONE: List[str]\n PERTAIN: List[str]\n TZOFFSET: Dict[str, int]\n def __init__(self, dayfirst: bool = ..., yearfirst: bool = ...) -> None: ...\n def jump(self, name: Text) -> bool: ...\n def weekday(self, name: Text) -> Optional[int]: ...\n def month(self, name: Text) -> Optional[int]: ...\n def hms(self, name: Text) -> Optional[int]: ...\n def ampm(self, name: Text) -> Optional[int]: ...\n def pertain(self, name: Text) -> bool: ...\n def utczone(self, name: Text) -> bool: ...\n def tzoffset(self, name: Text) -> Optional[int]: ...\n def convertyear(self, year: int) -> int: ...\n def validate(self, res: datetime) -> bool: ...\n\nclass parser(object):\n def __init__(self, info: Optional[parserinfo] = ...) -> None: ...\n def parse(\n self,\n timestr: _FileOrStr,\n default: Optional[datetime] = ...,\n ignoretz: bool = ...,\n tzinfos: Optional[Mapping[Text, tzinfo]] = ...,\n **kwargs: Any,\n ) -> datetime: ...\n\ndef isoparse(dt_str: Union[str, bytes, IO[str], IO[bytes]]) -> datetime: ...\n\nDEFAULTPARSER: parser\n\ndef parse(timestr: _FileOrStr, parserinfo: Optional[parserinfo] = ..., **kwargs: Any) -> datetime: ...\n\nclass _tzparser: ...\n\nDEFAULTTZPARSER: _tzparser\n\nclass InvalidDatetimeError(ValueError): ...\nclass InvalidDateError(InvalidDatetimeError): ...\nclass InvalidTimeError(InvalidDatetimeError): ...\nclass ParserError(ValueError): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\dateutil\parser.pyi | parser.pyi | Other | 1,779 | 0.85 | 0.431373 | 0.02381 | node-utils | 235 | 2024-09-10T22:16:08.523892 | BSD-3-Clause | false | 70779af06cf2f5d137096af168f30547 |
from datetime import date, datetime, timedelta\nfrom typing import Optional, SupportsFloat, TypeVar, Union, overload\n\nfrom ._common import weekday\n\n_SelfT = TypeVar("_SelfT", bound=relativedelta)\n_DateT = TypeVar("_DateT", date, datetime)\n# Work around attribute and type having the same name.\n_weekday = weekday\n\nMO: weekday\nTU: weekday\nWE: weekday\nTH: weekday\nFR: weekday\nSA: weekday\nSU: weekday\n\nclass relativedelta(object):\n years: int\n months: int\n days: int\n leapdays: int\n hours: int\n minutes: int\n seconds: int\n microseconds: int\n year: Optional[int]\n month: Optional[int]\n weekday: Optional[_weekday]\n day: Optional[int]\n hour: Optional[int]\n minute: Optional[int]\n second: Optional[int]\n microsecond: Optional[int]\n def __init__(\n self,\n dt1: Optional[date] = ...,\n dt2: Optional[date] = ...,\n years: Optional[int] = ...,\n months: Optional[int] = ...,\n days: Optional[int] = ...,\n leapdays: Optional[int] = ...,\n weeks: Optional[int] = ...,\n hours: Optional[int] = ...,\n minutes: Optional[int] = ...,\n seconds: Optional[int] = ...,\n microseconds: Optional[int] = ...,\n year: Optional[int] = ...,\n month: Optional[int] = ...,\n day: Optional[int] = ...,\n weekday: Optional[Union[int, _weekday]] = ...,\n yearday: Optional[int] = ...,\n nlyearday: Optional[int] = ...,\n hour: Optional[int] = ...,\n minute: Optional[int] = ...,\n second: Optional[int] = ...,\n microsecond: Optional[int] = ...,\n ) -> None: ...\n @property\n def weeks(self) -> int: ...\n @weeks.setter\n def weeks(self, value: int) -> None: ...\n def normalized(self: _SelfT) -> _SelfT: ...\n # TODO: use Union when mypy will handle it properly in overloaded operator\n # methods (#2129, #1442, #1264 in mypy)\n @overload\n def __add__(self: _SelfT, other: relativedelta) -> _SelfT: ...\n @overload\n def __add__(self: _SelfT, other: timedelta) -> _SelfT: ...\n @overload\n def __add__(self, other: _DateT) -> _DateT: ...\n @overload\n def __radd__(self: _SelfT, other: relativedelta) -> _SelfT: ...\n @overload\n def __radd__(self: _SelfT, other: timedelta) -> _SelfT: ...\n @overload\n def __radd__(self, other: _DateT) -> _DateT: ...\n @overload\n def __rsub__(self: _SelfT, other: relativedelta) -> _SelfT: ...\n @overload\n def __rsub__(self: _SelfT, other: timedelta) -> _SelfT: ...\n @overload\n def __rsub__(self, other: _DateT) -> _DateT: ...\n def __sub__(self: _SelfT, other: relativedelta) -> _SelfT: ...\n def __neg__(self: _SelfT) -> _SelfT: ...\n def __bool__(self) -> bool: ...\n def __nonzero__(self) -> bool: ...\n def __mul__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...\n def __rmul__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...\n def __eq__(self, other) -> bool: ...\n def __ne__(self, other: object) -> bool: ...\n def __div__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...\n def __truediv__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...\n def __repr__(self) -> str: ...\n def __abs__(self: _SelfT) -> _SelfT: ...\n def __hash__(self) -> int: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\dateutil\relativedelta.pyi | relativedelta.pyi | Other | 3,243 | 0.95 | 0.278351 | 0.032258 | awesome-app | 866 | 2023-11-13T10:26:43.554965 | BSD-3-Clause | false | 6707133d83cd96c9f6f331d5f5cd9c6e |
import datetime\nfrom typing import Any, Iterable, Optional, Union\n\nfrom ._common import weekday as weekdaybase\n\nYEARLY: int\nMONTHLY: int\nWEEKLY: int\nDAILY: int\nHOURLY: int\nMINUTELY: int\nSECONDLY: int\n\nclass weekday(weekdaybase): ...\n\nMO: weekday\nTU: weekday\nWE: weekday\nTH: weekday\nFR: weekday\nSA: weekday\nSU: weekday\n\nclass rrulebase:\n def __init__(self, cache: bool = ...) -> None: ...\n def __iter__(self): ...\n def __getitem__(self, item): ...\n def __contains__(self, item): ...\n def count(self): ...\n def before(self, dt, inc: bool = ...): ...\n def after(self, dt, inc: bool = ...): ...\n def xafter(self, dt, count: Optional[Any] = ..., inc: bool = ...): ...\n def between(self, after, before, inc: bool = ..., count: int = ...): ...\n\nclass rrule(rrulebase):\n def __init__(\n self,\n freq,\n dtstart: Optional[datetime.date] = ...,\n interval: int = ...,\n wkst: Optional[Union[weekday, int]] = ...,\n count: Optional[int] = ...,\n until: Optional[Union[datetime.date, int]] = ...,\n bysetpos: Optional[Union[int, Iterable[int]]] = ...,\n bymonth: Optional[Union[int, Iterable[int]]] = ...,\n bymonthday: Optional[Union[int, Iterable[int]]] = ...,\n byyearday: Optional[Union[int, Iterable[int]]] = ...,\n byeaster: Optional[Union[int, Iterable[int]]] = ...,\n byweekno: Optional[Union[int, Iterable[int]]] = ...,\n byweekday: Optional[Union[int, weekday, Iterable[int], Iterable[weekday]]] = ...,\n byhour: Optional[Union[int, Iterable[int]]] = ...,\n byminute: Optional[Union[int, Iterable[int]]] = ...,\n bysecond: Optional[Union[int, Iterable[int]]] = ...,\n cache: bool = ...,\n ) -> None: ...\n def replace(self, **kwargs): ...\n\nclass _iterinfo:\n rrule: Any = ...\n def __init__(self, rrule) -> None: ...\n yearlen: int = ...\n nextyearlen: int = ...\n yearordinal: int = ...\n yearweekday: int = ...\n mmask: Any = ...\n mdaymask: Any = ...\n nmdaymask: Any = ...\n wdaymask: Any = ...\n mrange: Any = ...\n wnomask: Any = ...\n nwdaymask: Any = ...\n eastermask: Any = ...\n lastyear: int = ...\n lastmonth: int = ...\n def rebuild(self, year, month): ...\n def ydayset(self, year, month, day): ...\n def mdayset(self, year, month, day): ...\n def wdayset(self, year, month, day): ...\n def ddayset(self, year, month, day): ...\n def htimeset(self, hour, minute, second): ...\n def mtimeset(self, hour, minute, second): ...\n def stimeset(self, hour, minute, second): ...\n\nclass rruleset(rrulebase):\n class _genitem:\n dt: Any = ...\n genlist: Any = ...\n gen: Any = ...\n def __init__(self, genlist, gen) -> None: ...\n def __next__(self): ...\n next: Any = ...\n def __lt__(self, other): ...\n def __gt__(self, other): ...\n def __eq__(self, other): ...\n def __ne__(self, other): ...\n def __init__(self, cache: bool = ...) -> None: ...\n def rrule(self, rrule): ...\n def rdate(self, rdate): ...\n def exrule(self, exrule): ...\n def exdate(self, exdate): ...\n\nclass _rrulestr:\n def __call__(self, s, **kwargs): ...\n\nrrulestr: _rrulestr\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\dateutil\rrule.pyi | rrule.pyi | Other | 3,219 | 0.85 | 0.371429 | 0 | vue-tools | 713 | 2023-08-23T14:15:45.404597 | GPL-3.0 | false | 22326f50089b9bb60dea5ac2b239eb90 |
from datetime import datetime, timedelta, tzinfo\nfrom typing import Optional\n\ndef default_tzinfo(dt: datetime, tzinfo: tzinfo) -> datetime: ...\ndef today(tzinfo: Optional[tzinfo] = ...) -> datetime: ...\ndef within_delta(dt1: datetime, dt2: datetime, delta: timedelta) -> bool: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\dateutil\utils.pyi | utils.pyi | Other | 281 | 0.85 | 0.5 | 0 | node-utils | 652 | 2024-03-04T08:02:58.168762 | MIT | false | 0ac03eaca3546db40ac5f08a2f8e5a54 |
from typing import Optional, TypeVar\n\n_T = TypeVar("_T")\n\nclass weekday(object):\n def __init__(self, weekday: int, n: Optional[int] = ...) -> None: ...\n def __call__(self: _T, n: int) -> _T: ...\n def __eq__(self, other) -> bool: ...\n def __repr__(self) -> str: ...\n def __hash__(self) -> int: ...\n weekday: int\n n: int\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\dateutil\_common.pyi | _common.pyi | Other | 340 | 0.85 | 0.5 | 0 | react-lib | 1 | 2024-07-29T04:12:28.883035 | Apache-2.0 | false | b3d8a3bf3207d63fd1538ed0e19fe913 |
import datetime\nfrom typing import IO, Any, List, Optional, Text, Tuple, Union\n\nfrom ..relativedelta import relativedelta\nfrom ._common import _tzinfo as _tzinfo, enfold as enfold, tzname_in_python2 as tzname_in_python2, tzrangebase as tzrangebase\n\n_FileObj = Union[str, Text, IO[str], IO[Text]]\n\nZERO: datetime.timedelta\nEPOCH: datetime.datetime\nEPOCHORDINAL: int\n\nclass tzutc(datetime.tzinfo):\n def utcoffset(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...\n def dst(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...\n def tzname(self, dt: Optional[datetime.datetime]) -> str: ...\n def is_ambiguous(self, dt: Optional[datetime.datetime]) -> bool: ...\n def __eq__(self, other): ...\n __hash__: Any\n def __ne__(self, other): ...\n __reduce__: Any\n\nclass tzoffset(datetime.tzinfo):\n def __init__(self, name, offset) -> None: ...\n def utcoffset(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...\n def dst(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...\n def is_ambiguous(self, dt: Optional[datetime.datetime]) -> bool: ...\n def tzname(self, dt: Optional[datetime.datetime]) -> str: ...\n def __eq__(self, other): ...\n __hash__: Any\n def __ne__(self, other): ...\n __reduce__: Any\n @classmethod\n def instance(cls, name, offset) -> tzoffset: ...\n\nclass tzlocal(_tzinfo):\n def __init__(self) -> None: ...\n def utcoffset(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...\n def dst(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...\n def tzname(self, dt: Optional[datetime.datetime]) -> str: ...\n def is_ambiguous(self, dt: Optional[datetime.datetime]) -> bool: ...\n def __eq__(self, other): ...\n __hash__: Any\n def __ne__(self, other): ...\n __reduce__: Any\n\nclass _ttinfo:\n def __init__(self) -> None: ...\n def __eq__(self, other): ...\n __hash__: Any\n def __ne__(self, other): ...\n\nclass tzfile(_tzinfo):\n def __init__(self, fileobj: _FileObj, filename: Optional[Text] = ...) -> None: ...\n def is_ambiguous(self, dt: Optional[datetime.datetime], idx: Optional[int] = ...) -> bool: ...\n def utcoffset(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...\n def dst(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...\n def tzname(self, dt: Optional[datetime.datetime]) -> str: ...\n def __eq__(self, other): ...\n __hash__: Any\n def __ne__(self, other): ...\n def __reduce__(self): ...\n def __reduce_ex__(self, protocol): ...\n\nclass tzrange(tzrangebase):\n hasdst: bool\n def __init__(\n self,\n stdabbr: Text,\n stdoffset: Union[int, datetime.timedelta, None] = ...,\n dstabbr: Optional[Text] = ...,\n dstoffset: Union[int, datetime.timedelta, None] = ...,\n start: Optional[relativedelta] = ...,\n end: Optional[relativedelta] = ...,\n ) -> None: ...\n def transitions(self, year: int) -> Tuple[datetime.datetime, datetime.datetime]: ...\n def __eq__(self, other): ...\n\nclass tzstr(tzrange):\n hasdst: bool\n def __init__(self, s: Union[bytes, _FileObj], posix_offset: bool = ...) -> None: ...\n @classmethod\n def instance(cls, name, offset) -> tzoffset: ...\n\nclass tzical:\n def __init__(self, fileobj: _FileObj) -> None: ...\n def keys(self): ...\n def get(self, tzid: Optional[Any] = ...): ...\n\nTZFILES: List[str]\nTZPATHS: List[str]\n\ndef datetime_exists(dt: datetime.datetime, tz: Optional[datetime.tzinfo] = ...) -> bool: ...\ndef datetime_ambiguous(dt: datetime.datetime, tz: Optional[datetime.tzinfo] = ...) -> bool: ...\ndef resolve_imaginary(dt: datetime.datetime) -> datetime.datetime: ...\n\nclass _GetTZ:\n def __call__(self, name: Optional[Text] = ...) -> Optional[datetime.tzinfo]: ...\n def nocache(self, name: Optional[Text]) -> Optional[datetime.tzinfo]: ...\n\ngettz: _GetTZ\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\dateutil\tz\tz.pyi | tz.pyi | Other | 3,970 | 0.85 | 0.544554 | 0 | react-lib | 76 | 2023-12-14T17:00:00.555241 | GPL-3.0 | false | 8b7a73529a7f58c7729c0546167409f0 |
from datetime import datetime, timedelta, tzinfo\nfrom typing import Any, Optional\n\ndef tzname_in_python2(namefunc): ...\ndef enfold(dt: datetime, fold: int = ...): ...\n\nclass _DatetimeWithFold(datetime):\n @property\n def fold(self): ...\n\nclass _tzinfo(tzinfo):\n def is_ambiguous(self, dt: datetime) -> bool: ...\n def fromutc(self, dt: datetime) -> datetime: ...\n\nclass tzrangebase(_tzinfo):\n def __init__(self) -> None: ...\n def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...\n def dst(self, dt: Optional[datetime]) -> Optional[timedelta]: ...\n def tzname(self, dt: Optional[datetime]) -> str: ...\n def fromutc(self, dt: datetime) -> datetime: ...\n def is_ambiguous(self, dt: datetime) -> bool: ...\n __hash__: Any\n def __ne__(self, other): ...\n __reduce__: Any\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\dateutil\tz\_common.pyi | _common.pyi | Other | 818 | 0.85 | 0.625 | 0 | python-kit | 25 | 2025-02-09T16:51:10.356286 | GPL-3.0 | false | 3c3fc09a1e1b54fa2ddb0b2844993f13 |
from .tz import (\n datetime_ambiguous as datetime_ambiguous,\n datetime_exists as datetime_exists,\n gettz as gettz,\n resolve_imaginary as resolve_imaginary,\n tzfile as tzfile,\n tzical as tzical,\n tzlocal as tzlocal,\n tzoffset as tzoffset,\n tzrange as tzrange,\n tzstr as tzstr,\n tzutc as tzutc,\n)\n\nUTC: tzutc\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\dateutil\tz\__init__.pyi | __init__.pyi | Other | 340 | 0.85 | 0 | 0 | vue-tools | 436 | 2025-05-14T21:59:48.826438 | MIT | false | 32f747b7e6ae75439be5c5e4d3aad39c |
from typing import Any, Callable, Optional, Type, TypeVar, overload\n\n_F = TypeVar("_F", bound=Callable[..., Any])\n\nclass ClassicAdapter:\n reason: str\n version: str\n action: Optional[str]\n category: Type[DeprecationWarning]\n def __init__(\n self, reason: str = ..., version: str = ..., action: Optional[str] = ..., category: Type[DeprecationWarning] = ...\n ) -> None: ...\n def get_deprecated_msg(self, wrapped: Callable[..., Any], instance: object) -> str: ...\n def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...\n\n@overload\ndef deprecated(__wrapped: _F) -> _F: ...\n@overload\ndef deprecated(\n reason: str = ..., *, version: str = ..., action: Optional[str] = ..., category: Optional[Type[DeprecationWarning]] = ...\n) -> Callable[[_F], _F]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\deprecated\classic.pyi | classic.pyi | Other | 783 | 0.85 | 0.285714 | 0 | awesome-app | 738 | 2024-08-19T05:53:52.004964 | GPL-3.0 | false | 05b7d4e1af052aa80d840317331dbdbe |
from typing import Any, Callable, Optional, Type, TypeVar, overload\nfrom typing_extensions import Literal\n\nfrom .classic import ClassicAdapter\n\n_F = TypeVar("_F", bound=Callable[..., Any])\n\nclass SphinxAdapter(ClassicAdapter):\n directive: Literal["versionadded", "versionchanged", "deprecated"]\n reason: str\n version: str\n action: Optional[str]\n category: Type[DeprecationWarning]\n def __init__(\n self,\n directive: Literal["versionadded", "versionchanged", "deprecated"],\n reason: str = ...,\n version: str = ...,\n action: Optional[str] = ...,\n category: Type[DeprecationWarning] = ...,\n ) -> None: ...\n def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...\n\ndef versionadded(reason: str = ..., version: str = ...) -> Callable[[_F], _F]: ...\ndef versionchanged(reason: str = ..., version: str = ...) -> Callable[[_F], _F]: ...\n@overload\ndef deprecated(__wrapped: _F) -> _F: ...\n@overload\ndef deprecated(\n reason: str = ..., *, version: str = ..., action: Optional[str] = ..., category: Optional[Type[DeprecationWarning]] = ...\n) -> Callable[[_F], _F]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\deprecated\sphinx.pyi | sphinx.pyi | Other | 1,129 | 0.85 | 0.225806 | 0 | python-kit | 324 | 2024-01-17T02:19:42.130872 | GPL-3.0 | false | 14ffceb138198fac42670956ceeaf2d5 |
from .classic import deprecated as deprecated\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\deprecated\__init__.pyi | __init__.pyi | Other | 46 | 0.65 | 0 | 0 | awesome-app | 109 | 2024-08-17T22:00:45.477956 | GPL-3.0 | false | d2f6667b45726d8dce96e8284ab966e8 |
from typing import Dict, List, Optional, Pattern, Text, Tuple, Union\n\n_DEFAULT_DELIMITER: str\n\ndef emojize(string: str, use_aliases: bool = ..., delimiters: Tuple[str, str] = ...) -> str: ...\ndef demojize(string: str, delimiters: Tuple[str, str] = ...) -> str: ...\ndef get_emoji_regexp() -> Pattern[Text]: ...\ndef emoji_lis(string: str) -> List[Dict[str, Union[int, str]]]: ...\ndef emoji_count(string: str) -> int: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\emoji\core.pyi | core.pyi | Other | 419 | 0.85 | 0.555556 | 0 | node-utils | 580 | 2024-07-27T18:28:36.660821 | GPL-3.0 | false | b6aaedb38890976a681958055dbeca39 |
from typing import Dict, Text\n\nEMOJI_ALIAS_UNICODE: Dict[Text, Text]\nEMOJI_UNICODE: Dict[Text, Text]\nUNICODE_EMOJI: Dict[Text, Text]\nUNICODE_EMOJI_ALIAS: Dict[Text, Text]\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\emoji\unicode_codes.pyi | unicode_codes.pyi | Other | 171 | 0.85 | 0 | 0 | python-kit | 461 | 2023-10-16T08:09:03.285578 | Apache-2.0 | false | 20f5828a06741affd98d58e312106531 |
from .core import (\n demojize as demojize,\n emoji_count as emoji_count,\n emoji_lis as emoji_lis,\n emojize as emojize,\n get_emoji_regexp as get_emoji_regexp,\n)\nfrom .unicode_codes import (\n EMOJI_ALIAS_UNICODE as EMOJI_ALIAS_UNICODE,\n EMOJI_UNICODE as EMOJI_UNICODE,\n UNICODE_EMOJI as UNICODE_EMOJI,\n UNICODE_EMOJI_ALIAS as UNICODE_EMOJI_ALIAS,\n)\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\emoji\__init__.pyi | __init__.pyi | Other | 373 | 0.85 | 0 | 0 | vue-tools | 828 | 2025-02-07T03:35:48.563687 | MIT | false | 19be4b3eaa25bca4185a36ca4b872144 |
from datetime import timedelta\nfrom types import TracebackType\nfrom typing import (\n Any,\n ByteString,\n Callable,\n ContextManager,\n Dict,\n Iterable,\n List,\n NoReturn,\n Optional,\n Text,\n Tuple,\n Type,\n TypeVar,\n Union,\n)\n\nfrom .blueprints import Blueprint\nfrom .config import Config\nfrom .ctx import AppContext, RequestContext\nfrom .helpers import _PackageBoundObject\nfrom .testing import FlaskClient\nfrom .wrappers import Response\n\ndef setupmethod(f: Any): ...\n\n_T = TypeVar("_T")\n\n_ExcInfo = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]\n_StartResponse = Callable[[str, List[Tuple[str, str]], Optional[_ExcInfo]], Callable[[bytes], Any]]\n_WSGICallable = Callable[[Dict[Text, Any], _StartResponse], Iterable[bytes]]\n\n_Status = Union[str, int]\n_Headers = Union[Dict[Any, Any], List[Tuple[Any, Any]]]\n_Body = Union[Text, ByteString, Dict[Text, Any], Response, _WSGICallable]\n_ViewFuncReturnType = Union[_Body, Tuple[_Body, _Status, _Headers], Tuple[_Body, _Status], Tuple[_Body, _Headers]]\n\n_ViewFunc = Union[Callable[..., NoReturn], Callable[..., _ViewFuncReturnType]]\n_VT = TypeVar("_VT", bound=_ViewFunc)\n\nclass Flask(_PackageBoundObject):\n request_class: type = ...\n response_class: type = ...\n jinja_environment: type = ...\n app_ctx_globals_class: type = ...\n config_class: Type[Config] = ...\n testing: Any = ...\n secret_key: Union[Text, bytes, None] = ...\n session_cookie_name: Any = ...\n permanent_session_lifetime: timedelta = ...\n send_file_max_age_default: timedelta = ...\n use_x_sendfile: Any = ...\n json_encoder: Any = ...\n json_decoder: Any = ...\n jinja_options: Any = ...\n default_config: Any = ...\n url_rule_class: type = ...\n test_client_class: type = ...\n test_cli_runner_class: type = ...\n session_interface: Any = ...\n import_name: str = ...\n template_folder: str = ...\n root_path: Union[str, Text] = ...\n static_url_path: Any = ...\n static_folder: Optional[str] = ...\n instance_path: Union[str, Text] = ...\n config: Config = ...\n view_functions: Any = ...\n error_handler_spec: Any = ...\n url_build_error_handlers: Any = ...\n before_request_funcs: Dict[Optional[str], List[Callable[[], Any]]] = ...\n before_first_request_funcs: List[Callable[[], None]] = ...\n after_request_funcs: Dict[Optional[str], List[Callable[[Response], Response]]] = ...\n teardown_request_funcs: Dict[Optional[str], List[Callable[[Optional[Exception]], Any]]] = ...\n teardown_appcontext_funcs: List[Callable[[Optional[Exception]], Any]] = ...\n url_value_preprocessors: Any = ...\n url_default_functions: Any = ...\n template_context_processors: Any = ...\n shell_context_processors: Any = ...\n blueprints: Any = ...\n extensions: Any = ...\n url_map: Any = ...\n subdomain_matching: Any = ...\n cli: Any = ...\n def __init__(\n self,\n import_name: str,\n static_url_path: Optional[str] = ...,\n static_folder: Optional[str] = ...,\n static_host: Optional[str] = ...,\n host_matching: bool = ...,\n subdomain_matching: bool = ...,\n template_folder: str = ...,\n instance_path: Optional[str] = ...,\n instance_relative_config: bool = ...,\n root_path: Optional[str] = ...,\n ) -> None: ...\n @property\n def name(self) -> str: ...\n @property\n def propagate_exceptions(self) -> bool: ...\n @property\n def preserve_context_on_exception(self): ...\n @property\n def logger(self): ...\n @property\n def jinja_env(self): ...\n @property\n def got_first_request(self) -> bool: ...\n def make_config(self, instance_relative: bool = ...): ...\n def auto_find_instance_path(self): ...\n def open_instance_resource(self, resource: Union[str, Text], mode: str = ...): ...\n templates_auto_reload: Any = ...\n def create_jinja_environment(self): ...\n def create_global_jinja_loader(self): ...\n def select_jinja_autoescape(self, filename: Any): ...\n def update_template_context(self, context: Any) -> None: ...\n def make_shell_context(self): ...\n env: Optional[str] = ...\n debug: bool = ...\n def run(\n self,\n host: Optional[str] = ...,\n port: Optional[Union[int, str]] = ...,\n debug: Optional[bool] = ...,\n load_dotenv: bool = ...,\n **options: Any,\n ) -> None: ...\n def test_client(self, use_cookies: bool = ..., **kwargs: Any) -> FlaskClient[Response]: ...\n def test_cli_runner(self, **kwargs: Any): ...\n def open_session(self, request: Any): ...\n def save_session(self, session: Any, response: Any): ...\n def make_null_session(self): ...\n def register_blueprint(self, blueprint: Blueprint, **options: Any) -> None: ...\n def iter_blueprints(self): ...\n def add_url_rule(\n self,\n rule: str,\n endpoint: Optional[str] = ...,\n view_func: _ViewFunc = ...,\n provide_automatic_options: Optional[bool] = ...,\n **options: Any,\n ) -> None: ...\n def route(self, rule: str, **options: Any) -> Callable[[_VT], _VT]: ...\n def endpoint(self, endpoint: str) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...\n def errorhandler(\n self, code_or_exception: Union[int, Type[Exception]]\n ) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...\n def register_error_handler(self, code_or_exception: Union[int, Type[Exception]], f: Callable[..., Any]) -> None: ...\n def template_filter(self, name: Optional[Any] = ...): ...\n def add_template_filter(self, f: Any, name: Optional[Any] = ...) -> None: ...\n def template_test(self, name: Optional[Any] = ...): ...\n def add_template_test(self, f: Any, name: Optional[Any] = ...) -> None: ...\n def template_global(self, name: Optional[Any] = ...): ...\n def add_template_global(self, f: Any, name: Optional[Any] = ...) -> None: ...\n def before_request(self, f: Callable[[], _T]) -> Callable[[], _T]: ...\n def before_first_request(self, f: Callable[[], _T]) -> Callable[[], _T]: ...\n def after_request(self, f: Callable[[Response], Response]) -> Callable[[Response], Response]: ...\n def teardown_request(self, f: Callable[[Optional[Exception]], _T]) -> Callable[[Optional[Exception]], _T]: ...\n def teardown_appcontext(self, f: Callable[[Optional[Exception]], _T]) -> Callable[[Optional[Exception]], _T]: ...\n def context_processor(self, f: Any): ...\n def shell_context_processor(self, f: Any): ...\n def url_value_preprocessor(self, f: Any): ...\n def url_defaults(self, f: Any): ...\n def handle_http_exception(self, e: Any): ...\n def trap_http_exception(self, e: Any): ...\n def handle_user_exception(self, e: Any): ...\n def handle_exception(self, e: Any): ...\n def log_exception(self, exc_info: Any) -> None: ...\n def raise_routing_exception(self, request: Any) -> None: ...\n def dispatch_request(self): ...\n def full_dispatch_request(self): ...\n def finalize_request(self, rv: Any, from_error_handler: bool = ...): ...\n def try_trigger_before_first_request_functions(self): ...\n def make_default_options_response(self): ...\n def should_ignore_error(self, error: Any): ...\n def make_response(self, rv: Any): ...\n def create_url_adapter(self, request: Any): ...\n def inject_url_defaults(self, endpoint: Any, values: Any) -> None: ...\n def handle_url_build_error(self, error: Any, endpoint: Any, values: Any): ...\n def preprocess_request(self): ...\n def process_response(self, response: Any): ...\n def do_teardown_request(self, exc: Any = ...) -> None: ...\n def do_teardown_appcontext(self, exc: Any = ...) -> None: ...\n def app_context(self) -> AppContext: ...\n def request_context(self, environ: Any): ...\n def test_request_context(self, *args: Any, **kwargs: Any) -> ContextManager[RequestContext]: ...\n def wsgi_app(self, environ: Any, start_response: Any): ...\n def __call__(self, environ: Any, start_response: Any): ...\n # These are not preset at runtime but we add them since monkeypatching this\n # class is quite common.\n def __setattr__(self, name: str, value: Any): ...\n def __getattr__(self, name: str): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\app.pyi | app.pyi | Other | 8,224 | 0.95 | 0.374359 | 0.021277 | react-lib | 380 | 2024-07-20T22:28:32.163512 | BSD-3-Clause | false | fc4dd8ddd326281b50b644f12a1f87a1 |
from typing import Any, Callable, Optional, Type, TypeVar, Union\n\nfrom .app import _ViewFunc\nfrom .helpers import _PackageBoundObject\n\n_T = TypeVar("_T")\n_VT = TypeVar("_VT", bound=_ViewFunc)\n\nclass _Sentinel(object): ...\n\nclass BlueprintSetupState:\n app: Any = ...\n blueprint: Any = ...\n options: Any = ...\n first_registration: Any = ...\n subdomain: Any = ...\n url_prefix: Any = ...\n url_defaults: Any = ...\n def __init__(self, blueprint: Any, app: Any, options: Any, first_registration: Any) -> None: ...\n def add_url_rule(self, rule: str, endpoint: Optional[str] = ..., view_func: _ViewFunc = ..., **options: Any) -> None: ...\n\nclass Blueprint(_PackageBoundObject):\n warn_on_modifications: bool = ...\n json_encoder: Any = ...\n json_decoder: Any = ...\n import_name: str = ...\n template_folder: Optional[str] = ...\n root_path: str = ...\n name: str = ...\n url_prefix: Optional[str] = ...\n subdomain: Optional[str] = ...\n static_folder: Optional[str] = ...\n static_url_path: Optional[str] = ...\n deferred_functions: Any = ...\n url_values_defaults: Any = ...\n cli_group: Union[Optional[str], _Sentinel] = ...\n def __init__(\n self,\n name: str,\n import_name: str,\n static_folder: Optional[str] = ...,\n static_url_path: Optional[str] = ...,\n template_folder: Optional[str] = ...,\n url_prefix: Optional[str] = ...,\n subdomain: Optional[str] = ...,\n url_defaults: Optional[Any] = ...,\n root_path: Optional[str] = ...,\n cli_group: Union[Optional[str], _Sentinel] = ...,\n ) -> None: ...\n def record(self, func: Any) -> None: ...\n def record_once(self, func: Any): ...\n def make_setup_state(self, app: Any, options: Any, first_registration: bool = ...): ...\n def register(self, app: Any, options: Any, first_registration: bool = ...) -> None: ...\n def route(self, rule: str, **options: Any) -> Callable[[_VT], _VT]: ...\n def add_url_rule(self, rule: str, endpoint: Optional[str] = ..., view_func: _ViewFunc = ..., **options: Any) -> None: ...\n def endpoint(self, endpoint: str) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...\n def app_template_filter(self, name: Optional[Any] = ...): ...\n def add_app_template_filter(self, f: Any, name: Optional[Any] = ...) -> None: ...\n def app_template_test(self, name: Optional[Any] = ...): ...\n def add_app_template_test(self, f: Any, name: Optional[Any] = ...) -> None: ...\n def app_template_global(self, name: Optional[Any] = ...): ...\n def add_app_template_global(self, f: Any, name: Optional[Any] = ...) -> None: ...\n def before_request(self, f: Any): ...\n def before_app_request(self, f: Any): ...\n def before_app_first_request(self, f: Any): ...\n def after_request(self, f: Any): ...\n def after_app_request(self, f: Any): ...\n def teardown_request(self, f: Any): ...\n def teardown_app_request(self, f: Any): ...\n def context_processor(self, f: Any): ...\n def app_context_processor(self, f: Any): ...\n def app_errorhandler(self, code: Any): ...\n def url_value_preprocessor(self, f: Any): ...\n def url_defaults(self, f: Any): ...\n def app_url_value_preprocessor(self, f: Any): ...\n def app_url_defaults(self, f: Any): ...\n def errorhandler(\n self, code_or_exception: Union[int, Type[Exception]]\n ) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...\n def register_error_handler(self, code_or_exception: Union[int, Type[Exception]], f: Callable[..., Any]) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\blueprints.pyi | blueprints.pyi | Other | 3,564 | 0.85 | 0.4375 | 0 | awesome-app | 250 | 2025-01-09T17:31:23.080188 | BSD-3-Clause | false | 86f9ef83fb5978ab9cb2434f523c7ac8 |
from typing import Any, Optional\n\nimport click\n\nclass NoAppException(click.UsageError): ...\n\ndef find_best_app(script_info: Any, module: Any): ...\ndef call_factory(script_info: Any, app_factory: Any, arguments: Any = ...): ...\ndef find_app_by_string(script_info: Any, module: Any, app_name: Any): ...\ndef prepare_import(path: Any): ...\ndef locate_app(script_info: Any, module_name: Any, app_name: Any, raise_if_not_found: bool = ...): ...\ndef get_version(ctx: Any, param: Any, value: Any): ...\n\nversion_option: Any\n\nclass DispatchingApp:\n loader: Any = ...\n def __init__(self, loader: Any, use_eager_loading: bool = ...) -> None: ...\n def __call__(self, environ: Any, start_response: Any): ...\n\nclass ScriptInfo:\n app_import_path: Any = ...\n create_app: Any = ...\n data: Any = ...\n def __init__(self, app_import_path: Optional[Any] = ..., create_app: Optional[Any] = ...) -> None: ...\n def load_app(self): ...\n\npass_script_info: Any\n\ndef with_appcontext(f: Any): ...\n\nclass AppGroup(click.Group):\n def command(self, *args: Any, **kwargs: Any): ...\n def group(self, *args: Any, **kwargs: Any): ...\n\nclass FlaskGroup(AppGroup):\n create_app: Any = ...\n load_dotenv: Any = ...\n def __init__(\n self,\n add_default_commands: bool = ...,\n create_app: Optional[Any] = ...,\n add_version_option: bool = ...,\n load_dotenv: bool = ...,\n **extra: Any,\n ) -> None: ...\n def get_command(self, ctx: Any, name: Any): ...\n def list_commands(self, ctx: Any): ...\n def main(self, *args: Any, **kwargs: Any): ...\n\ndef load_dotenv(path: Optional[Any] = ...): ...\ndef show_server_banner(env: Any, debug: Any, app_import_path: Any, eager_loading: Any): ...\n\nclass CertParamType(click.ParamType):\n name: str = ...\n path_type: Any = ...\n def __init__(self) -> None: ...\n def convert(self, value: Any, param: Any, ctx: Any): ...\n\ndef run_command(\n info: Any, host: Any, port: Any, reload: Any, debugger: Any, eager_loading: Any, with_threads: Any, cert: Any\n) -> None: ...\ndef shell_command() -> None: ...\ndef routes_command(sort: Any, all_methods: Any): ...\n\ncli: Any\n\ndef main(as_module: bool = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\cli.pyi | cli.pyi | Other | 2,195 | 0.85 | 0.455882 | 0.018868 | react-lib | 949 | 2024-10-17T00:17:03.693639 | GPL-3.0 | false | 52a98a5bc081889e36ec437dc6529e2f |
from typing import Any, Dict, Optional\n\nclass ConfigAttribute:\n __name__: Any = ...\n get_converter: Any = ...\n def __init__(self, name: Any, get_converter: Optional[Any] = ...) -> None: ...\n def __get__(self, obj: Any, type: Optional[Any] = ...): ...\n def __set__(self, obj: Any, value: Any) -> None: ...\n\nclass Config(Dict[str, Any]):\n root_path: Any = ...\n def __init__(self, root_path: Any, defaults: Optional[Any] = ...) -> None: ...\n def from_envvar(self, variable_name: Any, silent: bool = ...): ...\n def from_pyfile(self, filename: Any, silent: bool = ...): ...\n def from_object(self, obj: Any) -> None: ...\n def from_json(self, filename: Any, silent: bool = ...): ...\n def from_mapping(self, *mapping: Any, **kwargs: Any): ...\n def get_namespace(self, namespace: Any, lowercase: bool = ..., trim_namespace: bool = ...): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\config.pyi | config.pyi | Other | 871 | 0.85 | 0.666667 | 0 | node-utils | 862 | 2025-04-04T15:09:28.143133 | BSD-3-Clause | false | cb114baf6175e87484db5828be62baa6 |
from typing import Any, Optional\n\nclass _AppCtxGlobals:\n def get(self, name: Any, default: Optional[Any] = ...): ...\n def pop(self, name: Any, default: Any = ...): ...\n def setdefault(self, name: Any, default: Optional[Any] = ...): ...\n def __contains__(self, item: Any): ...\n def __iter__(self): ...\n\ndef after_this_request(f: Any): ...\ndef copy_current_request_context(f: Any): ...\ndef has_request_context(): ...\ndef has_app_context(): ...\n\nclass AppContext:\n app: Any = ...\n url_adapter: Any = ...\n g: Any = ...\n def __init__(self, app: Any) -> None: ...\n def push(self) -> None: ...\n def pop(self, exc: Any = ...) -> None: ...\n def __enter__(self): ...\n def __exit__(self, exc_type: Any, exc_value: Any, tb: Any) -> None: ...\n\nclass RequestContext:\n app: Any = ...\n request: Any = ...\n url_adapter: Any = ...\n flashes: Any = ...\n session: Any = ...\n preserved: bool = ...\n def __init__(self, app: Any, environ: Any, request: Optional[Any] = ...) -> None: ...\n g: Any = ...\n def copy(self): ...\n def match_request(self) -> None: ...\n def push(self) -> None: ...\n def pop(self, exc: Any = ...) -> None: ...\n def auto_pop(self, exc: Any) -> None: ...\n def __enter__(self): ...\n def __exit__(self, exc_type: Any, exc_value: Any, tb: Any) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\ctx.pyi | ctx.pyi | Other | 1,335 | 0.85 | 0.625 | 0 | python-kit | 502 | 2023-08-17T04:10:19.951435 | Apache-2.0 | false | 428255a43f5ed3293389db6c2eb0f7ae |
from typing import Any\n\nclass UnexpectedUnicodeError(AssertionError, UnicodeError): ...\n\nclass DebugFilesKeyError(KeyError, AssertionError):\n msg: Any = ...\n def __init__(self, request: Any, key: Any) -> None: ...\n\nclass FormDataRoutingRedirect(AssertionError):\n def __init__(self, request: Any) -> None: ...\n\ndef attach_enctype_error_multidict(request: Any): ...\ndef explain_template_loading_attempts(app: Any, template: Any, attempts: Any) -> None: ...\ndef explain_ignored_app_run() -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\debughelpers.pyi | debughelpers.pyi | Other | 507 | 0.85 | 0.571429 | 0 | react-lib | 101 | 2023-12-28T15:00:27.419977 | GPL-3.0 | false | 5470e2f5b18f02d22746bb1c6b550e7d |
from typing import Any\n\nfrom werkzeug.local import LocalStack\n\nfrom .app import Flask\nfrom .wrappers import Request\n\nclass _FlaskLocalProxy(Flask):\n def _get_current_object(self) -> Flask: ...\n\n_request_ctx_stack: LocalStack\n_app_ctx_stack: LocalStack\ncurrent_app: _FlaskLocalProxy\nrequest: Request\nsession: Any\ng: Any\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\globals.pyi | globals.pyi | Other | 322 | 0.85 | 0.125 | 0 | react-lib | 160 | 2025-03-22T10:21:06.460532 | MIT | false | 39935fc640929d53e61fbec87e4d74c6 |
from typing import Any, Optional\n\nfrom .cli import AppGroup\nfrom .wrappers import Response\n\ndef get_env(): ...\ndef get_debug_flag(): ...\ndef get_load_dotenv(default: bool = ...): ...\ndef stream_with_context(generator_or_function: Any): ...\ndef make_response(*args: Any) -> Response: ...\ndef url_for(endpoint: str, **values: Any) -> str: ...\ndef get_template_attribute(template_name: Any, attribute: Any): ...\ndef flash(message: Any, category: str = ...) -> None: ...\ndef get_flashed_messages(with_categories: bool = ..., category_filter: Any = ...): ...\ndef send_file(\n filename_or_fp: Any,\n mimetype: Optional[Any] = ...,\n as_attachment: bool = ...,\n attachment_filename: Optional[Any] = ...,\n add_etags: bool = ...,\n cache_timeout: Optional[Any] = ...,\n conditional: bool = ...,\n last_modified: Optional[Any] = ...,\n) -> Response: ...\ndef safe_join(directory: Any, *pathnames: Any): ...\ndef send_from_directory(directory: Any, filename: Any, **options: Any) -> Response: ...\ndef get_root_path(import_name: Any): ...\ndef find_package(import_name: Any): ...\n\nclass locked_cached_property:\n __name__: Any = ...\n __module__: Any = ...\n __doc__: Any = ...\n func: Any = ...\n lock: Any = ...\n def __init__(self, func: Any, name: Optional[Any] = ..., doc: Optional[Any] = ...) -> None: ...\n def __get__(self, obj: Any, type: Optional[Any] = ...): ...\n\nclass _PackageBoundObject:\n import_name: Any = ...\n template_folder: Any = ...\n root_path: Any = ...\n cli: AppGroup = ...\n def __init__(self, import_name: Any, template_folder: Optional[Any] = ..., root_path: Optional[Any] = ...) -> None: ...\n static_folder: Any = ...\n static_url_path: Any = ...\n @property\n def has_static_folder(self): ...\n def jinja_loader(self): ...\n def get_send_file_max_age(self, filename: Any): ...\n def send_static_file(self, filename: Any) -> Response: ...\n def open_resource(self, resource: Any, mode: str = ...): ...\n\ndef total_seconds(td: Any): ...\ndef is_ip(value: Any): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\helpers.pyi | helpers.pyi | Other | 2,036 | 0.85 | 0.472727 | 0 | awesome-app | 904 | 2024-04-12T18:02:30.122489 | GPL-3.0 | false | ca3def37131061689e46b3b2b183e75b |
from typing import Any\n\ndef wsgi_errors_stream(): ...\ndef has_level_handler(logger: Any): ...\n\ndefault_handler: Any\n\ndef create_logger(app: Any): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\logging.pyi | logging.pyi | Other | 150 | 0.85 | 0.375 | 0 | node-utils | 494 | 2024-07-21T00:15:39.663000 | Apache-2.0 | false | 144963e3235fc27a623bc0f915479d76 |
from abc import ABCMeta\nfrom typing import Any, MutableMapping, Optional\n\nfrom werkzeug.datastructures import CallbackDict\n\nclass SessionMixin(MutableMapping[str, Any], metaclass=ABCMeta):\n @property\n def permanent(self): ...\n @permanent.setter\n def permanent(self, value: Any) -> None: ...\n new: bool = ...\n modified: bool = ...\n accessed: bool = ...\n\nclass SecureCookieSession(CallbackDict[str, Any], SessionMixin):\n modified: bool = ...\n accessed: bool = ...\n def __init__(self, initial: Optional[Any] = ...) -> None: ...\n def __getitem__(self, key: Any): ...\n def get(self, key: Any, default: Optional[Any] = ...): ...\n def setdefault(self, key: Any, default: Optional[Any] = ...): ...\n\nclass NullSession(SecureCookieSession):\n __setitem__: Any = ...\n __delitem__: Any = ...\n clear: Any = ...\n pop: Any = ...\n popitem: Any = ...\n update: Any = ...\n setdefault: Any = ...\n\nclass SessionInterface:\n null_session_class: Any = ...\n pickle_based: bool = ...\n def make_null_session(self, app: Any): ...\n def is_null_session(self, obj: Any): ...\n def get_cookie_domain(self, app: Any): ...\n def get_cookie_path(self, app: Any): ...\n def get_cookie_httponly(self, app: Any): ...\n def get_cookie_secure(self, app: Any): ...\n def get_cookie_samesite(self, app: Any): ...\n def get_expiration_time(self, app: Any, session: Any): ...\n def should_set_cookie(self, app: Any, session: Any): ...\n def open_session(self, app: Any, request: Any) -> None: ...\n def save_session(self, app: Any, session: Any, response: Any) -> None: ...\n\nsession_json_serializer: Any\n\nclass SecureCookieSessionInterface(SessionInterface):\n salt: str = ...\n digest_method: Any = ...\n key_derivation: str = ...\n serializer: Any = ...\n session_class: Any = ...\n def get_signing_serializer(self, app: Any): ...\n def open_session(self, app: Any, request: Any): ...\n def save_session(self, app: Any, session: Any, response: Any): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\sessions.pyi | sessions.pyi | Other | 2,017 | 0.85 | 0.438596 | 0 | node-utils | 581 | 2025-04-22T15:39:53.738149 | MIT | false | 9614213c43922118559b018986bde69d |
from typing import Any, Optional\n\nsignals_available: bool\n\nclass Namespace:\n def signal(self, name: Any, doc: Optional[Any] = ...): ...\n\nclass _FakeSignal:\n name: Any = ...\n __doc__: Any = ...\n def __init__(self, name: Any, doc: Optional[Any] = ...) -> None: ...\n send: Any = ...\n connect: Any = ...\n disconnect: Any = ...\n has_receivers_for: Any = ...\n receivers_for: Any = ...\n temporarily_connected_to: Any = ...\n connected_to: Any = ...\n\ntemplate_rendered: Any\nbefore_render_template: Any\nrequest_started: Any\nrequest_finished: Any\nrequest_tearing_down: Any\ngot_request_exception: Any\nappcontext_tearing_down: Any\nappcontext_pushed: Any\nappcontext_popped: Any\nmessage_flashed: Any\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\signals.pyi | signals.pyi | Other | 718 | 0.85 | 0.137931 | 0 | node-utils | 211 | 2023-07-24T05:27:37.309817 | GPL-3.0 | false | 57a602160e36c2ae06f6d70507f64d22 |
from typing import Any, Iterable, Text, Union\n\nfrom jinja2 import BaseLoader, Environment as BaseEnvironment\n\nclass Environment(BaseEnvironment):\n app: Any = ...\n def __init__(self, app: Any, **options: Any) -> None: ...\n\nclass DispatchingJinjaLoader(BaseLoader):\n app: Any = ...\n def __init__(self, app: Any) -> None: ...\n def get_source(self, environment: Any, template: Any): ...\n def list_templates(self): ...\n\ndef render_template(template_name_or_list: Union[Text, Iterable[Text]], **context: Any) -> Text: ...\ndef render_template_string(source: Text, **context: Any) -> Text: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\templating.pyi | templating.pyi | Other | 604 | 0.85 | 0.5 | 0 | react-lib | 195 | 2024-10-16T03:14:54.777270 | Apache-2.0 | false | 0f3d544abffe2cf523f45463f754b540 |
from typing import IO, Any, Iterable, Mapping, Optional, Text, TypeVar, Union\n\nfrom click import BaseCommand\nfrom click.testing import CliRunner, Result\nfrom werkzeug.test import Client, EnvironBuilder as WerkzeugEnvironBuilder\n\n# Response type for the client below.\n# By default _R is Tuple[Iterable[Any], Union[Text, int], werkzeug.datastructures.Headers], however\n# most commonly it is wrapped in a Reponse object.\n_R = TypeVar("_R")\n\nclass FlaskClient(Client[_R]):\n preserve_context: bool = ...\n environ_base: Any = ...\n def __init__(self, *args: Any, **kwargs: Any) -> None: ...\n def session_transaction(self, *args: Any, **kwargs: Any) -> None: ...\n def __enter__(self): ...\n def __exit__(self, exc_type: Any, exc_value: Any, tb: Any) -> None: ...\n\nclass FlaskCliRunner(CliRunner):\n app: Any = ...\n def __init__(self, app: Any, **kwargs: Any) -> None: ...\n def invoke(\n self,\n cli: Optional[BaseCommand] = ...,\n args: Optional[Union[str, Iterable[str]]] = ...,\n input: Optional[Union[bytes, IO[Any], Text]] = ...,\n env: Optional[Mapping[str, str]] = ...,\n catch_exceptions: bool = ...,\n color: bool = ...,\n **extra: Any,\n ) -> Result: ...\n\nclass EnvironBuilder(WerkzeugEnvironBuilder):\n app: Any\n def __init__(\n self,\n app: Any,\n path: str = ...,\n base_url: Optional[Any] = ...,\n subdomain: Optional[Any] = ...,\n url_scheme: Optional[Any] = ...,\n *args: Any,\n **kwargs: Any,\n ) -> None: ...\n def json_dumps(self, obj: Any, **kwargs: Any) -> str: ...\n\ndef make_test_environ_builder(\n app: Any,\n path: str = ...,\n base_url: Optional[Any] = ...,\n subdomain: Optional[Any] = ...,\n url_scheme: Optional[Any] = ...,\n *args: Any,\n **kwargs: Any,\n): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\testing.pyi | testing.pyi | Other | 1,827 | 0.95 | 0.232143 | 0.16 | awesome-app | 432 | 2025-06-21T02:17:12.112338 | GPL-3.0 | true | 6ffa1f7418651ee87cc68be197e19be8 |
from typing import Any\n\nhttp_method_funcs: Any\n\nclass View:\n methods: Any = ...\n provide_automatic_options: Any = ...\n decorators: Any = ...\n def dispatch_request(self, *args: Any, **kwargs: Any) -> Any: ...\n @classmethod\n def as_view(cls, name: Any, *class_args: Any, **class_kwargs: Any): ...\n\nclass MethodViewType(type):\n def __init__(self, name: Any, bases: Any, d: Any) -> None: ...\n\nclass MethodView(View, metaclass=MethodViewType):\n def dispatch_request(self, *args: Any, **kwargs: Any) -> Any: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\views.pyi | views.pyi | Other | 530 | 0.85 | 0.411765 | 0 | node-utils | 217 | 2024-11-29T01:17:29.171469 | MIT | false | edec9683082392ca7840c7224cb6b0b9 |
from typing import Any, Dict, Optional\n\nfrom werkzeug.exceptions import HTTPException\nfrom werkzeug.routing import Rule\nfrom werkzeug.wrappers import Request as RequestBase, Response as ResponseBase\n\nclass JSONMixin:\n @property\n def is_json(self) -> bool: ...\n @property\n def json(self): ...\n def get_json(self, force: bool = ..., silent: bool = ..., cache: bool = ...): ...\n def on_json_loading_failed(self, e: Any) -> None: ...\n\nclass Request(RequestBase, JSONMixin):\n url_rule: Optional[Rule] = ...\n view_args: Dict[str, Any] = ...\n routing_exception: Optional[HTTPException] = ...\n # Request is making the max_content_length readonly, where it was not the\n # case in its supertype.\n # We would require something like https://github.com/python/typing/issues/241\n @property\n def max_content_length(self) -> Optional[int]: ... # type: ignore\n @property\n def endpoint(self) -> Optional[str]: ...\n @property\n def blueprint(self) -> Optional[str]: ...\n\nclass Response(ResponseBase, JSONMixin):\n default_mimetype: Optional[str] = ...\n @property\n def max_cookie_size(self) -> int: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\wrappers.pyi | wrappers.pyi | Other | 1,145 | 0.95 | 0.34375 | 0.107143 | node-utils | 78 | 2024-01-03T16:00:29.665070 | Apache-2.0 | false | 483c5b67064aeb1ba7ecf5c4b21913c3 |
from jinja2 import Markup as Markup, escape as escape\nfrom werkzeug.exceptions import abort as abort\nfrom werkzeug.utils import redirect as redirect\n\nfrom .app import Flask as Flask\nfrom .blueprints import Blueprint as Blueprint\nfrom .config import Config as Config\nfrom .ctx import (\n after_this_request as after_this_request,\n copy_current_request_context as copy_current_request_context,\n has_app_context as has_app_context,\n has_request_context as has_request_context,\n)\nfrom .globals import current_app as current_app, g as g, request as request, session as session\nfrom .helpers import (\n flash as flash,\n get_flashed_messages as get_flashed_messages,\n get_template_attribute as get_template_attribute,\n make_response as make_response,\n safe_join as safe_join,\n send_file as send_file,\n send_from_directory as send_from_directory,\n stream_with_context as stream_with_context,\n url_for as url_for,\n)\nfrom .json import jsonify as jsonify\nfrom .signals import (\n appcontext_popped as appcontext_popped,\n appcontext_pushed as appcontext_pushed,\n appcontext_tearing_down as appcontext_tearing_down,\n before_render_template as before_render_template,\n got_request_exception as got_request_exception,\n message_flashed as message_flashed,\n request_finished as request_finished,\n request_started as request_started,\n request_tearing_down as request_tearing_down,\n signals_available as signals_available,\n template_rendered as template_rendered,\n)\nfrom .templating import render_template as render_template, render_template_string as render_template_string\nfrom .wrappers import Request as Request, Response as Response\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\__init__.pyi | __init__.pyi | Other | 1,688 | 0.85 | 0 | 0 | awesome-app | 163 | 2024-06-10T22:35:50.115034 | Apache-2.0 | false | 8edaecbc2a700659f2436e4f3ca35db1 |
from typing import Any, Optional\n\nclass JSONTag:\n key: Any = ...\n serializer: Any = ...\n def __init__(self, serializer: Any) -> None: ...\n def check(self, value: Any) -> None: ...\n def to_json(self, value: Any) -> None: ...\n def to_python(self, value: Any) -> None: ...\n def tag(self, value: Any): ...\n\nclass TagDict(JSONTag):\n key: str = ...\n def check(self, value: Any): ...\n def to_json(self, value: Any): ...\n def to_python(self, value: Any): ...\n\nclass PassDict(JSONTag):\n def check(self, value: Any): ...\n def to_json(self, value: Any): ...\n tag: Any = ...\n\nclass TagTuple(JSONTag):\n key: str = ...\n def check(self, value: Any): ...\n def to_json(self, value: Any): ...\n def to_python(self, value: Any): ...\n\nclass PassList(JSONTag):\n def check(self, value: Any): ...\n def to_json(self, value: Any): ...\n tag: Any = ...\n\nclass TagBytes(JSONTag):\n key: str = ...\n def check(self, value: Any): ...\n def to_json(self, value: Any): ...\n def to_python(self, value: Any): ...\n\nclass TagMarkup(JSONTag):\n key: str = ...\n def check(self, value: Any): ...\n def to_json(self, value: Any): ...\n def to_python(self, value: Any): ...\n\nclass TagUUID(JSONTag):\n key: str = ...\n def check(self, value: Any): ...\n def to_json(self, value: Any): ...\n def to_python(self, value: Any): ...\n\nclass TagDateTime(JSONTag):\n key: str = ...\n def check(self, value: Any): ...\n def to_json(self, value: Any): ...\n def to_python(self, value: Any): ...\n\nclass TaggedJSONSerializer:\n default_tags: Any = ...\n tags: Any = ...\n order: Any = ...\n def __init__(self) -> None: ...\n def register(self, tag_class: Any, force: bool = ..., index: Optional[Any] = ...) -> None: ...\n def tag(self, value: Any): ...\n def untag(self, value: Any): ...\n def dumps(self, value: Any): ...\n def loads(self, value: Any): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\json\tag.pyi | tag.pyi | Other | 1,918 | 0.85 | 0.641791 | 0 | python-kit | 990 | 2024-02-29T14:23:49.994812 | GPL-3.0 | false | cdac2a808abc0243c8cf126859dbf38b |
import json as _json\nfrom typing import Any\n\nfrom jinja2 import Markup\n\nclass JSONEncoder(_json.JSONEncoder):\n def default(self, o: Any): ...\n\nclass JSONDecoder(_json.JSONDecoder): ...\n\ndef detect_encoding(data: bytes) -> str: ... # undocumented\ndef dumps(obj: Any, **kwargs: Any): ...\ndef dump(obj: Any, fp: Any, **kwargs: Any) -> None: ...\ndef loads(s: Any, **kwargs: Any): ...\ndef load(fp: Any, **kwargs: Any): ...\ndef htmlsafe_dumps(obj: Any, **kwargs: Any): ...\ndef htmlsafe_dump(obj: Any, fp: Any, **kwargs: Any) -> None: ...\ndef jsonify(*args: Any, **kwargs: Any): ...\ndef tojson_filter(obj: Any, **kwargs: Any) -> Markup: ... # undocumented\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\flask\json\__init__.pyi | __init__.pyi | Other | 654 | 0.95 | 0.631579 | 0 | node-utils | 936 | 2024-11-07T15:48:55.876380 | Apache-2.0 | false | 342080b8870228e59ca58b311d39630d |
from types import TracebackType\nfrom typing import Optional, Sequence, Text, Type\n\nfrom geoip2.models import ASN, ISP, AnonymousIP, City, ConnectionType, Country, Domain, Enterprise\nfrom maxminddb.reader import Metadata\n\n_Locales = Optional[Sequence[Text]]\n\nclass Reader:\n def __init__(self, filename: Text, locales: _Locales = ..., mode: int = ...) -> None: ...\n def __enter__(self) -> Reader: ...\n def __exit__(\n self,\n exc_type: Optional[Type[BaseException]] = ...,\n exc_val: Optional[BaseException] = ...,\n exc_tb: Optional[TracebackType] = ...,\n ) -> None: ...\n def country(self, ip_address: Text) -> Country: ...\n def city(self, ip_address: Text) -> City: ...\n def anonymous_ip(self, ip_address: Text) -> AnonymousIP: ...\n def asn(self, ip_address: Text) -> ASN: ...\n def connection_type(self, ip_address: Text) -> ConnectionType: ...\n def domain(self, ip_address: Text) -> Domain: ...\n def enterprise(self, ip_address: Text) -> Enterprise: ...\n def isp(self, ip_address: Text) -> ISP: ...\n def metadata(self) -> Metadata: ...\n def close(self) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\geoip2\database.pyi | database.pyi | Other | 1,133 | 0.85 | 0.518519 | 0 | node-utils | 414 | 2024-07-12T13:22:25.928087 | BSD-3-Clause | false | 1f6b68ad9aafb755682f92462d73b914 |
from typing import Optional, Text\n\nclass GeoIP2Error(RuntimeError): ...\nclass AddressNotFoundError(GeoIP2Error): ...\nclass AuthenticationError(GeoIP2Error): ...\n\nclass HTTPError(GeoIP2Error):\n http_status: Optional[int]\n uri: Optional[Text]\n def __init__(self, message: Text, http_status: Optional[int] = ..., uri: Optional[Text] = ...) -> None: ...\n\nclass InvalidRequestError(GeoIP2Error): ...\nclass OutOfQueriesError(GeoIP2Error): ...\nclass PermissionRequiredError(GeoIP2Error): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\geoip2\errors.pyi | errors.pyi | Other | 494 | 0.85 | 0.571429 | 0 | python-kit | 450 | 2024-04-23T10:22:17.464855 | GPL-3.0 | false | cbf6837d64918a7724acb103d082f5ea |
class SimpleEquality:\n def __eq__(self, other: object) -> bool: ...\n def __ne__(self, other: object) -> bool: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\geoip2\mixins.pyi | mixins.pyi | Other | 120 | 0.85 | 1 | 0 | node-utils | 611 | 2023-12-10T06:44:11.205391 | Apache-2.0 | false | 1b3dbe6524e6c09efac4965769dab253 |
from typing import Any, Mapping, Optional, Sequence, Text\n\nfrom geoip2 import records\nfrom geoip2.mixins import SimpleEquality\n\n_Locales = Optional[Sequence[Text]]\n_RawResponse = Mapping[Text, Mapping[Text, Any]]\n\nclass Country(SimpleEquality):\n continent: records.Continent\n country: records.Country\n registered_country: records.Country\n represented_country: records.RepresentedCountry\n maxmind: records.MaxMind\n traits: records.Traits\n raw: _RawResponse\n def __init__(self, raw_response: _RawResponse, locales: _Locales = ...) -> None: ...\n\nclass City(Country):\n city: records.City\n location: records.Location\n postal: records.Postal\n subdivisions: records.Subdivisions\n def __init__(self, raw_response: _RawResponse, locales: _Locales = ...) -> None: ...\n\nclass Insights(City): ...\nclass Enterprise(City): ...\nclass SimpleModel(SimpleEquality): ...\n\nclass AnonymousIP(SimpleModel):\n is_anonymous: bool\n is_anonymous_vpn: bool\n is_hosting_provider: bool\n is_public_proxy: bool\n is_tor_exit_node: bool\n ip_address: Optional[Text]\n raw: _RawResponse\n def __init__(self, raw: _RawResponse) -> None: ...\n\nclass ASN(SimpleModel):\n autonomous_system_number: Optional[int]\n autonomous_system_organization: Optional[Text]\n ip_address: Optional[Text]\n raw: _RawResponse\n def __init__(self, raw: _RawResponse) -> None: ...\n\nclass ConnectionType(SimpleModel):\n connection_type: Optional[Text]\n ip_address: Optional[Text]\n raw: _RawResponse\n def __init__(self, raw: _RawResponse) -> None: ...\n\nclass Domain(SimpleModel):\n domain: Optional[Text]\n ip_address: Optional[Text]\n raw: Optional[Text]\n def __init__(self, raw: _RawResponse) -> None: ...\n\nclass ISP(ASN):\n isp: Optional[Text]\n organization: Optional[Text]\n def __init__(self, raw: _RawResponse) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\geoip2\models.pyi | models.pyi | Other | 1,867 | 0.85 | 0.274194 | 0 | python-kit | 363 | 2024-04-21T16:28:31.038194 | GPL-3.0 | false | 89110c12f6c39a0beb67c3d351451aea |
from typing import Any, Mapping, Optional, Sequence, Text, Tuple\n\nfrom geoip2.mixins import SimpleEquality\n\n_Locales = Optional[Sequence[Text]]\n_Names = Mapping[Text, Text]\n\nclass Record(SimpleEquality):\n def __init__(self, **kwargs: Any) -> None: ...\n def __setattr__(self, name: Text, value: Any) -> None: ...\n\nclass PlaceRecord(Record):\n def __init__(self, locales: _Locales = ..., **kwargs: Any) -> None: ...\n @property\n def name(self) -> Text: ...\n\nclass City(PlaceRecord):\n confidence: int\n geoname_id: int\n names: _Names\n\nclass Continent(PlaceRecord):\n code: Text\n geoname_id: int\n names: _Names\n\nclass Country(PlaceRecord):\n confidence: int\n geoname_id: int\n is_in_european_union: bool\n iso_code: Text\n names: _Names\n def __init__(self, locales: _Locales = ..., **kwargs: Any) -> None: ...\n\nclass RepresentedCountry(Country):\n type: Text\n\nclass Location(Record):\n average_income: int\n accuracy_radius: int\n latitude: float\n longitude: float\n metro_code: int\n population_density: int\n time_zone: Text\n\nclass MaxMind(Record):\n queries_remaining: int\n\nclass Postal(Record):\n code: Text\n confidence: int\n\nclass Subdivision(PlaceRecord):\n confidence: int\n geoname_id: int\n iso_code: Text\n names: _Names\n\nclass Subdivisions(Tuple[Subdivision]):\n def __new__(cls, locales: _Locales, *subdivisions: Subdivision) -> Subdivisions: ...\n def __init__(self, locales: _Locales, *subdivisions: Subdivision) -> None: ...\n @property\n def most_specific(self) -> Subdivision: ...\n\nclass Traits(Record):\n autonomous_system_number: int\n autonomous_system_organization: Text\n connection_type: Text\n domain: Text\n ip_address: Text\n is_anonymous: bool\n is_anonymous_proxy: bool\n is_anonymous_vpn: bool\n is_hosting_provider: bool\n is_legitimate_proxy: bool\n is_public_proxy: bool\n is_satellite_provider: bool\n is_tor_exit_node: bool\n isp: Text\n organization: Text\n user_type: Text\n def __init__(self, **kwargs: Any) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\geoip2\records.pyi | records.pyi | Other | 2,071 | 0.85 | 0.253012 | 0 | awesome-app | 691 | 2024-08-12T14:38:41.848728 | BSD-3-Clause | false | bbd2e771d4e67d2bcdf0c0dafb5646b6 |
"""\n@generated by mypy-protobuf. Do not edit manually!\nisort:skip_file\n"""\nfrom google.protobuf.descriptor import (\n Descriptor as google___protobuf___descriptor___Descriptor,\n FileDescriptor as google___protobuf___descriptor___FileDescriptor,\n)\n\nfrom google.protobuf.internal.well_known_types import (\n Any as google___protobuf___internal___well_known_types___Any,\n)\n\nfrom google.protobuf.message import (\n Message as google___protobuf___message___Message,\n)\n\nfrom typing import (\n Optional as typing___Optional,\n Text as typing___Text,\n)\n\nfrom typing_extensions import (\n Literal as typing_extensions___Literal,\n)\n\n\nbuiltin___bool = bool\nbuiltin___bytes = bytes\nbuiltin___float = float\nbuiltin___int = int\n\n\nDESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...\n\nclass Any(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Any):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n type_url: typing___Text = ...\n value: builtin___bytes = ...\n\n def __init__(self,\n *,\n type_url : typing___Optional[typing___Text] = None,\n value : typing___Optional[builtin___bytes] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"type_url",b"type_url",u"value",b"value"]) -> None: ...\ntype___Any = Any\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\any_pb2.pyi | any_pb2.pyi | Other | 1,353 | 0.85 | 0.06383 | 0.027027 | vue-tools | 998 | 2023-08-22T21:10:00.579358 | GPL-3.0 | false | 8ddd5ab2d02ab8db7e25b276bc0dbc1a |
"""\n@generated by mypy-protobuf. Do not edit manually!\nisort:skip_file\n"""\nfrom google.protobuf.descriptor import (\n Descriptor as google___protobuf___descriptor___Descriptor,\n FileDescriptor as google___protobuf___descriptor___FileDescriptor,\n)\n\nfrom google.protobuf.internal.containers import (\n RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer,\n)\n\nfrom google.protobuf.message import (\n Message as google___protobuf___message___Message,\n)\n\nfrom google.protobuf.source_context_pb2 import (\n SourceContext as google___protobuf___source_context_pb2___SourceContext,\n)\n\nfrom google.protobuf.type_pb2 import (\n Option as google___protobuf___type_pb2___Option,\n SyntaxValue as google___protobuf___type_pb2___SyntaxValue,\n)\n\nfrom typing import (\n Iterable as typing___Iterable,\n Optional as typing___Optional,\n Text as typing___Text,\n)\n\nfrom typing_extensions import (\n Literal as typing_extensions___Literal,\n)\n\n\nbuiltin___bool = bool\nbuiltin___bytes = bytes\nbuiltin___float = float\nbuiltin___int = int\n\n\nDESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...\n\nclass Api(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n name: typing___Text = ...\n version: typing___Text = ...\n syntax: google___protobuf___type_pb2___SyntaxValue = ...\n\n @property\n def methods(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Method]: ...\n\n @property\n def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Option]: ...\n\n @property\n def source_context(self) -> google___protobuf___source_context_pb2___SourceContext: ...\n\n @property\n def mixins(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Mixin]: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n methods : typing___Optional[typing___Iterable[type___Method]] = None,\n options : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Option]] = None,\n version : typing___Optional[typing___Text] = None,\n source_context : typing___Optional[google___protobuf___source_context_pb2___SourceContext] = None,\n mixins : typing___Optional[typing___Iterable[type___Mixin]] = None,\n syntax : typing___Optional[google___protobuf___type_pb2___SyntaxValue] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"source_context",b"source_context"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"methods",b"methods",u"mixins",b"mixins",u"name",b"name",u"options",b"options",u"source_context",b"source_context",u"syntax",b"syntax",u"version",b"version"]) -> None: ...\ntype___Api = Api\n\nclass Method(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n name: typing___Text = ...\n request_type_url: typing___Text = ...\n request_streaming: builtin___bool = ...\n response_type_url: typing___Text = ...\n response_streaming: builtin___bool = ...\n syntax: google___protobuf___type_pb2___SyntaxValue = ...\n\n @property\n def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Option]: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n request_type_url : typing___Optional[typing___Text] = None,\n request_streaming : typing___Optional[builtin___bool] = None,\n response_type_url : typing___Optional[typing___Text] = None,\n response_streaming : typing___Optional[builtin___bool] = None,\n options : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Option]] = None,\n syntax : typing___Optional[google___protobuf___type_pb2___SyntaxValue] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options",u"request_streaming",b"request_streaming",u"request_type_url",b"request_type_url",u"response_streaming",b"response_streaming",u"response_type_url",b"response_type_url",u"syntax",b"syntax"]) -> None: ...\ntype___Method = Method\n\nclass Mixin(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n name: typing___Text = ...\n root: typing___Text = ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n root : typing___Optional[typing___Text] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"root",b"root"]) -> None: ...\ntype___Mixin = Mixin\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\api_pb2.pyi | api_pb2.pyi | Other | 4,881 | 0.85 | 0.131579 | 0.032258 | vue-tools | 379 | 2023-10-13T19:35:44.732912 | BSD-3-Clause | false | 4f96ad94218413507f3eeaca7ce0423c |
from typing import Any\n\nfrom .descriptor_pb2 import (\n EnumOptions,\n EnumValueOptions,\n FieldOptions,\n FileOptions,\n MessageOptions,\n MethodOptions,\n OneofOptions,\n ServiceOptions,\n)\nfrom .message import Message\n\nclass Error(Exception): ...\nclass TypeTransformationError(Error): ...\n\nclass DescriptorMetaclass(type):\n def __instancecheck__(self, obj): ...\n\nclass DescriptorBase(metaclass=DescriptorMetaclass):\n has_options: Any\n def __init__(self, options, serialized_options, options_class_name) -> None: ...\n def GetOptions(self): ...\n\nclass _NestedDescriptorBase(DescriptorBase):\n name: Any\n full_name: Any\n file: Any\n containing_type: Any\n def __init__(\n self,\n options,\n options_class_name,\n name,\n full_name,\n file,\n containing_type,\n serialized_start=...,\n serialized_end=...,\n serialized_options=...,\n ) -> None: ...\n def GetTopLevelContainingType(self): ...\n def CopyToProto(self, proto): ...\n\nclass Descriptor(_NestedDescriptorBase):\n def __new__(\n cls,\n name,\n full_name,\n filename,\n containing_type,\n fields,\n nested_types,\n enum_types,\n extensions,\n options=...,\n serialized_options=...,\n is_extendable=...,\n extension_ranges=...,\n oneofs=...,\n file=...,\n serialized_start=...,\n serialized_end=...,\n syntax=...,\n ): ...\n fields: Any\n fields_by_number: Any\n fields_by_name: Any\n nested_types: Any\n nested_types_by_name: Any\n enum_types: Any\n enum_types_by_name: Any\n enum_values_by_name: Any\n extensions: Any\n extensions_by_name: Any\n is_extendable: Any\n extension_ranges: Any\n oneofs: Any\n oneofs_by_name: Any\n syntax: Any\n def __init__(\n self,\n name,\n full_name,\n filename,\n containing_type,\n fields,\n nested_types,\n enum_types,\n extensions,\n options=...,\n serialized_options=...,\n is_extendable=...,\n extension_ranges=...,\n oneofs=...,\n file=...,\n serialized_start=...,\n serialized_end=...,\n syntax=...,\n ) -> None: ...\n def EnumValueName(self, enum, value): ...\n def CopyToProto(self, proto): ...\n def GetOptions(self) -> MessageOptions: ...\n\nclass FieldDescriptor(DescriptorBase):\n TYPE_DOUBLE: Any\n TYPE_FLOAT: Any\n TYPE_INT64: Any\n TYPE_UINT64: Any\n TYPE_INT32: Any\n TYPE_FIXED64: Any\n TYPE_FIXED32: Any\n TYPE_BOOL: Any\n TYPE_STRING: Any\n TYPE_GROUP: Any\n TYPE_MESSAGE: Any\n TYPE_BYTES: Any\n TYPE_UINT32: Any\n TYPE_ENUM: Any\n TYPE_SFIXED32: Any\n TYPE_SFIXED64: Any\n TYPE_SINT32: Any\n TYPE_SINT64: Any\n MAX_TYPE: Any\n CPPTYPE_INT32: Any\n CPPTYPE_INT64: Any\n CPPTYPE_UINT32: Any\n CPPTYPE_UINT64: Any\n CPPTYPE_DOUBLE: Any\n CPPTYPE_FLOAT: Any\n CPPTYPE_BOOL: Any\n CPPTYPE_ENUM: Any\n CPPTYPE_STRING: Any\n CPPTYPE_MESSAGE: Any\n MAX_CPPTYPE: Any\n LABEL_OPTIONAL: Any\n LABEL_REQUIRED: Any\n LABEL_REPEATED: Any\n MAX_LABEL: Any\n MAX_FIELD_NUMBER: Any\n FIRST_RESERVED_FIELD_NUMBER: Any\n LAST_RESERVED_FIELD_NUMBER: Any\n def __new__(\n cls,\n name,\n full_name,\n index,\n number,\n type,\n cpp_type,\n label,\n default_value,\n message_type,\n enum_type,\n containing_type,\n is_extension,\n extension_scope,\n options=...,\n serialized_options=...,\n file=...,\n has_default_value=...,\n containing_oneof=...,\n ): ...\n name: Any\n full_name: Any\n index: Any\n number: Any\n type: Any\n cpp_type: Any\n label: Any\n has_default_value: Any\n default_value: Any\n containing_type: Any\n message_type: Any\n enum_type: Any\n is_extension: Any\n extension_scope: Any\n containing_oneof: Any\n def __init__(\n self,\n name,\n full_name,\n index,\n number,\n type,\n cpp_type,\n label,\n default_value,\n message_type,\n enum_type,\n containing_type,\n is_extension,\n extension_scope,\n options=...,\n serialized_options=...,\n file=...,\n has_default_value=...,\n containing_oneof=...,\n ) -> None: ...\n @staticmethod\n def ProtoTypeToCppProtoType(proto_type): ...\n def GetOptions(self) -> FieldOptions: ...\n\nclass EnumDescriptor(_NestedDescriptorBase):\n def __new__(\n cls,\n name,\n full_name,\n filename,\n values,\n containing_type=...,\n options=...,\n serialized_options=...,\n file=...,\n serialized_start=...,\n serialized_end=...,\n ): ...\n values: Any\n values_by_name: Any\n values_by_number: Any\n def __init__(\n self,\n name,\n full_name,\n filename,\n values,\n containing_type=...,\n options=...,\n serialized_options=...,\n file=...,\n serialized_start=...,\n serialized_end=...,\n ) -> None: ...\n def CopyToProto(self, proto): ...\n def GetOptions(self) -> EnumOptions: ...\n\nclass EnumValueDescriptor(DescriptorBase):\n def __new__(cls, name, index, number, type=..., options=..., serialized_options=...): ...\n name: Any\n index: Any\n number: Any\n type: Any\n def __init__(self, name, index, number, type=..., options=..., serialized_options=...) -> None: ...\n def GetOptions(self) -> EnumValueOptions: ...\n\nclass OneofDescriptor:\n def __new__(cls, name, full_name, index, containing_type, fields): ...\n name: Any\n full_name: Any\n index: Any\n containing_type: Any\n fields: Any\n def __init__(self, name, full_name, index, containing_type, fields) -> None: ...\n def GetOptions(self) -> OneofOptions: ...\n\nclass ServiceDescriptor(_NestedDescriptorBase):\n index: Any\n methods: Any\n methods_by_name: Any\n def __init__(\n self,\n name,\n full_name,\n index,\n methods,\n options=...,\n serialized_options=...,\n file=...,\n serialized_start=...,\n serialized_end=...,\n ) -> None: ...\n def FindMethodByName(self, name): ...\n def CopyToProto(self, proto): ...\n def GetOptions(self) -> ServiceOptions: ...\n\nclass MethodDescriptor(DescriptorBase):\n name: Any\n full_name: Any\n index: Any\n containing_service: Any\n input_type: Any\n output_type: Any\n def __init__(\n self, name, full_name, index, containing_service, input_type, output_type, options=..., serialized_options=...\n ) -> None: ...\n def GetOptions(self) -> MethodOptions: ...\n\nclass FileDescriptor(DescriptorBase):\n def __new__(\n cls,\n name,\n package,\n options=...,\n serialized_options=...,\n serialized_pb=...,\n dependencies=...,\n public_dependencies=...,\n syntax=...,\n pool=...,\n ): ...\n _options: Any\n pool: Any\n message_types_by_name: Any\n name: Any\n package: Any\n syntax: Any\n serialized_pb: Any\n enum_types_by_name: Any\n extensions_by_name: Any\n services_by_name: Any\n dependencies: Any\n public_dependencies: Any\n def __init__(\n self,\n name,\n package,\n options=...,\n serialized_options=...,\n serialized_pb=...,\n dependencies=...,\n public_dependencies=...,\n syntax=...,\n pool=...,\n ) -> None: ...\n def CopyToProto(self, proto): ...\n def GetOptions(self) -> FileOptions: ...\n\ndef MakeDescriptor(desc_proto, package=..., build_file_if_cpp=..., syntax=...): ...\ndef _ParseOptions(message: Message, string: bytes) -> Message: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\descriptor.pyi | descriptor.pyi | Other | 7,843 | 0.85 | 0.151515 | 0 | react-lib | 139 | 2024-04-07T22:44:25.042704 | BSD-3-Clause | false | 7065428cea16dc1d0d3d59d71da8f10e |
"""\n@generated by mypy-protobuf. Do not edit manually!\nisort:skip_file\n"""\nfrom google.protobuf.descriptor import (\n Descriptor as google___protobuf___descriptor___Descriptor,\n EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,\n FileDescriptor as google___protobuf___descriptor___FileDescriptor,\n)\n\nfrom google.protobuf.internal.containers import (\n RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer,\n RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer,\n)\n\nfrom google.protobuf.internal.enum_type_wrapper import (\n _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper,\n)\n\nfrom google.protobuf.message import (\n Message as google___protobuf___message___Message,\n)\n\nfrom typing import (\n Iterable as typing___Iterable,\n NewType as typing___NewType,\n Optional as typing___Optional,\n Text as typing___Text,\n cast as typing___cast,\n)\n\nfrom typing_extensions import (\n Literal as typing_extensions___Literal,\n)\n\n\nbuiltin___bool = bool\nbuiltin___bytes = bytes\nbuiltin___float = float\nbuiltin___int = int\n\n\nDESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...\n\nclass FileDescriptorSet(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n\n @property\n def file(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FileDescriptorProto]: ...\n\n def __init__(self,\n *,\n file : typing___Optional[typing___Iterable[type___FileDescriptorProto]] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"file",b"file"]) -> None: ...\ntype___FileDescriptorSet = FileDescriptorSet\n\nclass FileDescriptorProto(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n name: typing___Text = ...\n package: typing___Text = ...\n dependency: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...\n public_dependency: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...\n weak_dependency: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...\n syntax: typing___Text = ...\n\n @property\n def message_type(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DescriptorProto]: ...\n\n @property\n def enum_type(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___EnumDescriptorProto]: ...\n\n @property\n def service(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___ServiceDescriptorProto]: ...\n\n @property\n def extension(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FieldDescriptorProto]: ...\n\n @property\n def options(self) -> type___FileOptions: ...\n\n @property\n def source_code_info(self) -> type___SourceCodeInfo: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n package : typing___Optional[typing___Text] = None,\n dependency : typing___Optional[typing___Iterable[typing___Text]] = None,\n public_dependency : typing___Optional[typing___Iterable[builtin___int]] = None,\n weak_dependency : typing___Optional[typing___Iterable[builtin___int]] = None,\n message_type : typing___Optional[typing___Iterable[type___DescriptorProto]] = None,\n enum_type : typing___Optional[typing___Iterable[type___EnumDescriptorProto]] = None,\n service : typing___Optional[typing___Iterable[type___ServiceDescriptorProto]] = None,\n extension : typing___Optional[typing___Iterable[type___FieldDescriptorProto]] = None,\n options : typing___Optional[type___FileOptions] = None,\n source_code_info : typing___Optional[type___SourceCodeInfo] = None,\n syntax : typing___Optional[typing___Text] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options",u"package",b"package",u"source_code_info",b"source_code_info",u"syntax",b"syntax"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"dependency",b"dependency",u"enum_type",b"enum_type",u"extension",b"extension",u"message_type",b"message_type",u"name",b"name",u"options",b"options",u"package",b"package",u"public_dependency",b"public_dependency",u"service",b"service",u"source_code_info",b"source_code_info",u"syntax",b"syntax",u"weak_dependency",b"weak_dependency"]) -> None: ...\ntype___FileDescriptorProto = FileDescriptorProto\n\nclass DescriptorProto(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n class ExtensionRange(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n start: builtin___int = ...\n end: builtin___int = ...\n\n @property\n def options(self) -> type___ExtensionRangeOptions: ...\n\n def __init__(self,\n *,\n start : typing___Optional[builtin___int] = None,\n end : typing___Optional[builtin___int] = None,\n options : typing___Optional[type___ExtensionRangeOptions] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"end",b"end",u"options",b"options",u"start",b"start"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"end",b"end",u"options",b"options",u"start",b"start"]) -> None: ...\n type___ExtensionRange = ExtensionRange\n\n class ReservedRange(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n start: builtin___int = ...\n end: builtin___int = ...\n\n def __init__(self,\n *,\n start : typing___Optional[builtin___int] = None,\n end : typing___Optional[builtin___int] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"end",b"end",u"start",b"start"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"end",b"end",u"start",b"start"]) -> None: ...\n type___ReservedRange = ReservedRange\n\n name: typing___Text = ...\n reserved_name: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...\n\n @property\n def field(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FieldDescriptorProto]: ...\n\n @property\n def extension(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FieldDescriptorProto]: ...\n\n @property\n def nested_type(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DescriptorProto]: ...\n\n @property\n def enum_type(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___EnumDescriptorProto]: ...\n\n @property\n def extension_range(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DescriptorProto.ExtensionRange]: ...\n\n @property\n def oneof_decl(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___OneofDescriptorProto]: ...\n\n @property\n def options(self) -> type___MessageOptions: ...\n\n @property\n def reserved_range(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DescriptorProto.ReservedRange]: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n field : typing___Optional[typing___Iterable[type___FieldDescriptorProto]] = None,\n extension : typing___Optional[typing___Iterable[type___FieldDescriptorProto]] = None,\n nested_type : typing___Optional[typing___Iterable[type___DescriptorProto]] = None,\n enum_type : typing___Optional[typing___Iterable[type___EnumDescriptorProto]] = None,\n extension_range : typing___Optional[typing___Iterable[type___DescriptorProto.ExtensionRange]] = None,\n oneof_decl : typing___Optional[typing___Iterable[type___OneofDescriptorProto]] = None,\n options : typing___Optional[type___MessageOptions] = None,\n reserved_range : typing___Optional[typing___Iterable[type___DescriptorProto.ReservedRange]] = None,\n reserved_name : typing___Optional[typing___Iterable[typing___Text]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"enum_type",b"enum_type",u"extension",b"extension",u"extension_range",b"extension_range",u"field",b"field",u"name",b"name",u"nested_type",b"nested_type",u"oneof_decl",b"oneof_decl",u"options",b"options",u"reserved_name",b"reserved_name",u"reserved_range",b"reserved_range"]) -> None: ...\ntype___DescriptorProto = DescriptorProto\n\nclass ExtensionRangeOptions(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n\n @property\n def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ...\n\n def __init__(self,\n *,\n uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"uninterpreted_option",b"uninterpreted_option"]) -> None: ...\ntype___ExtensionRangeOptions = ExtensionRangeOptions\n\nclass FieldDescriptorProto(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n TypeValue = typing___NewType('TypeValue', builtin___int)\n type___TypeValue = TypeValue\n Type: _Type\n class _Type(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FieldDescriptorProto.TypeValue]):\n DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...\n TYPE_DOUBLE = typing___cast(FieldDescriptorProto.TypeValue, 1)\n TYPE_FLOAT = typing___cast(FieldDescriptorProto.TypeValue, 2)\n TYPE_INT64 = typing___cast(FieldDescriptorProto.TypeValue, 3)\n TYPE_UINT64 = typing___cast(FieldDescriptorProto.TypeValue, 4)\n TYPE_INT32 = typing___cast(FieldDescriptorProto.TypeValue, 5)\n TYPE_FIXED64 = typing___cast(FieldDescriptorProto.TypeValue, 6)\n TYPE_FIXED32 = typing___cast(FieldDescriptorProto.TypeValue, 7)\n TYPE_BOOL = typing___cast(FieldDescriptorProto.TypeValue, 8)\n TYPE_STRING = typing___cast(FieldDescriptorProto.TypeValue, 9)\n TYPE_GROUP = typing___cast(FieldDescriptorProto.TypeValue, 10)\n TYPE_MESSAGE = typing___cast(FieldDescriptorProto.TypeValue, 11)\n TYPE_BYTES = typing___cast(FieldDescriptorProto.TypeValue, 12)\n TYPE_UINT32 = typing___cast(FieldDescriptorProto.TypeValue, 13)\n TYPE_ENUM = typing___cast(FieldDescriptorProto.TypeValue, 14)\n TYPE_SFIXED32 = typing___cast(FieldDescriptorProto.TypeValue, 15)\n TYPE_SFIXED64 = typing___cast(FieldDescriptorProto.TypeValue, 16)\n TYPE_SINT32 = typing___cast(FieldDescriptorProto.TypeValue, 17)\n TYPE_SINT64 = typing___cast(FieldDescriptorProto.TypeValue, 18)\n TYPE_DOUBLE = typing___cast(FieldDescriptorProto.TypeValue, 1)\n TYPE_FLOAT = typing___cast(FieldDescriptorProto.TypeValue, 2)\n TYPE_INT64 = typing___cast(FieldDescriptorProto.TypeValue, 3)\n TYPE_UINT64 = typing___cast(FieldDescriptorProto.TypeValue, 4)\n TYPE_INT32 = typing___cast(FieldDescriptorProto.TypeValue, 5)\n TYPE_FIXED64 = typing___cast(FieldDescriptorProto.TypeValue, 6)\n TYPE_FIXED32 = typing___cast(FieldDescriptorProto.TypeValue, 7)\n TYPE_BOOL = typing___cast(FieldDescriptorProto.TypeValue, 8)\n TYPE_STRING = typing___cast(FieldDescriptorProto.TypeValue, 9)\n TYPE_GROUP = typing___cast(FieldDescriptorProto.TypeValue, 10)\n TYPE_MESSAGE = typing___cast(FieldDescriptorProto.TypeValue, 11)\n TYPE_BYTES = typing___cast(FieldDescriptorProto.TypeValue, 12)\n TYPE_UINT32 = typing___cast(FieldDescriptorProto.TypeValue, 13)\n TYPE_ENUM = typing___cast(FieldDescriptorProto.TypeValue, 14)\n TYPE_SFIXED32 = typing___cast(FieldDescriptorProto.TypeValue, 15)\n TYPE_SFIXED64 = typing___cast(FieldDescriptorProto.TypeValue, 16)\n TYPE_SINT32 = typing___cast(FieldDescriptorProto.TypeValue, 17)\n TYPE_SINT64 = typing___cast(FieldDescriptorProto.TypeValue, 18)\n\n LabelValue = typing___NewType('LabelValue', builtin___int)\n type___LabelValue = LabelValue\n Label: _Label\n class _Label(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FieldDescriptorProto.LabelValue]):\n DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...\n LABEL_OPTIONAL = typing___cast(FieldDescriptorProto.LabelValue, 1)\n LABEL_REQUIRED = typing___cast(FieldDescriptorProto.LabelValue, 2)\n LABEL_REPEATED = typing___cast(FieldDescriptorProto.LabelValue, 3)\n LABEL_OPTIONAL = typing___cast(FieldDescriptorProto.LabelValue, 1)\n LABEL_REQUIRED = typing___cast(FieldDescriptorProto.LabelValue, 2)\n LABEL_REPEATED = typing___cast(FieldDescriptorProto.LabelValue, 3)\n\n name: typing___Text = ...\n number: builtin___int = ...\n label: type___FieldDescriptorProto.LabelValue = ...\n type: type___FieldDescriptorProto.TypeValue = ...\n type_name: typing___Text = ...\n extendee: typing___Text = ...\n default_value: typing___Text = ...\n oneof_index: builtin___int = ...\n json_name: typing___Text = ...\n proto3_optional: builtin___bool = ...\n\n @property\n def options(self) -> type___FieldOptions: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n number : typing___Optional[builtin___int] = None,\n label : typing___Optional[type___FieldDescriptorProto.LabelValue] = None,\n type : typing___Optional[type___FieldDescriptorProto.TypeValue] = None,\n type_name : typing___Optional[typing___Text] = None,\n extendee : typing___Optional[typing___Text] = None,\n default_value : typing___Optional[typing___Text] = None,\n oneof_index : typing___Optional[builtin___int] = None,\n json_name : typing___Optional[typing___Text] = None,\n options : typing___Optional[type___FieldOptions] = None,\n proto3_optional : typing___Optional[builtin___bool] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"default_value",b"default_value",u"extendee",b"extendee",u"json_name",b"json_name",u"label",b"label",u"name",b"name",u"number",b"number",u"oneof_index",b"oneof_index",u"options",b"options",u"proto3_optional",b"proto3_optional",u"type",b"type",u"type_name",b"type_name"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"default_value",b"default_value",u"extendee",b"extendee",u"json_name",b"json_name",u"label",b"label",u"name",b"name",u"number",b"number",u"oneof_index",b"oneof_index",u"options",b"options",u"proto3_optional",b"proto3_optional",u"type",b"type",u"type_name",b"type_name"]) -> None: ...\ntype___FieldDescriptorProto = FieldDescriptorProto\n\nclass OneofDescriptorProto(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n name: typing___Text = ...\n\n @property\n def options(self) -> type___OneofOptions: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n options : typing___Optional[type___OneofOptions] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> None: ...\ntype___OneofDescriptorProto = OneofDescriptorProto\n\nclass EnumDescriptorProto(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n class EnumReservedRange(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n start: builtin___int = ...\n end: builtin___int = ...\n\n def __init__(self,\n *,\n start : typing___Optional[builtin___int] = None,\n end : typing___Optional[builtin___int] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"end",b"end",u"start",b"start"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"end",b"end",u"start",b"start"]) -> None: ...\n type___EnumReservedRange = EnumReservedRange\n\n name: typing___Text = ...\n reserved_name: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...\n\n @property\n def value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___EnumValueDescriptorProto]: ...\n\n @property\n def options(self) -> type___EnumOptions: ...\n\n @property\n def reserved_range(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___EnumDescriptorProto.EnumReservedRange]: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n value : typing___Optional[typing___Iterable[type___EnumValueDescriptorProto]] = None,\n options : typing___Optional[type___EnumOptions] = None,\n reserved_range : typing___Optional[typing___Iterable[type___EnumDescriptorProto.EnumReservedRange]] = None,\n reserved_name : typing___Optional[typing___Iterable[typing___Text]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options",u"reserved_name",b"reserved_name",u"reserved_range",b"reserved_range",u"value",b"value"]) -> None: ...\ntype___EnumDescriptorProto = EnumDescriptorProto\n\nclass EnumValueDescriptorProto(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n name: typing___Text = ...\n number: builtin___int = ...\n\n @property\n def options(self) -> type___EnumValueOptions: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n number : typing___Optional[builtin___int] = None,\n options : typing___Optional[type___EnumValueOptions] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"number",b"number",u"options",b"options"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"number",b"number",u"options",b"options"]) -> None: ...\ntype___EnumValueDescriptorProto = EnumValueDescriptorProto\n\nclass ServiceDescriptorProto(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n name: typing___Text = ...\n\n @property\n def method(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___MethodDescriptorProto]: ...\n\n @property\n def options(self) -> type___ServiceOptions: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n method : typing___Optional[typing___Iterable[type___MethodDescriptorProto]] = None,\n options : typing___Optional[type___ServiceOptions] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"method",b"method",u"name",b"name",u"options",b"options"]) -> None: ...\ntype___ServiceDescriptorProto = ServiceDescriptorProto\n\nclass MethodDescriptorProto(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n name: typing___Text = ...\n input_type: typing___Text = ...\n output_type: typing___Text = ...\n client_streaming: builtin___bool = ...\n server_streaming: builtin___bool = ...\n\n @property\n def options(self) -> type___MethodOptions: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Text] = None,\n input_type : typing___Optional[typing___Text] = None,\n output_type : typing___Optional[typing___Text] = None,\n options : typing___Optional[type___MethodOptions] = None,\n client_streaming : typing___Optional[builtin___bool] = None,\n server_streaming : typing___Optional[builtin___bool] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"client_streaming",b"client_streaming",u"input_type",b"input_type",u"name",b"name",u"options",b"options",u"output_type",b"output_type",u"server_streaming",b"server_streaming"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"client_streaming",b"client_streaming",u"input_type",b"input_type",u"name",b"name",u"options",b"options",u"output_type",b"output_type",u"server_streaming",b"server_streaming"]) -> None: ...\ntype___MethodDescriptorProto = MethodDescriptorProto\n\nclass FileOptions(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n OptimizeModeValue = typing___NewType('OptimizeModeValue', builtin___int)\n type___OptimizeModeValue = OptimizeModeValue\n OptimizeMode: _OptimizeMode\n class _OptimizeMode(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FileOptions.OptimizeModeValue]):\n DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...\n SPEED = typing___cast(FileOptions.OptimizeModeValue, 1)\n CODE_SIZE = typing___cast(FileOptions.OptimizeModeValue, 2)\n LITE_RUNTIME = typing___cast(FileOptions.OptimizeModeValue, 3)\n SPEED = typing___cast(FileOptions.OptimizeModeValue, 1)\n CODE_SIZE = typing___cast(FileOptions.OptimizeModeValue, 2)\n LITE_RUNTIME = typing___cast(FileOptions.OptimizeModeValue, 3)\n\n java_package: typing___Text = ...\n java_outer_classname: typing___Text = ...\n java_multiple_files: builtin___bool = ...\n java_generate_equals_and_hash: builtin___bool = ...\n java_string_check_utf8: builtin___bool = ...\n optimize_for: type___FileOptions.OptimizeModeValue = ...\n go_package: typing___Text = ...\n cc_generic_services: builtin___bool = ...\n java_generic_services: builtin___bool = ...\n py_generic_services: builtin___bool = ...\n php_generic_services: builtin___bool = ...\n deprecated: builtin___bool = ...\n cc_enable_arenas: builtin___bool = ...\n objc_class_prefix: typing___Text = ...\n csharp_namespace: typing___Text = ...\n swift_prefix: typing___Text = ...\n php_class_prefix: typing___Text = ...\n php_namespace: typing___Text = ...\n php_metadata_namespace: typing___Text = ...\n ruby_package: typing___Text = ...\n\n @property\n def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ...\n\n def __init__(self,\n *,\n java_package : typing___Optional[typing___Text] = None,\n java_outer_classname : typing___Optional[typing___Text] = None,\n java_multiple_files : typing___Optional[builtin___bool] = None,\n java_generate_equals_and_hash : typing___Optional[builtin___bool] = None,\n java_string_check_utf8 : typing___Optional[builtin___bool] = None,\n optimize_for : typing___Optional[type___FileOptions.OptimizeModeValue] = None,\n go_package : typing___Optional[typing___Text] = None,\n cc_generic_services : typing___Optional[builtin___bool] = None,\n java_generic_services : typing___Optional[builtin___bool] = None,\n py_generic_services : typing___Optional[builtin___bool] = None,\n php_generic_services : typing___Optional[builtin___bool] = None,\n deprecated : typing___Optional[builtin___bool] = None,\n cc_enable_arenas : typing___Optional[builtin___bool] = None,\n objc_class_prefix : typing___Optional[typing___Text] = None,\n csharp_namespace : typing___Optional[typing___Text] = None,\n swift_prefix : typing___Optional[typing___Text] = None,\n php_class_prefix : typing___Optional[typing___Text] = None,\n php_namespace : typing___Optional[typing___Text] = None,\n php_metadata_namespace : typing___Optional[typing___Text] = None,\n ruby_package : typing___Optional[typing___Text] = None,\n uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"cc_enable_arenas",b"cc_enable_arenas",u"cc_generic_services",b"cc_generic_services",u"csharp_namespace",b"csharp_namespace",u"deprecated",b"deprecated",u"go_package",b"go_package",u"java_generate_equals_and_hash",b"java_generate_equals_and_hash",u"java_generic_services",b"java_generic_services",u"java_multiple_files",b"java_multiple_files",u"java_outer_classname",b"java_outer_classname",u"java_package",b"java_package",u"java_string_check_utf8",b"java_string_check_utf8",u"objc_class_prefix",b"objc_class_prefix",u"optimize_for",b"optimize_for",u"php_class_prefix",b"php_class_prefix",u"php_generic_services",b"php_generic_services",u"php_metadata_namespace",b"php_metadata_namespace",u"php_namespace",b"php_namespace",u"py_generic_services",b"py_generic_services",u"ruby_package",b"ruby_package",u"swift_prefix",b"swift_prefix"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"cc_enable_arenas",b"cc_enable_arenas",u"cc_generic_services",b"cc_generic_services",u"csharp_namespace",b"csharp_namespace",u"deprecated",b"deprecated",u"go_package",b"go_package",u"java_generate_equals_and_hash",b"java_generate_equals_and_hash",u"java_generic_services",b"java_generic_services",u"java_multiple_files",b"java_multiple_files",u"java_outer_classname",b"java_outer_classname",u"java_package",b"java_package",u"java_string_check_utf8",b"java_string_check_utf8",u"objc_class_prefix",b"objc_class_prefix",u"optimize_for",b"optimize_for",u"php_class_prefix",b"php_class_prefix",u"php_generic_services",b"php_generic_services",u"php_metadata_namespace",b"php_metadata_namespace",u"php_namespace",b"php_namespace",u"py_generic_services",b"py_generic_services",u"ruby_package",b"ruby_package",u"swift_prefix",b"swift_prefix",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ...\ntype___FileOptions = FileOptions\n\nclass MessageOptions(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n message_set_wire_format: builtin___bool = ...\n no_standard_descriptor_accessor: builtin___bool = ...\n deprecated: builtin___bool = ...\n map_entry: builtin___bool = ...\n\n @property\n def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ...\n\n def __init__(self,\n *,\n message_set_wire_format : typing___Optional[builtin___bool] = None,\n no_standard_descriptor_accessor : typing___Optional[builtin___bool] = None,\n deprecated : typing___Optional[builtin___bool] = None,\n map_entry : typing___Optional[builtin___bool] = None,\n uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"map_entry",b"map_entry",u"message_set_wire_format",b"message_set_wire_format",u"no_standard_descriptor_accessor",b"no_standard_descriptor_accessor"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"map_entry",b"map_entry",u"message_set_wire_format",b"message_set_wire_format",u"no_standard_descriptor_accessor",b"no_standard_descriptor_accessor",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ...\ntype___MessageOptions = MessageOptions\n\nclass FieldOptions(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n CTypeValue = typing___NewType('CTypeValue', builtin___int)\n type___CTypeValue = CTypeValue\n CType: _CType\n class _CType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FieldOptions.CTypeValue]):\n DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...\n STRING = typing___cast(FieldOptions.CTypeValue, 0)\n CORD = typing___cast(FieldOptions.CTypeValue, 1)\n STRING_PIECE = typing___cast(FieldOptions.CTypeValue, 2)\n STRING = typing___cast(FieldOptions.CTypeValue, 0)\n CORD = typing___cast(FieldOptions.CTypeValue, 1)\n STRING_PIECE = typing___cast(FieldOptions.CTypeValue, 2)\n\n JSTypeValue = typing___NewType('JSTypeValue', builtin___int)\n type___JSTypeValue = JSTypeValue\n JSType: _JSType\n class _JSType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FieldOptions.JSTypeValue]):\n DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...\n JS_NORMAL = typing___cast(FieldOptions.JSTypeValue, 0)\n JS_STRING = typing___cast(FieldOptions.JSTypeValue, 1)\n JS_NUMBER = typing___cast(FieldOptions.JSTypeValue, 2)\n JS_NORMAL = typing___cast(FieldOptions.JSTypeValue, 0)\n JS_STRING = typing___cast(FieldOptions.JSTypeValue, 1)\n JS_NUMBER = typing___cast(FieldOptions.JSTypeValue, 2)\n\n ctype: type___FieldOptions.CTypeValue = ...\n packed: builtin___bool = ...\n jstype: type___FieldOptions.JSTypeValue = ...\n lazy: builtin___bool = ...\n deprecated: builtin___bool = ...\n weak: builtin___bool = ...\n\n @property\n def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ...\n\n def __init__(self,\n *,\n ctype : typing___Optional[type___FieldOptions.CTypeValue] = None,\n packed : typing___Optional[builtin___bool] = None,\n jstype : typing___Optional[type___FieldOptions.JSTypeValue] = None,\n lazy : typing___Optional[builtin___bool] = None,\n deprecated : typing___Optional[builtin___bool] = None,\n weak : typing___Optional[builtin___bool] = None,\n uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"ctype",b"ctype",u"deprecated",b"deprecated",u"jstype",b"jstype",u"lazy",b"lazy",u"packed",b"packed",u"weak",b"weak"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"ctype",b"ctype",u"deprecated",b"deprecated",u"jstype",b"jstype",u"lazy",b"lazy",u"packed",b"packed",u"uninterpreted_option",b"uninterpreted_option",u"weak",b"weak"]) -> None: ...\ntype___FieldOptions = FieldOptions\n\nclass OneofOptions(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n\n @property\n def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ...\n\n def __init__(self,\n *,\n uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"uninterpreted_option",b"uninterpreted_option"]) -> None: ...\ntype___OneofOptions = OneofOptions\n\nclass EnumOptions(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n allow_alias: builtin___bool = ...\n deprecated: builtin___bool = ...\n\n @property\n def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ...\n\n def __init__(self,\n *,\n allow_alias : typing___Optional[builtin___bool] = None,\n deprecated : typing___Optional[builtin___bool] = None,\n uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"allow_alias",b"allow_alias",u"deprecated",b"deprecated"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"allow_alias",b"allow_alias",u"deprecated",b"deprecated",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ...\ntype___EnumOptions = EnumOptions\n\nclass EnumValueOptions(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n deprecated: builtin___bool = ...\n\n @property\n def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ...\n\n def __init__(self,\n *,\n deprecated : typing___Optional[builtin___bool] = None,\n uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ...\ntype___EnumValueOptions = EnumValueOptions\n\nclass ServiceOptions(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n deprecated: builtin___bool = ...\n\n @property\n def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ...\n\n def __init__(self,\n *,\n deprecated : typing___Optional[builtin___bool] = None,\n uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ...\ntype___ServiceOptions = ServiceOptions\n\nclass MethodOptions(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n IdempotencyLevelValue = typing___NewType('IdempotencyLevelValue', builtin___int)\n type___IdempotencyLevelValue = IdempotencyLevelValue\n IdempotencyLevel: _IdempotencyLevel\n class _IdempotencyLevel(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[MethodOptions.IdempotencyLevelValue]):\n DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...\n IDEMPOTENCY_UNKNOWN = typing___cast(MethodOptions.IdempotencyLevelValue, 0)\n NO_SIDE_EFFECTS = typing___cast(MethodOptions.IdempotencyLevelValue, 1)\n IDEMPOTENT = typing___cast(MethodOptions.IdempotencyLevelValue, 2)\n IDEMPOTENCY_UNKNOWN = typing___cast(MethodOptions.IdempotencyLevelValue, 0)\n NO_SIDE_EFFECTS = typing___cast(MethodOptions.IdempotencyLevelValue, 1)\n IDEMPOTENT = typing___cast(MethodOptions.IdempotencyLevelValue, 2)\n\n deprecated: builtin___bool = ...\n idempotency_level: type___MethodOptions.IdempotencyLevelValue = ...\n\n @property\n def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ...\n\n def __init__(self,\n *,\n deprecated : typing___Optional[builtin___bool] = None,\n idempotency_level : typing___Optional[type___MethodOptions.IdempotencyLevelValue] = None,\n uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"idempotency_level",b"idempotency_level"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"idempotency_level",b"idempotency_level",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ...\ntype___MethodOptions = MethodOptions\n\nclass UninterpretedOption(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n class NamePart(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n name_part: typing___Text = ...\n is_extension: builtin___bool = ...\n\n def __init__(self,\n *,\n name_part : typing___Optional[typing___Text] = None,\n is_extension : typing___Optional[builtin___bool] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"is_extension",b"is_extension",u"name_part",b"name_part"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"is_extension",b"is_extension",u"name_part",b"name_part"]) -> None: ...\n type___NamePart = NamePart\n\n identifier_value: typing___Text = ...\n positive_int_value: builtin___int = ...\n negative_int_value: builtin___int = ...\n double_value: builtin___float = ...\n string_value: builtin___bytes = ...\n aggregate_value: typing___Text = ...\n\n @property\n def name(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption.NamePart]: ...\n\n def __init__(self,\n *,\n name : typing___Optional[typing___Iterable[type___UninterpretedOption.NamePart]] = None,\n identifier_value : typing___Optional[typing___Text] = None,\n positive_int_value : typing___Optional[builtin___int] = None,\n negative_int_value : typing___Optional[builtin___int] = None,\n double_value : typing___Optional[builtin___float] = None,\n string_value : typing___Optional[builtin___bytes] = None,\n aggregate_value : typing___Optional[typing___Text] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"aggregate_value",b"aggregate_value",u"double_value",b"double_value",u"identifier_value",b"identifier_value",u"negative_int_value",b"negative_int_value",u"positive_int_value",b"positive_int_value",u"string_value",b"string_value"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"aggregate_value",b"aggregate_value",u"double_value",b"double_value",u"identifier_value",b"identifier_value",u"name",b"name",u"negative_int_value",b"negative_int_value",u"positive_int_value",b"positive_int_value",u"string_value",b"string_value"]) -> None: ...\ntype___UninterpretedOption = UninterpretedOption\n\nclass SourceCodeInfo(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n class Location(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n path: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...\n span: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...\n leading_comments: typing___Text = ...\n trailing_comments: typing___Text = ...\n leading_detached_comments: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...\n\n def __init__(self,\n *,\n path : typing___Optional[typing___Iterable[builtin___int]] = None,\n span : typing___Optional[typing___Iterable[builtin___int]] = None,\n leading_comments : typing___Optional[typing___Text] = None,\n trailing_comments : typing___Optional[typing___Text] = None,\n leading_detached_comments : typing___Optional[typing___Iterable[typing___Text]] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"leading_comments",b"leading_comments",u"trailing_comments",b"trailing_comments"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"leading_comments",b"leading_comments",u"leading_detached_comments",b"leading_detached_comments",u"path",b"path",u"span",b"span",u"trailing_comments",b"trailing_comments"]) -> None: ...\n type___Location = Location\n\n\n @property\n def location(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SourceCodeInfo.Location]: ...\n\n def __init__(self,\n *,\n location : typing___Optional[typing___Iterable[type___SourceCodeInfo.Location]] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"location",b"location"]) -> None: ...\ntype___SourceCodeInfo = SourceCodeInfo\n\nclass GeneratedCodeInfo(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n class Annotation(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n path: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...\n source_file: typing___Text = ...\n begin: builtin___int = ...\n end: builtin___int = ...\n\n def __init__(self,\n *,\n path : typing___Optional[typing___Iterable[builtin___int]] = None,\n source_file : typing___Optional[typing___Text] = None,\n begin : typing___Optional[builtin___int] = None,\n end : typing___Optional[builtin___int] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"begin",b"begin",u"end",b"end",u"source_file",b"source_file"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"begin",b"begin",u"end",b"end",u"path",b"path",u"source_file",b"source_file"]) -> None: ...\n type___Annotation = Annotation\n\n\n @property\n def annotation(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___GeneratedCodeInfo.Annotation]: ...\n\n def __init__(self,\n *,\n annotation : typing___Optional[typing___Iterable[type___GeneratedCodeInfo.Annotation]] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation"]) -> None: ...\ntype___GeneratedCodeInfo = GeneratedCodeInfo\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\descriptor_pb2.pyi | descriptor_pb2.pyi | Other | 43,146 | 0.85 | 0.19891 | 0.042994 | awesome-app | 382 | 2024-12-21T06:19:15.622606 | MIT | false | 66f4be101502eabf566a7694cebc9e9a |
from typing import Any, Optional\n\nclass DescriptorPool:\n def __new__(cls, descriptor_db: Optional[Any] = ...): ...\n def __init__(self, descriptor_db: Optional[Any] = ...) -> None: ...\n def Add(self, file_desc_proto): ...\n def AddSerializedFile(self, serialized_file_desc_proto): ...\n def AddDescriptor(self, desc): ...\n def AddEnumDescriptor(self, enum_desc): ...\n def AddFileDescriptor(self, file_desc): ...\n def FindFileByName(self, file_name): ...\n def FindFileContainingSymbol(self, symbol): ...\n def FindMessageTypeByName(self, full_name): ...\n def FindEnumTypeByName(self, full_name): ...\n def FindFieldByName(self, full_name): ...\n def FindExtensionByName(self, full_name): ...\n\ndef Default(): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\descriptor_pool.pyi | descriptor_pool.pyi | Other | 744 | 0.85 | 0.833333 | 0 | awesome-app | 837 | 2023-11-28T03:58:30.189440 | GPL-3.0 | false | 4f2008c20aa1b810ee4412c40c3cf285 |
"""\n@generated by mypy-protobuf. Do not edit manually!\nisort:skip_file\n"""\nfrom google.protobuf.descriptor import (\n Descriptor as google___protobuf___descriptor___Descriptor,\n FileDescriptor as google___protobuf___descriptor___FileDescriptor,\n)\n\nfrom google.protobuf.internal.well_known_types import (\n Duration as google___protobuf___internal___well_known_types___Duration,\n)\n\nfrom google.protobuf.message import (\n Message as google___protobuf___message___Message,\n)\n\nfrom typing import (\n Optional as typing___Optional,\n)\n\nfrom typing_extensions import (\n Literal as typing_extensions___Literal,\n)\n\n\nbuiltin___bool = bool\nbuiltin___bytes = bytes\nbuiltin___float = float\nbuiltin___int = int\n\n\nDESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...\n\nclass Duration(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Duration):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n seconds: builtin___int = ...\n nanos: builtin___int = ...\n\n def __init__(self,\n *,\n seconds : typing___Optional[builtin___int] = None,\n nanos : typing___Optional[builtin___int] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"nanos",b"nanos",u"seconds",b"seconds"]) -> None: ...\ntype___Duration = Duration\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\duration_pb2.pyi | duration_pb2.pyi | Other | 1,348 | 0.85 | 0.065217 | 0.027778 | python-kit | 546 | 2025-02-28T21:59:47.919711 | Apache-2.0 | false | 4897414a66693632959d616c85acb952 |
"""\n@generated by mypy-protobuf. Do not edit manually!\nisort:skip_file\n"""\nfrom google.protobuf.descriptor import (\n Descriptor as google___protobuf___descriptor___Descriptor,\n FileDescriptor as google___protobuf___descriptor___FileDescriptor,\n)\n\nfrom google.protobuf.message import (\n Message as google___protobuf___message___Message,\n)\n\n\nDESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...\n\nclass Empty(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n\n def __init__(self,\n ) -> None: ...\ntype___Empty = Empty\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\empty_pb2.pyi | empty_pb2.pyi | Other | 603 | 0.85 | 0.090909 | 0 | awesome-app | 169 | 2024-01-08T18:53:06.433822 | BSD-3-Clause | false | f4ee0a95564aefced12d8064376b4c65 |
"""\n@generated by mypy-protobuf. Do not edit manually!\nisort:skip_file\n"""\nfrom google.protobuf.descriptor import (\n Descriptor as google___protobuf___descriptor___Descriptor,\n FileDescriptor as google___protobuf___descriptor___FileDescriptor,\n)\n\nfrom google.protobuf.internal.containers import (\n RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer,\n)\n\nfrom google.protobuf.internal.well_known_types import (\n FieldMask as google___protobuf___internal___well_known_types___FieldMask,\n)\n\nfrom google.protobuf.message import (\n Message as google___protobuf___message___Message,\n)\n\nfrom typing import (\n Iterable as typing___Iterable,\n Optional as typing___Optional,\n Text as typing___Text,\n)\n\nfrom typing_extensions import (\n Literal as typing_extensions___Literal,\n)\n\n\nbuiltin___bool = bool\nbuiltin___bytes = bytes\nbuiltin___float = float\nbuiltin___int = int\n\n\nDESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...\n\nclass FieldMask(google___protobuf___message___Message, google___protobuf___internal___well_known_types___FieldMask):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n paths: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...\n\n def __init__(self,\n *,\n paths : typing___Optional[typing___Iterable[typing___Text]] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"paths",b"paths"]) -> None: ...\ntype___FieldMask = FieldMask\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\field_mask_pb2.pyi | field_mask_pb2.pyi | Other | 1,558 | 0.85 | 0.06 | 0.025641 | awesome-app | 113 | 2024-02-26T17:46:21.300164 | Apache-2.0 | false | b0ee2cfc7b6a6786bb311a90b954475b |
from typing import Any, Dict, Text, TypeVar, Union\n\nfrom google.protobuf.message import Message\n\n_MessageVar = TypeVar("_MessageVar", bound=Message)\n\nclass Error(Exception): ...\nclass ParseError(Error): ...\nclass SerializeToJsonError(Error): ...\n\ndef MessageToJson(\n message: Message,\n including_default_value_fields: bool = ...,\n preserving_proto_field_name: bool = ...,\n indent: int = ...,\n sort_keys: bool = ...,\n use_integers_for_enums: bool = ...,\n) -> str: ...\ndef MessageToDict(\n message: Message,\n including_default_value_fields: bool = ...,\n preserving_proto_field_name: bool = ...,\n use_integers_for_enums: bool = ...,\n) -> Dict[Text, Any]: ...\ndef Parse(text: Union[bytes, Text], message: _MessageVar, ignore_unknown_fields: bool = ...) -> _MessageVar: ...\ndef ParseDict(js_dict: Any, message: _MessageVar, ignore_unknown_fields: bool = ...) -> _MessageVar: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\json_format.pyi | json_format.pyi | Other | 903 | 0.85 | 0.269231 | 0 | awesome-app | 492 | 2025-04-18T14:54:46.490982 | Apache-2.0 | false | 5d3a9cba6e166e734ad22a26606aa44d |
import sys\nfrom typing import Any, ByteString, Sequence, Tuple, Type, TypeVar, Union, overload\n\nfrom .descriptor import Descriptor, FieldDescriptor\nfrom .internal.extension_dict import _ExtensionDict, _ExtensionFieldDescriptor\n\nclass Error(Exception): ...\nclass DecodeError(Error): ...\nclass EncodeError(Error): ...\n\n_M = TypeVar("_M", bound=Message) # message type (of self)\n\nif sys.version_info < (3,):\n _Serialized = Union[bytes, buffer, unicode]\nelse:\n _Serialized = ByteString\n\nclass Message:\n DESCRIPTOR: Descriptor\n def __deepcopy__(self, memo=...): ...\n def __eq__(self, other_msg): ...\n def __ne__(self, other_msg): ...\n def MergeFrom(self: _M, other_msg: _M) -> None: ...\n def CopyFrom(self: _M, other_msg: _M) -> None: ...\n def Clear(self) -> None: ...\n def SetInParent(self) -> None: ...\n def IsInitialized(self) -> bool: ...\n def MergeFromString(self, serialized: _Serialized) -> int: ...\n def ParseFromString(self, serialized: _Serialized) -> int: ...\n def SerializeToString(self, deterministic: bool = ...) -> bytes: ...\n def SerializePartialToString(self, deterministic: bool = ...) -> bytes: ...\n def ListFields(self) -> Sequence[Tuple[FieldDescriptor, Any]]: ...\n # Dummy fallback overloads with FieldDescriptor are for backward compatibility with\n # mypy-protobuf <= 1.23. We can drop them a few months after 1.24 releases.\n @overload\n def HasExtension(self: _M, extension_handle: _ExtensionFieldDescriptor[_M, Any]) -> bool: ...\n @overload\n def HasExtension(self, extension_handle: FieldDescriptor) -> bool: ...\n @overload\n def ClearExtension(self: _M, extension_handle: _ExtensionFieldDescriptor[_M, Any]) -> None: ...\n @overload\n def ClearExtension(self, extension_handle: FieldDescriptor) -> None: ...\n def ByteSize(self) -> int: ...\n @classmethod\n def FromString(cls: Type[_M], s: _Serialized) -> _M: ...\n @property\n def Extensions(self: _M) -> _ExtensionDict[_M]: ...\n # Intentionally left out typing on these three methods, because they are\n # stringly typed and it is not useful to call them on a Message directly.\n # We prefer more specific typing on individual subclasses of Message\n # See https://github.com/dropbox/mypy-protobuf/issues/62 for details\n def HasField(self, field_name: Any) -> bool: ...\n def ClearField(self, field_name: Any) -> None: ...\n def WhichOneof(self, oneof_group: Any) -> Any: ...\n # TODO: check kwargs\n def __init__(self, **kwargs) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\message.pyi | message.pyi | Other | 2,522 | 0.95 | 0.553571 | 0.137255 | vue-tools | 493 | 2024-08-22T19:04:57.755731 | MIT | false | e620d23007052f3cc6222381c5eb2dfd |
from typing import Any, Dict, Iterable, Optional, Type\n\nfrom google.protobuf.descriptor import Descriptor\nfrom google.protobuf.descriptor_pb2 import FileDescriptorProto\nfrom google.protobuf.descriptor_pool import DescriptorPool\nfrom google.protobuf.message import Message\n\nclass MessageFactory:\n pool: Any\n def __init__(self, pool: Optional[DescriptorPool] = ...) -> None: ...\n def GetPrototype(self, descriptor: Descriptor) -> Type[Message]: ...\n def GetMessages(self, files: Iterable[str]) -> Dict[str, Type[Message]]: ...\n\ndef GetMessages(file_protos: Iterable[FileDescriptorProto]) -> Dict[str, Type[Message]]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\message_factory.pyi | message_factory.pyi | Other | 631 | 0.85 | 0.357143 | 0 | python-kit | 760 | 2023-09-06T21:08:22.760714 | MIT | false | 8c09e14cbc5fa52a438e8f604bd6eaac |
class GeneratedProtocolMessageType(type):\n def __new__(cls, name, bases, dictionary): ...\n def __init__(self, name, bases, dictionary) -> None: ...\n\ndef ParseMessage(descriptor, byte_str): ...\ndef MakeClass(descriptor): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\reflection.pyi | reflection.pyi | Other | 230 | 0.85 | 0.833333 | 0 | vue-tools | 80 | 2023-12-07T05:06:59.614503 | GPL-3.0 | false | 8b94abae55235ae3db76023275e2aeb0 |
from concurrent.futures import Future\nfrom typing import Callable, Optional, Text, Type\n\nfrom google.protobuf.descriptor import MethodDescriptor, ServiceDescriptor\nfrom google.protobuf.message import Message\n\nclass RpcException(Exception): ...\n\nclass Service:\n @staticmethod\n def GetDescriptor() -> ServiceDescriptor: ...\n def CallMethod(\n self,\n method_descriptor: MethodDescriptor,\n rpc_controller: RpcController,\n request: Message,\n done: Optional[Callable[[Message], None]],\n ) -> Optional[Future[Message]]: ...\n def GetRequestClass(self, method_descriptor: MethodDescriptor) -> Type[Message]: ...\n def GetResponseClass(self, method_descriptor: MethodDescriptor) -> Type[Message]: ...\n\nclass RpcController:\n def Reset(self) -> None: ...\n def Failed(self) -> bool: ...\n def ErrorText(self) -> Optional[Text]: ...\n def StartCancel(self) -> None: ...\n def SetFailed(self, reason: Text) -> None: ...\n def IsCanceled(self) -> bool: ...\n def NotifyOnCancel(self, callback: Callable[[], None]) -> None: ...\n\nclass RpcChannel:\n def CallMethod(\n self,\n method_descriptor: MethodDescriptor,\n rpc_controller: RpcController,\n request: Message,\n response_class: Type[Message],\n done: Optional[Callable[[Message], None]],\n ) -> Optional[Future[Message]]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\service.pyi | service.pyi | Other | 1,371 | 0.85 | 0.410256 | 0 | vue-tools | 485 | 2024-06-07T03:31:27.786139 | Apache-2.0 | false | 9a358352541ed8f2d6de4a7a65e31bb5 |
"""\n@generated by mypy-protobuf. Do not edit manually!\nisort:skip_file\n"""\nfrom google.protobuf.descriptor import (\n Descriptor as google___protobuf___descriptor___Descriptor,\n FileDescriptor as google___protobuf___descriptor___FileDescriptor,\n)\n\nfrom google.protobuf.message import (\n Message as google___protobuf___message___Message,\n)\n\nfrom typing import (\n Optional as typing___Optional,\n Text as typing___Text,\n)\n\nfrom typing_extensions import (\n Literal as typing_extensions___Literal,\n)\n\n\nbuiltin___bool = bool\nbuiltin___bytes = bytes\nbuiltin___float = float\nbuiltin___int = int\n\n\nDESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...\n\nclass SourceContext(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n file_name: typing___Text = ...\n\n def __init__(self,\n *,\n file_name : typing___Optional[typing___Text] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"file_name",b"file_name"]) -> None: ...\ntype___SourceContext = SourceContext\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\source_context_pb2.pyi | source_context_pb2.pyi | Other | 1,097 | 0.85 | 0.073171 | 0.03125 | awesome-app | 259 | 2024-07-15T06:34:08.008822 | Apache-2.0 | false | 73b1f31d339000461d269678daa5dce0 |
"""\n@generated by mypy-protobuf. Do not edit manually!\nisort:skip_file\n"""\nfrom google.protobuf.descriptor import (\n Descriptor as google___protobuf___descriptor___Descriptor,\n EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,\n FileDescriptor as google___protobuf___descriptor___FileDescriptor,\n)\n\nfrom google.protobuf.internal.containers import (\n MessageMap as google___protobuf___internal___containers___MessageMap,\n RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer,\n)\n\nfrom google.protobuf.internal.enum_type_wrapper import (\n _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper,\n)\n\nfrom google.protobuf.internal.well_known_types import (\n ListValue as google___protobuf___internal___well_known_types___ListValue,\n Struct as google___protobuf___internal___well_known_types___Struct,\n)\n\nfrom google.protobuf.message import (\n Message as google___protobuf___message___Message,\n)\n\nfrom typing import (\n Iterable as typing___Iterable,\n Mapping as typing___Mapping,\n NewType as typing___NewType,\n Optional as typing___Optional,\n Text as typing___Text,\n cast as typing___cast,\n)\n\nfrom typing_extensions import (\n Literal as typing_extensions___Literal,\n)\n\n\nbuiltin___bool = bool\nbuiltin___bytes = bytes\nbuiltin___float = float\nbuiltin___int = int\n\n\nDESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...\n\nNullValueValue = typing___NewType('NullValueValue', builtin___int)\ntype___NullValueValue = NullValueValue\nNullValue: _NullValue\nclass _NullValue(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[NullValueValue]):\n DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...\n NULL_VALUE = typing___cast(NullValueValue, 0)\nNULL_VALUE = typing___cast(NullValueValue, 0)\n\nclass Struct(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Struct):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n class FieldsEntry(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n key: typing___Text = ...\n\n @property\n def value(self) -> type___Value: ...\n\n def __init__(self,\n *,\n key : typing___Optional[typing___Text] = None,\n value : typing___Optional[type___Value] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...\n type___FieldsEntry = FieldsEntry\n\n\n @property\n def fields(self) -> google___protobuf___internal___containers___MessageMap[typing___Text, type___Value]: ...\n\n def __init__(self,\n *,\n fields : typing___Optional[typing___Mapping[typing___Text, type___Value]] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"fields",b"fields"]) -> None: ...\ntype___Struct = Struct\n\nclass Value(google___protobuf___message___Message):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n null_value: type___NullValueValue = ...\n number_value: builtin___float = ...\n string_value: typing___Text = ...\n bool_value: builtin___bool = ...\n\n @property\n def struct_value(self) -> type___Struct: ...\n\n @property\n def list_value(self) -> type___ListValue: ...\n\n def __init__(self,\n *,\n null_value : typing___Optional[type___NullValueValue] = None,\n number_value : typing___Optional[builtin___float] = None,\n string_value : typing___Optional[typing___Text] = None,\n bool_value : typing___Optional[builtin___bool] = None,\n struct_value : typing___Optional[type___Struct] = None,\n list_value : typing___Optional[type___ListValue] = None,\n ) -> None: ...\n def HasField(self, field_name: typing_extensions___Literal[u"bool_value",b"bool_value",u"kind",b"kind",u"list_value",b"list_value",u"null_value",b"null_value",u"number_value",b"number_value",u"string_value",b"string_value",u"struct_value",b"struct_value"]) -> builtin___bool: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"bool_value",b"bool_value",u"kind",b"kind",u"list_value",b"list_value",u"null_value",b"null_value",u"number_value",b"number_value",u"string_value",b"string_value",u"struct_value",b"struct_value"]) -> None: ...\n def WhichOneof(self, oneof_group: typing_extensions___Literal[u"kind",b"kind"]) -> typing_extensions___Literal["null_value","number_value","string_value","bool_value","struct_value","list_value"]: ...\ntype___Value = Value\n\nclass ListValue(google___protobuf___message___Message, google___protobuf___internal___well_known_types___ListValue):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n\n @property\n def values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Value]: ...\n\n def __init__(self,\n *,\n values : typing___Optional[typing___Iterable[type___Value]] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"values",b"values"]) -> None: ...\ntype___ListValue = ListValue\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\struct_pb2.pyi | struct_pb2.pyi | Other | 5,358 | 0.85 | 0.166667 | 0.039216 | react-lib | 352 | 2024-03-08T15:28:16.373429 | MIT | false | 2fcff698ead4a50f3d8e1ed085473b20 |
from typing import Dict, Iterable, Type, Union\n\nfrom google.protobuf.descriptor import Descriptor, EnumDescriptor, FileDescriptor, ServiceDescriptor\nfrom google.protobuf.message import Message\nfrom google.protobuf.message_factory import MessageFactory\n\nclass SymbolDatabase(MessageFactory):\n def RegisterMessage(self, message: Union[Type[Message], Message]) -> Union[Type[Message], Message]: ...\n def RegisterMessageDescriptor(self, message_descriptor: Descriptor) -> None: ...\n def RegisterEnumDescriptor(self, enum_descriptor: EnumDescriptor) -> EnumDescriptor: ...\n def RegisterServiceDescriptor(self, service_descriptor: ServiceDescriptor) -> None: ...\n def RegisterFileDescriptor(self, file_descriptor: FileDescriptor) -> None: ...\n def GetSymbol(self, symbol: str) -> Type[Message]: ...\n def GetMessages(self, files: Iterable[str]) -> Dict[str, Type[Message]]: ...\n\ndef Default(): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\symbol_database.pyi | symbol_database.pyi | Other | 912 | 0.85 | 0.5625 | 0 | react-lib | 361 | 2025-01-05T07:24:50.149925 | GPL-3.0 | false | 233023d428483cfce7f87a42e8171be6 |
"""\n@generated by mypy-protobuf. Do not edit manually!\nisort:skip_file\n"""\nfrom google.protobuf.descriptor import (\n Descriptor as google___protobuf___descriptor___Descriptor,\n FileDescriptor as google___protobuf___descriptor___FileDescriptor,\n)\n\nfrom google.protobuf.internal.well_known_types import (\n Timestamp as google___protobuf___internal___well_known_types___Timestamp,\n)\n\nfrom google.protobuf.message import (\n Message as google___protobuf___message___Message,\n)\n\nfrom typing import (\n Optional as typing___Optional,\n)\n\nfrom typing_extensions import (\n Literal as typing_extensions___Literal,\n)\n\n\nbuiltin___bool = bool\nbuiltin___bytes = bytes\nbuiltin___float = float\nbuiltin___int = int\n\n\nDESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...\n\nclass Timestamp(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Timestamp):\n DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...\n seconds: builtin___int = ...\n nanos: builtin___int = ...\n\n def __init__(self,\n *,\n seconds : typing___Optional[builtin___int] = None,\n nanos : typing___Optional[builtin___int] = None,\n ) -> None: ...\n def ClearField(self, field_name: typing_extensions___Literal[u"nanos",b"nanos",u"seconds",b"seconds"]) -> None: ...\ntype___Timestamp = Timestamp\n | .venv\Lib\site-packages\jedi\third_party\typeshed\third_party\2and3\google\protobuf\timestamp_pb2.pyi | timestamp_pb2.pyi | Other | 1,354 | 0.85 | 0.065217 | 0.027778 | node-utils | 26 | 2023-10-01T19:18:40.535983 | MIT | false | c36afa6d867524ed8f084b13eda8dac8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.