types-jwt
Typing stubs for jwt
What it is and what it does
types-jwt is a PEP 561 type stub package auto-generated from typeshed that provides type information for the jwt package. It allows static type checkers (mypy, PyCharm, pytype) to understand and validate the types used in jwt code, catching type errors before runtime.
This package was designed for older jwt versions that lacked native type annotations. The jwt package has included its own type stubs since version 2.0.0, making types-jwt redundant for modern installations. The package itself has not been updated since 2021-05-12, and the underlying typeshed repository remains active, but the stub is likely no longer the recommended path for type checking jwt code.
Use it for:
- Type-checking legacy code that uses jwt package versions prior to 2.0.0 with mypy or similar tools
- Validating JWT encoding and decoding operations in a type-strict codebase when using older jwt versions
- Enabling IDE autocompletion and type hints for jwt functions in projects locked to pre-2.0.0 jwt releases
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the jwt package, enabling static type checkers like mypy and PyCharm to validate code that uses JWT authentication.
No, unless you are locked to jwt < 2.0.0. For jwt >= 2.0.0, the package itself provides type annotations, making this stub obsolete. The stub has not been updated since 2021-05-12 and is unlikely to track current jwt versions. Install the jwt package directly and rely on its native types instead.
Install
types-jwt on PyPI
pip
pip install types-jwtuv
uv add types-jwtpoetry
poetry add types-jwtInstalling types-jwt
Before you install
Low install friction with a single permissive runtime dependency (types-cryptography). However, the package has not been updated since 2021-05-12; the jwt package itself has included native type annotations since version 2.0.0, making this stub package potentially obsolete for modern jwt versions.
License in practice
Licensed under Apache-2.0 (permissive), imposing no restrictions on use or redistribution in most contexts.
Quickstart
pip install types-jwt
# Then use with mypy or other type checkers on code that imports jwt
import jwt
token = jwt.encode({"data": "value"}, "secret")
Only useful if you are using jwt package version < 2.0.0, which lacks native type annotations. For jwt >= 2.0.0, uninstall this package and rely on the jwt package's built-in types.
Verify before relying
- Whether this stub package is still maintained or synced with current jwt package versions
- Compatibility with recent jwt package releases and whether native annotations have superseded these stubs
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — types-cryptography |
| Maintenance | actively maintained — 1,920 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 104,882/month — #12,733 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_jwt-0.1.3-py2.py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-PyJWTProvides type stubs for PyJWT to enable static…
permissive · top 15,000 on PyPI
types-attrsProvides PEP 561 type stubs for the attrs…
permissive · top 15,000 on PyPI
types-MarkupSafeProvides type stubs for MarkupSafe, enabling…
permissive · top 5,000 on PyPI
types-cryptographyProvides PEP 561 type stubs for the…
permissive · top 5,000 on PyPI
types-backportsProvides PEP 561 type stubs for the backports…
permissive · top 15,000 on PyPI
types-orjsonProvides PEP 561 type stubs for the orjson…
permissive · top 15,000 on PyPI
types-certifiProvides type stubs for the certifi package to…
permissive · top 1,000 on PyPI
types-Jinja2Provides PEP 561 type stubs for Jinja2,…
permissive · top 5,000 on PyPI
types-tornadoProvides PEP 561 type stubs for tornado,…
permissive · top 15,000 on PyPI
types-WerkzeugProvides PEP 561 type stubs for Werkzeug,…
permissive · top 5,000 on PyPI