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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for FastAPI_CRUDRouter-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34da6f6986a169141ada3cc1411d9a527ccb39e9888a2668b90bbc3adc8cd25d |
|
MD5 | a7f174bec559a6304c5fb1ca9602b2f9 |
|
BLAKE2b-256 | 496d723fc887a40e7a9cbc9e418fe83673f506df2430305b776904ffc712cae7 |