Skip to main content

Scaffold lean, batteries-included FastAPI backends — like django-admin, for FastAPI.

Project description

shaapi

PyPI version Python License: MIT Docs Publish to PyPI Deploy docs Built with FastAPI

Scaffold lean, batteries-included FastAPI backends — like django-admin, for FastAPI.

Beginners shouldn't have to architect a production backend from scratch. shaapi gives you a clean, opinionated FastAPI project — async SQLAlchemy + Alembic, Postgres, Redis, JWT auth, Casbin RBAC, file storage, and a one-command Docker workflow — generated in seconds.

pip install shaapi
shaapi create-project "my api"
cd my_api
./docker-run.sh up

→ API live at http://localhost:8000, Swagger at http://localhost:8000/admin/api/v1/docs.

What you get

  • FastAPI (async) with a clean layered architecture (app/, common/, core/, crud/, models/, schemas/)
  • SQLAlchemy 2 + Alembic migrations, Postgres (auto-create in dev, migrations in prod)
  • Redis cache + rate limiting
  • JWT auth + Casbin RBAC (users, roles, permissions)
  • File storage (MinIO / S3 / GCS)
  • Docker: multi-stage slim image built with uv, hot-reload in dev (source bind-mount), docker-run.sh orchestration
  • Opt-in observability (--monitoring): Prometheus, Grafana, Tempo, Loki

CLI

shaapi create-project "my api"          # interactive
shaapi create-project "my api" -y       # accept defaults
shaapi create-project "my api" --monitoring --no-git
shaapi --version

In your generated project

./docker-run.sh up            # build + start everything (dev: hot-reload)
./docker-run.sh up --monitoring
./docker-run.sh logs          # tail logs
./docker-run.sh migrate       # alembic upgrade head
./docker-run.sh makemigrations "add posts table"
./docker-run.sh down

Documentation

📖 Full documentation site (EN/FR): https://shalom-302.github.io/shaapi/

Highlights:

The Markdown sources live in docs/ (English *.md, French *.fr.md).

Example

examples/todolist — a complete authenticated Todo API (JWT, per-user ownership, admin-only endpoint) built on top of shaapi in 5 files.

Status

Alpha. See the repo for roadmap and contribution guidelines.

License

MIT

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

shaapi-0.2.0.tar.gz (272.8 kB view details)

Uploaded Source

Built Distribution

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

shaapi-0.2.0-py3-none-any.whl (333.8 kB view details)

Uploaded Python 3

File details

Details for the file shaapi-0.2.0.tar.gz.

File metadata

  • Download URL: shaapi-0.2.0.tar.gz
  • Upload date:
  • Size: 272.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shaapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 276e205fa31dcce53e3002119cb5617fb70e004849a875e2fc7aeeca608319bd
MD5 57ae3704c7268306aaad7ab5c24ba246
BLAKE2b-256 88c6bd6a1f75e9319a449161465a4f80d92d29a97554f1b07929aa3d4a4e71a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for shaapi-0.2.0.tar.gz:

Publisher: publish.yml on Shalom-302/shaapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shaapi-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: shaapi-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 333.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shaapi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e67f780bd6df25eb4be74f9733afb5804829b8d1e6238adc891f33b04e47cca
MD5 1b1b36f996b7a56bb91679faf895da7d
BLAKE2b-256 c95f4a06aeafed715341543cae414193864e5957cba12c679d3368222d24a71c

See more details on using hashes here.

Provenance

The following attestation bundles were made for shaapi-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Shalom-302/shaapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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