Skip to main content

jsonwebtoken

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

Installing

Install with pip:

$ pip install jsonwebtoken

Usage

>>> import jsonwebtoken
>>> encoded = jsonwebtoken.encode({"some": "payload"}, "secret", algorithm="HS256")
>>> print(encoded)
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg
>>> jsonwebtken.decode(encoded, "secret", algorithms=["HS256"])
{'some': 'payload'}

Documentation

View the full docs online at coming soon

Metadata

Release files for jsonwebtoken 1.0.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 jsonwebtoken 1.0.0
File Size Uploaded Provenance Actions
jsonwebtoken-1.0.0.tar.gz 59.3 kB Without provenance Details for jsonwebtoken-1.0.0.tar.gz

Release files / jsonwebtoken-1.0.0.tar.gz

Download URL jsonwebtoken-1.0.0.tar.gz
Size 59.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5e069b83919b49f7348fa630027408da94e2a2ec1adc2652f16ec00d4b772e01
BLAKE2b-256 checksum
How to use checksums
9f50c5e43db3514c5394d9e38a699abefd59fdbf45365d8452538cdca77f2c68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for jsonwebtoken 1.0.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.0.0 This release

1 release file 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