Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

ledoc_ui-0.1.0-py3-none-any.whl (2.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page