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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81fe490200e325d4eb60e04039f95e08f5f1b7ba4d6a3c8d40fa50242858951a |
|
MD5 | d10e6344b2bfd44f5a38710bdb277cf6 |
|
BLAKE2b-256 | 3cecdaf10c56e4460ba936a0443be8c55185d5faba4122e0b8577786234e6e93 |
Close
Hashes for fastapi_namespace_vet1ments-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cce04c8340e3488757afb268701a127e5265df2ddb070d1e3c4f6f5fc75fc5b |
|
MD5 | 7552a8f575f92f15567f45a4c45afe9a |
|
BLAKE2b-256 | 0cc74cdaeae624187778387b121ed75b682ba71d4340b2185154f86c38704286 |