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.1.tar.gz (25.2 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.1-py3-none-any.whl (61.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_rbac_scaffold-0.1.1.tar.gz
  • Upload date:
  • Size: 25.2 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.1.tar.gz
Algorithm Hash digest
SHA256 fded71a1b3aba120fe503c461c4998817eb65927c6824b6b972bfc5d0a6a685b
MD5 6f2b76a425a9e4e9a197c951d4aa5d04
BLAKE2b-256 1cbf39f711676d9caab0fd18b4675a505af18abf45c217d70b75a33045184aba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_rbac_scaffold-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4521cf9d61c865420a9d9600451d726ad3fa64af75f7c447e44d21b30679ab45
MD5 1f11b90ee2fd5579bbd1e08ba0dab397
BLAKE2b-256 6cbd6a1bdeac9220b1cacfe55b9f987b2758288c06daa599f46b6c11b83d9992

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