We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pyjwt[crypto]
1 parent 2c8bfe5 commit 3d47b0eCopy full SHA for 3d47b0e
docs/installation.rst
@@ -12,11 +12,16 @@ Cryptographic Dependencies (Optional)
12
13
If you are planning on encoding or decoding tokens using certain digital
14
signature algorithms (like RSA or ECDSA), you will need to install the
15
-cryptography_ library.
+cryptography_ library. This can be installed explicitly, or as a required
16
+extra in the ``pyjwt`` requirement:
17
18
.. code-block:: console
19
- $ pip install cryptography
20
+ $ pip install pyjwt[crypto]
21
+
22
+The ``pyjwt[crypto]`` format is recommended in requirements files in
23
+projects using ``PyJWT``, as a separate ``cryptography`` requirement line
24
+may later be mistaken for an unused requirement and removed.
25
26
.. _legacy-deps:
27
0 commit comments