python-itsdangerous
Port variant v11
Summary Trusted data handlers for unsafe env (3.11)
Package version 2.1.2
Homepage https://palletsprojects.com/p/itsdangerous/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 09 OCT 2023, 04:40:21 UTC
Port created 27 SEP 2017, 23:06:09 UTC
Subpackage Descriptions
single ItsDangerous ============ ... so better sign this Various helpers to pass data to untrusted environments and to get it back safe and sound. Data is cryptographically signed to ensure that a token has not been tampered with. It's possible to customize how data is serialized. Data is compressed as needed. A timestamp can be added and verified automatically while loading a token. Installing ---------- Install and update using `pip`_: .. code-block:: text pip install -U itsdangerous .. _pip: https://pip.pypa.io/en/stable/getting-started/ A Simple Example ---------------- Here's how you could generate a token for transmitting a user's id and name between web requests. .. code-block:: python from itsdangerous import URLSafeSerializer auth_s = URLSafeSerializer("secret key", "auth") token = auth_s.dumps({"id": 5, "name": "itsdangerous"}) print(token) # eyJpZCI6NSwibmFtZSI6Iml0c2Rhbmdlcm91cyJ9.6YP6T0BaO67XP--9UzTrmurXSmg data = auth_s.loads(token) print(data["name"]) # itsdangerous Donate ------ The Pallets organization develops and supports ItsDangerous and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, `please donate today`_. .. _please donate today: https://palletsprojects.com/donate Links ----- - Documentation: https://itsdangerous.palletsprojects.com/ - Changes: https://itsdangerous.palletsprojects.com/changes/ - PyPI Releases: https://pypi.org/project/ItsDangerous/ - Source Code: https://github.com/pallets/itsdangerous/ - Issue Tracker: https://github.com/pallets/itsdangerous/issues/ - Website: https://palletsprojects.com/p/itsdangerous/ - Twitter: https://twitter.com/PalletsTeam - Chat: https://discord.gg/pallets
Configuration Switches (platform-specific settings discarded)
PY311 ON Build using Python 3.11 PY312 OFF Build using Python 3.12
Package Dependencies by Type
Build (only) python-pip:single:v11
autoselect-python:single:standard
Build and Runtime python311:single:standard
Download groups
main mirror://PYPIWHL/68/5f/447e04e828f47465eeab35b5d408b7ebaaaee207f48b7136c5a7267a30ae
Distribution File Information
2c2349112351b88699d8d4b6b075022c0808887cb7ad10069318a8b0bc88db44 15749 itsdangerous-2.1.2-py3-none-any.whl
Ports that require python-itsdangerous:v11
python-Flask:v11 Lightweight WSGI web application framework (3.11)