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.
Metadata
Release files for fastapi-startkit 0.61.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastapi_startkit-0.61.0.tar.gz | 213.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_startkit-0.61.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 564.0 kB
Release files / fastapi_startkit-0.61.0.tar.gz
| Download URL | fastapi_startkit-0.61.0.tar.gz |
|---|---|
| Size | 213.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
103c30a4385fba4010073f6ac4f865baffde43d1e9cd0c725fde544f3237fb35
|
|
BLAKE2b-256 checksum How to use checksums |
71683bd66d4df745b85b38198cef34c0867e7e6797193e97d96cdf6ed3b9520d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / fastapi_startkit-0.61.0-py3-none-any.whl
| Download URL | fastapi_startkit-0.61.0-py3-none-any.whl |
|---|---|
| Size | 350.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ca4f6c2d5319ccc450be03815c94197d4f0f560fc7e33140395ff6eda59f432
|
|
BLAKE2b-256 checksum How to use checksums |
a2ec1d7bf9f2ac9f8efb13805d41477c7c98fd827e851b1ab93368e3672c8e78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|