FastAPI services
ListedLayered FastAPI services with health checks, settings, structured logs, and tests, with or without a SQL database.
Profiles
Commands for service
uvx pytemplate-uv@latest create my-project -h yuxuzi/fastapi-service@v1.1.0 -p service -yFully pinned (CI, offline)
uvx pytemplate-uv@latest create my-project -p service --template gh:yuxuzi/fastapi-service --template-ref v1.1.0 --template-commit b3d4127b66c767bd5238130b570efb823b50ea8a --template-digest 587d4e7235951e2d4f683288fb73f1a31675676cc539a1abb5ba0b2ea8ed0407 -yWhat the hub checked for service at v1.1.0
render with default answers, Copier unsafe=Falsepassedthe profile's lifecycle commands (uv sync, checks, tests)passedChecked 2026-11-25 with pytemplate-uv==3.6.0. Passing means the default answers worked then; it does not mean other answers or components work, or that the pack is safe.
Security posture, from the profile
No secrets are needed to run it, and it contacts no service. No authentication is included: add it before exposing the service beyond a trusted network. The generated checks do not test deployment, the Dockerfile, or authentication; production settings refuse wildcard hosts and debug mode, and nothing else is checked.
Commands for service-sql
uvx pytemplate-uv@latest create my-project -h yuxuzi/fastapi-service@v1.1.0 -p service-sql -yFully pinned (CI, offline)
uvx pytemplate-uv@latest create my-project -p service-sql --template gh:yuxuzi/fastapi-service --template-ref v1.1.0 --template-commit b3d4127b66c767bd5238130b570efb823b50ea8a --template-digest 587d4e7235951e2d4f683288fb73f1a31675676cc539a1abb5ba0b2ea8ed0407 -yWhat the hub checked for service-sql at v1.1.0
render with default answers, Copier unsafe=Falsepassedthe profile's lifecycle commands (uv sync, checks, tests)passedChecked 2026-11-25 with pytemplate-uv==3.6.0. Passing means the default answers worked then; it does not mean other answers or components work, or that the pack is safe.
Security posture, from the profile
No secrets are needed by default: the database is a SQLite file created in the working directory. A PostgreSQL DATABASE_URL carries a password, so supply it through the environment. No authentication is included: add it before exposing the service beyond a trusted network. The generated checks use SQLite only and do not test PostgreSQL, deployment, the Dockerfile, or authentication; production settings refuse wildcard hosts and debug mode but accept the default SQLite URL.
Versions
| Tag | Checked | With | Commit | Status |
|---|---|---|---|---|
| v1.1.0 | 2026-11-25 | pytemplate-uv==3.6.0 | b3d4127b66c7 | Listed Latest |
| v1.0.0 | not recorded | pytemplate-uv==3.2.0 | 162d0b5c08c4 | Listed |
Yanked versions stay in the index and its JSON, and are excluded from generated commands.
README badge
[](https://yuxuzi.github.io/pytemplate-hub/templates/yuxuzi/fastapi-service/)