Skip to main content

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

Project description

fastcrudapi

FastCRUDAPI

Super easy to generate CRUD api routes.

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 build CRUD APIs for models based on FastAPI.

Installation

pip install 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastcrudapi-0.1.4.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

fastcrudapi-0.1.4-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page