{"id":24325688,"url":"https://github.com/abe-winter/oflex","last_synced_at":"2026-04-28T03:06:43.318Z","repository":{"id":89518819,"uuid":"253596773","full_name":"abe-winter/oflex","owner":"abe-winter","description":"Stack-specific flask extensions for auth \u0026 connection pooling","archived":false,"fork":false,"pushed_at":"2021-06-19T05:47:59.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-26T15:11:38.935Z","etag":null,"topics":["flask","login"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abe-winter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-04-06T19:32:10.000Z","updated_at":"2021-06-19T05:48:01.000Z","dependencies_parsed_at":"2023-10-20T16:15:27.911Z","dependency_job_id":null,"html_url":"https://github.com/abe-winter/oflex","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/abe-winter/oflex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-winter%2Foflex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-winter%2Foflex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-winter%2Foflex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-winter%2Foflex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abe-winter","download_url":"https://codeload.github.com/abe-winter/oflex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-winter%2Foflex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32364111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","login"],"created_at":"2025-01-17T20:18:55.301Z","updated_at":"2026-04-28T03:06:43.304Z","avatar_url":"https://github.com/abe-winter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oflex\n\nO(pinionated) fl(ask) ex(tensions).\n\nFlask login and connection-pooling stuff that I reuse in all my prototyping. The one-line goal of this project is to have drop-in login, however inflexible, rather than spending 6 hours setting it up every time.\n\nThis is only compatible with my postgres / redis stack and a similar DB users schema.\n\nWill happily add docs if anyone else needs this, post a github issue to LMK.\n\n## Features\n\nThese things wouldn't normally belong together and are only bound together by the common themes of (1) me needing them every time (2) I haven't found a right-fit library to do any of them in flask (3) they're all difficult to integrate automatically without some schema / template / backend assumptions.\n\n* [x] flask blueprints for create-account and login pages\n* [x] and scrypt passwords\n* [x] and twilio login\n* [x] login-required decorator which populates `flask.g.session`\n* [x] graphene / graphql middleware login-required\n* [ ] HSTS middleware\n* [x] postgres \u0026 redis initializer\n* [x] postgres connection pool context manager\n* [ ] basic RBAC\n* [ ] werkzeug remote IP\n* [ ] in-memory and redis rate limiting\n* [ ] email verification\n* [ ] invitations \u0026 preapproval lists\n* [ ] oauth\n* [ ] add sample schema\n\n## What you should do to use this\n\n* Look in `config.py` in this repo and make sure your SQL users table and environment variables conform to what this package expects.\n* (You can customize the configs, but that's a waste)\n* use `flask.current_app.pool` or `pool.withcon`, and `flask.current_app.redis` in your thing\n* You have a base.htm template that defines styles, headers, etc\n\n## Consider also\n\nThese other flask login libraries that I haven't evaluated at all:\n\n* https://github.com/mattupstate/flask-security\n* https://github.com/lingthio/Flask-User\n* https://github.com/maxcountryman/flask-login\n\nThere are a lot of these because schema integration is difficult.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabe-winter%2Foflex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabe-winter%2Foflex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabe-winter%2Foflex/lists"}