types-cryptography
Typing stubs for cryptography
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- 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.
- 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 · maintenance · safety
Apache-2.0 license (permissive) — Licensed under Apache-2.0 (permissive), imposing no significant restrictions on use or distribution.
last release 2022-11-08 (1375 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,132,004 downloads/mo, #3,267 on PyPI
Alternatives
Verify before relying
pip install types-cryptography
# Type checker will now resolve types for cryptography imports- 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.
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 on this page. Verify before relying on it.
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
types-cryptography on PyPI
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.
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.
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
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 | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,375 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,132,004 / month, #3,267 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_cryptography-3.3.23.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs cryptography”
- types-cryptographyProvides PEP 561 type stubs for the cryptography package, enabling…
- types-pyOpenSSLProvides type stubs for pyOpenSSL to enable static type checking with…
- mypy-boto3-payment-cryptographyProvides type annotations and IDE autocompletion for boto3's…
Give your agent the search over MCP, or paste the wish link into any chat.
More Cryptography packages
Certifi provides Mozilla's curated collection of root SSL certificates for Python applications to validate TLS hosts and verify certificate trustworthiness.
cryptography provides cryptographic recipes and low-level primitives for symmetric encryption, message digests, key derivation, and other common cryptographic algorithms in Python.
Pure-Python RSA encryption, decryption, signing, and key generation following PKCS#1 v1.5, with command-line and library interfaces.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
Provides Microsoft Entra ID token-based authentication for Azure SDK clients through a set of TokenCredential implementations that handle OAuth flows and managed identity support.
PyNaCl provides Python bindings to libsodium for digital signatures, secret-key and public-key encryption, hashing, message authentication, and password-based key derivation.
See also types-Werkzeug · types-certifi · types-attrs · types-jwt · types-backports · types-orjson · types-click · types-tornado · data-science-types · types-ipaddress