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

Getting started

from sanic import Sanic
from sanic_ext import Extend

app = Sanic("MyHelloWorldApp")
Extend(app)

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-21.9.1.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

sanic_ext-21.9.1-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file sanic-ext-21.9.1.tar.gz.

File metadata

  • Download URL: sanic-ext-21.9.1.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for sanic-ext-21.9.1.tar.gz
Algorithm Hash digest
SHA256 603b893a9345730322bb74ee391c8052f846d00c93a506ef7afbe55dfae44a6c
MD5 f939e45f5c13b697c0fbe869ca9041f5
BLAKE2b-256 7bab30181564d756512c4cf26a59248b679abe2c3105617e687201c337f90243

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sanic_ext-21.9.1-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for sanic_ext-21.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 481133d8fde413cfc6591d081ce5574e0f8cf754b66ae3974d510d08bc56079f
MD5 4b611ed23cf0ee1b865d78492138f5e0
BLAKE2b-256 96f0496c5d832fbb000fa32151db1ec34b8fae32c191ee91eb3b66565788345a

See more details on using hashes here.

Supported by

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