Offline API docs for FastAPI
Project description
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.
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
fastapi_offline_docs-1.0.0.tar.gz
(748.1 kB
view hashes)
Built Distribution
Close
Hashes for fastapi_offline_docs-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17ea2d02e4520ee799f5a3863062819a4bc3a3b193e3d3728ee08309d282f2eb |
|
MD5 | a664e98cea4f8d210c0fbe7ec044354c |
|
BLAKE2b-256 | ea983691924e55e40de552c70c30685d96d756e89f5dcb64479dca5701a9122a |
Close
Hashes for fastapi_offline_docs-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 260ee790fa97f1c9a441cea34a10d3773efc57a9dba0896eb07cb81084f2eded |
|
MD5 | 0366f05fc2e5f8e20e0bc710ce50086c |
|
BLAKE2b-256 | dda1729215404065e5980a5816b63bbeecf117f6e26baf4277bb1e4e592fe8ee |