The package helps to build CRUD APIs for models based on FastAPI.
Project description
fastcrudapi
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 pydantic import BaseModel
from fastcrudapi import InMemoryCRUDRouteBuilder
class Book(BaseModel):
id: int
name: str
app = FastAPI()
app.include_router(InMemoryCRUDRouteBuilder(schema=Book))
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
fastcrudapi-0.1.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for fastcrudapi-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c947e45dbe1e4c7673c10391cf5f733a21011fa066f5b823060a4e0437f8d8bd |
|
MD5 | 10a67716ea524d0eb7bcee7c9820d1b8 |
|
BLAKE2b-256 | 80a65530d7c0e4c76ea8f3e5117c7912fe11549dc3ec10ca8f2ff50f261a9723 |