litestar-offline-docs


Namelitestar-offline-docs JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryOffline API docs for Litestar
upload_time2024-10-28 09:26:54
maintainerNone
docs_urlNone
authorcommunity-of-python
requires_python<4.0,>=3.9
licenseNone
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.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "community-of-python",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/21/a3/c8cefd2484fb2784bc8fc2cd309053e2f903aa3917c6a03b18a2398cca0b/litestar_offline_docs-1.0.2.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.0.2",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "191aef4042ac829075d403faacdc12d761ab89ddfa034fa8438eea27888534e8",
                "md5": "46bbeaba11decc2a99a9ba07098598b2",
                "sha256": "cf029f51f01f306a84aedc21136bf70e7ec00d70579ec21e92ada8d186c0c493"
            },
            "downloads": -1,
            "filename": "litestar_offline_docs-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "46bbeaba11decc2a99a9ba07098598b2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 1055487,
            "upload_time": "2024-10-28T09:26:52",
            "upload_time_iso_8601": "2024-10-28T09:26:52.405909Z",
            "url": "https://files.pythonhosted.org/packages/19/1a/ef4042ac829075d403faacdc12d761ab89ddfa034fa8438eea27888534e8/litestar_offline_docs-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21a3c8cefd2484fb2784bc8fc2cd309053e2f903aa3917c6a03b18a2398cca0b",
                "md5": "224ddda4a99bd129479b750dd6cd18e0",
                "sha256": "c72f86f18d41a3cbf3453942541ae760bc382c79cb77ab01931b1894b386993a"
            },
            "downloads": -1,
            "filename": "litestar_offline_docs-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "224ddda4a99bd129479b750dd6cd18e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 1034381,
            "upload_time": "2024-10-28T09:26:54",
            "upload_time_iso_8601": "2024-10-28T09:26:54.233008Z",
            "url": "https://files.pythonhosted.org/packages/21/a3/c8cefd2484fb2784bc8fc2cd309053e2f903aa3917c6a03b18a2398cca0b/litestar_offline_docs-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-28 09:26:54",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "litestar-offline-docs"
}
        
Elapsed time: 0.48612s