Name | litestar-offline-docs JSON |
Version |
1.1.0
JSON |
| download |
home_page | None |
Summary | Offline API docs for Litestar |
upload_time | 2025-02-01 09:20:36 |
maintainer | None |
docs_url | None |
author | community-of-python |
requires_python | <4,>=3.9 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# litestar-offline-docs
This package enables "offline mode" for FastAPI (in other words lets you avoid loading assets from CDN).
# Installation
```sh
poetry add litestar-offline-docs
```
# Usage
Just construct static file handler and add it to Litestar application during initialization:
```python
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](https://github.com/community-of-python/fastapi-offline-docs).
Raw data
{
"_id": null,
"home_page": null,
"name": "litestar-offline-docs",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "community-of-python",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/4d/93/5550d477280127fe80f1b9375ba2ee10a9cdddd9124e2c5e3c83db0deaac/litestar_offline_docs-1.1.0.tar.gz",
"platform": null,
"description": "# litestar-offline-docs\n\nThis package enables \"offline mode\" for FastAPI (in other words lets you avoid loading assets from CDN).\n\n# Installation\n\n```sh\npoetry add litestar-offline-docs\n```\n\n# Usage\n\nJust construct static file handler and add it to Litestar application during initialization:\n\n```python\nimport litestar\n\nfrom litestar_offline_docs import generate_static_files_config\n\napp = litestar.Litestar(\n static_files_config=[generate_static_files_config()],\n ...\n)\n```\n\nThat's it. Now, the assets for API docs are served locally, not from CDN.\n\nSee also: [fastapi-offline-docs](https://github.com/community-of-python/fastapi-offline-docs).\n",
"bugtrack_url": null,
"license": null,
"summary": "Offline API docs for Litestar",
"version": "1.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "af7c58991841e7302161f4c34b3341496cbad5caaafe75f3d431a2d13e9c774f",
"md5": "51656eb14513a2509e502c786a9b3a2e",
"sha256": "18715b5993b25cf50f02bcdd7ea3050e3ce39fadc2364e98d0038809a6cbdba4"
},
"downloads": -1,
"filename": "litestar_offline_docs-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "51656eb14513a2509e502c786a9b3a2e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.9",
"size": 1055419,
"upload_time": "2025-02-01T09:20:34",
"upload_time_iso_8601": "2025-02-01T09:20:34.763916Z",
"url": "https://files.pythonhosted.org/packages/af/7c/58991841e7302161f4c34b3341496cbad5caaafe75f3d431a2d13e9c774f/litestar_offline_docs-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4d935550d477280127fe80f1b9375ba2ee10a9cdddd9124e2c5e3c83db0deaac",
"md5": "b104fe8d63f761bf0bc52ee2490d890e",
"sha256": "0f6548f4495fdd28ea2668fbb11cfd77ddb9281e857be2281fea8d0cce1c252c"
},
"downloads": -1,
"filename": "litestar_offline_docs-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "b104fe8d63f761bf0bc52ee2490d890e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.9",
"size": 1034159,
"upload_time": "2025-02-01T09:20:36",
"upload_time_iso_8601": "2025-02-01T09:20:36.136294Z",
"url": "https://files.pythonhosted.org/packages/4d/93/5550d477280127fe80f1b9375ba2ee10a9cdddd9124e2c5e3c83db0deaac/litestar_offline_docs-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-01 09:20:36",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "litestar-offline-docs"
}