FastCRUDAPI¶
Super easy to generate CRUD api routes for FastAPI.
Documentation: https://fastcrudapi.lpthong90.dev
Source Code: https://github.com/lpthong90/fastcrudapi
The package helps to generate CRUD APIs for models based on FastAPI.
Installation¶
$ pip install fastcrudapi
---> 100%
Successfully installed fastcrudapi
Basic Usage¶
from fastapi import FastAPI
from fastcrudapi import CrudApiRouter
from pydantic import BaseModel
app = FastAPI()
class Book(BaseModel):
id: int
name: str
book_router = CrudApiRouter(
prefix="/books",
schema=Book,
)
app.include_router(book_router)
OpenAPI¶
License¶
This project is licensed under the terms of the MIT license.