Skip to content

wpr101/pyjwt

This branch is 2 commits ahead of, 410 commits behind jpadilla/pyjwt:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 5, 2017
47199b1 · Aug 5, 2017
Jul 28, 2017
Aug 5, 2017
Jun 22, 2017
May 19, 2017
Jan 20, 2015
May 19, 2017
Apr 8, 2015
Jun 22, 2017
Jan 18, 2015
Nov 12, 2016
May 6, 2017
May 6, 2016
Apr 17, 2017
May 13, 2017
May 13, 2017

Repository files navigation

PyJWT

https://secure.travis-ci.org/jpadilla/pyjwt.svg?branch=master https://ci.appveyor.com/api/projects/status/h8nt70aqtwhht39t?svg=true 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'}

Command line

Usage:

pyjwt [options] INPUT

Decoding examples:

pyjwt --key=secret TOKEN
pyjwt --no-verify TOKEN

See more options executing pyjwt --help.

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

About

JSON Web Token implementation in Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%