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.1.0.tar.gz
(748.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_offline_docs-1.1.0.tar.gz.
File metadata
- Download URL: fastapi_offline_docs-1.1.0.tar.gz
- Upload date:
- Size: 748.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.26
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c6453a2480bada0d3eb165ab396b265ba92ee6650110807293d7d34ccb816df
|
|
| MD5 |
89323667c82d6bf3a81ed8cbb3e95bba
|
|
| BLAKE2b-256 |
ebb38ccaea776ccb5ab4a887876fbfccf72efa08a4277c0cb9021f31942f818e
|
File details
Details for the file fastapi_offline_docs-1.1.0-py3-none-any.whl.
File metadata
- Download URL: fastapi_offline_docs-1.1.0-py3-none-any.whl
- Upload date:
- Size: 751.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.26
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fee49e387b46b365e8bb70212b57306676517225b6c0ef9f92d63914f167e607
|
|
| MD5 |
b4b754c623385ad038b390b99ee8cd8e
|
|
| BLAKE2b-256 |
52482a47c05bc1e8ba145472ca52d9a0e59c975cbe59cfabead74c66be106a4f
|