{"id":34878483,"url":"https://github.com/diploi/component-fastapi","last_synced_at":"2026-04-01T17:15:38.127Z","repository":{"id":312880945,"uuid":"1049061139","full_name":"diploi/component-fastapi","owner":"diploi","description":"Official Diploi component for FastAPI","archived":false,"fork":false,"pushed_at":"2026-03-25T17:22:11.000Z","size":134,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-26T17:59:24.974Z","etag":null,"topics":["asgi-framework","asgi-server","diploi","diploi-template","docker","fastapi","helm-charts","kubernetes","nodemon","python","python-template","uv","uvicorn"],"latest_commit_sha":null,"homepage":"https://diploi.com/","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/diploi.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":"2025-09-02T12:36:09.000Z","updated_at":"2026-03-25T14:48:33.000Z","dependencies_parsed_at":"2026-01-20T11:14:03.328Z","dependency_job_id":null,"html_url":"https://github.com/diploi/component-fastapi","commit_stats":null,"previous_names":["diploi/component-fastapi-beta","diploi/component-fastapi"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/diploi/component-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diploi%2Fcomponent-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diploi%2Fcomponent-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diploi%2Fcomponent-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diploi%2Fcomponent-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diploi","download_url":"https://codeload.github.com/diploi/component-fastapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diploi%2Fcomponent-fastapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"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":["asgi-framework","asgi-server","diploi","diploi-template","docker","fastapi","helm-charts","kubernetes","nodemon","python","python-template","uv","uvicorn"],"created_at":"2025-12-26T01:07:23.167Z","updated_at":"2026-04-01T17:15:38.122Z","avatar_url":"https://github.com/diploi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\"icon\" src=\".diploi/icon.svg\" width=\"32\"\u003e\n\n# FastAPI Component for Diploi\n\n[![launch with diploi badge](https://diploi.com/launch.svg)](https://diploi.com/component/fastapi)\n[![component on diploi badge](https://diploi.com/component.svg)](https://diploi.com/component/fastapi)\n[![latest tag badge](https://badgen.net/github/tag/diploi/component-fastapi-beta)](https://diploi.com/component/fastapi)\n\n## Operation\n\n### Getting started\n\n1. In the Dashboard, click **Create Project +**\n2. Under **Pick Components**, choose **FastAPI**. Here you can also add a frontend framework to create a monorepo app, eg, FastAPI for backend and React+Vite for frontend\n3. In **Pick Add-ons**, you can add one or multiple databases to your app\n4. Choose **Create Repository** to generate a new GitHub repo\n5. Finally, click **Launch Stack**\n\nLink to the full guide https://diploi.com/blog/hosting_fastapi_apps\n\n### Python version\n\nThe default Python version is **3.12**. You can change it in two ways:\n\n- **`PYTHON_VERSION` environment variable** - set this in `diploi.yaml` as a [static ENV](https://docs.diploi.com/reference/diploi-yaml/#static-values) under your component's environment variables. This controls the version used by both the development and production environments.\n- **`.python-version` file** - add a `.python-version` file to your component's folder containing just the version number (e.g. `3.11`). This is the standard convention used by `uv` and other Python tools, and is a good choice if you want the version pinned in your repository.\n\nIf both are set, the `.python-version` file takes precedence.\n\n### Development\n\nThe development server is started with:\n\n```sh\nuv run --with uvicorn uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir src --reload-dir .venv/lib\n```\n\nThis can be changed with the `containerCommands.developmentStart` field in `diploi.yaml`.\n\n### Production\n\nBuilds a production-ready image. During the build, dependencies are installed with `uv sync` or `uv pip install`. When the container starts, it runs:\n\n```sh\nuv run --with uvicorn uvicorn src.main:app --host 0.0.0.0 --port 8000 --proxy-headers\n```\n\nThis can be changed with the `containerCommands.productionStart` field in `diploi.yaml`.\n\n## Links\n\n- [Adding FastAPI to a project](https://docs.diploi.com/building/components/fastapi)\n- [FastAPI documentation](https://fastapi.tiangolo.com/)\n- [Python documentation](https://docs.python.org/)\n- [uv documentation](https://docs.astral.sh/uv/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiploi%2Fcomponent-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiploi%2Fcomponent-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiploi%2Fcomponent-fastapi/lists"}