About this project
Sanic is a Python 3.10+ web server and web framework built for speed. It leverages the async/await syntax introduced in Python 3.5 to provide non-blocking, speedy code execution. The framework is ASGI compliant, allowing deployment with alternative ASGI webservers.
Key features and characteristics:
- Python 3.10+ requirement
- Async/await syntax support for non-blocking operations
- ASGI compliance for flexible deployment options
- Uses uvloop and ujson for performance (can be disabled via environment variables)
- Simple routing and JSON response handling
- CLI execution support (e.g., sanic hello.app)
- Community-maintained project open to contributions
Installation is straightforward via pip install sanic. The framework provides a minimal API for defining routes and returning JSON responses, as demonstrated in the Hello World example in the README.
The project provides comprehensive documentation including a User Guide, Changelog, and API Documentation at sanic.dev. Community support is available through forums and Discord. The project is sponsored through Open Collective.
Sanic aims to provide a simple way to build, expand, and scale highly performant HTTP servers.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.