METADATA 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Metadata-Version: 2.1
  2. Name: PyJWT
  3. Version: 2.10.1
  4. Summary: JSON Web Token implementation in Python
  5. Author-email: Jose Padilla <hello@jpadilla.com>
  6. License: MIT
  7. Project-URL: Homepage, https://github.com/jpadilla/pyjwt
  8. Keywords: json,jwt,security,signing,token,web
  9. Classifier: Development Status :: 5 - Production/Stable
  10. Classifier: Intended Audience :: Developers
  11. Classifier: License :: OSI Approved :: MIT License
  12. Classifier: Natural Language :: English
  13. Classifier: Programming Language :: Python
  14. Classifier: Programming Language :: Python :: 3
  15. Classifier: Programming Language :: Python :: 3 :: Only
  16. Classifier: Programming Language :: Python :: 3.9
  17. Classifier: Programming Language :: Python :: 3.10
  18. Classifier: Programming Language :: Python :: 3.11
  19. Classifier: Programming Language :: Python :: 3.12
  20. Classifier: Programming Language :: Python :: 3.13
  21. Classifier: Topic :: Utilities
  22. Requires-Python: >=3.9
  23. Description-Content-Type: text/x-rst
  24. License-File: LICENSE
  25. License-File: AUTHORS.rst
  26. Provides-Extra: crypto
  27. Requires-Dist: cryptography>=3.4.0; extra == "crypto"
  28. Provides-Extra: dev
  29. Requires-Dist: coverage[toml]==5.0.4; extra == "dev"
  30. Requires-Dist: cryptography>=3.4.0; extra == "dev"
  31. Requires-Dist: pre-commit; extra == "dev"
  32. Requires-Dist: pytest<7.0.0,>=6.0.0; extra == "dev"
  33. Requires-Dist: sphinx; extra == "dev"
  34. Requires-Dist: sphinx-rtd-theme; extra == "dev"
  35. Requires-Dist: zope.interface; extra == "dev"
  36. Provides-Extra: docs
  37. Requires-Dist: sphinx; extra == "docs"
  38. Requires-Dist: sphinx-rtd-theme; extra == "docs"
  39. Requires-Dist: zope.interface; extra == "docs"
  40. Provides-Extra: tests
  41. Requires-Dist: coverage[toml]==5.0.4; extra == "tests"
  42. Requires-Dist: pytest<7.0.0,>=6.0.0; extra == "tests"
  43. PyJWT
  44. =====
  45. .. image:: https://github.com/jpadilla/pyjwt/workflows/CI/badge.svg
  46. :target: https://github.com/jpadilla/pyjwt/actions?query=workflow%3ACI
  47. .. image:: https://img.shields.io/pypi/v/pyjwt.svg
  48. :target: https://pypi.python.org/pypi/pyjwt
  49. .. image:: https://codecov.io/gh/jpadilla/pyjwt/branch/master/graph/badge.svg
  50. :target: https://codecov.io/gh/jpadilla/pyjwt
  51. .. image:: https://readthedocs.org/projects/pyjwt/badge/?version=stable
  52. :target: https://pyjwt.readthedocs.io/en/stable/
  53. A Python implementation of `RFC 7519 <https://tools.ietf.org/html/rfc7519>`_. Original implementation was written by `@progrium <https://github.com/progrium>`_.
  54. Sponsor
  55. -------
  56. .. |auth0-logo| image:: https://github.com/user-attachments/assets/ee98379e-ee76-4bcb-943a-e25c4ea6d174
  57. :width: 160px
  58. +--------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | |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>`_. |
  60. +--------------+-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. Installing
  62. ----------
  63. Install with **pip**:
  64. .. code-block:: console
  65. $ pip install PyJWT
  66. Usage
  67. -----
  68. .. code-block:: pycon
  69. >>> import jwt
  70. >>> encoded = jwt.encode({"some": "payload"}, "secret", algorithm="HS256")
  71. >>> print(encoded)
  72. eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg
  73. >>> jwt.decode(encoded, "secret", algorithms=["HS256"])
  74. {'some': 'payload'}
  75. Documentation
  76. -------------
  77. View the full docs online at https://pyjwt.readthedocs.io/en/stable/
  78. Tests
  79. -----
  80. You can run tests from the project root after cloning with:
  81. .. code-block:: console
  82. $ tox