{"id":13469350,"url":"https://github.com/pallets/itsdangerous","last_synced_at":"2025-12-11T21:05:14.815Z","repository":{"id":550323,"uuid":"1945034","full_name":"pallets/itsdangerous","owner":"pallets","description":"Safely pass trusted data to untrusted environments and back.","archived":false,"fork":false,"pushed_at":"2025-01-14T21:45:38.000Z","size":689,"stargazers_count":3002,"open_issues_count":1,"forks_count":224,"subscribers_count":57,"default_branch":"main","last_synced_at":"2025-05-11T23:50:03.441Z","etag":null,"topics":["hmac","itsdangerous","pallets","python","security","serialization"],"latest_commit_sha":null,"homepage":"https://itsdangerous.palletsprojects.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pallets.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"pallets","custom":"https://palletsprojects.com/donate","tidelift":"pypi/Flask"}},"created_at":"2011-06-24T00:09:55.000Z","updated_at":"2025-05-11T04:07:52.000Z","dependencies_parsed_at":"2023-07-06T12:31:39.533Z","dependency_job_id":"d50bf670-010f-4d3c-94db-8c3767ede97c","html_url":"https://github.com/pallets/itsdangerous","commit_stats":{"total_commits":365,"total_committers":42,"mean_commits":8.69047619047619,"dds":0.6602739726027398,"last_synced_commit":"697d9a5a10e18cc7b3394ab732cd689ab5423b3f"},"previous_names":["mitsuhiko/itsdangerous"],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets%2Fitsdangerous","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets%2Fitsdangerous/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets%2Fitsdangerous/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets%2Fitsdangerous/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pallets","download_url":"https://codeload.github.com/pallets/itsdangerous/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253650965,"owners_count":21942233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hmac","itsdangerous","pallets","python","security","serialization"],"created_at":"2024-07-31T15:01:35.384Z","updated_at":"2025-12-11T21:05:14.806Z","avatar_url":"https://github.com/pallets.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/pallets/itsdangerous/refs/heads/stable/docs/_static/itsdangerous-name.svg\" alt=\"\" height=\"150\"\u003e\u003c/div\u003e\n\n# ItsDangerous\n\n... so better sign this\n\nVarious helpers to pass data to untrusted environments and to get it\nback safe and sound. Data is cryptographically signed to ensure that a\ntoken has not been tampered with.\n\nIt's possible to customize how data is serialized. Data is compressed as\nneeded. A timestamp can be added and verified automatically while\nloading a token.\n\n\n## A Simple Example\n\nHere's how you could generate a token for transmitting a user's id and\nname between web requests.\n\n```python\nfrom itsdangerous import URLSafeSerializer\nauth_s = URLSafeSerializer(\"secret key\", \"auth\")\ntoken = auth_s.dumps({\"id\": 5, \"name\": \"itsdangerous\"})\n\nprint(token)\n# eyJpZCI6NSwibmFtZSI6Iml0c2Rhbmdlcm91cyJ9.6YP6T0BaO67XP--9UzTrmurXSmg\n\ndata = auth_s.loads(token)\nprint(data[\"name\"])\n# itsdangerous\n```\n\n\n## Donate\n\nThe Pallets organization develops and supports ItsDangerous and other\npopular packages. In order to grow the community of contributors and\nusers, and allow the maintainers to devote more time to the projects,\n[please donate today][].\n\n[please donate today]: https://palletsprojects.com/donate\n\n## Contributing\n\nSee our [detailed contributing documentation][contrib] for many ways to\ncontribute, including reporting issues, requesting features, asking or answering\nquestions, and making PRs.\n\n[contrib]: https://palletsprojects.com/contributing/\n","funding_links":["https://github.com/sponsors/pallets","https://palletsprojects.com/donate","https://tidelift.com/funding/github/pypi/Flask"],"categories":["Miscellaneous","Python","杂项","网络服务","资源列表","Others","Security","Miscellaneous [🔝](#readme)","Awesome Python"],"sub_categories":["网络服务_其他","杂项","Miscellaneous"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpallets%2Fitsdangerous","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpallets%2Fitsdangerous","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpallets%2Fitsdangerous/lists"}