Skip to main content
Sanic | Build fast. Run fast.

Sanic Extensions

Build

PyTest

Docs

UserGuide

Package

PyPI PyPI version PyPI Wheel Supported implementations Code style black

Support

Forums Discord

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


Metadata

Release files for sanic-ext 25.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sanic-ext 25.12.0
File Size Uploaded
sanic_ext-25.12.0.tar.gz 48.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sanic-ext 25.12.0
File Interpreter ABI Platform
sanic_ext-25.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 111.9 kB

Release files / sanic_ext-25.12.0.tar.gz

Download URL sanic_ext-25.12.0.tar.gz
Size 48.6 kB
Tags Source
SHA-256 checksum
How to use checksums
db6f5c8b880bb6b4cb73717b655b63aea4e77cf57825678ec74310fd69581ce1
BLAKE2b-256 checksum
How to use checksums
e55c85d5d82eccd8df3fb2fc4b8a3209b3c3a8149875130b4106eb0167f6a0cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / sanic_ext-25.12.0-py3-none-any.whl

Download URL sanic_ext-25.12.0-py3-none-any.whl
Size 63.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bf9afcb28c7abbc4bcac489cf4b6d53f12fa49ea4777200ea7d7d6d23ffe8ca
BLAKE2b-256 checksum
How to use checksums
e174c885d8744ecda12aff8211cf491f7214933c8667a815d0fe779d09744e1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page