Skip to main content

PyJWT

https://secure.travis-ci.org/jpadilla/pyjwt.svg?branch=master https://ci.appveyor.com/api/projects/status/h8nt70aqtwhht39t?svg=true https://img.shields.io/pypi/v/pyjwt.svg https://coveralls.io/repos/jpadilla/pyjwt/badge.svg?branch=master https://readthedocs.org/projects/pyjwt/badge/?version=latest

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

Installing

Install with pip:

$ pip install PyJWT

Usage

>>> import jwt
>>> encoded = jwt.encode({'some': 'payload'}, 'secret', algorithm='HS256')
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg'

>>> jwt.decode(encoded, 'secret', algorithms=['HS256'])
{'some': 'payload'}

Documentation

View the full docs online at https://pyjwt.readthedocs.io/en/latest/

Tests

You can run tests from the project root after cloning with:

$ python setup.py test

Metadata

Release files for PyJWT 1.5.0

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 1.5.0
File Size Uploaded Provenance Actions
PyJWT-1.5.0.tar.gz 34.8 kB Without provenance Details for PyJWT-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyJWT 1.5.0
File Interpreter ABI Platform Actions
PyJWT-1.5.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for PyJWT-1.5.0-py2.py3-none-any.whl

Total release size: 52.1 kB

Release files / PyJWT-1.5.0.tar.gz

Download URL PyJWT-1.5.0.tar.gz
Size 34.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fd182b728d13f04c289d9b2623d09256d356c9b4a6778018001454a954d7c54b
BLAKE2b-256 checksum
How to use checksums
53d1bc6a0296a4a63277c45ab22f4b4a58a0d2ada12d6d60905dbdc40989d8fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyJWT-1.5.0-py2.py3-none-any.whl

Download URL PyJWT-1.5.0-py2.py3-none-any.whl
Size 17.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ad60a3fb9b393667864ed4b8abc9c3b570747f80bf77a113ead2fbaf0f0cedf3
BLAKE2b-256 checksum
How to use checksums
9a686b31dcb5bb193227db30a91d774ffd3e18d9e4f1a9333cb07a6528db1883
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PyJWT 1.5.0

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

1.5.0 This release

2 release files No provenance

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