The package helps to build CRUD APIs for models based on FastAPI.
Project description
fastcrudapi
Super easy to generate CRUD api routes.
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
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.4.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file fastcrudapi-0.1.4.tar.gz
.
File metadata
- Download URL: fastcrudapi-0.1.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54b81fe8c8644d82b9a8a98fa798f4b5f46cca527f95d617e5ded3047718411d |
|
MD5 | 93c8ccfc65f4558c942edec5e76a937e |
|
BLAKE2b-256 | 3199b023fa51bd0360ecdd72cb9e956e4aec13131245a1ee9a8d0c005b8c9c14 |
File details
Details for the file fastcrudapi-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: fastcrudapi-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17990be852f2a2204039a92bd250cd2ef9dbf343880ca1eb996fb466913d2cde |
|
MD5 | 90fe0faacec814be2ff1fa8eebff8d7a |
|
BLAKE2b-256 | 659ecd6867247727763495e1dcb35d5aabd09ec084a18ff199601542348483ae |