Debian Codegraph @

docs/installation.rst

raw
1 Installation
2 ============
3
4 You can install ``PyJWT`` with ``pip``:
5
6 .. code-block:: console
7
8 $ pip install pyjwt
9
10
11 .. _installation_cryptography:
12
13 Cryptographic Dependencies (Optional)
14 -------------------------------------
15
16 If you are planning on encoding or decoding tokens using certain digital
17 signature algorithms (like RSA or ECDSA), you will need to install the
18 cryptography_ library. This can be installed explicitly, or as a required
19 extra in the ``pyjwt`` requirement:
20
21 .. code-block:: console
22
23 $ pip install pyjwt[crypto]
24
25 The ``pyjwt[crypto]`` format is recommended in requirements files in
26 projects using ``PyJWT``, as a separate ``cryptography`` requirement line
27 may later be mistaken for an unused requirement and removed.
28
29
30 .. _`cryptography`: https://cryptography.io