internal/tools/: pyjwt-2.8.0 metadata and description

Homepage Simple index

JSON Web Token implementation in Python

author Jose Padilla
author_email hello@jpadilla.com
classifiers
  • Development Status :: 5 - Production/Stable
  • Intended Audience :: Developers
  • Natural Language :: English
  • License :: OSI Approved :: MIT License
  • Programming Language :: Python
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3 :: Only
  • Programming Language :: Python :: 3.7
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Topic :: Utilities
description_content_type text/x-rst
keywords json,jwt,security,signing,token,web
license MIT
provides_extras tests
requires_dist
  • typing-extensions ; python_version <= "3.7"
  • cryptography >=3.4.0 ; extra == 'crypto'
  • sphinx <5.0.0,>=4.5.0 ; extra == 'dev'
  • sphinx-rtd-theme ; extra == 'dev'
  • zope.interface ; extra == 'dev'
  • cryptography >=3.4.0 ; extra == 'dev'
  • pytest <7.0.0,>=6.0.0 ; extra == 'dev'
  • coverage[toml] ==5.0.4 ; extra == 'dev'
  • pre-commit ; extra == 'dev'
  • sphinx <5.0.0,>=4.5.0 ; extra == 'docs'
  • sphinx-rtd-theme ; extra == 'docs'
  • zope.interface ; extra == 'docs'
  • pytest <7.0.0,>=6.0.0 ; extra == 'tests'
  • coverage[toml] ==5.0.4 ; extra == 'tests'
requires_python >=3.7
File Tox results History
PyJWT-2.8.0-py3-none-any.whl
Size
22 KB
Type
Python Wheel
Python
3
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.

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