{"id":17658831,"url":"https://github.com/volfpeter/flask-session-decoder","last_synced_at":"2025-10-26T14:08:36.690Z","repository":{"id":138825485,"uuid":"578955191","full_name":"volfpeter/flask-session-decoder","owner":"volfpeter","description":"Zero-dependency Flask session decoder","archived":false,"fork":false,"pushed_at":"2022-12-19T09:14:33.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T12:25:03.495Z","etag":null,"topics":["cookie","decoder","flask","flask-login","python3","session"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/volfpeter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-12-16T09:43:58.000Z","updated_at":"2024-03-19T03:15:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e780a96-8b91-4c85-a76b-a94d075c6c89","html_url":"https://github.com/volfpeter/flask-session-decoder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volfpeter%2Fflask-session-decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volfpeter%2Fflask-session-decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volfpeter%2Fflask-session-decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volfpeter%2Fflask-session-decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volfpeter","download_url":"https://codeload.github.com/volfpeter/flask-session-decoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246306680,"owners_count":20756342,"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":["cookie","decoder","flask","flask-login","python3","session"],"created_at":"2024-10-23T15:43:25.398Z","updated_at":"2025-10-26T14:08:31.642Z","avatar_url":"https://github.com/volfpeter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-session-decoder\n\nZero-dependency Flask session decoder.\n\nThis is a small library without any dependencies. It works with close to default Flask session security configurations, but obviously does not provide the full cookie decoding and verification capabilities of `flask` / `werkzeug` / `itsdangerous`. If your project already depends on these libraries, use the official tooling instead.\n\n## Installation and Usage\n\nYou can install the library from PyPI with `pip install flask-session-decoder`.\n\nOnce installed, you can import and instantiate the decoder like this:\n\n```python\nfrom flask_session_decoder import FlaskSessionDecoder\n\ndecoder = FlaskSessionDecoder(secret_key=\"the-secret-key-of-the-flask-app-that-created-the-cookie\")\n```\n\n`FlaskSessionDecoder` provides three methods for cookie verification and loading:\n\n- `decoder.load(cookie)` returns the (by default verified) decoded string representation of the cookie.\n- `decoder.json(cookie)` returns the (by default verified) decoded cookie as a `dict`.\n- `verify(cookie)` returns whether the cookie signature is valid, without actually loading the value.\n\n## Development\n\nUse `black` for code formatting and `mypy` for static code analysis.\n\n## License - MIT\n\nThe library is open-sourced under the conditions of the MIT [license](https://choosealicense.com/licenses/mit/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolfpeter%2Fflask-session-decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolfpeter%2Fflask-session-decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolfpeter%2Fflask-session-decoder/lists"}