Utilities and base classes for FastAPI async projects (Beanie, SQLAlchemy or SQLModel)
Project description
fastapi-basekit
FastAPI toolkit con repos, services y controllers listos para producción. Multi-ORM · CLI scaffolder · plugin Claude Code.
Quickstart
pip install fastapi-basekit[init]
basekit init # cookiecutter prompts
cd <project_slug>
cp .env.example .env
make up-d
make migrate-create && make migrate-up
make seed
Abre http://localhost:8000/docs. Login con admin@example.com / ChangeMe2026!.
¿Qué incluye?
- Repository / Service / Controller base async para SQLAlchemy 2.0, SQLModel y Beanie
- Paginación, filtrado, búsqueda, ordenamiento vía query string out-of-the-box
- JWT middleware +
BasePermissionclasses + soft-delete basekit init— scaffolder cookiecutter (multi-ORM, multi-DB, redis, s3, license)- Plugin Claude Code — la skill
fastapi-basekit-crudenseña el patrón a Claude
Documentación
mundobien2025.github.io/fastapi-basekit
| Sección | Contenido |
|---|---|
| Primeros pasos | Instalación, basekit init, primer CRUD |
| Guía de usuario | Controllers, services, repositories, paginación, filtros |
| Avanzado | Permisos, soft-delete, logging, performance |
| Referencia API | Docstrings de BaseController, BaseService, BaseRepository, Schemas |
| Ejemplos | CRUD básico, filtros complejos, relaciones, auth |
Como plugin de Claude Code
Dentro de Claude Code (terminal) corre:
/plugin marketplace add mundobien2025/fastapi-basekit
/plugin install fastapi-basekit@fastapi-basekit
/plugin list # verifica instalación
Eso registra el marketplace fastapi-basekit desde el repo de GitHub e
instala el plugin (que incluye la skill fastapi-basekit-crud). Luego
pide: "Crea el recurso Invoice con CRUD completo siguiendo
fastapi-basekit" — Claude detecta la skill y aplica el patrón canónico
(model → repo → service → schema → controller con @cbv).
Para actualizar a una versión nueva:
/plugin update fastapi-basekit@fastapi-basekit
Instalación por ORM
pip install fastapi-basekit[sqlalchemy] # Postgres / MySQL / SQLite
pip install fastapi-basekit[beanie] # MongoDB
pip install fastapi-basekit[sqlmodel]
pip install fastapi-basekit[init] # solo scaffolder
pip install fastapi-basekit[all] # todo
Contribuir
PRs bienvenidos. Setup local en docs/contributing.
Licencia
MIT — © Jerson Moreno
Project details
Release history Release notifications | RSS feed
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_basekit-0.4.0.tar.gz.
File metadata
- Download URL: fastapi_basekit-0.4.0.tar.gz
- Upload date:
- Size: 79.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8c9e90657d6ab60e01ad8d4f42de9765e77fa475a48a83860595f2fa9ccb70d
|
|
| MD5 |
a47f765d78da96c9411ed46aa79f6f83
|
|
| BLAKE2b-256 |
3fb55b36c07dd7e3bf4db5c1f9fb6d43141910523f17ae8c344fa8863325548a
|
Provenance
The following attestation bundles were made for fastapi_basekit-0.4.0.tar.gz:
Publisher:
publish.yml on mundobien2025/fastapi-basekit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_basekit-0.4.0.tar.gz -
Subject digest:
d8c9e90657d6ab60e01ad8d4f42de9765e77fa475a48a83860595f2fa9ccb70d - Sigstore transparency entry: 1772118185
- Sigstore integration time:
-
Permalink:
mundobien2025/fastapi-basekit@411788ff3f3ac313ee5f45fe08dfb9200318854c -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/mundobien2025
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@411788ff3f3ac313ee5f45fe08dfb9200318854c -
Trigger Event:
push
-
Statement type:
File details
Details for the file fastapi_basekit-0.4.0-py3-none-any.whl.
File metadata
- Download URL: fastapi_basekit-0.4.0-py3-none-any.whl
- Upload date:
- Size: 87.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2d14925f7234afbaf56f91ad7a4e526ad56f858ed5e082ea6c2d6421366ccfe
|
|
| MD5 |
69859e10509835fb143eda8ba95b52ed
|
|
| BLAKE2b-256 |
4d68ee7400a00ec746da7e4e92d6ca1fe211d47cf90af73e32216167ddb0694c
|
Provenance
The following attestation bundles were made for fastapi_basekit-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on mundobien2025/fastapi-basekit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_basekit-0.4.0-py3-none-any.whl -
Subject digest:
e2d14925f7234afbaf56f91ad7a4e526ad56f858ed5e082ea6c2d6421366ccfe - Sigstore transparency entry: 1772118392
- Sigstore integration time:
-
Permalink:
mundobien2025/fastapi-basekit@411788ff3f3ac313ee5f45fe08dfb9200318854c -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/mundobien2025
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@411788ff3f3ac313ee5f45fe08dfb9200318854c -
Trigger Event:
push
-
Statement type: