Deprecation notice!
I've joined to the fastapi-utils repo and now I can contribute to it. since it has such larger user base I would prefer to maintain it and streamline updates for thousand of users!
Quicker FastApi developing tools
Documentation: https://fastapi-restful.netlify.app
Source Code: https://github.com/yuval9313/fastapi-restful
Base on: https://github.com/dmontagu/fastapi-utils
FastAPI is a modern, fast web framework for building APIs with Python 3.7+.
But if you're here, you probably already knew that!
This package includes a number of utilities to help reduce boilerplate and reuse common functionality across projects:
Resource
base class that lets you implement methods quick.FastAPISessionMaker
class provides an easily-customized SQLAlchemy Session dependencyIt also adds a variety of more basic utilities that are useful across a wide variety of projects:
pydantic.BaseModel
-derived base class with useful defaultspydantic.BaseSettings
that makes it easy to configure FastAPI through environment variablesStrEnum
and CamelStrEnum
classes make string-valued enums easier to maintainsnake_case
to camelCase
or PascalCase
and backSee the docs for more details and examples.
This package is intended for use with any recent version of FastAPI (depending on pydantic>=1.0
), and Python 3.7+.
pip install fastapi-restful # For basic slim package :)
pip install fastapi-restful[session] # To add sqlalchemy session maker
pip install fastapi-restful[all] # For all the packages
This project is licensed under the terms of the MIT license.