Getting Started¶
Install¶
uv tool install brupy # persistent `brupy` on PATH
Or run it without installing anything:
uvx brupy
Brupy needs uv — every generated project is
uv-managed (pyproject.toml + uv.lock), and Brupy uses it for the
optional "install dependencies now" step. If you don't have uv yet,
install it first.
Your first project, interactively¶
Run brupy (or uvx brupy) with no arguments and answer the prompts:
$ brupy
? What is your project named? my-api
? Which framework? › (Use arrow keys)
❯ FastAPI
Flask
? Which template? › (Use arrow keys)
❯ Full-Stack
Hello World
REST API
Using uv to manage dependencies.
? Add a Dockerfile? (y/N)
? Initialize a git repository? (Y/n)
? Install dependencies with uv now? (Y/n)
Every project is generated from a framework (the underlying library —
FastAPI or Flask) and a template (a project shape built on it —
hello-world, rest-api, or full-stack). Pick rest-api or
full-stack and the wizard keeps going: database, ORM, migrations,
background worker — each template declares its own follow-up questions,
so what you're asked depends entirely on what you picked. See
Templates for exactly what each one asks and generates.
When it's done:
Success! Created my-api at ./my-api
Next steps:
cd my-api
uv run fastapi dev src/my_api/main.py
Then open http://127.0.0.1:8000
The exact next-step commands change based on what you chose — a migration
command if you added Alembic, a worker command if you added Taskiq/Celery,
Docker commands if you passed --docker. Nothing is left for you to guess.
Skip the prompts¶
Every prompt has a matching flag, so the same generation is fully scriptable:
brupy new my-api \
--framework fastapi --template rest-api \
-o database=postgres -o orm=sqlmodel -o migrations=true \
-o worker=taskiq -o broker=redis \
--docker --git --install --yes
--yes accepts the default for anything you didn't pass a flag for — no
prompts, safe for CI. See CLI Reference for every flag
and what -o key=value accepts per template.
It remembers your choices¶
After a successful run, Brupy saves the framework/template you picked and
every resolved option to ~/.brupy/last.json, and uses them as the new
default next time — both for what the wizard preselects and what a flagless
--yes run falls back to. An explicit flag or -o always overrides a
remembered value. Pass --no-remember to opt a single run out of both
reading and writing that file.
What you get, every time¶
The prompts change with every run; what lands in the project doesn't. Regardless of framework, template, or options chosen, every generated project includes:
- A
uv-managed,src/-layout package with a passingpytesttest - A
README.mdwith the exact run/test commands for what was actually generated - An
AGENTS.mdwith layout and conventions, for AI coding agents working in the project - A
.agents/skills/catalog — deeper reference material for exactly the libraries in use (see Agent Skills) - A
.gitignore— and, if you didn't pass--no-git, an initialized git repo with an initial commit
No manual edits required to run it.
Next¶
- CLI Reference — every flag, exit code, and what
--optionaccepts - Templates — what each framework/template pair actually generates