Skip to main content

Extend your Sanic installation with some core functionality.

Project description

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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sanic_ext-25.12.0.tar.gz (48.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sanic_ext-25.12.0-py3-none-any.whl (63.3 kB view details)

Uploaded Python 3

File details

Details for the file sanic_ext-25.12.0.tar.gz.

File metadata

  • Download URL: sanic_ext-25.12.0.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sanic_ext-25.12.0.tar.gz
Algorithm Hash digest
SHA256 db6f5c8b880bb6b4cb73717b655b63aea4e77cf57825678ec74310fd69581ce1
MD5 04766675737f198d9936ff1fb7fba4e2
BLAKE2b-256 e55c85d5d82eccd8df3fb2fc4b8a3209b3c3a8149875130b4106eb0167f6a0cf

See more details on using hashes here.

File details

Details for the file sanic_ext-25.12.0-py3-none-any.whl.

File metadata

  • Download URL: sanic_ext-25.12.0-py3-none-any.whl
  • Upload date:
  • Size: 63.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sanic_ext-25.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf9afcb28c7abbc4bcac489cf4b6d53f12fa49ea4777200ea7d7d6d23ffe8ca
MD5 d0ecd703f20986c5ef5c1068f993cce8
BLAKE2b-256 e174c885d8744ecda12aff8211cf491f7214933c8667a815d0fe779d09744e1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page