aiohttp-swagger3
validation for aiohttp swagger openAPI 3
Decision gist · record as of 2026-08-14
Yes, if you are building aiohttp applications and want to integrate OpenAPI 3 documentation and request validation. The package is low-friction to install, permissively licensed, and supports current Python versions. However, note that maintenance is dormant—the last release was 549 days ago—so if you need active support or expect frequent updates to aiohttp or Python, verify compatibility before committing. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.9 and aiohttp >= 3.8.0.
- Low install friction with a pure-Python wheel.
- Maintenance is dormant—last release was 549 days ago, though the repository remains active with a recent commit on 2025-02-11.
License · maintenance · safety
Apache 2 (permissive) — Licensed under Apache 2, a permissive license that allows commercial and private use with minimal restrictions, making it suitable for most projects.
last release 2025-02-11 (549 days) · last repo commit 2025-02-11 · 61 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 101,801 downloads/mo, #12,915 on PyPI
Alternatives
Verify before relying
pip install aiohttp-swagger3
from aiohttp import web
from aiohttp_swagger3 import SwaggerDocs, SwaggerInfo
app = web.Application()
swagger = SwaggerDocs(app, info=SwaggerInfo(title="API", version="1.0.0"))
swagger.add_routes([web.get("/pets/{pet_id}", handler)])
web.run_app(app)- Whether validation performance is acceptable for high-throughput APIs.
- Current state of support for multipart/form-data or other content types beyond application/json and application/x-www-form-urlencoded.
- Whether dormant maintenance status affects long-term compatibility with future aiohttp releases.
What it is and what it does
aiohttp-swagger3 is a middleware layer for aiohttp applications that reads OpenAPI 3 specifications and automatically validates incoming HTTP requests against them. It can display interactive API documentation via Swagger UI, ReDoc, or RapiDoc, and optionally parse and validate request bodies, query parameters, headers, and path parameters according to the spec. Validation is enabled by default but can be disabled globally or per-route.
The package handles JSON and form-encoded request bodies, supports common JSON Schema constraints (required fields, enums, string formats like email and UUID, array/object validation), and integrates documentation generation into your aiohttp app startup. It requires five runtime dependencies—aiohttp, pyyaml, attrs, fastjsonschema, and rfc3339-validator—all of which are mature and commonly used.
Use it for
- Serve interactive API documentation alongside a running aiohttp service without writing separate docs.
- Automatically validate incoming requests against an OpenAPI spec to catch malformed input early.
- Enforce request schema compliance (required fields, type checking, format validation) without manual parsing code.
- Provide multiple documentation UI options (Swagger UI, ReDoc, RapiDoc) to different teams or use cases.
- Disable validation selectively on specific routes when spec-driven validation is not needed.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building aiohttp applications and want to integrate OpenAPI 3 documentation and request validation.
The package is low-friction to install, permissively licensed, and supports current Python versions. However, note that maintenance is dormant—the last release was 549 days ago—so if you need active support or expect frequent updates to aiohttp or Python, verify compatibility before committing. No known security vulnerabilities.
Install
aiohttp-swagger3 on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance is dormant—last release was 549 days ago, though the repository remains active with a recent commit on 2025-02-11. The package supports current Python versions (3.9–3.13) and depends on stable, widely-used libraries.
Requires Python >= 3.9 and aiohttp >= 3.8.0.
License in practice
Licensed under Apache 2, a permissive license that allows commercial and private use with minimal restrictions, making it suitable for most projects.
Quickstart
pip install aiohttp-swagger3
from aiohttp import web
from aiohttp_swagger3 import SwaggerDocs, SwaggerInfo
app = web.Application()
swagger = SwaggerDocs(app, info=SwaggerInfo(title="API", version="1.0.0"))
swagger.add_routes([web.get("/pets/{pet_id}", handler)])
web.run_app(app)
Verify before relying
- Whether validation performance is acceptable for high-throughput APIs.
- Current state of support for multipart/form-data or other content types beyond application/json and application/x-www-form-urlencoded.
- Whether dormant maintenance status affects long-term compatibility with future aiohttp releases.
Package facts
| License | Apache 2 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesaiohttppyyamlattrsfastjsonschemarfc3339-validator |
| Maintenance | Dormant 549 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 101,801 / month, #12,915 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaFramework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: POSIXProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP |
Evidence: aiohttp_swagger3-0.10.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 › “openapi 3 aiohttp validation”
- aiohttp-swagger3Integrates OpenAPI 3 documentation and request validation into…
- daytona_analytics_api_client_asyncAsync Python client for the Daytona Analytics API, generated from…
- apispec-webframeworksProvides web framework plugins for apispec to automatically generate…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also flask-openapi3-swagger · aiohttp-swagger · flask-openapi3-rapidoc · connexion · flask-openapi3 · sanic-ext · flask-openapi3-scalar · swagger-ui-py · flask-openapi3-elements · sphinxcontrib-redoc