{"id":48242680,"url":"https://github.com/botsarefuture/flask_autosec","last_synced_at":"2026-04-04T20:20:14.626Z","repository":{"id":267833046,"uuid":"902497572","full_name":"botsarefuture/flask_autosec","owner":"botsarefuture","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-30T16:07:05.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-02T23:31:57.057Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/botsarefuture.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-12T17:21:36.000Z","updated_at":"2025-11-30T16:07:09.000Z","dependencies_parsed_at":"2024-12-12T18:42:47.131Z","dependency_job_id":null,"html_url":"https://github.com/botsarefuture/flask_autosec","commit_stats":null,"previous_names":["botsarefuture/flask_autosec"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/botsarefuture/flask_autosec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Fflask_autosec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Fflask_autosec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Fflask_autosec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Fflask_autosec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botsarefuture","download_url":"https://codeload.github.com/botsarefuture/flask_autosec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Fflask_autosec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31412477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-04-04T20:20:14.003Z","updated_at":"2026-04-04T20:20:14.617Z","avatar_url":"https://github.com/botsarefuture.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlaskAutoSec\n\nFlaskAutoSec is a library for integrating security features into a Flask application. It includes functionalities for mode management, SEC violation handling, request reporting, blacklist checking, and rate-limiting.\n\n## Installation\n```bash\npip install git+https://github.com/botsarefuture/flask_autosec.git\n```\n\n## Usage\n```python\nfrom flask import Flask\nfrom flask_autosec import FlaskAutoSec\n\napp = Flask(__name__)\nsecurity = FlaskAutoSec()\nsecurity.init_app(app)\n\nif __name__ == '__main__':\n    app.run()\n```\n\n### Running with Gunicorn\n\nWhen deploying your Flask application with Gunicorn, FlaskAutoSec ensures that only one scheduler instance runs across multiple worker processes. This is achieved using a file-based lock mechanism.\n\n**Example Command:**\n```bash\ngunicorn -w 4 -b 0.0.0.0:8000 your_application:app\n```\n\n**Notes:**\n- The scheduler lock file is located at `/tmp/flask_autosec_scheduler.lock`. Ensure that the application has the necessary permissions to create and modify this file.\n- FlaskAutoSec automatically detects if it's running under Gunicorn and handles scheduler initialization accordingly to prevent multiple instances.\n\n## Documentation\nDetailed documentation can be found in the `docs/` folder.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotsarefuture%2Fflask_autosec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotsarefuture%2Fflask_autosec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotsarefuture%2Fflask_autosec/lists"}