A bundle of static files for ledoc as a python package.
Project description
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:
from ledoc_ui import ledoc_ui_path
And use it in your webserver to serve the UI. For example, in FastAPI:
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.
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
ledoc-ui-0.1.0.tar.gz
(2.3 MB
view details)
Built Distribution
File details
Details for the file ledoc-ui-0.1.0.tar.gz
.
File metadata
- Download URL: ledoc-ui-0.1.0.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f202c898e6c6219e06c1d77b83e03522872bb38b560c5d9b2bc9b41d73ca5ed |
|
MD5 | 9951fd3fed72be012e0b0ce50c1eb425 |
|
BLAKE2b-256 | d8e026d4b09c9d0dc718d9fd5b2b6ff506335cf2ccb43c85f91d083d7162a026 |
File details
Details for the file ledoc_ui-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ledoc_ui-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccf50c0d777cdabc7f1adfce716c488eeb1018da0e559b72e31666217ffe935 |
|
MD5 | 9db2fef6fca80d2f3879ec9ec5b6c23c |
|
BLAKE2b-256 | 86ab6d5317ba39b3ffbf0428d8ee75d63611eb63fbc5fea30398c38e5a50ae6c |