Debian Codegraph @

docs/index.rst

raw ◀ ▶
1 Debian patch touch this file
1 Welcome to ``PyJWT``
2 ====================
3
4 ``PyJWT`` is a Python library which allows you to encode and decode JSON Web
5 Tokens (JWT). JWT is an open, industry-standard (`RFC 7519`_) for representing
6 claims securely between two parties.
7
8 Sponsor
9 -------
•10 .. |auth0-logo| image:: //usr/share/doc/python-jwt-doc/html/_static/auth0-logo.png
11 :width: 160px
12
13 +--------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
14 | |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 <https://auth0.com/signup?utm_source=external_sites&utm_medium=pyjwt&utm_campaign=devn_signup>`_. |
15 +--------------+-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
16
17 Installation
18 ------------
19 You can install ``pyjwt`` with ``pip``:
20
21 .. code-block:: console
22
23 $ pip install pyjwt
24
25 See :doc:`Installation <installation>` for more information.
26
27 Example Usage
28 -------------
29
30 .. doctest::
31
32 >>> import jwt
33 >>> encoded_jwt = jwt.encode({"some": "payload"}, "secret", algorithm="HS256")
34 >>> jwt.decode(encoded_jwt, "secret", algorithms=["HS256"])
35 {'some': 'payload'}
36
37 See :doc:`Usage Examples <usage>` for more examples.
38
39 Index
40 -----
41
42 .. toctree::
43 :maxdepth: 2
44
45 installation
46 usage
47 faq
48 algorithms
49 api
50 changelog
51
52 .. _`RFC 7519`: https://tools.ietf.org/html/rfc7519