Skip to main content

brupy

CI Docs PyPI

Strike a spark, get a running project. Instant scaffolding for popular unopinionated Python web frameworks (FastAPI, Flask, and friends). One command, a short interactive wizard, and you have a running project. No hand-written boilerplate. Pick a richer template and the same wizard wires up a real database, migrations, and a background worker too.

uvx brupy
? What is your project named? my-api
? Which framework? FastAPI
? Which template? REST API
? Database? PostgreSQL
? ORM? SQLModel
? Add Alembic migrations? Yes
? Background worker? Taskiq
Using uv to manage dependencies.
? Add a Dockerfile? No
? Initialize a git repository? Yes
? Install dependencies with uv now? Yes

Options: database=postgres, orm=sqlmodel, migrations=True, worker=taskiq, broker=redis, redis=True
Creating my-api/ from fastapi/rest-api...
  ✔ ...
✔ Initialized git repository
✔ Installed dependencies (uv sync)

Success! Created my-api at ./my-api

Next steps:
  cd my-api
  uv run alembic upgrade head
  uv run fastapi dev src/my_api/main.py
  uv run taskiq worker my_api.worker:broker --app-dir src   # separate process

📖 Full documentation: abdulazeezoj.github.io/brupy. Getting started, a full CLI reference, one page per template (options, generated layout, gotchas), the .agents/skills/ catalog, remembered preferences, and how to contribute.

Install

Persistent brupy on PATH:

uv tool install brupy

Or run it ephemerally, no install:

uvx brupy

Usage

brupy                                     # interactive wizard
brupy new my-api                           # interactive, name pre-filled
brupy new my-api \
  --framework fastapi --template rest-api \
  -o database=sqlite -o orm=sqlmodel \
  --docker --git --install --yes            # fully non-interactive, for scripts/CI
brupy list-templates                       # what's available, without generating anything
brupy --version
brupy --help

Every prompt has a matching flag, and Brupy remembers your last choices in ~/.brupy/last.json as the new default next time. See the CLI Reference and Remembered Preferences docs for the full details.

Driving brupy from an AI coding agent? .agents/skills/brupy/ is a portable agent skill that teaches an agent how to invoke the CLI to scaffold a project. It's symlinked at .claude/skills/brupy/ for Claude Code's own discovery path. Separate from the .agents/skills/ catalog described below, which covers using the generated project's own stack.

What brupy ships

A project is always generated from a <framework>/<template> pair: FastAPI and Flask, each with a Hello World starter, a fuller REST API template offering real head-start choices (database, ORM, migrations, a background worker, Redis), and a Full-Stack template with the same choices rendered server-side with Jinja2 and HTMX instead of JSON (optionally styled with Tailwind CSS). Every generated project also gets .agents/skills/: deeper, library-specific reference material for exactly the stack it uses. See the Templates and Agent Skills docs for what each one actually generates.

Project structure

Every generated project follows the same opinionated layout, borrowed from Next.js: fixed entrypoints, one file per resource, shared infrastructure grouped under core/. Here's fastapi/rest-api with a database, migrations, and a background worker:

my-api/
  src/my_api/
    main.py              FastAPI entrypoint: app, lifespan, mounted routers
    worker.py            worker entrypoint (only if a worker is chosen)
    routes/               one module per HTTP resource
      items.py
    tasks/                 one module per background job (only if a worker is chosen)
      example.py
    core/                   shared infrastructure
      config.py               settings (pydantic-settings)
      db.py                    async engine/session (only if a database is chosen)
      redis.py                 Redis client (only if redis resolves true)
    schemas.py             Pydantic request/response models
    models.py               ORM models (only if a database is chosen)
  tests/
  alembic/                 migrations (only if migrations is on)
  .agents/skills/          library-specific reference material for AI agents
  AGENTS.md
  Dockerfile               (only if --docker)

hello-world is the same shape, minus the extras. full-stack swaps routes/ + schemas.py for routes/ returning HTML fragments plus templates/ + static/ (Jinja2 + HTMX, optionally Tailwind CSS). See Templates for the exact generated layout of every framework and template combination.

Contributing

uv sync
uv run pytest       # also runs coverage; the suite fails under 100%
uv run brupy --help

Adding a framework, template, or skill is a content-only change. No code edits needed. See the Contributing docs for the full local-setup, template/skill-authoring, and release process, or CHANGELOG.md for release history.

Metadata

Release files for brupy 0.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brupy 0.19.0
File Size Uploaded Provenance Actions
brupy-0.19.0.tar.gz 187.5 kB With provenance Details for brupy-0.19.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brupy 0.19.0
File Interpreter ABI Platform Actions
brupy-0.19.0-py3-none-any.whl Python 3 none any Details for brupy-0.19.0-py3-none-any.whl

Total release size: 550.0 kB

Release files / brupy-0.19.0.tar.gz

Download URL brupy-0.19.0.tar.gz
Size 187.5 kB
Tags Source
SHA-256 checksum
How to use checksums
669a019a9d7d2e3ae62da84340b0eb9e84f3f161c0afc7944471efaf65227246
BLAKE2b-256 checksum
How to use checksums
be9293dc01c07bd9564db6de972cdd7e797b46741ab5897bd5d5786e07fbaf6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Release files / brupy-0.19.0-py3-none-any.whl

Download URL brupy-0.19.0-py3-none-any.whl
Size 362.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
005e132e7d8a3d9c5eacdb52f0b087d51df8f612baca9191e0c66bb305d0498e
BLAKE2b-256 checksum
How to use checksums
e2c4901b32d8c08fa05de2eeefdbb1f39b4de488fd7035a6bf31fb8412aa1c45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Security for brupy 0.19.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for brupy-0.19.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.19.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page