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)
| File | Size | Uploaded | |
|---|---|---|---|
| fastapi_offline_docs-1.1.0.tar.gz | 748.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|