
FastKit — open-source toolkit for FastAPI: repository pattern, service layer, CLI scaffolding, and more
If you've built more than one FastAPI project, you've probably written the same boilerplate more than once — repository classes, service layers, consistent API response formatting, and database migrations setup. FastKit is our attempt to solve that once, properly. What is FastKit? FastKit is an open-source ecosystem of packages built on top of FastAPI. The goal is simple: when you start a new project with FastKit, the first thing you write is business logic — not infrastructure. It currently consists of two packages: fastkit-core — the foundation layer: Repository pattern for database operations (sync + async) Service layer with lifecycle hooks ( before_create , after_update , etc.) TranslatableMixin — multi-language support built directly into SQLAlchemy models Validation with structured, translated error messages HTTP utilities for consistent API responses across services fastkit-cli — scaffolding tool: fastkit make module Invoice This single command generates a complete module — mod
Continue reading on Dev.to Webdev
Opens in a new tab




