{"id":23654181,"url":"https://github.com/iunary/fastapi-maintenance-mode","last_synced_at":"2025-09-01T05:31:26.715Z","repository":{"id":183383789,"uuid":"658389351","full_name":"iunary/fastapi-maintenance-mode","owner":"iunary","description":"FastAPI middleware for enabling maintenance mode","archived":false,"fork":false,"pushed_at":"2023-06-25T15:47:11.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T10:05:27.035Z","etag":null,"topics":["fastapi","fastapi-middleware","maintenance","maintenance-mode","middleware","python3","restapi"],"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/iunary.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}},"created_at":"2023-06-25T15:47:01.000Z","updated_at":"2023-11-22T18:03:55.000Z","dependencies_parsed_at":"2023-07-24T08:50:17.814Z","dependency_job_id":null,"html_url":"https://github.com/iunary/fastapi-maintenance-mode","commit_stats":null,"previous_names":["iunary/fastapi-maintenance-mode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iunary/fastapi-maintenance-mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iunary%2Ffastapi-maintenance-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iunary%2Ffastapi-maintenance-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iunary%2Ffastapi-maintenance-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iunary%2Ffastapi-maintenance-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iunary","download_url":"https://codeload.github.com/iunary/fastapi-maintenance-mode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iunary%2Ffastapi-maintenance-mode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273077227,"owners_count":25041358,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"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":["fastapi","fastapi-middleware","maintenance","maintenance-mode","middleware","python3","restapi"],"created_at":"2024-12-28T18:58:05.626Z","updated_at":"2025-09-01T05:31:26.376Z","avatar_url":"https://github.com/iunary.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Maintenance Mode Middleware\n\nFastAPI Maintenance Mode Middleware is a Python package that provides middleware for enabling maintenance mode in FastAPI applications. When maintenance mode is enabled, all incoming requests will receive a 503 Service Unavailable response indicating that the service is temporarily unavailable due to maintenance.\n\n## Installation\n\nYou can install the package using `pip`:\n\n```shell\npip install fastapi-maintenance-mode\n```\n\n## Example\n\n```python\nfrom fastapi import FastAPI\nfrom fastapi_maintenance_mode import MaintenanceModeMiddleware\n\napp = FastAPI()\napp.add_middleware(MaintenanceModeMiddleware, is_maintenance_mode=True)\n\n\n@app.get(\"/\")\nasync def root():\n    return {\"status\": \"Ok\"}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiunary%2Ffastapi-maintenance-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiunary%2Ffastapi-maintenance-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiunary%2Ffastapi-maintenance-mode/lists"}