# sanic-org/sanic

> Sanic is a Python 3.10+ web server and web framework for building HTTP applications. It supports the async/await syntax from Python 3.5, so request handlers can run without blocking. Sanic is also ASGI compliant, so it can be deployed with an alternative ASGI web server. The project is written in Python.

Source: https://github.com/sanic-org/sanic
Indexed: commit 5ffc7b3 on 2026-05-31 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Command-line tool
- Language: Python
- Stars: 18,633 at index time
- License: MIT
- Code health: 7.2/10, Good
- Last commit: 2026-05-31

## How it works

The sanic directory holds the framework package, which has 131 files and contains the core server and application code. Incoming requests are represented by the types in sanic/request/types.py, and outgoing responses are built from the types in sanic/response/types.py. Errors are defined in sanic/exceptions.py, and configuration is handled in sanic/config.py. The examples directory holds 36 sample applications, such as examples/request_stream/server.py, which show how routes and handlers are written. The tests directory has 119 files, and tests/test_http.py is one of the files the index marks as a hotspot. The guide directory holds the documentation site, with guide/server.py listed as one of its entry points.

- examples/request_stream/server.py: entry point
- guide/content/en/guide/basics/app.md: entry point
- guide/content/en/index.md: entry point
- guide/server.py: entry point
- guide/webapp/display/layouts/main.py: entry point
Modules: guide, sanic, tests, examples, .github, root, docs, scripts. 470 files, 35,583 lines, 3,043 symbols.

## Code health

- Score: 7.2/10 (Good)
- Rank: #109 of 4,000+ indexed repos
- Hotspots: tests/test_http.py, sanic/exceptions.py, sanic/config.py, sanic/request/types.py, sanic/response/types.py
- Lowest file: sanic/mixins/startup.py
- Dead code: 72 findings

## Maintenance

- Last commit 2026-05-31
- bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/sanic-org/sanic/security

## More

- Page: https://repowise.dev/repo/sanic-org/sanic
- Ask this codebase: https://repowise.dev/repo/sanic-org/sanic/chat
- Docs: https://repowise.dev/repo/sanic-org/sanic/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/sanic-org/sanic
