METADATA 2.9 KB

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