Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

150 righe
5.4 KiB

  1. Metadata-Version: 2.4
  2. Name: python-jose
  3. Version: 3.5.0
  4. Summary: JOSE implementation in Python
  5. Home-page: http://github.com/mpdavis/python-jose
  6. Author: Michael Davis
  7. Author-email: mike.philip.davis@gmail.com
  8. License: MIT
  9. Project-URL: Documentation, https://python-jose.readthedocs.io/en/latest/
  10. Project-URL: Source, https://github.com/mpdavis/python-jose/
  11. Project-URL: Tracker, https://github.com/mpdavis/python-jose/issues/
  12. Project-URL: Changelog, https://github.com/mpdavis/python-jose/blob/master/CHANGELOG.md
  13. Keywords: jose jws jwe jwt json web token security signing
  14. Classifier: Development Status :: 5 - Production/Stable
  15. Classifier: Intended Audience :: Developers
  16. Classifier: Natural Language :: English
  17. Classifier: License :: OSI Approved :: MIT License
  18. Classifier: Programming Language :: Python
  19. Classifier: Programming Language :: Python :: 3
  20. Classifier: Programming Language :: Python :: 3 :: Only
  21. Classifier: Programming Language :: Python :: 3.9
  22. Classifier: Programming Language :: Python :: 3.10
  23. Classifier: Programming Language :: Python :: 3.11
  24. Classifier: Programming Language :: Python :: 3.12
  25. Classifier: Programming Language :: Python :: 3.13
  26. Classifier: Programming Language :: Python :: Implementation :: PyPy
  27. Classifier: Topic :: Utilities
  28. Requires-Python: >=3.9
  29. License-File: LICENSE
  30. Requires-Dist: ecdsa!=0.15
  31. Requires-Dist: rsa!=4.1.1,!=4.4,<5.0,>=4.0
  32. Requires-Dist: pyasn1>=0.5.0
  33. Provides-Extra: test
  34. Requires-Dist: pytest; extra == "test"
  35. Requires-Dist: pytest-cov; extra == "test"
  36. Provides-Extra: cryptography
  37. Requires-Dist: cryptography>=3.4.0; extra == "cryptography"
  38. Provides-Extra: pycrypto
  39. Requires-Dist: pycrypto<2.7.0,>=2.6.0; extra == "pycrypto"
  40. Provides-Extra: pycryptodome
  41. Requires-Dist: pycryptodome<4.0.0,>=3.3.1; extra == "pycryptodome"
  42. Dynamic: license-file
  43. python-jose
  44. ===========
  45. A JOSE implementation in Python
  46. |pypi| |Github Actions CI Status| |Coverage Status| |Docs| |style|
  47. Docs are available on ReadTheDocs_.
  48. The JavaScript Object Signing and Encryption (JOSE) technologies - JSON
  49. Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and
  50. JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or
  51. sign content using a variety of algorithms. While the full set of
  52. permutations is extremely large, and might be daunting to some, it is
  53. expected that most applications will only use a small set of algorithms
  54. to meet their needs.
  55. Installation
  56. ------------
  57. ::
  58. $ pip install python-jose[cryptography]
  59. Cryptographic Backends
  60. ----------------------
  61. As of 3.3.0, python-jose implements three different cryptographic backends.
  62. The backend must be selected as an extra when installing python-jose.
  63. If you do not select a backend, the native-python backend will be installed.
  64. Unless otherwise noted, all backends support all operations.
  65. Due to complexities with setuptools, the native-python backend is always installed,
  66. even if you select a different backend on install.
  67. We recommend that you remove unnecessary dependencies in production.
  68. #. cryptography
  69. * This backend uses `pyca/cryptography`_ for all cryptographic operations.
  70. This is the recommended backend and is selected over all other backends if any others are present.
  71. * Installation: ``pip install python-jose[cryptography]``
  72. * Unused dependencies:
  73. * ``rsa``
  74. * ``ecdsa``
  75. * ``pyasn1``
  76. #. pycryptodome
  77. * This backend uses `pycryptodome`_ for all cryptographic operations.
  78. * Installation: ``pip install python-jose[pycryptodome]``
  79. * Unused dependencies:
  80. * ``rsa``
  81. #. native-python
  82. * This backend uses `python-rsa`_ and `python-ecdsa`_ for all cryptographic operations.
  83. This backend is always installed but any other backend will take precedence if one is installed.
  84. * Installation: ``pip install python-jose``
  85. .. note::
  86. The native-python backend cannot process certificates.
  87. Usage
  88. -----
  89. .. code-block:: python
  90. >>> from jose import jwt
  91. >>> token = jwt.encode({'key': 'value'}, 'secret', algorithm='HS256')
  92. u'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ2YWx1ZSJ9.FG-8UppwHaFp1LgRYQQeS6EDQF7_6-bMFegNucHjmWg'
  93. >>> jwt.decode(token, 'secret', algorithms=['HS256'])
  94. {u'key': u'value'}
  95. Thanks
  96. ------
  97. This library was originally based heavily on the work of the folks over at PyJWT_.
  98. .. |pypi| image:: https://img.shields.io/pypi/v/python-jose?style=flat-square
  99. :target: https://pypi.org/project/python-jose/
  100. :alt: PyPI
  101. .. |Github Actions CI Status| image:: https://github.com/mpdavis/python-jose/actions/workflows/ci.yml/badge.svg
  102. :target: https://github.com/mpdavis/python-jose/actions/workflows/ci.yml
  103. :alt: Github Actions CI Status
  104. .. |Coverage Status| image:: http://codecov.io/github/mpdavis/python-jose/coverage.svg?branch=master
  105. :target: http://codecov.io/github/mpdavis/python-jose?branch=master
  106. .. |Docs| image:: https://readthedocs.org/projects/python-jose/badge/
  107. :target: https://python-jose.readthedocs.org/en/latest/
  108. .. _ReadTheDocs: https://python-jose.readthedocs.org/en/latest/
  109. .. _PyJWT: https://github.com/jpadilla/pyjwt
  110. .. _pyca/cryptography: http://cryptography.io/
  111. .. _pycryptodome: https://pycryptodome.readthedocs.io/en/latest/
  112. .. _pycrypto: https://www.dlitz.net/software/pycrypto/
  113. .. _python-ecdsa: https://github.com/warner/python-ecdsa
  114. .. _python-rsa: https://stuvel.eu/rsa
  115. .. |style| image:: https://img.shields.io/badge/code%20style-black-000000.svg
  116. :target: https://github.com/psf/black
  117. :alt: Code style: black