Stoplight elements html
Project description
Stopments
Stoplight elements static files
Refered from FastAPI's #5168 PR
It includes the following files:
styles.min.cssweb-components.min.jsfavicon.icoscalar-api-reference.js(for scalar)
The static files were collected on the same date as this package version.
Installation
pip install stopments
Usage
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
from fastapi.staticfiles import StaticFiles
from stopments import get_stoplight_elements_html
app = FastAPI(docs_url=None, redoc_url=None)
@app.get("/docs/", include_in_schema=False)
async def docs():
html = get_stoplight_elements_html(
openapi_url=app.openapi_url or "/openapi.json",
title="API Documentation",
)
return HTMLResponse(content=html)
or you can use embedded static files
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
from fastapi.staticfiles import StaticFiles
from stopments import get_stoplight_elements_html
app = FastAPI(docs_url=None, redoc_url=None)
app.mount("/static", StaticFiles(packages=[("stopments", "static")]))
@app.get("/docs/", include_in_schema=False)
async def docs():
html = get_stoplight_elements_html(
openapi_url=app.openapi_url or "/openapi.json",
title="API Documentation",
stoplight_elements_css_url="/static/styles.min.css",
stoplight_elements_js_url="/static/web-components.min.js",
stoplight_elements_favicon_url="/static/favicon.ico",
)
return HTMLResponse(content=html)
References
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stopments-25.10.1.tar.gz.
File metadata
- Download URL: stopments-25.10.1.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ea395652989e863caecd8a51f546675b2aed98021d34e8b5c9b1d423a9ef93b
|
|
| MD5 |
496cb56bf6d63179c544e4082ae0bc0c
|
|
| BLAKE2b-256 |
a20eec294fce5070ae67c5957f6d4cdd8c211537285ed1fa845dcea21054f918
|
Provenance
The following attestation bundles were made for stopments-25.10.1.tar.gz:
Publisher:
release.yaml on Bing-su/stopments
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stopments-25.10.1.tar.gz -
Subject digest:
0ea395652989e863caecd8a51f546675b2aed98021d34e8b5c9b1d423a9ef93b - Sigstore transparency entry: 577194476
- Sigstore integration time:
-
Permalink:
Bing-su/stopments@4faba1448170b4a73a6ba3e983793df7cf742541 -
Branch / Tag:
refs/tags/v25.10.1 - Owner: https://github.com/Bing-su
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@4faba1448170b4a73a6ba3e983793df7cf742541 -
Trigger Event:
push
-
Statement type:
File details
Details for the file stopments-25.10.1-py3-none-any.whl.
File metadata
- Download URL: stopments-25.10.1-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f64cff8b807c77562d4d385119df1b86a5f560489813aa0fda7dfbcfb01865fc
|
|
| MD5 |
2bacc59cade79bf7e45ecd0674d41d1f
|
|
| BLAKE2b-256 |
1a6f86e53569f35f6202c2e2550c1d50a44171f4f644ca5a305996b2ff21bab7
|
Provenance
The following attestation bundles were made for stopments-25.10.1-py3-none-any.whl:
Publisher:
release.yaml on Bing-su/stopments
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stopments-25.10.1-py3-none-any.whl -
Subject digest:
f64cff8b807c77562d4d385119df1b86a5f560489813aa0fda7dfbcfb01865fc - Sigstore transparency entry: 577194515
- Sigstore integration time:
-
Permalink:
Bing-su/stopments@4faba1448170b4a73a6ba3e983793df7cf742541 -
Branch / Tag:
refs/tags/v25.10.1 - Owner: https://github.com/Bing-su
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@4faba1448170b4a73a6ba3e983793df7cf742541 -
Trigger Event:
push
-
Statement type: