Skip to main content

fastapi-offline-docs

This package enables "offline mode" for FastAPI (in other words lets you avoid loading assets from CDN).

Installation

poetry add fastapi-offline-docs

Usage

Before:

import fastapi

app = fastapi.FastAPI(docs_url="path/to/doc", redoc_url="path/to/redoc")

After:

import fastapi
from fastapi_offline_docs import enable_offline_docs

app = fastapi.FastAPI(docs_url="path/to/doc", redoc_url="path/to/redoc")
enable_offline_docs(app)

Now, the assets for API docs are served locally, not from CDN.

See also: litestar-offline-docs.

Metadata

Release files for fastapi-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 fastapi-offline-docs 1.1.0
File Size Uploaded
fastapi_offline_docs-1.1.0.tar.gz 748.7 kB Details

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / fastapi_offline_docs-1.1.0.tar.gz

Download URL fastapi_offline_docs-1.1.0.tar.gz
Size 748.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3c6453a2480bada0d3eb165ab396b265ba92ee6650110807293d7d34ccb816df
BLAKE2b-256 checksum
How to use checksums
ebb38ccaea776ccb5ab4a887876fbfccf72efa08a4277c0cb9021f31942f818e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

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

Download URL fastapi_offline_docs-1.1.0-py3-none-any.whl
Size 751.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fee49e387b46b365e8bb70212b57306676517225b6c0ef9f92d63914f167e607
BLAKE2b-256 checksum
How to use checksums
52482a47c05bc1e8ba145472ca52d9a0e59c975cbe59cfabead74c66be106a4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

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