All frameworks

Litestar Project Generator.

Scaffold a ready-to-run Litestar 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 Litestar

Litestar is an ASGI framework with class-based controllers, built-in dependency injection, and first-class support for SQLAlchemy and msgspec. It favors explicit structure over decorators on loose functions.

  • Larger APIs that benefit from controller classes
  • Projects that want dependency injection without extra libraries
  • Teams coming from Django REST framework or NestJS

Create the project

uvx tristack my-litestar-app --language python --framework litestar --frontend none --orm sqlmodel --migrations alembic --database sqlite --package-manager uv --addons docker ruff pytest --git --install
Customize this stack in the builder

What's included

  • Litestar 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-litestar-app
uv sync
uv run alembic revision --autogenerate -m "initial"
uv run alembic upgrade head
uv run litestar run --reload
  • GET /health
  • GET /api/v1/items
  • POST /api/v1/items

More Python frameworks