# channelcat/sanic

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/channelcat-sanic).**

18,628 stars · 1,591 forks · Python · MIT

## Links

- GitHub: https://github.com/channelcat/sanic
- Homepage: https://sanic.dev
- awesome-repositories: https://awesome-repositories.com/repository/channelcat-sanic.md

## Description

Sanic is a Python ASGI web framework and asynchronous HTTP server. It is designed to build high-performance web applications and servers that handle concurrent requests using non-blocking logic.

The framework implements the Asynchronous Server Gateway Interface standard, allowing applications to be deployed across various ASGI-compatible servers. It utilizes an asyncio-based event loop and integrates a Cython-based runtime wrapper around libuv to manage I/O operations.

The system manages traffic through route-based request dispatching and a middleware-based request pipeline. These components enable the processing of multiple simultaneous connections without blocking.

## Tags

### Web Development

- [High-Performance HTTP Servers](https://awesome-repositories.com/f/web-development/high-performance-http-servers.md) — Provides a high-performance asynchronous HTTP server designed for low-latency and high-throughput request handling. ([source](https://github.com/channelcat/sanic#readme))
- [Request Dispatchers](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/http-request-handling/request-dispatchers.md) — Matches incoming HTTP paths to asynchronous handler functions using a high-performance request dispatcher.
- [Python Web Frameworks](https://awesome-repositories.com/f/web-development/backend-development/web-frameworks/language-specific-ecosystems/python-web-frameworks.md) — Provides a high-performance asynchronous web framework for Python using async/await syntax.
- [Web Application Frameworks](https://awesome-repositories.com/f/web-development/web-application-frameworks.md) — Offers a comprehensive framework for building scalable, asynchronous web applications with integrated routing and middleware. ([source](https://github.com/channelcat/sanic#readme))
- [ASGI Frameworks](https://awesome-repositories.com/f/web-development/web-server-frameworks/asgi-frameworks.md) — Serves as an ASGI-compatible framework for building asynchronous web applications.
- [High-Performance Web Services](https://awesome-repositories.com/f/web-development/high-performance-web-services.md) — Enables the creation of high-throughput web services using asynchronous I/O to improve system scalability.

### Part of an Awesome List

- [ASGI Compatibility](https://awesome-repositories.com/f/awesome-lists/devtools/asgi-servers/asgi-compatibility.md) — Implements the ASGI interface allowing the application to be deployed on any compatible asynchronous server. ([source](https://github.com/channelcat/sanic#readme))
- [ASGI Frameworks](https://awesome-repositories.com/f/awesome-lists/devtools/asgi-servers/asgi-frameworks.md) — Implements the ASGI standard to ensure compatibility and deployment flexibility across various asynchronous web servers.
- [API Frameworks](https://awesome-repositories.com/f/awesome-lists/devtools/api-frameworks.md) — A fast, Flask-like web server for Python 3.5+.
- [Web Frameworks](https://awesome-repositories.com/f/awesome-lists/devtools/web-frameworks.md) — Web server designed for high speed and performance.

### System Administration & Monitoring

- [Event-Driven I/O](https://awesome-repositories.com/f/system-administration-monitoring/administrative-operations/linux-system-administration/networking/connection-lifecycle-management/parallel-network-i-o/event-driven-i-o.md) — Employs an event-driven non-blocking I/O model to process multiple simultaneous connections efficiently.
- [Asynchronous Event Loops](https://awesome-repositories.com/f/system-administration-monitoring/administrative-operations/linux-system-administration/networking/connection-lifecycle-management/parallel-network-i-o/event-driven-i-o/asynchronous-event-loops.md) — Utilizes an asyncio-based event loop to manage concurrent network requests using non-blocking I/O.

### Development Tools & Productivity

- [Event Loop Replacements](https://awesome-repositories.com/f/development-tools-productivity/event-loop-integrations/event-loop-replacements.md) — Integrates uvloop as a high-performance replacement for the standard Python event loop.

### Networking & Communication

- [Middleware-Based Request Pipelines](https://awesome-repositories.com/f/networking-communication/communication-protocols-architectures/request-processing-architectures/request-processing/middleware-based-request-pipelines.md) — Provides a pluggable middleware pipeline to intercept and modify requests before they reach route handlers.
