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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FastAPI_CRUDRouter-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file FastAPI-CRUDRouter-0.1.2.tar.gz.

File metadata

  • Download URL: FastAPI-CRUDRouter-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.12

File hashes

Hashes for FastAPI-CRUDRouter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 574d615dc21f5ff3315b6cf092155609cf41da2b3dd25456e0dd6f2e69637782
MD5 14c96bd4c206d415d9542a4351116a4d
BLAKE2b-256 b84fe55f0ef164eb1941646ae8e543c2c7490e3b1727144516b38d9cd886c34e

See more details on using hashes here.

File details

Details for the file FastAPI_CRUDRouter-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: FastAPI_CRUDRouter-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.12

File hashes

Hashes for FastAPI_CRUDRouter-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 34da6f6986a169141ada3cc1411d9a527ccb39e9888a2668b90bbc3adc8cd25d
MD5 a7f174bec559a6304c5fb1ca9602b2f9
BLAKE2b-256 496d723fc887a40e7a9cbc9e418fe83673f506df2430305b776904ffc712cae7

See more details on using hashes here.

Supported by

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