1
0

METADATA 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Metadata-Version: 2.1
  2. Name: itsdangerous
  3. Version: 1.1.0
  4. Summary: Various helpers to pass data to untrusted environments and back.
  5. Home-page: https://palletsprojects.com/p/itsdangerous/
  6. Author: Armin Ronacher
  7. Author-email: armin.ronacher@active-4.com
  8. Maintainer: Pallets Team
  9. Maintainer-email: contact@palletsprojects.com
  10. License: BSD
  11. Project-URL: Documentation, https://itsdangerous.palletsprojects.com/
  12. Project-URL: Code, https://github.com/pallets/itsdangerous
  13. Project-URL: Issue tracker, https://github.com/pallets/itsdangerous/issues
  14. Platform: UNKNOWN
  15. Classifier: Development Status :: 5 - Production/Stable
  16. Classifier: Intended Audience :: Developers
  17. Classifier: License :: OSI Approved :: BSD License
  18. Classifier: Operating System :: OS Independent
  19. Classifier: Programming Language :: Python
  20. Classifier: Programming Language :: Python :: 2
  21. Classifier: Programming Language :: Python :: 2.7
  22. Classifier: Programming Language :: Python :: 3
  23. Classifier: Programming Language :: Python :: 3.4
  24. Classifier: Programming Language :: Python :: 3.5
  25. Classifier: Programming Language :: Python :: 3.6
  26. Classifier: Programming Language :: Python :: 3.7
  27. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
  28. itsdangerous
  29. ============
  30. ... so better sign this
  31. Various helpers to pass data to untrusted environments and to get it
  32. back safe and sound. Data is cryptographically signed to ensure that a
  33. token has not been tampered with.
  34. It's possible to customize how data is serialized. Data is compressed as
  35. needed. A timestamp can be added and verified automatically while
  36. loading a token.
  37. Installing
  38. ----------
  39. Install and update using `pip`_:
  40. .. code-block:: text
  41. pip install -U itsdangerous
  42. .. _pip: https://pip.pypa.io/en/stable/quickstart/
  43. A Simple Example
  44. ----------------
  45. Here's how you could generate a token for transmitting a user's id and
  46. name between web requests.
  47. .. code-block:: python
  48. from itsdangerous import URLSafeSerializer
  49. auth_s = URLSafeSerializer("secret key", "auth")
  50. token = auth_s.dumps({"id": 5, "name": "itsdangerous"})
  51. print(token)
  52. # eyJpZCI6NSwibmFtZSI6Iml0c2Rhbmdlcm91cyJ9.6YP6T0BaO67XP--9UzTrmurXSmg
  53. data = auth_s.loads(token)
  54. print(data["name"])
  55. # itsdangerous
  56. Donate
  57. ------
  58. The Pallets organization develops and supports itsdangerous and other
  59. popular packages. In order to grow the community of contributors and
  60. users, and allow the maintainers to devote more time to the projects,
  61. `please donate today`_.
  62. .. _please donate today: https://palletsprojects.com/donate
  63. Links
  64. -----
  65. * Website: https://palletsprojects.com/p/itsdangerous/
  66. * Documentation: https://itsdangerous.palletsprojects.com/
  67. * License: `BSD <https://github.com/pallets/itsdangerous/blob/master/LICENSE.rst>`_
  68. * Releases: https://pypi.org/project/itsdangerous/
  69. * Code: https://github.com/pallets/itsdangerous
  70. * Issue tracker: https://github.com/pallets/itsdangerous/issues
  71. * Test status: https://travis-ci.org/pallets/itsdangerous
  72. * Test coverage: https://codecov.io/gh/pallets/itsdangerous