ledoc-ui-0.1.0
توضیحات
A bundle of static files for ledoc as a python package.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ledoc-ui-0.1.0 |
| نام | ledoc-ui |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ledoc-ui/ |
| مجوز | MIT |
# Ledoc_ui
This package only contains static files for ledoc_ui as a bundle.
It is intended to be used as a python package dependency for any webserver that serves UI for `openapi.json`.
As long as the `openapi.json` in standard format is served at `/openapi.json` path, the UI will work out of the box at `/ledoc`.
## Getting Started
You can import the `ledoc_ui_path` from the package:
```python
from ledoc_ui import ledoc_ui_path
```
And use it in your webserver to serve the UI. For example, in FastAPI:
```python
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
app = FastAPI()
...
app.mount(
"/ledoc",
StaticFiles(directory=ledoc_ui_path, html=True),
name="ledoc",
)
...
```
## License
This project is licensed under the MIT License.
نحوه نصب
نصب پکیج whl ledoc-ui-0.1.0:
pip install ledoc-ui-0.1.0.whl
نصب پکیج tar.gz ledoc-ui-0.1.0:
pip install ledoc-ui-0.1.0.tar.gz