# jpadilla/pyjwt

JSON Web Token implementation in Python

Repository: https://github.com/jpadilla/pyjwt
Canonical: https://ross.abutalabs.com/products/pyjwt
Homepage: https://pyjwt.readthedocs.io
Language: Python
License: MIT
License Family: permissive
Topics: python, jwt, hacktoberfest
Last push: 2026-08-24T21:53:01+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 72, longevity 100
- inputs: {"age_days": 5669, "days_push": 9, "days_rel": 104, "gap_med": 40, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5694, forks 788 (observed 2026-08-28T04:09:28.007448+00:00)

## What it is
PyJWT is a Python library implementing JSON Web Tokens (JWT) per RFC 7519, supporting encoding and decoding of signed tokens. It is the de facto standard JWT library for Python, published on PyPI as PyJWT.

## Use cases
- encode and decode JWTs in Python
- sign tokens with HS256 or other algorithms
- verify JWT signatures in a web API
- issue access tokens for authentication
- validate expired or malformed tokens

## When to choose
- you need standards-compliant JWT handling in a Python project
- you want a lightweight, well-maintained library with no heavy dependencies
- you need flexible algorithm support including asymmetric signing

## When to avoid
- you need a full identity/auth provider rather than a token library
- you need JWE encryption, which PyJWT does not fully cover
- your framework already bundles its own JWT handling

## Facets
- artifact type: library
- maturity: stable
- function: auth, cryptography, serialization
- domain: security, web-development, developer-tools
- platform: python, cross-platform
- tags: jwt, json-web-tokens, token-signing, rfc7519, authentication

## Member repositories
- jpadilla/pyjwt (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:28.007448+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:53:38.397511+00:00, confidence not recorded.
  - readme: https://github.com/jpadilla/pyjwt (fetched 2026-08-28T04:09:28.007448+00:00, sha 53aac42e9c68)
  - registry_pypi: https://pypi.org/pypi/pyjwt/json (fetched 2026-08-29T08:49:39.740254+00:00, sha bbf94486ed2f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
