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.2.tar.gz (278.0 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.2-py3-none-any.whl (340.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shaapi-0.2.2.tar.gz
  • Upload date:
  • Size: 278.0 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.2.tar.gz
Algorithm Hash digest
SHA256 00a9930f925987fc075e2d65748b718469774af6dec7ca2f82b95e4ebcd49d8e
MD5 c20280554cf338f71b8e9171045e351f
BLAKE2b-256 32f3c3e4f19838bacd71e1ad41ee65e35975d0da04354ec7de74a905c675abd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for shaapi-0.2.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: shaapi-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 340.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b351a91953c5e6cc58b59b5417e20dc54fb244503829ce1ce17bb8842b9947bb
MD5 62f3b5e3df84aff34f8e1f199e229106
BLAKE2b-256 4d96ec1452c6cbcc49fab8f96aca958b4259f4c1409a23672c3cadc3c6f2181f

See more details on using hashes here.

Provenance

The following attestation bundles were made for shaapi-0.2.2-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