{"id":14065748,"url":"https://github.com/hackersandslackers/flask-session-tutorial","last_synced_at":"2025-04-15T14:56:43.203Z","repository":{"id":37929036,"uuid":"188520027","full_name":"hackersandslackers/flask-session-tutorial","owner":"hackersandslackers","description":":floppy_disk: :bow: Example Flask project for implementing Flask-Session with Redis.","archived":false,"fork":false,"pushed_at":"2025-03-27T19:03:34.000Z","size":425,"stargazers_count":96,"open_issues_count":25,"forks_count":25,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T14:56:33.312Z","etag":null,"topics":["flask","flask-login","flask-session","python","redis","tutorial","tutorials"],"latest_commit_sha":null,"homepage":"https://hackersandslackers.com/flask-user-sessions-and-redis/","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/hackersandslackers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://www.buymeacoffee.com/hackersslackers"]}},"created_at":"2019-05-25T04:21:58.000Z","updated_at":"2025-03-25T15:20:55.000Z","dependencies_parsed_at":"2023-02-12T22:16:09.631Z","dependency_job_id":"e3800c19-d4b0-494e-9f7f-a535a991e547","html_url":"https://github.com/hackersandslackers/flask-session-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackersandslackers%2Fflask-session-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackersandslackers%2Fflask-session-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackersandslackers%2Fflask-session-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackersandslackers%2Fflask-session-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackersandslackers","download_url":"https://codeload.github.com/hackersandslackers/flask-session-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094937,"owners_count":21211836,"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":["flask","flask-login","flask-session","python","redis","tutorial","tutorials"],"created_at":"2024-08-13T07:04:41.976Z","updated_at":"2025-04-15T14:56:43.185Z","avatar_url":"https://github.com/hackersandslackers.png","language":"Python","readme":"# Flask-Session Tutorial\n\n![Python](https://img.shields.io/badge/Python-v^3.10-blue.svg?logo=python\u0026longCache=true\u0026logoColor=white\u0026colorB=5e81ac\u0026style=flat-square\u0026colorA=4c566a)\n![Flask](https://img.shields.io/badge/Flask-v^3.0.0-blue.svg?longCache=true\u0026logo=flask\u0026style=flat-square\u0026logoColor=white\u0026colorB=5e81ac\u0026colorA=4c566a)\n![Flask-Login](https://img.shields.io/badge/Flask--Login-v0.6.2-blue.svg?longCache=true\u0026logo=flask\u0026style=flat-square\u0026logoColor=white\u0026colorB=5e81ac\u0026colorA=4c566a)\n![Flask-Session](https://img.shields.io/badge/Flask--Session-v0.5.0-blue.svg?longCache=true\u0026logo=flask\u0026style=flat-square\u0026logoColor=white\u0026colorB=5e81ac\u0026colorA=4c566a)\n![Flask-SQLAlchemy](https://img.shields.io/badge/Flask--SQLAlchemy-v3.0.5-red.svg?longCache=true\u0026style=flat-square\u0026logo=scala\u0026logoColor=white\u0026colorA=4c566a\u0026colorB=bf616a)\n![Redis](https://img.shields.io/badge/Redis-v5.0.0-red.svg?longCache=true\u0026style=flat-square\u0026logo=redis\u0026logoColor=white\u0026colorA=4c566a\u0026colorB=bf616a)\n![GitHub Last Commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square\u0026colorA=4c566a\u0026colorB=a3be8c\u0026logo=GitHub)\n[![GitHub Issues](https://img.shields.io/github/issues/hackersandslackers/flask-session-tutorial.svg?style=flat-square\u0026colorA=4c566a\u0026logo=GitHub\u0026colorB=ebcb8b)](https://github.com/hackersandslackers/flask-session-tutorial/issues)\n[![GitHub Stars](https://img.shields.io/github/stars/hackersandslackers/flask-session-tutorial.svg?style=flat-square\u0026colorA=4c566a\u0026logo=GitHub\u0026colorB=ebcb8b)](https://github.com/hackersandslackers/flask-session-tutorial/stargazers)\n[![GitHub Forks](https://img.shields.io/github/forks/hackersandslackers/flask-session-tutorial.svg?style=flat-square\u0026colorA=4c566a\u0026logo=GitHub\u0026colorB=ebcb8b)](https://github.com/hackersandslackers/flask-session-tutorial/network)\n\n![Flask Session Redis Tutorial](https://github.com/hackersandslackers/flask-session-tutorial/blob/master/.github/flask-session2@2x.jpg?raw=true)\n\n* **Tutorial**: [https://hackersandslackers.com/flask-user-sessions-and-redis/](https://hackersandslackers.com/flask-user-sessions-and-redis/)\n* **Demo**: [https://flasksession.hackersandslackers.com/login](https://flasksession.hackersandslackers.com)\n\n## Getting Started\n\nGet set up locally in two steps:\n\n### Configure\n\nReplace the values in **.env.example** with your values and rename this file to **.env**:\n\n* `ENVIRONMENT`: Enable (`development` or `production`).\n* `FLASK_APP`: Entry point of your application; should be `wsgi.py`.\n* `FLASK_DEBUG`: Toggle debug mode on (`True`) or off (`False`).\n* `SECRET_KEY`: Randomly generated string of characters used to encrypt your app's data.\n* `SQLALCHEMY_DATABASE_URI`: Connection URI of a SQL database (ie: `mysql+pymysql://myuser:mypassword@host.example.com:1234/mydatabase`)\n* `REDIS_URI`: Connection URI of a Redis instance (ie: `redis://:password@host.com:1234`)\n* `LESS_BIN` *(optional for static assets)*: Path to your local LESS installation via `which lessc`.\n* `ASSETS_DEBUG` *(optional)*: Debug asset creation and bundling in `development`.\n* `LESS_RUN_IN_DEBUG` *(optional)*: Debug LESS while in `development`.\n* `COMPRESSOR_DEBUG` *(optional)*: Debug asset compression while in `development`.\n\n*Remember never to commit secrets saved in .env files to Github.*\n\n### Installation\n\nGet up and running with `make deploy`:\n\n```shell\ngit clone https://github.com/hackersandslackers/flask-session-tutorial.git\ncd flask-session-tutorial\nmake deploy\n```\n\n-----\n\n**Hackers and Slackers** tutorials are free of charge. If you found this tutorial helpful, a [small donation](https://www.buymeacoffee.com/hackersslackers) would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.\n","funding_links":["https://www.buymeacoffee.com/hackersslackers"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackersandslackers%2Fflask-session-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackersandslackers%2Fflask-session-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackersandslackers%2Fflask-session-tutorial/lists"}