gitmyhub

sanic

Python ★ 19k updated 7d ago

Accelerate your web app development | Build fast. Run fast.

Fast Python web framework built on async/await for handling high-traffic HTTP servers with minimal blocking.

Pythonasync/awaitASGIsetup: easycomplexity 3/5

Sanic is a Python web framework designed for building fast HTTP servers. It requires Python 3.10 or later and is built around Python's async/await syntax, which allows the server to handle many requests at the same time without blocking — meaning while one request is waiting for a database response, the server can be processing other requests. This makes it well-suited for applications that need to handle high volumes of traffic or many simultaneous connections.

Sanic also supports ASGI, a standard interface that lets it run behind alternative web servers beyond its built-in one. It is available as a package installable via pip.

The framework's design goal is to be easy to start with but capable of scaling. The project is community-maintained and welcomes contributions. A web interface and community forum are available for support.

Where it fits