types-jwcrypto
Typing stubs for jwcrypto
What it is and what it does
types-jwcrypto is a type stub package that adds static type information to the jwcrypto cryptographic library. It allows type checkers like mypy and pyright to understand and verify the types of jwcrypto's functions, classes, and methods as you use them in your code. This is particularly useful for catching type-related bugs before runtime when working with JWT tokens, cryptographic keys, and related operations.
The stubs are maintained as part of the typeshed project and are tested against mypy 2.3.0 and pyright 1.1.411. They target jwcrypto version 1.5.8. Installation is straightforward and adds only a lightweight dependency on cryptography. Since this is a stub-only package, it does not execute code itself—it exists purely to inform your type checker.
Use it for:
- Enable mypy or pyright to type-check code that imports and uses jwcrypto for JWT token creation and validation.
- Catch type mismatches in cryptographic key handling before runtime in large codebases.
- Improve IDE autocomplete and inline documentation when working with jwcrypto APIs.
- Enforce type safety in projects that require strict static analysis of security-sensitive cryptographic code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type annotations for the jwcrypto library, enabling static type checkers like mypy and pyright to verify code that uses jwcrypto for cryptographic operations.
Yes, if you use jwcrypto and run a static type checker. The stubs are actively maintained, have no security vulnerabilities, and carry a permissive license. Install it alongside jwcrypto to gain type safety with minimal overhead. Not necessary if you do not use type checking.
Install
types-jwcrypto on PyPI
pip
pip install types-jwcryptouv
uv add types-jwcryptopoetry
poetry add types-jwcryptoInstalling types-jwcrypto
Before you install
Low friction installation with a single runtime dependency on cryptography. Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install types-jwcrypto
# In your code using jwcrypto:
import jwcrypto.jwt
token = jwcrypto.jwt.JWT(payload=b'{"sub": "user"}')
Requires Python 3.10 or later; jwcrypto library must also be installed separately.
Verify before relying
- Whether type coverage is complete for all jwcrypto 1.5.8 APIs or if gaps remain.
- How frequently these stubs are updated relative to jwcrypto releases.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — cryptography |
| Maintenance | actively maintained — 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 570,983/month — #5,953 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_jwcrypto-1.5.8.20260720-py3-none-any.whl
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
types-regexProvides type annotations for the regex…
permissive · top 5,000 on PyPI
types-simplejsonProvides type annotations for the simplejson…
permissive · top 5,000 on PyPI
types-jmespathProvides type annotations for the jmespath…
permissive · top 5,000 on PyPI
types-oauthlibProvides type stubs for the oauthlib package,…
permissive · top 5,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-python-joseProvides type hints for the python-jose…
permissive · top 5,000 on PyPI
types-boltonsProvides type stubs for the boltons library,…
permissive · top 15,000 on PyPI
types-paramikoProvides type hints for paramiko, enabling…
permissive · top 1,000 on PyPI
types-pyasn1Provides type stubs for the pyasn1 package,…
permissive · top 5,000 on PyPI