FastAPI Startkit
A modular, provider-driven framework for building Python applications with FastAPI. It bundles a service container, configuration system, an async-first ORM, facades, and a Cleo-powered console into a single cohesive foundation.
Installation
pip install fastapi-startkit
Optional extras enable additional capabilities:
fastapi-startkit[fastapi] # FastAPI + Starlette
fastapi-startkit[database] # SQLAlchemy async ORM
fastapi-startkit[vite] # Jinja2 for Vite integration
Features
- Service container — IoC container with
bind/make/resolveauto-wiring and lifecycle hooks. - Configuration — dataclass-based config sourced from the environment with dotted-key access.
- Providers — two-phase (
register/boot) service registration. - Routing — a
Routerwrapper around FastAPI'sAPIRouterwith aresource()CRUD shortcut. - ORM — async-first Masonite ORM fork on SQLAlchemy async, with relationships and migrations.
- Facades — static-like access to container-resolved services (
Config,Auth, ...). - Console — Cleo-based CLI (
artisan) for migrations, seeders, and code generation.
Documentation
Full documentation is available at fastapi-startkit.github.io.
Development
# Install dependencies
uv sync --group dev --extra database --extra sqlite --extra fastapi --extra vite --extra postgres
# Run the test suite
uv run pytest tests/ -v
# Run tests with coverage
uv run pytest --cov --cov-report=term-missing
Coverage is collected in CI and reported to Codecov.
License
See the repository root for license details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_startkit-0.51.0.tar.gz.
File metadata
- Download URL: fastapi_startkit-0.51.0.tar.gz
- Upload date:
- Size: 198.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01b405e6d56073efcf36bfa3e7e48d624fca58ffed92f7443e97c85161870f1f
|
|
| MD5 |
f5ff9a2626df5495c67f9fe016d05cf1
|
|
| BLAKE2b-256 |
6d6bb3c4cb632c5fc799ec139e9b6d71df1e526e585669f753510925ef95c1f7
|
File details
Details for the file fastapi_startkit-0.51.0-py3-none-any.whl.
File metadata
- Download URL: fastapi_startkit-0.51.0-py3-none-any.whl
- Upload date:
- Size: 338.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3adeb28bf07619175d30c1121b8f0f028857d8a87a41497cb50e6ad19d04d39
|
|
| MD5 |
a2fd1105b1bf2aafdf81922667a5eb40
|
|
| BLAKE2b-256 |
91dd928c906a363f965f9cd9c6d6be69406e75a097c95af91f9ec2693bdac0fc
|