types-jwt
Typing stubs for jwt
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- 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.
- Low install friction with a single permissive runtime dependency (types-cryptography).
License · maintenance · safety
Apache-2.0 license (permissive) — Licensed under Apache-2.0 (permissive), imposing no restrictions on use or redistribution in most contexts.
last release 2021-05-12 (1920 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 104,882 downloads/mo, #12,733 on PyPI
Alternatives
Verify before relying
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")- 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
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 on it.
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
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.
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.
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")
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 packagetypes-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 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseTyping :: Typed |
Evidence: types_jwt-0.1.3-py2.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 › “jwt type stubs”
- types-jwtProvides type stubs for the jwt package, enabling static type…
- types-PyJWTProvides type stubs for PyJWT to enable static type checking of JWT…
- types-python-joseProvides type hints for the python-jose library, enabling static type…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-PyJWT · types-attrs · types-MarkupSafe · types-cryptography · types-backports · types-orjson · types-certifi · types-Jinja2 · types-tornado · types-Werkzeug