Skip to main content

A dynamic FastAPI router that automatically creates CRUD routes for your models

Project description

âš¡ Create CRUD routes with lighting speed âš¡
A dynamic FastAPI router that automatically creates CRUD routes for your models

Tests Docs PyPI - Python Version


Installation

pip install fastapi-crudrouter

Usage

from pydantic import BaseModel
from fastapi import FastAPI
from fastapi_crudrouter import MemoryCRUDRouter as CRUDRouter

class Potato(BaseModel):
    id: int
    color: str
    mass: float

app = FastAPI()
app.include_router(CRUDRouter(model=Potato))

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

FastAPI-CRUDRouter-0.1.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

FastAPI_CRUDRouter-0.1.2-py3-none-any.whl (4.9 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