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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ce330ca2e801abec1208e264bac9f7a3a03f03aa014376895523b11d075b37 |
|
MD5 | 81038bf68c725aee536b9559008302f5 |
|
BLAKE2b-256 | 891a693c02d476273ce9c32f9a18bc4756a2ba8013e066a5e6e2559d8555388b |
Close
Hashes for fastapi_namespace_vet1ments-0.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e57818dcb76279aa61160161baab9c872dccfd88366cf3360dafcf0e8c39485 |
|
MD5 | aae4dac7bca2e61e0fdc6c85df99ca64 |
|
BLAKE2b-256 | dd4b85f07780f36f122699309363515c3125ffbde3dc9083d525809e3432bf5d |