{"id":19462567,"url":"https://github.com/shahaf-f-s/auto-fastapi","last_synced_at":"2026-05-17T08:33:03.485Z","repository":{"id":218385354,"uuid":"742557749","full_name":"Shahaf-F-S/auto-fastapi","owner":"Shahaf-F-S","description":"A pythonic functional way to construct FastAPI applications be declaring endpoints in separation of their functional definition, enabeling to separate, replicate, and reuse functions in different APIs at the same time, and also run multiple of them.","archived":false,"fork":false,"pushed_at":"2024-05-07T10:33:39.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-16T12:56:18.102Z","etag":null,"topics":["fastapi","fastapi-extension","http","server","uvicorn"],"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/Shahaf-F-S.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T18:40:26.000Z","updated_at":"2025-01-21T09:50:55.000Z","dependencies_parsed_at":"2025-02-25T12:47:50.988Z","dependency_job_id":"7df383b6-6e58-42bc-bfb9-a216b47a4830","html_url":"https://github.com/Shahaf-F-S/auto-fastapi","commit_stats":null,"previous_names":["shahaf-f-s/auto-fastapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shahaf-F-S/auto-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shahaf-F-S%2Fauto-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shahaf-F-S%2Fauto-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shahaf-F-S%2Fauto-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shahaf-F-S%2Fauto-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shahaf-F-S","download_url":"https://codeload.github.com/Shahaf-F-S/auto-fastapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shahaf-F-S%2Fauto-fastapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33131912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","response_time":107,"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":["fastapi","fastapi-extension","http","server","uvicorn"],"created_at":"2024-11-10T18:03:42.974Z","updated_at":"2026-05-17T08:33:03.454Z","avatar_url":"https://github.com/Shahaf-F-S.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auto-fastapi\n\n\u003e A pythonic functional way to construct FastAPI applications be declaring endpoints in separation of their functional definition, enabeling to separate, replicate, and reuse functions in different APIs at the same time, and also run multiple of them.\n\n## Installation\n```\npip install autl-fastapi\n```\n\n## example\n\n```python\nfrom fastapi import FastAPI\n\nfrom auto_fastapi import Method, AutoFastAPI, Builder, Server, Config\n\n\ndef startup() -\u003e None:\n    print(\"startup\")\n\n\ndef login(username: str, password: str) -\u003e dict[str, str | dict[str, str]]:\n    return {\n        \"response\": \"success\",\n        \"request\": dict(username=username, password=password)\n    }\n\n\napp = FastAPI()\n\nauto = AutoFastAPI(app)\nauto.push((startup, Builder.event(\"startup\")))\nauto.push((login, Builder.endpoint(\"/login\", [Method.GET])))\n\nserver = Server(Config(app, host=\"127.0.0.1\", port=5555))\nserver.run()\n```\n\nto stop the server\n```python\nserver.exit()\n```\n\nto run again\n```python\nserver.run()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahaf-f-s%2Fauto-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahaf-f-s%2Fauto-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahaf-f-s%2Fauto-fastapi/lists"}