# PyJWT

> JSON Web Tokens for Python

Source: https://talira.ai/catalog/pyjwt-sz75enne
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [security / auth / libraries](https://talira.ai/categories/security/auth/libraries), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Supports: [JWT](https://talira.ai/standards/jwt.md)[^2]
- Backed by: [José Padilla](https://talira.ai/orgs/jose-padilla.md)

PyJWT is a Python implementation of JSON Web Tokens (RFC 7519): jwt.encode() signs a payload and jwt.decode() verifies it against the algorithms you allow. It supports HMAC (HS256, HS384, HS512), RSA (RS256 to RS512 and PS256 to PS512), ECDSA (ES256, ES256K, ES384, ES512) and EdDSA (Ed25519 and Ed448), and warns about, or refuses, keys shorter than the standards' minimums.

## Links

- GitHub: https://github.com/jpadilla/pyjwt
- Docs: https://pyjwt.readthedocs.io/

## Problems it solves

- issue and verify JWT access tokens in my Python API
- validate tokens from an identity provider in a Flask or FastAPI app
- sign tokens with RS256 so other services can verify them with a public key

## Features

- encode and decode JWTs
- HMAC, RSA, RSA-PSS, ECDSA and EdDSA algorithms
- minimum key length checks

## Trust

Overall: 0.66 out of 1.
Signals: maintenance 0.95, adoption 0.75, momentum 0.45, community 0.90, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 52 commits in the last 90 days
- latest release 2.15.1 2 months ago
- 5.7k GitHub stars
- 174 contributors
- accepts sponsorship (Github)
- backed by José Padilla

## Sources

[^1]: https://github.com/jpadilla/pyjwt/blob/master/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/jpadilla/pyjwt/blob/master/README.rst (checked 29 Nov 2026)
