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

Uploaded Source

Built Distribution

sanic_ext-21.12.3-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sanic-ext-21.12.3.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for sanic-ext-21.12.3.tar.gz
Algorithm Hash digest
SHA256 cfd8552c059cced19b93f659a8fb140c916b913e39367003b2412d2ad337741a
MD5 9357c4260137496a838dec24e73a6dec
BLAKE2b-256 d453ab5a7acb3156d9d4b424047e1e3d5b3ad524cd35193ff6b375e74d728e90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sanic_ext-21.12.3-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for sanic_ext-21.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ec6791456c43c95f784a959621820bd6583113970c8141752ffe9b9ed2e462c2
MD5 9e5efebd36847ce576bc7d5601c648b6
BLAKE2b-256 409d9db7d44aa5c93ce961a86cefac8a24d02a591bf904158a4276c48460e8c0

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