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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e65d30fe9e9ae871eb7b490269b2f1ef333139749eeded728402fc95d34f4f |
|
MD5 | 7895ea336ed61433a8f8bd89121abd34 |
|
BLAKE2b-256 | df1f057c75ff2104c211bad3c93a7dbe88b5f2b8d3ae3043568a237e284a8d17 |
Close
Hashes for fastapi_namespace_vet1ments-0.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88d59159eb9f85a1253235fab5fff24c51d132662c71d3e192b751d2222961ad |
|
MD5 | f7a45ee735bff1b244292b58a59774cc |
|
BLAKE2b-256 | ba0b1f27b2af06ee4d0810ce27b3e30f8d00020efd73c41f221e39a4ba03478b |