METADATA 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. Metadata-Version: 2.1
  2. Name: PyJWT
  3. Version: 2.4.0
  4. Summary: JSON Web Token implementation in Python
  5. Home-page: https://github.com/jpadilla/pyjwt
  6. Author: Jose Padilla
  7. Author-email: hello@jpadilla.com
  8. License: MIT
  9. Keywords: json,jwt,security,signing,token,web
  10. Platform: UNKNOWN
  11. Classifier: Development Status :: 5 - Production/Stable
  12. Classifier: Intended Audience :: Developers
  13. Classifier: Natural Language :: English
  14. Classifier: License :: OSI Approved :: MIT License
  15. Classifier: Programming Language :: Python
  16. Classifier: Programming Language :: Python :: 3
  17. Classifier: Programming Language :: Python :: 3 :: Only
  18. Classifier: Programming Language :: Python :: 3.6
  19. Classifier: Programming Language :: Python :: 3.7
  20. Classifier: Programming Language :: Python :: 3.8
  21. Classifier: Programming Language :: Python :: 3.9
  22. Classifier: Programming Language :: Python :: 3.10
  23. Classifier: Topic :: Utilities
  24. Requires-Python: >=3.6
  25. Description-Content-Type: text/x-rst
  26. Provides-Extra: crypto
  27. Requires-Dist: cryptography (>=3.3.1) ; extra == 'crypto'
  28. Provides-Extra: dev
  29. Requires-Dist: sphinx ; extra == 'dev'
  30. Requires-Dist: sphinx-rtd-theme ; extra == 'dev'
  31. Requires-Dist: zope.interface ; extra == 'dev'
  32. Requires-Dist: cryptography (>=3.3.1) ; extra == 'dev'
  33. Requires-Dist: pytest (<7.0.0,>=6.0.0) ; extra == 'dev'
  34. Requires-Dist: coverage[toml] (==5.0.4) ; extra == 'dev'
  35. Requires-Dist: mypy ; extra == 'dev'
  36. Requires-Dist: pre-commit ; extra == 'dev'
  37. Provides-Extra: docs
  38. Requires-Dist: sphinx ; extra == 'docs'
  39. Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
  40. Requires-Dist: zope.interface ; extra == 'docs'
  41. Provides-Extra: tests
  42. Requires-Dist: pytest (<7.0.0,>=6.0.0) ; extra == 'tests'
  43. Requires-Dist: coverage[toml] (==5.0.4) ; extra == 'tests'
  44. PyJWT
  45. =====
  46. .. image:: https://github.com/jpadilla/pyjwt/workflows/CI/badge.svg
  47. :target: https://github.com/jpadilla/pyjwt/actions?query=workflow%3ACI
  48. .. image:: https://img.shields.io/pypi/v/pyjwt.svg
  49. :target: https://pypi.python.org/pypi/pyjwt
  50. .. image:: https://codecov.io/gh/jpadilla/pyjwt/branch/master/graph/badge.svg
  51. :target: https://codecov.io/gh/jpadilla/pyjwt
  52. .. image:: https://readthedocs.org/projects/pyjwt/badge/?version=stable
  53. :target: https://pyjwt.readthedocs.io/en/stable/
  54. A Python implementation of `RFC 7519 <https://tools.ietf.org/html/rfc7519>`_. Original implementation was written by `@progrium <https://github.com/progrium>`_.
  55. Sponsor
  56. -------
  57. +--------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | |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/developers <https://auth0.com/developers?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=pyjwt&utm_content=auth>`_. |
  59. +--------------+-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. .. |auth0-logo| image:: https://user-images.githubusercontent.com/83319/31722733-de95bbde-b3ea-11e7-96bf-4f4e8f915588.png
  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. eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzb21lIjoicGF5bG9hZCJ9.Joh1R2dYzkRvDkqv3sygm5YyK8Gi4ShZqbhK2gxcs2U
  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