FastAPI Project Generator.
Scaffold a ready-to-run FastAPI API for Python with a clean project structure, SQLModel ORM, SQLite database, and Alembic migrations in one command. The code is yours, with no runtime dependency on TriStack.
Why FastAPI
FastAPI builds request validation and OpenAPI docs from Python type hints, so the schema you write is the docs you ship. It is async-first and one of the most widely used Python API frameworks.
- JSON APIs that need interactive docs at /docs out of the box
- Teams already using Pydantic models
- Async I/O such as calls to other services
Create the project
uvx tristack my-fastapi-app --yes
What's included
- FastAPI app with an items CRUD example and a health check
- SQLModel ORM
- SQLite database
- Alembic migrations
- uv for dependencies
- Docker
- Ruff
- Pytest
Run it
cd my-fastapi-app uv sync uv run alembic revision --autogenerate -m "initial" uv run alembic upgrade head uv run uvicorn src.main:app --reload
- GET /health
- GET /api/v1/items/
- POST /api/v1/items/
