swagger-ui-bundle
Swagger UI bundled for usage with Python
Decision gist · record as of 2026-08-14
Yes, if you need to serve Swagger UI documentation from a Python web application. The package has low install friction, permissive Apache 2.0 licensing, and no known vulnerabilities. The aging maintenance status (1017 days since last release) is a minor concern but acceptable given that it's a stable wrapper around static assets rather than active-development code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with only two lightweight runtime dependencies (Jinja2 and importlib_resources).
- The package is aging (1017 days since last release) but remains in production/stable status with an active repository.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache 2.0, a permissive open-source license that allows commercial use, modification, and distribution with minimal restrictions.
last release 2023-11-01 (1017 days) · last repo commit 2025-09-04 · 21 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,545,052 downloads/mo, #2,580 on PyPI
Alternatives
Verify before relying
from swagger_ui_bundle import swagger_ui_path
import Jinja2
# swagger_ui_path points to the directory containing static UI files
# Render templates with Jinja2 for configuration
template_vars = {"openapi_spec_url": "https://example.com/spec.json"}
# Serve swagger_ui_path as static files through your web framework- Whether the bundled Swagger UI version is current relative to upstream swagger-ui releases
- Performance characteristics when serving to high-traffic API documentation endpoints
- Specific web framework integration patterns beyond the documented example
What it is and what it does
swagger-ui-bundle packages the static files from the Swagger UI project into a Python distribution, making it easy to integrate interactive API documentation into web applications without manually managing external assets. It includes Jinja2 templating support for basic configuration, allowing developers to customize the UI through template variables rather than modifying static files directly.
The package is webserver-agnostic and designed to work with any Python web framework. You import swagger_ui_path to get the directory containing all the UI assets, then serve them through your framework's static file mechanism. Configuration options like the OpenAPI spec URL can be templated and rendered on demand using Jinja2.
Use it for
- Serve Swagger UI documentation alongside a REST API without managing external CDN dependencies
- Customize API documentation appearance by rendering Jinja2 templates with application-specific configuration
- Bundle interactive API docs into a self-contained Python application for offline or internal deployment
- Quickly prototype an API with live documentation by serving the static bundle through a web framework
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to serve Swagger UI documentation from a Python web application.
The package has low install friction, permissive Apache 2.0 licensing, and no known vulnerabilities. The aging maintenance status (1017 days since last release) is a minor concern but acceptable given that it's a stable wrapper around static assets rather than active-development code.
Install
swagger-ui-bundle on PyPI
Before you install
Low install friction with only two lightweight runtime dependencies (Jinja2 and importlib_resources). The package is aging (1017 days since last release) but remains in production/stable status with an active repository.
License in practice
Licensed under Apache 2.0, a permissive open-source license that allows commercial use, modification, and distribution with minimal restrictions.
Quickstart
from swagger_ui_bundle import swagger_ui_path
import Jinja2
# swagger_ui_path points to the directory containing static UI files
# Render templates with Jinja2 for configuration
template_vars = {"openapi_spec_url": "https://example.com/spec.json"}
# Serve swagger_ui_path as static files through your web framework
Verify before relying
- Whether the bundled Swagger UI version is current relative to upstream swagger-ui releases
- Performance characteristics when serving to high-traffic API documentation endpoints
- Specific web framework integration patterns beyond the documented example
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesJinja2importlib_resources |
| Maintenance | Aging 1,017 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,545,052 / month, #2,580 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: InternetTopic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: HTTP ServersTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: swagger_ui_bundle-1.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “swagger ui static files python”
- swagger-ui-bundlePackages Swagger UI's static files and templates as a Python…
- drf-spectacular-sidecarServes pre-built Swagger UI and Redoc distributions as Django static…
- mkdocs-swagger-ui-tagA MkDocs plugin that embeds Swagger UI directly into documentation…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also flask-swagger-ui · swagger-ui-py · flask-swagger · flask-openapi3-swagger · drf-spectacular-sidecar · mkdocs-swagger-ui-tag · aiohttp-swagger · mkdocs-render-swagger-plugin · flask-openapi3-elements · swagger-plugin-for-sphinx