Skip to content

lpthong90/fastcrudapi

Repository files navigation

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

OpenAPI

License

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

About

The project helps to build CRUD APIs for models based on FastAPI.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors