Reusable utilities for FastAPI
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install fastapi-utilsQuicker FastApi developing tools
Documentation: https://fastapiutils.github.io/fastapi-utils/
Source Code: https://github.com/dmontagu/fastapi-utils
FastAPI is a modern, fast web framework for building APIs with Python 3.8+.
But if you're here, you probably already knew that!
Features
This package includes a number of utilities to help reduce boilerplate and reuse common functionality across projects:
- Resource Class: Create CRUD with ease the OOP way with
Resourcebase class that lets you implement methods quick. - Class Based Views: Stop repeating the same dependencies over and over in the signature of related endpoints.
- Repeated Tasks: Easily trigger periodic tasks on server startup
- Timing Middleware: Log basic timing information for every request
- OpenAPI Spec Simplification: Simplify your OpenAPI Operation IDs for cleaner output from OpenAPI Generator
- SQLAlchemy Sessions: The class provides an easily-customized SQLAlchemy Session dependency