Skip to main content

The package helps to build CRUD APIs for models based on FastAPI.

Project description

fastcrudapi

FastCRUDAPI

Super easy to generate CRUD api routes.

Test Publish Coverage Package version Downloads

PyPI - Python Version


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


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)

Uploaded Source

Built Distribution

fastcrudapi-0.1.4-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for fastcrudapi-0.1.4.tar.gz
Algorithm Hash digest
SHA256 54b81fe8c8644d82b9a8a98fa798f4b5f46cca527f95d617e5ded3047718411d
MD5 93c8ccfc65f4558c942edec5e76a937e
BLAKE2b-256 3199b023fa51bd0360ecdd72cb9e956e4aec13131245a1ee9a8d0c005b8c9c14

See more details on using hashes here.

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

Hashes for fastcrudapi-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 17990be852f2a2204039a92bd250cd2ef9dbf343880ca1eb996fb466913d2cde
MD5 90fe0faacec814be2ff1fa8eebff8d7a
BLAKE2b-256 659ecd6867247727763495e1dcb35d5aabd09ec084a18ff199601542348483ae

See more details on using hashes here.

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