$npx skillfedfor your agent

flask-swagger

Extract swagger specs from your flask project

SkipPyPI Python ModulesReleased Mar 2019151.8K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — flask_swagger-0.2.14-py2-none-any.whl
v0.2.14 · released 2019-03-26 · 2 runtime deps: Flask, PyYAML

No—unless you are maintaining legacy code already using this package. The project is abandoned (last release 2019, last commit 2021) with no active maintenance. For new projects, use actively maintained alternatives like Flask-RESTX, Flasgger, or Connexion that support modern OpenAPI 3.0 specs and receive regular updates. The low install friction and permissive license do not offset the risk of relying on unmaintained code.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with only Flask and PyYAML as runtime dependencies.
  • However, the package is abandoned—last release was 2019-03-26 and last commit 2021-11-18.
  • No active maintenance means security updates and compatibility fixes are unlikely.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and imposes minimal restrictions; you can use, modify, and distribute the package freely with attribution.

last release 2019-03-26 (2698 days) · last repo commit 2021-11-18 · 457 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 151,808 downloads/mo, #10,920 on PyPI

Verify before relying

pip install flask-swagger

from flask import Flask, jsonify
from flask_swagger import swagger

app = Flask(__name__)

@app.route("/spec")
def spec():
    return jsonify(swagger(app))
  • Whether the package works reliably with modern Flask and PyYAML versions given its abandoned status
  • Compatibility with Python versions beyond 3.4 (classifiers list 3.4 but no requires_python constraint)
  • Whether Swagger 2.0 spec extraction meets current OpenAPI/Swagger UI expectations
Same gist for agents: .md · .json

What it is and what it does

flask-swagger is a documentation extraction tool that reads YAML docstrings embedded in Flask view functions and MethodView methods, then generates a Swagger 2.0 specification object. It parses the YAML following a convention where content before `---` becomes the endpoint summary and description, and content after becomes the Operation object (parameters, responses, schemas, tags). The tool supports inline schema definitions with an `id` field that get collected into a definitions section, and handles nested schemas within properties.

You use it by calling the `swagger()` function on your Flask app to generate a spec dictionary, which you then expose via a Flask route (typically `/spec`) and serve to Swagger UI or other documentation consumers. The spec returned is minimal—you're expected to augment it with metadata like API title and version. The package depends only on Flask and PyYAML, making installation straightforward, but it has been unmaintained since 2019 and is unlikely to receive updates for newer Swagger or Flask versions.

Use it for

  • Generate Swagger 2.0 documentation from existing Flask endpoints without writing separate spec files
  • Serve API specs to Swagger UI for interactive API exploration and testing
  • Export Flask API contracts for client code generation or third-party integrations
  • Document MethodView-based REST APIs by embedding operation details in docstrings
  • Build minimal API documentation endpoints that reflect your current Flask routes

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No—unless you are maintaining legacy code already using this package.

The project is abandoned (last release 2019, last commit 2021) with no active maintenance. For new projects, use actively maintained alternatives like Flask-RESTX, Flasgger, or Connexion that support modern OpenAPI 3.0 specs and receive regular updates. The low install friction and permissive license do not offset the risk of relying on unmaintained code.

Install

flask-swagger on PyPI

Before you install

Low install friction with only Flask and PyYAML as runtime dependencies. However, the package is abandoned—last release was 2019-03-26 and last commit 2021-11-18. No active maintenance means security updates and compatibility fixes are unlikely.

License in practice

MIT license is permissive and imposes minimal restrictions; you can use, modify, and distribute the package freely with attribution.

Quickstart

pip install flask-swagger

from flask import Flask, jsonify
from flask_swagger import swagger

app = Flask(__name__)

@app.route("/spec")
def spec():
    return jsonify(swagger(app))

Verify before relying

  • Whether the package works reliably with modern Flask and PyYAML versions given its abandoned status
  • Compatibility with Python versions beyond 3.4 (classifiers list 3.4 but no requires_python constraint)
  • Whether Swagger 2.0 spec extraction meets current OpenAPI/Swagger UI expectations

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
FlaskPyYAML
MaintenanceAbandoned 2,698 days since the last release
Last repo commit
First released
Downloads151,808 / month, #10,920 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Topic :: Software Development :: Libraries :: Python Modules

Evidence: flask_swagger-0.2.14-py2-none-any.whl

Tags

Capabilities
swagger spec from flaskapi documentation generatorflask openapi extractionswagger 2.0 docstring parserflask api spec extractorrest api documentationswagger ui integration
Topics
api-documentationswagger-specabandoned

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 spec from flask”

  • flask-swaggerExtracts Swagger 2.0 API specifications from Flask applications by…
  • swagger-ui-pyIntegrates Swagger UI documentation into Python web frameworks…
  • flasggerFlasgger extracts OpenAPI specifications from Flask views and serves…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also flasgger · flask-swagger-ui · swagger-ui-py · swagger-ui-bundle · drf-yasg · swagger-spec-validator · flask-apispec · flask-restplus · flask-pydantic-spec · flask-restx