--- id: types-cryptography version: "3.3.23.2" license: Apache-2.0 license license_treatment: permissive maintenance: active --- # types-cryptography — Typing stubs for cryptography License: permissive · Maintenance: active · Downloads: 2.1M/mo ## What it is and what it does types-cryptography is a PEP 561 type stub package that provides type information for the cryptography library. It allows static type checkers to understand and validate the types of cryptography's public API when used in code, enabling IDE autocompletion and catching type errors before runtime. The package is generated from typeshed, the community-maintained repository of type stubs for popular Python libraries. However, the cryptography package itself has included native type annotations since version 3.4.4, so this stub package is now primarily useful only if constrained to an older version of cryptography. The description explicitly recommends uninstalling this package if using cryptography 3.4.4 or newer. Use it for: - Type-checking a codebase using cryptography < 3.4.4 with a PEP 561-compatible type checker. - Enabling IDE type hints and autocompletion for cryptography when using older cryptography versions. - Validating cryptographic code in CI/CD pipelines running static type analysis on projects locked to pre-3.4.4 cryptography. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides PEP 561 type stubs for the cryptography package, enabling static type checkers to validate code using cryptography. No, unless you are locked to cryptography < 3.4.4. The cryptography package has included its own type stubs since version 3.4.4, making this package redundant for modern setups. The package has not been updated since 2022-11-08, and the description explicitly recommends uninstalling it if using cryptography 3.4.4 or newer. ## Install pip install types-cryptography uv add types-cryptography poetry add types-cryptography ## Installing types-cryptography Before you install: Low install friction with no runtime dependencies. Maintenance is active, though the package has not had a release since 2022-11-08; the description notes that cryptography has included its own type stubs since version 3.4.4, potentially making this package redundant. License in practice: Licensed under Apache-2.0 (permissive), imposing no significant restrictions on use or distribution. Quickstart: pip install types-cryptography # Type checker will now resolve types for cryptography imports Only useful if you are using a type checker and have cryptography version < 3.4.4; newer versions of cryptography include their own type stubs. Verify before relying: - Whether installing this alongside cryptography >= 3.4.4 causes type-checking conflicts or is simply redundant. - Current maintenance status and whether updates are expected given the 2022-11-08 release date. ## Package facts - License: Apache-2.0 license (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 2.1M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs cryptography, cryptography type checking, pep 561 stubs, cryptography type hints, static type validation, type annotations cryptography, type-stubs, type-checking [View on SkillFed](https://skillfed.io/packages/types-cryptography) · [View on PyPI](https://pypi.org/project/types-cryptography/)