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
)
Release files for fastapi-namespace-vet1ments 0.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastapi_namespace_vet1ments-0.1.15.tar.gz | 15.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_namespace_vet1ments-0.1.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.8 kB
Release files / fastapi_namespace_vet1ments-0.1.15.tar.gz
| Download URL | fastapi_namespace_vet1ments-0.1.15.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3df34905449851fef5b96b38552b47890654b2e63d8e15c9bc6a0fa29eb3ce7c
|
|
BLAKE2b-256 checksum How to use checksums |
04f3f7f7fd2b0b2220284b951e118b64f4f7f37e633450d9662fa5998a8e636c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / fastapi_namespace_vet1ments-0.1.15-py3-none-any.whl
| Download URL | fastapi_namespace_vet1ments-0.1.15-py3-none-any.whl |
|---|---|
| Size | 20.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c32febb1f569758f94104c8881693d8d5c6fb5b025e2c1137f827b4d512c1a6f
|
|
BLAKE2b-256 checksum How to use checksums |
7d090902259ff253a9c84a653532744e371e51e8d40d3ed8f172048ba2373e1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|