--- id: aiohttp-swagger3 version: "0.10.0" license: Apache 2 license_treatment: permissive maintenance: dormant --- # aiohttp-swagger3 — validation for aiohttp swagger openAPI 3 License: permissive · Maintenance: dormant · Downloads: 101.8K/mo ## 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 above — verify before relying. Integrates OpenAPI 3 documentation and request validation into aiohttp web applications, with support for multiple UI backends (Swagger UI, ReDoc, RapiDoc) and optional automatic request parsing. 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 pip install aiohttp-swagger3 uv add aiohttp-swagger3 poetry add aiohttp-swagger3 ## Installing aiohttp-swagger3 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. 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) Requires Python >= 3.9 and aiohttp >= 3.8.0. 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_current - Install friction: low - Maintenance: dormant - Downloads: 101.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags openapi 3 aiohttp validation, swagger documentation aiohttp, async http api validation, openapi request parsing, aiohttp swagger ui integration, openapi-validation, async-web-framework [View on SkillFed](https://skillfed.io/packages/aiohttp-swagger3) · [View on PyPI](https://pypi.org/project/aiohttp-swagger3/)