Skip to main content

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
    )

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.11.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_namespace_vet1ments-0.1.11-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fastapi_namespace_vet1ments-0.1.11.tar.gz
Algorithm Hash digest
SHA256 c96fd879a81b29aaa0e80a6c2f8e8743de5fe842c1bad97365fd455a60df2a7c
MD5 2ab3811c109b56ba0a86158def019cfb
BLAKE2b-256 432d2bd6952683aff1cd641b6dda7d44e92e63d51456ba2669090d139bd9e0ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_namespace_vet1ments-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 c456e10c363782f64c5a2c37a374a5a281bf1bcd9eb7c4605c4d72d07bbee4b5
MD5 e029d8096d951d5e1f40993769de82d8
BLAKE2b-256 825f1a6219f7b2fa58eaf7adde1c2c74e188227826c4aca612af0d48f12e8930

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

This release

0.1.11 This release

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page