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

Uploaded Source

Built Distribution

sanic_ext-22.1.2-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sanic-ext-22.1.2.tar.gz
Algorithm Hash digest
SHA256 4645014137115706a21b9ef0c8f05f4d6332769dc419ee65563b70e0b4fcc86e
MD5 f5447eca5c278589d0566e337b5ef826
BLAKE2b-256 da05b638397c4c518b3bbfc87fc96f3ab8e3d7ae5abc1278b1a4c8389cf55c97

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sanic_ext-22.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 880740b5961fcfbbe8caca735c4b93691f0fdf5e2f779480228548bddb110c98
MD5 3ba613531664a573a29e2c15b5e998f2
BLAKE2b-256 9f48c0660d97eb6a7ee4832185dca061bc21ac3c84af035e6f5563b09a77f243

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