Contents

sanic 25.12.0

0

A web server and web framework that's written to go fast. Build fast. Run fast.

A web server and web framework that's written to go fast. Build fast. Run fast.

Stars: 18638, Watchers: 18638, Forks: 1583, Open Issues: 119

The sanic-org/sanic repo was created 9 years ago and the last code push was 1 months ago.
The project is extremely popular with a mindblowing 18638 github stars!

How to Install sanic

You can install sanic using pip

pip install sanic

or add it to a project with poetry

poetry add sanic

Package Details

Author
Sanic Community
License
MIT
Homepage
http://github.com/sanic-org/sanic/
PyPi:
https://pypi.org/project/sanic/
GitHub Repo:
https://github.com/sanic-org/sanic

Classifiers

No  sanic  pypi packages just yet.

Errors

A list of common sanic errors.

Code Examples

Here are some sanic code examples and snippets.

GitHub Issues

The sanic package has 119 open issues on GitHub

  • Python 3.14: Production mode crashes with "Cannot finalize signals outside of event loop"
  • SSL configuration ignored for non-primary apps
  • setup.py–based dependency logic causes issues with pyproject.toml workflows
  • Python 3.14 deprecation warnings for asyncio.get_event_loop_policy still present in 25.12.0
  • Test client fails with "Address already in use" on sequential requests in Docker (v25.12.0 regression)
  • More gating around the new Daemon for Windows compatability
  • v25.12.0 no longer works on Windows
  • Reset how loop grabbed in shutdown
  • Improve website CSS
  • asyncio.sleep on an endpoint blocks other requests to that same endpoint
  • The website cuts off the text unless the viewport is very wide
  • Replace setup.py entirely with pyproject.toml and modern toolchain
  • Auto restart the worker process when it exit or be killed.
  • Unable to run this sanic application in windows, but works fine with linux on sanic version >= 23.6.0
  • Does Sanic support mounting sub-applications in ASGI mode?

See more issues on GitHub

Related Packages & Articles

fastapi 0.129.0

FastAPI framework, high performance, easy to learn, fast to code, ready for production

Django 6.0.2

Django is a high-level web development framework that empowers Python developers to build dynamic and robust web applications quickly and efficiently. It follows the Model-View-Controller (MVC) architectural pattern, making it easy to separate the different components of an application. With its extensive built-in features, such as URL routing, templating, forms handling, and database abstraction, Django takes care of the repetitive tasks, allowing developers to focus on writing clean and maintainable code. It relies on the Python Standard Library and includes several optional dependencies, including psycopg2, mysqlclient, and pytz for database connectivity and time zone support. Django's rich ecosystem and active community make it a popular choice for building scalable and secure web applications.

Flask 3.1.2

A simple framework for building complex web applications.

starlette 0.52.1

Starlette is a lightweight ASGI (Asynchronous Server Gateway Interface) framework/toolkit, ideal for building asynchronous web services in Python. It is production-ready and offers a range of features including HTTP web framework, WebSocket support, in-process background tasks, startup and shutdown events, and a test client built on HTTPX. Starlette also supports CORS, GZIP, static files, streaming responses, and session and cookie support. It is compatible with asyncio and trio backends and boasts great overall performance against independent benchmarks. The package can be used as a complete framework or as an ASGI toolkit, allowing for the use of any of its components independently. It requires Python 3.8+ and an ASGI server such as uvicorn, daphne, or hypercorn for operation.

sniffio 1.3.1

Sniff out which async library your code is running under