Skip to main content

A decorator based router for FastAPI

# fruit_controller.py
from fastapi_cls_controller import controller, delete, get, post, put, ...

@controller(
    prefix="/fruits",
)
class FruitController:
    @post("")
    async def create(self, body: CreateFruit):
        ...


    @get("/{fruit_id}")
    async def get(self, fruit_id: str):
        ...
# main.py
app.include_router(FruitController())

Metadata

Release files for fastapi-cls-controller 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-cls-controller 0.0.3
File Size Uploaded
fastapi_cls_controller-0.0.3.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-cls-controller 0.0.3
File Interpreter ABI Platform
fastapi_cls_controller-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / fastapi_cls_controller-0.0.3.tar.gz

Download URL fastapi_cls_controller-0.0.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2f2050a8a4ddadbd58020553a29aecc8069aeca209ea7e9af1bd0b0fee8e16fa
BLAKE2b-256 checksum
How to use checksums
c28880d86e925bfedb6ff8a000701a807ab2b4c6dd0fec9e366f548817d308aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / fastapi_cls_controller-0.0.3-py3-none-any.whl

Download URL fastapi_cls_controller-0.0.3-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b73a38f9c50f3258494a04e30e0e1faad655bf6839075fcd604735bc004a15e0
BLAKE2b-256 checksum
How to use checksums
3476aabe7f11eff17d62752256ec4ccfdcc7d5818fde4020d762d7aba28fc823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page