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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e9551855818a13b615d74524ee242af95378f24f18ce230a6cf47e461225932 |
|
MD5 | 260d64557b091da844837d7d0cc7ac1a |
|
BLAKE2b-256 | 89f9f22f43b0a2d9e7811fb33eb0a3a64ce0ef0a6a0fcf09504af459f68c3313 |
Close
Hashes for fastapi_namespace_vet1ments-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a13a529a707fd18ff534fd0689c634e96985ff7db87d36dcf7e6baffc56f36 |
|
MD5 | 940925ceb59bd88b800e1dee47036f62 |
|
BLAKE2b-256 | 926913f26a80fd6a2e71dee9afa014f2d3931f9d8e33a74568665594dd4bf3e7 |