Skip to main content

Prauga FlexDoc Python adapter

prauga-flexdoc is a self-contained, dependency-free ASGI app for mounting in FastAPI, Starlette, Django ASGI, Quart, or another ASGI host.

FastAPI

FastAPI already generates OpenAPI from route decorators, type hints, Pydantic models, response metadata, and security dependencies. Mount FlexDoc against that generated document with one helper:

from fastapi import FastAPI
from prauga_flexdoc import setup_fastapi_flexdoc

app = FastAPI(docs_url=None, redoc_url=None)
setup_fastapi_flexdoc(app, "/docs", title="My API")

FastAPI uses /docs for its built-in Swagger UI by default. If FlexDoc is mounted at /docs, disable the built-in route with docs_url=None as above (and usually redoc_url=None if ReDoc is not needed). The helper rejects a conflicting mount with a clear error instead of silently creating an unreachable FlexDoc route. You can alternatively mount FlexDoc at a different path such as /reference and leave FastAPI's built-in docs enabled.

The helper uses FastAPI's configured openapi_url, so custom OpenAPI paths continue to work and FastAPI remains an optional dependency.

Generic ASGI

from prauga_flexdoc import FlexDocASGI, FlexDocConfig

app.mount("/docs", FlexDocASGI(
    FlexDocConfig(path="/docs", spec_url="/openapi.json", title="My API")
))

The wheel packages the version-matched canonical renderer JS/CSS. Pass assets_dir= only when intentionally overriding those bundled assets.

Release files for prauga-flexdoc 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prauga-flexdoc 0.2.0
File Size Uploaded
prauga_flexdoc-0.2.0.tar.gz 121.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prauga-flexdoc 0.2.0
File Interpreter ABI Platform
prauga_flexdoc-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 242.2 kB

Release files / prauga_flexdoc-0.2.0.tar.gz

Download URL prauga_flexdoc-0.2.0.tar.gz
Size 121.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0f9f27944af6fa84213effdb4d4a8c5761f049924c214fd1da7159d70a4bc72b
BLAKE2b-256 checksum
How to use checksums
a2382c8ca3329e37628411cefb6fddd88fd362bd1d117e6e347f80d657be9f41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / prauga_flexdoc-0.2.0-py3-none-any.whl

Download URL prauga_flexdoc-0.2.0-py3-none-any.whl
Size 120.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bbb2abc2c9b20bb04bd5e31da96134de524cd02f64bdd50ad8e713f624dbfef
BLAKE2b-256 checksum
How to use checksums
52dea8a7d0a0754ca37d98558de648c2ec7ec020340bba58f4ed9301eb30ecec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release history Release notifications | RSS feed

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release 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