python-PyJWT
Subpackage Descriptions
single |
PyJWT
=====
A Python implementation of [RFC 7519]. Original implementation was written
by `@progrium `_.
Sponsor
-------
.. |auth0-logo| image::
https://github.com/user-attachments/assets/ee98379e-ee76-4bcb-943a-e25c4ea6d174
:width: 160px
+--------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |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/signup
`_.
|
+--------------+-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Installing
----------
Install with **pip**:
.. code-block:: console
$ pip install PyJWT
Usage
-----
.. code-block:: pycon
>>> 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:
.. code-block:: console
$ tox
|
Configuration Switches (platform-specific settings discarded)
PY312 ON Build using Python 3.12
PY313 OFF Build using Python 3.13
Package Dependencies by Type
Download groups
main |
mirror://PYPIWHL/61/ad/689f02752eeec26aed679477e80e632ef1b682313be70793d798c1d5fc8f |
Distribution File Information
dcdd193e30abefd5debf142f9adfcdd2b58004e644f25406ffaebd50bd98dacb 22997 python-src/PyJWT-2.10.1-py3-none-any.whl
Ports that require python-PyJWT:v12