apispec is a pluggable API specification generator focused on the OpenAPI (Swagger) format. It supports OpenAPI versions 2 and 3 and is framework-agnostic, with built-in plugins (e.g., Marshmallow, Flask) to integrate with various frameworks and schemas. It enables generating, documenting, and exporting OpenAPI specs (JSON/YAML) from Python code, including security schemes and components.
AI named apispec in September 2026.
Brand page for apispec-readthedocs-io