Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litestar_offline_docs-1.0.0.tar.gz (1.0 MB view hashes)

Uploaded Source

Built Distribution

litestar_offline_docs-1.0.0-py3-none-any.whl (1.1 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page