--- id: types-jwt version: "0.1.3" license: Apache-2.0 license license_treatment: permissive maintenance: active --- # types-jwt — Typing stubs for jwt License: permissive · Maintenance: active · Downloads: 104.9K/mo ## 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 above — 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 pip install types-jwt uv add types-jwt poetry add types-jwt ## Installing 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: unspecified - Install friction: low - Maintenance: active - Downloads: 104.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags jwt type stubs, type checking jwt, mypy jwt types, jwt static type checking, pep 561 jwt stubs, jwt type annotations, type-stubs, deprecated [View on SkillFed](https://skillfed.io/packages/types-jwt) · [View on PyPI](https://pypi.org/project/types-jwt/)