fastapi_cls_controller
Project description
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())
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_cls_controller-0.0.3.tar.gz.
File metadata
- Download URL: fastapi_cls_controller-0.0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f2050a8a4ddadbd58020553a29aecc8069aeca209ea7e9af1bd0b0fee8e16fa
|
|
| MD5 |
3d2415297241b772be9221c6fb797bb4
|
|
| BLAKE2b-256 |
c28880d86e925bfedb6ff8a000701a807ab2b4c6dd0fec9e366f548817d308aa
|
File details
Details for the file fastapi_cls_controller-0.0.3-py3-none-any.whl.
File metadata
- Download URL: fastapi_cls_controller-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b73a38f9c50f3258494a04e30e0e1faad655bf6839075fcd604735bc004a15e0
|
|
| MD5 |
52f98462282b1d8f44c14ff6ac2124bc
|
|
| BLAKE2b-256 |
3476aabe7f11eff17d62752256ec4ccfdcc7d5818fde4020d762d7aba28fc823
|