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

Uploaded Source

Built Distribution

sanic_ext-22.6.0-py3-none-any.whl (68.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sanic-ext-22.6.0.tar.gz
  • Upload date:
  • Size: 47.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for sanic-ext-22.6.0.tar.gz
Algorithm Hash digest
SHA256 e23e6040aa67e3c5fe2461e31ee885fb4c87461d10783fc0890bca721ea2cb41
MD5 3b7bcc9d6a4eaf8a68114cbba5a3b536
BLAKE2b-256 11396f096d7f186a4c18603939afafbde77a1445359cf8238a22df77a23bd19b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sanic_ext-22.6.0-py3-none-any.whl
  • Upload date:
  • Size: 68.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for sanic_ext-22.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6be8665b8478b78c832c7368af8260a6e7e1e4bb68fe319260fb3a60e7cef1a0
MD5 fa685976d4d0b6be8ce0ae4b219d2f91
BLAKE2b-256 a718b9f55d52931601ed6d43082acc764a29d81e48709fa92c8ebf263e0e0b77

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