Le Phi Thong

Le Phi Thong

Software Engineer



🧑‍💻 ❤️

fastcrudapi - Super easy to generate CRUD api routes for FastAPI

Repo: lpthong90/fastcrudapi


FastCRUDAPI

Super easy to generate CRUD api routes for FastAPI.

Test Publish Coverage Package version Downloads

PyPI - Python Version


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 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

OpenAPI


License

This project is licensed under the terms of the MIT license.