Skip to content

DaGuich/pyjwt

This branch is 7 commits ahead of, 157 commits behind jpadilla/pyjwt:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b0cc121 · Jun 1, 2022
May 26, 2022
Mar 8, 2022
May 31, 2022
May 31, 2022
May 12, 2022
Apr 12, 2022
Nov 2, 2020
May 31, 2022
Sep 28, 2019
Feb 2, 2022
Jan 10, 2021
Dec 21, 2020
Nov 2, 2020
May 26, 2022
May 31, 2022
Jun 11, 2020
May 26, 2022

Repository files navigation

PyJWT

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)
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzb21lIjoicGF5bG9hZCJ9.Joh1R2dYzkRvDkqv3sygm5YyK8Gi4ShZqbhK2gxcs2U
>>> 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

About

JSON Web Token implementation in Python

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%