takibi-swagger-ui
Swagger UI for a TakibiAPI app (or its pydantic / zopy flavors), as Hono's @hono/swagger-ui.
pip install takibi-swagger-ui
from takibiapi import TakibiAPI
from takibi_swagger_ui import swaggerUI
app = TakibiAPI()
# app.openapi(route, handler) ...
app.doc("/doc", {"openapi": "3.1.0", "info": {"title": "My API", "version": "1.0.0"}})
app.use(swaggerUI({"url": "/doc"}), prefix="/ui") # GET /ui: the Swagger UI page
The page loads swagger-ui-dist from jsDelivr ("version": "5.17.14" pins it) and the document from url.
Options
title: the page's<title>(defaultSwaggerUI).version: theswagger-ui-distversion.manuallySwaggerUIHtml:(asset) -> str, the page body built fromasset["css"]/asset["js"].- Everything else is Swagger UI's configuration (
url,urls,spec,deepLinking,docExpansion,persistAuthorization, ...), written as JSON.presets,plugins,requestInterceptor,responseInterceptor,onComplete,operationsSorter,tagsSorter,modelPropertyMacroandparameterMacroare JavaScript source and written as they are:
swaggerUI({"url": "/doc", "requestInterceptor": "(req) => { req.headers['x-api-key'] = 'dev'; return req }"})
SwaggerUI(options) returns the markup alone, to put in a page of your own.
Development
From the repository root: bazel test //pypi/takibi-swagger-ui:test. See the root README. apps/examples/src/examples/todo.py serves it (just serve, then http://localhost:8000/ui).
License
Distributed under the MIT License. See LICENSE for more information.
Metadata
Release files for takibi-swagger-ui 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| takibi_swagger_ui-0.1.0.tar.gz | 5.1 kB | With provenance | Details for takibi_swagger_ui-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| takibi_swagger_ui-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for takibi_swagger_ui-0.1.0-py3-none-any.whl |
Total release size: 11.2 kB
Release files / takibi_swagger_ui-0.1.0.tar.gz
| Download URL | takibi_swagger_ui-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
764e49132f669121bb79d364b036f71f341ef8a0cc14491fed26d31a91f2827c
|
|
BLAKE2b-256 checksum How to use checksums |
9f77f4625a01c92b1b55738f8403f681f4b94fd1772d6260bf6269917e536be8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / takibi_swagger_ui-0.1.0-py3-none-any.whl
| Download URL | takibi_swagger_ui-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
997b0dca6f3b7d7119cc5fa34d124e9d2c8cfb033a627d5518b612cfb7fce8d2
|
|
BLAKE2b-256 checksum How to use checksums |
9fc85cf5d2fc21a6afa93fb43f44a91cfa6186b9dd373863081042269e7415a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for takibi-swagger-ui 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for takibi_swagger_ui-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.