skillfed

types-jwt

Typing stubs for jwt

types-jwt v0.1.3 104.9K downloads/30d#12,733 on PyPI5,108
Permissive license Apache-2.0 license Active released

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-jwt

uv

uv add types-jwt

poetry

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 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

License :: OSI Approved :: Apache Software LicenseTyping :: Typed

Tags

jwt type stubstype checking jwtmypy jwt typesjwt static type checkingpep 561 jwt stubsjwt type annotations
type-stubsdeprecated

More Software Development packages