FastAPI Batteries is a collection of tools and utilities to help you build FastAPI applications faster.
Documentation: https://fastapi-batteries.github.io/
- 📦 Useful & Common Dependencies like File Validation & Pagination
⚠️ Custom Exception- 🐞 Useful middlewares for debugging & performance tracking
- 🛠️ Utilities
It uses latest Python 3.13 for now but will be add support for Python 3.9+ as well.
It's bit opinionated at starting. This package is primarily focused on following tech stack:
- FastAPI
- Pydantic
- Pydantic Settings
- SQLAlchemy 2.x w/ Declarative Syntax (Async via
asyncpg
) - Alembic
- Postgres
If you are using something else you probably can't get most of out of this package and you might require opening issue and discuss about it so that we can implement it in this package.
Still, If you're using something else you might find some useful goodies which are not dependent of any stack like:
- APIException that follows RFC 9457 which FastAPI don't
- Request Process Time middleware
- Helpful Dependencies
- More incoming...