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

Uploaded Source

Built Distribution

sanic_ext-22.3.0-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sanic-ext-22.3.0.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for sanic-ext-22.3.0.tar.gz
Algorithm Hash digest
SHA256 0504312cf1ae1a71814180f2baa6cc95a55b1c79927ba3622c7e8c2e4263d274
MD5 c5bac2b27ba147793781a47503e122c3
BLAKE2b-256 1e23fefa8b2094d86f03c743b6658573c8aac6ac7221adf85abd446135b3f211

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sanic_ext-22.3.0-py3-none-any.whl
  • Upload date:
  • Size: 45.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for sanic_ext-22.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c542d9c9a23e8d54fa0dd9900fdf01adc4dfa72da6f57aea3125d242cd24c53
MD5 86de786ef9cf7906ea8ff94ac814a319
BLAKE2b-256 d53cf169b5c0671692dcf206c6a122b936e79ca9ee960e4689db92095c5c76c3

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