Skip to main content

Utilities and base classes for FastAPI async projects (Beanie, SQLAlchemy or SQLModel)

Project description

fastapi-basekit

fastapi-basekit

FastAPI toolkit con repos, services y controllers listos para producción. Multi-ORM · CLI scaffolder · plugin Claude Code.

PyPI Python FastAPI SQLAlchemy Beanie License

Docs · PyPI · Issues · Changelog


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 + BasePermission classes + soft-delete
  • basekit init — scaffolder cookiecutter (multi-ORM, multi-DB, redis, s3, license)
  • Plugin Claude Code — la skill fastapi-basekit-crud enseñ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

/plugin marketplace add https://github.com/mundobien2025/fastapi-basekit
/plugin install fastapi-basekit
/plugin list

Luego pide: "Crea el recurso Invoice con CRUD completo" — Claude usa la skill automáticamente.

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.

Mantenedores: RELEASING.md tiene release flow, CI/CD, mike y troubleshooting.

Licencia

MIT — © Jerson Moreno

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

fastapi_basekit-0.3.3.tar.gz (73.4 kB view details)

Uploaded Source

Built Distribution

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

fastapi_basekit-0.3.3-py3-none-any.whl (84.3 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_basekit-0.3.3.tar.gz.

File metadata

  • Download URL: fastapi_basekit-0.3.3.tar.gz
  • Upload date:
  • Size: 73.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for fastapi_basekit-0.3.3.tar.gz
Algorithm Hash digest
SHA256 67a88bf8a0554b26f8f5b79b784983c9b30dd67c04678288d09a54454d3e9854
MD5 b16c7f874a0e87d35ebb9fb37627bcf5
BLAKE2b-256 b1d82c7f36e1c023180a378070ad05fb0c7f2080687b9447604e1231b52fbd6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_basekit-0.3.3.tar.gz:

Publisher: publish.yml on mundobien2025/fastapi-basekit

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

File details

Details for the file fastapi_basekit-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_basekit-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c730741f3226e5d13666edde69a38437384f6b3aeaf1013b1b1931d92be15216
MD5 6c9c35ea52ffbd130c1a6e9c950fbb14
BLAKE2b-256 85abc04394cf6f3d322a9ec2c16d597fb101f96afa318d6ad75dcbe0138f93d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_basekit-0.3.3-py3-none-any.whl:

Publisher: publish.yml on mundobien2025/fastapi-basekit

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