connexion
Connexion - API first applications with OpenAPI/Swagger
Decision gist · record as of 2026-08-14
Yes. Connexion is actively maintained, has no known vulnerabilities, and offers a genuinely different development model—spec-first rather than code-first—that appeals to teams prioritizing API contracts and documentation. Low install friction and broad Python version support (3.9–3.14) make it accessible. Choose it if your workflow benefits from writing the spec first and letting the framework enforce it; avoid it if you prefer decorators and implicit routing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- For development use of app.run(), install connexion[uvicorn]; for production, use an external ASGI server like uvicorn or gunicorn.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and redistribution with minimal restrictions—suitable for both open-source and proprietary projects.
last release 2025-10-13 (305 days) · last repo commit 2026-08-03 · 4,608 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 10,584,452 downloads/mo, #1,444 on PyPI
Alternatives
Verify before relying
pip install connexion
from connexion import AsyncApp
app = AsyncApp(__name__)
app.add_api('openapi.yaml')
# In openapi.yaml, link operationId to your Python function
# Connexion automatically unpacks parameters and serializes responses- Performance characteristics and throughput under load compared to other ASGI frameworks.
- Maturity and stability of Connexion 3 relative to the 2.x line it recently replaced.
- Real-world adoption and community size beyond GitHub stars.
What it is and what it does
Connexion is a Python web framework that inverts the typical API development workflow: you write an OpenAPI specification first, then Connexion automatically wires your Python functions to the routes, validates all requests and responses against the spec, and handles parameter unpacking and serialization. It works standalone via AsyncApp or FlaskApp, or as middleware wrapping any existing ASGI or WSGI application. The framework guarantees your API behaves exactly as specified—no manual route decorators, no hand-written validation logic, no documentation drift.
The core appeal is spec-first development: your OpenAPI file becomes the single source of truth for API behavior, shared with clients and teams before implementation begins. Connexion handles the plumbing (request validation, response serialization, authentication separation, Swagger UI console) so you focus on business logic. It depends on Starlette for async handling, Werkzeug for WSGI compatibility, PyYAML for spec parsing, jsonschema for validation, and several other standard libraries.
Use it for
- Build a new REST API where the spec is written first and serves as the contract for frontend and backend teams.
- Add OpenAPI validation and documentation to an existing Flask or Starlette application via ConnexionMiddleware.
- Rapidly prototype and mock an API using connexion run openapi.yaml before writing handler code.
- Enforce strict request/response validation and automatic serialization to reduce bugs in parameter handling.
- Generate live Swagger UI documentation with 'try it out' capability directly from your specification.
- Migrate a Connexion 2.x application to the new Connexion 3 async-first architecture.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Connexion is actively maintained, has no known vulnerabilities, and offers a genuinely different development model—spec-first rather than code-first—that appeals to teams prioritizing API contracts and documentation. Low install friction and broad Python version support (3.9–3.14) make it accessible. Choose it if your workflow benefits from writing the spec first and letting the framework enforce it; avoid it if you prefer decorators and implicit routing.
Install
connexion on PyPI
Before you install
Low install friction with a pure-Python wheel. Active maintenance with recent commits; last release 305 days ago. Supports Python 3.9 through 3.14. Eleven runtime dependencies are all widely-used libraries (Starlette, Werkzeug, PyYAML, jsonschema, etc.), so environment resolution is straightforward.
Requires Python 3.9 or later. For development use of app.run(), install connexion[uvicorn]; for production, use an external ASGI server like uvicorn or gunicorn.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and redistribution with minimal restrictions—suitable for both open-source and proprietary projects.
Quickstart
pip install connexion
from connexion import AsyncApp
app = AsyncApp(__name__)
app.add_api('openapi.yaml')
# In openapi.yaml, link operationId to your Python function
# Connexion automatically unpacks parameters and serializes responses
Verify before relying
- Performance characteristics and throughput under load compared to other ASGI frameworks.
- Maturity and stability of Connexion 3 relative to the 2.x line it recently replaced.
- Real-world adoption and community size beyond GitHub stars.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4.0,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 11 packagesJinja2PyYAMLasgirefhttpxinflectionjsonschemapython-multipartrequestsstarlettetyping-extensionswerkzeug |
| Maintenance | Actively maintained 305 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 10,584,452 / month, #1,444 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.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming 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: connexion-3.3.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 spec-first development”
- connexionConnexion builds REST APIs from OpenAPI/Swagger specifications,…
- swagger-spec-validatorValidates Swagger/OpenAPI specifications (versions 1.2 and 2.0)…
- flask-apispecflask-apispec decorates Flask view functions and classes to…
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-openapi3 · flask-restplus · aiohttp-swagger3 · drf-yasg · flask-openapi3-swagger · bravado · swagger-ui-py · sphinxcontrib-openapi · flask-restx · django-rest-swagger