Prauga FlexDoc Python adapter
prauga-flexdoc 0.3.0 packages one framework-neutral Python host plus ASGI and WSGI transports. The wheel is self-contained, includes the canonical renderer assets, and keeps FastAPI, Flask, and Django optional.
FastAPI / ASGI
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')
For a generic ASGI host:
from prauga_flexdoc import FlexDocASGI, FlexDocConfig
app.mount('/docs', FlexDocASGI(
FlexDocConfig(path='/docs', spec_url='/openapi.json', title='My API')
))
Flask / WSGI
from flask import Flask
from prauga_flexdoc import setup_flask_flexdoc
app = Flask(__name__)
setup_flask_flexdoc(app, '/docs', spec_url='/openapi.json', title='My API')
For another WSGI server or framework, use FlexDocWSGI(FlexDocConfig(...)) directly.
Django
from django.urls import path
from prauga_flexdoc import django_urlpatterns
urlpatterns = [
# your API/OpenAPI routes
*django_urlpatterns('/docs', spec_url='/openapi.json', title='My API'),
]
Django ASGI applications can also mount/use FlexDocASGI; Django WSGI applications can use FlexDocWSGI. django_urlpatterns() is the first-class native URL-routing helper.
Architecture
FlexDocHost synchronously owns route matching, the HTML bootstrap, renderer fingerprinting, cache policy, and packaged JS/CSS. FlexDocASGI and FlexDocWSGI only translate that neutral response to their protocol. Framework helpers do not fork renderer behavior.
Pass assets_dir= to FlexDocHost, FlexDocASGI, or FlexDocWSGI only when intentionally overriding the bundled renderer assets during development.
Release files for prauga-flexdoc 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prauga_flexdoc-0.3.0.tar.gz | 131.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prauga_flexdoc-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 262.6 kB
Release files / prauga_flexdoc-0.3.0.tar.gz
| Download URL | prauga_flexdoc-0.3.0.tar.gz |
|---|---|
| Size | 131.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e340d1ead59655f26e658909375832fe419d7f36ca1abf2240ef867727492972
|
|
BLAKE2b-256 checksum How to use checksums |
8cb901136b7004e7a8732b73aa38d7a8da1309dac95820670e4516e4cd56e5c0
|
| 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 3, 2026.
Transparency logRelease files / prauga_flexdoc-0.3.0-py3-none-any.whl
| Download URL | prauga_flexdoc-0.3.0-py3-none-any.whl |
|---|---|
| Size | 130.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bc94718f794df6311002deda22b7ef87fe5528750cff22e1cae1109e0ae8966
|
|
BLAKE2b-256 checksum How to use checksums |
12df174aa70c07f79260d03f5e8203c394d18bd2e0f2c67332545df6ef7422fc
|
| 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 3, 2026.
Transparency log