Skip to content

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

License

Notifications You must be signed in to change notification settings

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

No packages published