Flask Project Generator.
Scaffold a ready-to-run Flask API for Python with a clean project structure, SQLAlchemy ORM, SQLite database, and Alembic migrations in one command. The code is yours, with no runtime dependency on TriStack.
Why Flask
Flask is a small, synchronous microframework that leaves structure to you. TriStack pairs it with SQLAlchemy and Alembic, the most common Flask data stack, in a layered layout you can grow.
- Small services and internal tools
- Developers who want minimal framework magic
- Migrating or modernizing an existing Flask codebase
Create the project
uvx tristack my-flask-app --language python --framework flask --frontend none --orm sqlalchemy --migrations alembic --database sqlite --package-manager uv --addons docker ruff pytest --git --install
What's included
- Flask app with an items CRUD example and a health check
- SQLAlchemy ORM
- SQLite database
- Alembic migrations
- uv for dependencies
- Docker
- Ruff
- Pytest
Run it
cd my-flask-app uv sync uv run alembic revision --autogenerate -m "initial" uv run alembic upgrade head uv run flask --app src.main run --debug
- GET /health
- GET /api/v1/items/
- POST /api/v1/items/
