Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyJWT

https://github.com/jpadilla/pyjwt/workflows/CI/badge.svg https://img.shields.io/pypi/v/pyjwt.svg https://codecov.io/gh/jpadilla/pyjwt/branch/master/graph/badge.svg https://readthedocs.org/projects/pyjwt/badge/?version=stable

A Python implementation of RFC 7519. Original implementation was written by @progrium.

Sponsor

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/developers.

Installing

Install with pip:

$ pip install PyJWT

Usage

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

$ tox

Metadata

Release files for PyJWT 2.0.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyJWT 2.0.0a2
File Size Uploaded Provenance Actions
PyJWT-2.0.0a2.tar.gz 41.4 kB Without provenance Details for PyJWT-2.0.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyJWT 2.0.0a2
File Interpreter ABI Platform Actions
PyJWT-2.0.0a2-py3-none-any.whl Python 3 none any Details for PyJWT-2.0.0a2-py3-none-any.whl

Total release size: 57.3 kB

Release files / PyJWT-2.0.0a2.tar.gz

Download URL PyJWT-2.0.0a2.tar.gz
Size 41.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a4386eff1592a8cf2275acf8997fd2e1c20dcbfe20214f1d6928610dcb2fcf7b
BLAKE2b-256 checksum
How to use checksums
55065504daccf5c7f0bcbb1403f2539f453bb72b9180042362e8c11f6af72649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.0

Release files / PyJWT-2.0.0a2-py3-none-any.whl

Download URL PyJWT-2.0.0a2-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e47a729da8efc44022566915a0ad2f80320aa561ca5c233a1db6a82d84dafa6c
BLAKE2b-256 checksum
How to use checksums
430080d27d51c0d10a1630798716b7a7c6fcc21791f5b8f575b5bb8a1baed6bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.0

Security for PyJWT 2.0.0a2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page