Extend your Sanic installation with some core functionality.
Project Links
Meta
Author: Sanic Community
Classifiers
Development Status
- 4 - Beta
Environment
- Web Environment
License
- OSI Approved :: MIT License
Programming Language
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13

Sanic Extensions
Build |
|
---|---|
Docs |
|
Package |
|
Support |
Sanic strives to be “Unopinionated and flexible”:
Build the way you want to build without letting your tooling constrain you.
But what happens when you want all the goodies? Sanic Extensions is an officially supported Sanic plugin to provide application developers with additional tools and features.
Features
Auto create HEAD, OPTIONS, and TRACE endpoints
CORS protection
Predefined, endpoint-specific response serializers
Argument injection into route handlers
OpenAPI documentation with Redoc and/or Swagger
Request query arguments and body input validation
Installation
pip install sanic[ext] # OR pip install sanic sanic-ext
Getting started
from sanic import Sanic
app = Sanic("MyHelloWorldApp")
Nothing new. Just start using Sanic and it will automatically be extended!
Learn more
Go to the User Guide to learn more
Mar 05, 2025
24.12.0
Dec 31, 2023
23.12.0
Jul 25, 2023
23.6.0
Mar 26, 2023
23.3.0
Dec 27, 2022
22.12.0
Nov 06, 2022
22.9.1
Sep 29, 2022
22.9.0
Aug 11, 2022
22.6.3
Jul 11, 2022
22.6.2
Jun 30, 2022
22.6.1
Jun 30, 2022
22.6.0
May 04, 2022
22.3.2
Apr 19, 2022
22.3.1
Mar 31, 2022
22.3.0
Jan 19, 2022
22.1.2
Jan 19, 2022
22.1.1
Jan 19, 2022
22.1.0
Jan 03, 2022
21.12.3
Jan 02, 2022
21.12.2
Dec 28, 2021
21.12.1
Dec 26, 2021
21.12.0
Dec 02, 2021
21.9.3
Nov 25, 2021
21.9.2
Nov 23, 2021
21.9.1
Sep 30, 2021
21.9.0
Aug 10, 2021
21.9.0a1