Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_namespace_vet1ments-0.1.15.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file fastapi_namespace_vet1ments-0.1.15.tar.gz.

File metadata

File hashes

Hashes for fastapi_namespace_vet1ments-0.1.15.tar.gz
Algorithm Hash digest
SHA256 3df34905449851fef5b96b38552b47890654b2e63d8e15c9bc6a0fa29eb3ce7c
MD5 3c323f1372072b6e5e840f77efe27b96
BLAKE2b-256 04f3f7f7fd2b0b2220284b951e118b64f4f7f37e633450d9662fa5998a8e636c

See more details on using hashes here.

File details

Details for the file fastapi_namespace_vet1ments-0.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_namespace_vet1ments-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c32febb1f569758f94104c8881693d8d5c6fb5b025e2c1137f827b4d512c1a6f
MD5 03af76cc3c5137c9b8688ed3f55de199
BLAKE2b-256 7d090902259ff253a9c84a653532744e371e51e8d40d3ed8f172048ba2373e1a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page