Skip to main content

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.

Metadata

Release files for litestar-offline-docs 1.1.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 litestar-offline-docs 1.1.0
File Size Uploaded Provenance Actions
litestar_offline_docs-1.1.0.tar.gz 1.0 MB Without provenance Details for litestar_offline_docs-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for litestar-offline-docs 1.1.0
File Interpreter ABI Platform Actions
litestar_offline_docs-1.1.0-py3-none-any.whl Python 3 none any Details for litestar_offline_docs-1.1.0-py3-none-any.whl

Total release size: 2.1 MB

Release files / litestar_offline_docs-1.1.0.tar.gz

Download URL litestar_offline_docs-1.1.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
0f6548f4495fdd28ea2668fbb11cfd77ddb9281e857be2281fea8d0cce1c252c
BLAKE2b-256 checksum
How to use checksums
4d935550d477280127fe80f1b9375ba2ee10a9cdddd9124e2c5e3c83db0deaac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

Release files / litestar_offline_docs-1.1.0-py3-none-any.whl

Download URL litestar_offline_docs-1.1.0-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
18715b5993b25cf50f02bcdd7ea3050e3ce39fadc2364e98d0038809a6cbdba4
BLAKE2b-256 checksum
How to use checksums
af7c58991841e7302161f4c34b3341496cbad5caaafe75f3d431a2d13e9c774f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

Security for litestar-offline-docs 1.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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