Skip to main content

A FastAPI project scaffold generator with multi-tenant RBAC.

Project description

fastapi-rbac-scaffold

A PyPI-ready scaffold generator for creating FastAPI services with async SQLAlchemy, Redis, JWT authentication, and multi-tenant RBAC.

Usage

pip install fastapi-rbac-scaffold
fastapi-rbac-scaffold new acme-api
cd acme-api
copy .env.example .env
docker compose up -d postgres redis
pip install -e ".[dev]"
alembic upgrade head
app-seed-iam
app-bootstrap --username admin --password change-me --email admin@example.com
uvicorn app.main:app --reload

Layout

src/fastapi_rbac_scaffold/
  cli/          # Command-line entrypoints
  generator/    # Project generation logic
  templates/    # Files copied into generated FastAPI projects

The generated FastAPI application template lives under:

src/fastapi_rbac_scaffold/templates/fastapi_app/

Generated App

The generated application includes:

  • FastAPI app factory and lifespan
  • async SQLAlchemy setup
  • Redis lifecycle management
  • Alembic initial IAM migration
  • JWT login, refresh, logout, and /me
  • multi-tenant RBAC models
  • permission dependency helpers
  • IAM tenant/user/role/permission/plan API skeletons

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_rbac_scaffold-0.1.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_rbac_scaffold-0.1.0-py3-none-any.whl (60.2 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_rbac_scaffold-0.1.0.tar.gz.

File metadata

  • Download URL: fastapi_rbac_scaffold-0.1.0.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for fastapi_rbac_scaffold-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ff378693f8451285b4b101e96e4029c1ff1ab3b992e4972f4e6c9e87636f879
MD5 1c86d4915be49fd73f992cb845daf7eb
BLAKE2b-256 06ee9c6fcca79a14cc2def081f53e143b8ac9405b11b6a487bd3118e964cc5a7

See more details on using hashes here.

File details

Details for the file fastapi_rbac_scaffold-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_rbac_scaffold-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0475097aac440964f6fecff4fddb94a588a1bf83b1f9b53d74e90a41354a386d
MD5 57769f262c007864c65fa1268dbc0e63
BLAKE2b-256 b303aa2aaaf41056ab22d82ee40afc7df517cd209f3cd4499efa9cf2024b7f22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page