For FastAPI Routing Class
Project description
FastAPI Namespace
fastapi 라우팅 관리를 위한 namespace class
USAGE
from fastapi import FastAPI
from fastapi_namespace import Namespace, Resource
namespace = Namespace()
@namespace.route(summary="test")
class CustomNamespace(Resource):
@namespace.doc(summary="test1")
def get(self):
...
async def post(self):
...
app = FastAPI()
app.include_router(namespace)
if __name__ == "__main__":
from uvicorn import run
run(
app=app
)
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
Close
Hashes for fastapi_namespace_vet1ments-0.1.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c96fd879a81b29aaa0e80a6c2f8e8743de5fe842c1bad97365fd455a60df2a7c |
|
MD5 | 2ab3811c109b56ba0a86158def019cfb |
|
BLAKE2b-256 | 432d2bd6952683aff1cd641b6dda7d44e92e63d51456ba2669090d139bd9e0ca |
Close
Hashes for fastapi_namespace_vet1ments-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c456e10c363782f64c5a2c37a374a5a281bf1bcd9eb7c4605c4d72d07bbee4b5 |
|
MD5 | e029d8096d951d5e1f40993769de82d8 |
|
BLAKE2b-256 | 825f1a6219f7b2fa58eaf7adde1c2c74e188227826c4aca612af0d48f12e8930 |