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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6cd7c0db2050fc1a249a75dd48718c1acbea74e58e13dfb932c9fef3ef9d2b1 |
|
MD5 | 5b17090e80a5c0dee10683c4431075ad |
|
BLAKE2b-256 | 0789be85902df2bad58353de7e4795bb540ad5f157929e726b62fbdd7b850cf0 |
Close
Hashes for fastapi_namespace_vet1ments-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 406374ea6b023db6f750f743dce36cf3b652ffe8cabde011af880c56e55170be |
|
MD5 | 3a43164ddfae857ea9e42f395ca79820 |
|
BLAKE2b-256 | 43651345c7feec654fe0e22cfad420f89a3aa48c1d7abc2d42f0f4a673937e65 |