Skip to main content

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> (default SwaggerUI).
  • version: the swagger-ui-dist version.
  • manuallySwaggerUIHtml: (asset) -> str, the page body built from asset["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, modelPropertyMacro and parameterMacro are 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: uv run pytest packages/takibi-swagger-ui. See the root README.

License

Distributed under the MIT License. See LICENSE for more information.

Metadata

Release files for takibi-swagger-ui 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for takibi-swagger-ui 0.1.2
File Size Uploaded Provenance Actions
takibi_swagger_ui-0.1.2.tar.gz 5.1 kB With provenance Details for takibi_swagger_ui-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for takibi-swagger-ui 0.1.2
File Interpreter ABI Platform Actions
takibi_swagger_ui-0.1.2-py3-none-any.whl Python 3 none any Details for takibi_swagger_ui-0.1.2-py3-none-any.whl

Total release size: 11.1 kB

Release files / takibi_swagger_ui-0.1.2.tar.gz

Download URL takibi_swagger_ui-0.1.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5f58e090de0c3d98b85b5981d32207af5f4c75a2165707e8dc45b8f3a4db7de6
BLAKE2b-256 checksum
How to use checksums
586f4d931d9bbf43ace333b5ff82e2170d52d61868672f9223b816c322ad7821
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 4, 2026.

Transparency log

Release files / takibi_swagger_ui-0.1.2-py3-none-any.whl

Download URL takibi_swagger_ui-0.1.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c415506442cd7a4295201eea98b14111d625665ab6f75601ff52982a4e4716fa
BLAKE2b-256 checksum
How to use checksums
57936fabf9f19bad31486a3fed162b9c82a4f6528b291129a853b63236fc6d5e
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 4, 2026.

Transparency log

Security for takibi-swagger-ui 0.1.2

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.

Select from 2 files

Attestation for takibi_swagger_ui-0.1.2.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 4, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page