swagger-ui-py
Swagger UI for Python web framework, such as Tornado, Flask, Quart, Sanic and Falcon.
Decision gist · record as of 2026-08-14
Yes, if you need to add Swagger UI documentation to a Python web application. The package is straightforward to integrate, has low install friction, carries no known vulnerabilities, and works across many popular frameworks. The aging maintenance status (409 days since last release) is a minor concern but not a blocker—the repository is still active and the functionality is stable. Install it when you want interactive API docs without building custom documentation infrastructure.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.0 or later; your web framework (Flask, Tornado, etc.) must be installed separately.
- Low install friction with three lightweight runtime dependencies (jinja2, packaging, PyYaml).
- Maintenance status is aging—last release was 409 days ago—but the repository remains active and unarchived with recent commits.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions; suitable for most projects.
last release 2025-07-01 (409 days) · last repo commit 2025-07-01 · 69 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 146,696 downloads/mo, #11,091 on PyPI
Alternatives
Verify before relying
pip install swagger-ui-py
from swagger_ui import api_doc
api_doc(app, config_path='./config/test.yaml', url_prefix='/api/doc', title='API doc')- Whether the 409-day gap since last release signals maintenance concerns or stable maturity for this use case.
- Performance characteristics when serving large or complex OpenAPI specifications.
- Compatibility with the latest versions of supported frameworks (Flask, Tornado, Sanic, etc.).
What it is and what it does
Swagger-ui-py is a bridge that adds interactive Swagger UI documentation to Python web applications. It works with a wide range of frameworks—Flask, Tornado, Sanic, aiohttp, Quart, Starlette, Falcon, Bottle, and Chalice—by injecting a documentation endpoint that serves the Swagger UI interface. You provide an OpenAPI/Swagger specification (as a local YAML/JSON file, a remote URL, a Python dict, or a JSON string), and the package renders it as an interactive, browsable API explorer at a URL you choose.
The package depends on jinja2 for templating, packaging for version handling, and PyYaml for configuration parsing. It bundles Swagger UI v5.25.3 and Swagger Editor v4.14.6, allowing both read-only documentation viewing and optional in-browser editing of your API spec. Configuration is straightforward: a single function call with your app instance and spec source, plus optional parameters for Swagger UI behavior and OAuth2 settings.
Use it for
- Add interactive API documentation to a Flask or Tornado REST API without writing HTML or maintaining separate docs.
- Serve Swagger UI from a local OpenAPI spec file in a multi-framework Python web application.
- Enable in-browser editing of your API specification with the built-in Swagger Editor.
- Integrate OAuth2 configuration into your API docs for testing authenticated endpoints.
- Support multiple Python web frameworks with a single documentation integration pattern.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to add Swagger UI documentation to a Python web application.
The package is straightforward to integrate, has low install friction, carries no known vulnerabilities, and works across many popular frameworks. The aging maintenance status (409 days since last release) is a minor concern but not a blocker—the repository is still active and the functionality is stable. Install it when you want interactive API docs without building custom documentation infrastructure.
Install
swagger-ui-py on PyPI
Before you install
Low install friction with three lightweight runtime dependencies (jinja2, packaging, PyYaml). Maintenance status is aging—last release was 409 days ago—but the repository remains active and unarchived with recent commits.
Requires Python 3.0 or later; your web framework (Flask, Tornado, etc.) must be installed separately.
License in practice
Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install swagger-ui-py
from swagger_ui import api_doc
api_doc(app, config_path='./config/test.yaml', url_prefix='/api/doc', title='API doc')
Verify before relying
- Whether the 409-day gap since last release signals maintenance concerns or stable maturity for this use case.
- Performance characteristics when serving large or complex OpenAPI specifications.
- Compatibility with the latest versions of supported frameworks (Flask, Tornado, Sanic, etc.).
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.0.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesjinja2packagingPyYaml |
| Maintenance | Aging 409 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 146,696 / month, #11,091 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: swagger_ui_py-25.7.1-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 python web framework”
- swagger-ui-pyIntegrates Swagger UI documentation into Python web frameworks…
- swagger-ui-bundlePackages Swagger UI's static files and templates as a Python…
- aiohttp-swaggerGenerates Swagger API documentation and interactive UI for aiohttp…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also aiohttp-swagger · flask-swagger-ui · swagger-ui-bundle · tapipy · swagger-plugin-for-sphinx · flask-swagger · mkdocs-swagger-ui-tag · flask-openapi3-swagger · mkdocs-render-swagger-plugin · apispec-webframeworks