sanic
A web server and web framework that's written to go fast. Build fast. Run fast.
Decision gist · record as of 2026-08-14
Yes. Sanic is a solid choice for async Python web development. It has low install friction, active maintenance, no known vulnerabilities, permissive licensing, and a clear performance focus backed by a community-maintained project. Install it if you need an async web framework for Python 3.10+ and are comfortable with the 11 runtime dependencies—or if you want to exclude uvloop and ujson, set the environment variables at install time.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- On Fedora 28+, redhat-rpm-config may be needed if using ujson.
- Low install friction with a pure-wheel distribution.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2026-05-31 (75 days) · last repo commit 2026-07-29 · 18,646 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,586,409 downloads/mo, #3,738 on PyPI
Alternatives
Verify before relying
pip install sanic
from sanic import Sanic
from sanic.response import json
app = Sanic("my-app")
@app.route('/')
async def handler(request):
return json({'hello': 'world'})
# Run with: sanic my_app.app- Whether uvloop and ujson provide measurable performance gains for typical workloads compared to standard alternatives.
- How Sanic's performance scales under high concurrency relative to other async frameworks.
- Whether the 11 runtime dependencies introduce meaningful maintenance or security surface area over time.
What it is and what it does
Sanic is a web framework and server for Python 3.10+ designed around async/await syntax to build non-blocking, high-performance HTTP applications. It is ASGI-compliant, meaning you can deploy it with alternative ASGI servers if needed. The framework includes 11 runtime dependencies—notably sanic-routing for URL matching, httptools for HTTP parsing, uvloop for faster event loop execution, and ujson for faster JSON serialization—all of which can be toggled off at install time via environment variables if you prefer lighter dependencies.
The package is actively maintained by the community, with a recent release and an established user base. It targets developers building REST APIs, microservices, and real-time applications where request latency and throughput matter. The learning curve is shallow for anyone familiar with Flask or FastAPI, and the async-first design makes it natural to integrate with other async libraries.
Use it for
- Build REST APIs and microservices that handle many concurrent requests with minimal latency.
- Create real-time applications (WebSocket support via websockets dependency) that need fast bidirectional communication.
- Deploy lightweight HTTP servers in containerized or serverless environments where startup time and memory footprint are constrained.
- Integrate async Python code (database drivers, external API calls) without blocking the request handler.
- Prototype or scale web applications where async/await patterns are already part of your codebase.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Sanic is a solid choice for async Python web development. It has low install friction, active maintenance, no known vulnerabilities, permissive licensing, and a clear performance focus backed by a community-maintained project. Install it if you need an async web framework for Python 3.10+ and are comfortable with the 11 runtime dependencies—or if you want to exclude uvloop and ujson, set the environment variables at install time.
Install
sanic on PyPI
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with a recent release (75 days ago) and ongoing community support. Requires Python 3.10+. Includes 11 runtime dependencies, notably uvloop and ujson for performance, both optional via environment variables at install time.
Requires Python 3.10 or later. On Fedora 28+, redhat-rpm-config may be needed if using ujson.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install sanic
from sanic import Sanic
from sanic.response import json
app = Sanic("my-app")
@app.route('/')
async def handler(request):
return json({'hello': 'world'})
# Run with: sanic my_app.app
Verify before relying
- Whether uvloop and ujson provide measurable performance gains for typical workloads compared to standard alternatives.
- How Sanic's performance scales under high concurrency relative to other async frameworks.
- Whether the 11 runtime dependencies introduce meaningful maintenance or security surface area over time.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 11 packagessanic-routinghttptoolsuvloopujsonaiofileswebsocketsmultidicthtml5taggertraceritetyping-extensionssetuptools |
| Maintenance | Actively maintained 75 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,586,409 / month, #3,738 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-25.12.1-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 › “fast asgi web server”
- sanicSanic is an async Python web framework and ASGI-compliant server…
- uvicornUvicorn is an ASGI web server that runs async Python web…
- gunicornGunicorn is a WSGI and ASGI HTTP server for Unix that runs Python web…
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-testing · granian · sanic-ext · Sanic-Cors · multipart · sanic-routing · uvicorn · sanic-jwt · async-asgi-testclient · piccolo