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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7068071545b0020b7010e93f5489e2c30ee8ebd869d47b1e7b5834e765104398 |
|
MD5 | af28b3111525a10c642651becab7fa68 |
|
BLAKE2b-256 | 07f847b1a0d932ffabe0cf40e4e645a7868d142be04aae0867afa949b2f1096d |
Close
Hashes for litestar_offline_docs-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ec4628a573a6cbe423ae3d5ee243d4b871a3f2c413026c7d2b723f51b1b1a5 |
|
MD5 | a48de17f95bbb0ff65f591653a9b4173 |
|
BLAKE2b-256 | c49561ef2bd4b4564d8e37f614b9c606a3d16e4a963f3333a22966cfa6097067 |