Offline API docs for Litestar
Project description
litestar-offline-docs
This package enables "offline mode" for FastAPI (in other words lets you avoid loading assets from CDN).
Installation
poetry add litestar-offline-docs
Usage
Just construct static file handler and add it to Litestar application during initialization:
import litestar
from litestar_offline_docs import generate_static_files_config
app = litestar.Litestar(
static_files_config=[generate_static_files_config()],
...
)
That's it. Now, the assets for API docs are served locally, not from CDN.
See also: fastapi-offline-docs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for litestar_offline_docs-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5746543765e426eaf646f2d86f4f0b359bc08cff6359e7fac9424b12a354d38f |
|
MD5 | d200865c0e7be726f7db34b69eabb1d9 |
|
BLAKE2b-256 | 9f89b101dd2e19d6aa9422b45bacac5950ba4949a8e4e6d097b02ff37f874672 |
Close
Hashes for litestar_offline_docs-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 414a36c02ea7f310c26523718be4b5ade5c43585a9cdba439faf298711ac1574 |
|
MD5 | 33aa97ad090c3136e461dfdc04e05036 |
|
BLAKE2b-256 | 8258f8e4ca71c563911ca38226b1f49c3a4fcb3b9f8660d98b7295ad34013330 |