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
File details
Details for the file fastapi_namespace_vet1ments-0.1.15.tar.gz
.
File metadata
- Download URL: fastapi_namespace_vet1ments-0.1.15.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3df34905449851fef5b96b38552b47890654b2e63d8e15c9bc6a0fa29eb3ce7c |
|
MD5 | 3c323f1372072b6e5e840f77efe27b96 |
|
BLAKE2b-256 | 04f3f7f7fd2b0b2220284b951e118b64f4f7f37e633450d9662fa5998a8e636c |
File details
Details for the file fastapi_namespace_vet1ments-0.1.15-py3-none-any.whl
.
File metadata
- Download URL: fastapi_namespace_vet1ments-0.1.15-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c32febb1f569758f94104c8881693d8d5c6fb5b025e2c1137f827b4d512c1a6f |
|
MD5 | 03af76cc3c5137c9b8688ed3f55de199 |
|
BLAKE2b-256 | 7d090902259ff253a9c84a653532744e371e51e8d40d3ed8f172048ba2373e1a |