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.1.tar.gz (5.4 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.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fastapi_namespace_vet1ments-0.1.1.tar.gz
Algorithm Hash digest
SHA256 39db905af3f8423ae5a4b38153478f64af612eae6d74755c4ca991d14a117fed
MD5 83a39367940360ff13f76de89bf5c8aa
BLAKE2b-256 9990b64a6b1e7f16859f9ef9f7a0f654cc3b94b250fe5dc554a6602210ffd4ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_namespace_vet1ments-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1dca4bfeeb29d59637b27313218f24aeacb0c5ef92b233ab38dfd3e151a89163
MD5 bdd3da3c53ace439fe6685053e8525bd
BLAKE2b-256 a4864778581db2b66bc33c24ace1aefae09b33c9bf1316f9e66bd54b12fa693d

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

0.1.11

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

This release

0.1.1 This release

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