Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

PyJWT

2.15.1ActivePythie’s Index: 71

JSON Web Token implementation in Python

Actively maintained. Last release 2 months ago, commits in 6 of the last 26 weeks. A safe choice.

Security & Auth
$pip install pyjwt
jpadilla/pyjwtPyPI
PyJWT ===== .. image:: https://github.com/jpadilla/pyjwt/workflows/CI/badge.svg :target: https://github.com/jpadilla/pyjwt/actions?query=workflow%3ACI .. image:: https://img.shields.io/pypi/v/pyjwt.svg :target: https://pypi.python.org/pypi/pyjwt .. image:: https://codecov.io/gh/jpadilla/pyjwt/branch/master/graph/badge.svg :target: https://codecov.io/gh/jpadilla/pyjwt .. image:: https://readthedocs.org/projects/pyjwt/badge/?version=stable :target: https://pyjwt.readthedocs.io/en/stable/ A Python implementation of `RFC 7519 <https://tools.ietf.org/html/rfc7519>`_. Original implementation was written by `@progrium <https://github.com/progrium>`_. Sponsor ------- .. |auth0-logo| image:: https://github.com/user-attachments/assets/ee98379e-ee76-4bcb-943a-e25c4ea6d174 :width: 160px +--------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |auth0-logo| | If you want to quickly add secure token-based authentication to Python projects, feel free to check Auth0's Python SDK and free plan at `auth0.com/signup <https://auth0.com/signup?utm_source=external_sites&utm_medium=pyjwt&utm_campaign=devn_signup>`_. | +--------------+-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Installing ---------- Install with **pip**: .. code-block:: console $ pip install PyJWT Usage ----- .. code-block:: pycon >>> import jwt >>> encoded = jwt.encode({"some": "payload"}, "secret", algorithm="HS256") >>> print(encoded) eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg >>> jwt.decode(encoded, "secret", algorithms=["HS256"]) {'some': 'payload'} Documentation ------------- View the full docs online at https://pyjwt.readthedocs.io/en/stable/ Tests ----- You can run tests from the project root after cloning with: .. code-block:: console $ tox

Popularity

Downloads / month
766.2M
GitHub stars
5.7K
Downloads, last 7 days
166.1M-5%
Stars, last 7 days
–
Direct dependents
5.6K
All dependents
50.1K

Pythie’s Index

How it works
71

Healthy

Maintenance, out of 100

  • Recent release

    last release 61 days ago

  • Commit activity

    6/26 weeks with commits

  • Release cadence

    7 releases in 12 months

  • Issues & PRs handled

    39% closed in the past year

  • Contributor spread

    17 authors in last 100 commits

  • OpenSSF Scorecard

    6.9/10

Commits, last 26 weeks52

Releases

Latest
2.15.1
Released
Sep 28, 2026
Releases, 12 months
7
First release
Feb 24, 2011

Compatibility

Requires Python
>=3.9
Tested on
3.9 · 3.10 · 3.11 · 3.12 · 3.13 · 3.14 · 3.15
License
MIT (Permissive)

Keywords

jsonjwtsecuritysigningtokenwebpythonhacktoberfest

Alternatives

Use instead of PyJWT: tools that do the same job, closest first.

Compare with python-jwt →Compare with jwt →Compare with python-jose →Compare all 4 →

  • python-jwt4.1.0ArchivedPythie’s Index: 3

    Module for generating and verifying JSON Web Tokens

    Security & Auth222449.3K/moReleased Nov 13, 2023
  • jwt1.4.0MaintainedPythie’s Index: 23

    JSON Web Token library for Python 3.

    Security & AuthTyping & Type Stubs1573.1M/moReleased Jun 23, 2025
  • python-jose3.5.0MaintainedPythie’s Index: 23

    JOSE implementation in Python

    Security & Auth1.8K30.9M/moReleased May 28, 2025
  • pyjwkest1.4.4MaintainedPythie’s Index: 26

    Python implementation of JWT, JWE, JWS and JWK

    Security & AuthValidation & Serialization94324.6K/moReleased Oct 4, 2025
  • cryptojwt1.11.0MaintainedPythie’s Index: 38

    Python implementation of JWT, JWE, JWS and JWK

    Security & AuthValidation & Serialization1647K/moReleased Mar 24, 2026
  • jwcrypto1.6.2ActivePythie’s Index: 87

    Implementation of JOSE Web standards

    Security & AuthValidation & Serialization47918.8M/moReleased Nov 23, 2026

Works well with

Use together with PyJWT: extensions, drivers, servers and companion tools.

  • msalPythie’s Index: 90The Microsoft Authentication Library (MSAL) for Python library enables your app to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect.177.3M downloads/mo
  • djangorestframework-simplejwtPythie’s Index: 36A minimal JSON Web Token authentication plugin for Django REST Framework8.3M downloads/mo
  • Flask-JWT-ExtendedPythie’s Index: 54Extended JWT integration with Flask5.1M downloads/mo
  • fastapi-usersPythie’s Index: 50Ready-to-use and customizable users management for FastAPI1.4M downloads/mo
  • djangorestframework-jwtPythie’s Index: 4JSON Web Token based authentication for Django REST framework113.3K downloads/mo
  • idPythie’s Index: 56A tool for generating OIDC identities19.2M downloads/mo