sanic-ext
Extend your Sanic installation with some core functionality.
Decision gist · record as of 2026-08-14
Yes, if you are already using Sanic and need OpenAPI documentation, request validation, or CORS support. The low install friction and permissive license make it a straightforward addition. However, the aging maintenance status (206 days since last release) and ALPHA-stage API designation in the description suggest caution for production use—verify current stability and whether the API has stabilized since the excerpt was written.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with just two runtime dependencies (pyyaml and sanic).
- Maintenance status is aging—last commit was 206 days ago—but the repository remains active and not archived, suggesting ongoing but infrequent updates.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial use, modification, and distribution with minimal restrictions. No licensing concerns for most projects.
last release 2026-01-20 (206 days) · last repo commit 2026-01-20 · 66 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 720,624 downloads/mo, #5,234 on PyPI
Alternatives
Verify before relying
pip install sanic-ext
from sanic import Sanic
from sanic_ext import Extend
app = Sanic("MyApp")
Extend(app)- Whether automatic extension occurs without explicit Extend() call as description suggests
- Current stability status beyond 'ALPHA' designation in the excerpt
- Specific Python version requirements despite classifiers listing 3.10–3.14
What it is and what it does
Sanic Extensions is an officially supported plugin for the Sanic web framework that layers additional developer conveniences on top of Sanic's unopinionated core. It provides OpenAPI documentation generation with Redoc and Swagger UI, request validation for query arguments and request bodies, CORS protection, automatic HEAD/OPTIONS/TRACE endpoint creation, and argument injection into route handlers. The package depends only on pyyaml and sanic itself, making it lightweight to add to an existing Sanic installation.
The extension is designed to work transparently—once installed, it automatically enhances a Sanic application without requiring major code changes. It targets developers who want Sanic's flexibility but also need common REST API features like schema validation and API documentation out of the box, without building those layers themselves.
Use it for
- Generate OpenAPI documentation and interactive Swagger UI for a Sanic REST API without manual schema definition
- Validate incoming request query parameters and JSON body payloads against a schema before route handlers execute
- Add CORS headers and protection to a Sanic application serving cross-origin requests
- Automatically handle HTTP OPTIONS and HEAD requests for existing GET endpoints
- Inject validated request arguments directly into route handler function signatures
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using Sanic and need OpenAPI documentation, request validation, or CORS support.
The low install friction and permissive license make it a straightforward addition. However, the aging maintenance status (206 days since last release) and ALPHA-stage API designation in the description suggest caution for production use—verify current stability and whether the API has stabilized since the excerpt was written.
Install
sanic-ext on PyPI
Before you install
Low install friction with just two runtime dependencies (pyyaml and sanic). Maintenance status is aging—last commit was 206 days ago—but the repository remains active and not archived, suggesting ongoing but infrequent updates.
License in practice
MIT license is permissive, allowing commercial use, modification, and distribution with minimal restrictions. No licensing concerns for most projects.
Quickstart
pip install sanic-ext
from sanic import Sanic
from sanic_ext import Extend
app = Sanic("MyApp")
Extend(app)
Verify before relying
- Whether automatic extension occurs without explicit Extend() call as description suggests
- Current stability status beyond 'ALPHA' designation in the excerpt
- Specific Python version requirements despite classifiers listing 3.10–3.14
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespyyamlsanic |
| Maintenance | Aging 206 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 720,624 / month, #5,234 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Web EnvironmentLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: sanic_ext-25.12.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 › “sanic openapi documentation”
- sanic-extSanic Extensions adds OpenAPI documentation, request validation,…
- swagger-ui-pyIntegrates Swagger UI documentation into Python web frameworks…
- sanic-jwtSanic JWT adds JWT-based authentication and authorization to Sanic…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
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.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
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.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also Sanic-Cors · sanic · aiohttp-swagger3 · sphinxcontrib-redoc · flask-pydantic-spec · sanic-jwt · flask-openapi3-swagger · quart-schema · swagger-ui-py · spectree