METADATA 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Metadata-Version: 2.1
  2. Name: PyJWT
  3. Version: 1.7.1
  4. Summary: JSON Web Token implementation in Python
  5. Home-page: http://github.com/jpadilla/pyjwt
  6. Author: Jose Padilla
  7. Author-email: hello@jpadilla.com
  8. License: MIT
  9. Keywords: jwt json web token security signing
  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 :: 2.7
  17. Classifier: Programming Language :: Python :: 3.4
  18. Classifier: Programming Language :: Python :: 3.5
  19. Classifier: Programming Language :: Python :: 3.6
  20. Classifier: Programming Language :: Python :: 3.7
  21. Classifier: Topic :: Utilities
  22. Provides-Extra: crypto
  23. Requires-Dist: cryptography (>=1.4) ; extra == 'crypto'
  24. Provides-Extra: flake8
  25. Requires-Dist: flake8 ; extra == 'flake8'
  26. Requires-Dist: flake8-import-order ; extra == 'flake8'
  27. Requires-Dist: pep8-naming ; extra == 'flake8'
  28. Provides-Extra: test
  29. Requires-Dist: pytest (<5.0.0,>=4.0.1) ; extra == 'test'
  30. Requires-Dist: pytest-cov (<3.0.0,>=2.6.0) ; extra == 'test'
  31. Requires-Dist: pytest-runner (<5.0.0,>=4.2) ; extra == 'test'
  32. PyJWT
  33. =====
  34. .. image:: https://travis-ci.com/jpadilla/pyjwt.svg?branch=master
  35. :target: http://travis-ci.com/jpadilla/pyjwt?branch=master
  36. .. image:: https://ci.appveyor.com/api/projects/status/h8nt70aqtwhht39t?svg=true
  37. :target: https://ci.appveyor.com/project/jpadilla/pyjwt
  38. .. image:: https://img.shields.io/pypi/v/pyjwt.svg
  39. :target: https://pypi.python.org/pypi/pyjwt
  40. .. image:: https://coveralls.io/repos/jpadilla/pyjwt/badge.svg?branch=master
  41. :target: https://coveralls.io/r/jpadilla/pyjwt?branch=master
  42. .. image:: https://readthedocs.org/projects/pyjwt/badge/?version=latest
  43. :target: https://pyjwt.readthedocs.io
  44. A Python implementation of `RFC 7519 <https://tools.ietf.org/html/rfc7519>`_. Original implementation was written by `@progrium <https://github.com/progrium>`_.
  45. Sponsor
  46. -------
  47. +--------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | |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/overview <https://auth0.com/overview?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=pyjwt&utm_content=auth>`_. |
  49. +--------------+-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. .. |auth0-logo| image:: https://user-images.githubusercontent.com/83319/31722733-de95bbde-b3ea-11e7-96bf-4f4e8f915588.png
  51. Installing
  52. ----------
  53. Install with **pip**:
  54. .. code-block:: sh
  55. $ pip install PyJWT
  56. Usage
  57. -----
  58. .. code:: python
  59. >>> import jwt
  60. >>> encoded = jwt.encode({'some': 'payload'}, 'secret', algorithm='HS256')
  61. 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg'
  62. >>> jwt.decode(encoded, 'secret', algorithms=['HS256'])
  63. {'some': 'payload'}
  64. Command line
  65. ------------
  66. Usage::
  67. pyjwt [options] INPUT
  68. Decoding examples::
  69. pyjwt --key=secret decode TOKEN
  70. pyjwt decode --no-verify TOKEN
  71. See more options executing ``pyjwt --help``.
  72. Documentation
  73. -------------
  74. View the full docs online at https://pyjwt.readthedocs.io/en/latest/
  75. Tests
  76. -----
  77. You can run tests from the project root after cloning with:
  78. .. code-block:: sh
  79. $ python setup.py test