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.0.tar.gz (5.3 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.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fastapi_namespace_vet1ments-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56cd6baac3e522c7eb729ed9f6596ddb1ff04dbf98b44a486a886b770ef257d6
MD5 25f9f52a88317af1ccf852ea94740814
BLAKE2b-256 f48c829c3a87ca84cddc1723cd16df2b4305323c3098d46a9d1b4f817f978d49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_namespace_vet1ments-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6604a07b58e6ac06a20fb0dd7108aa6020204c6ccfc3026ec45d2b86e2c4a0d2
MD5 bcc3b24a434a8a33f6e96f879d24c883
BLAKE2b-256 a3d8f64826b2711f780fc9e9f10e7bdd2b6d4ad7390002c3738c9461fca64094

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

0.1.1

2 files

This release

0.1.0 This release

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