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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sanic-ext-22.3.1.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for sanic-ext-22.3.1.tar.gz
Algorithm Hash digest
SHA256 3b57fcb7e27f509aa12801cfbb0690d9fe91ffc4bc0f917e7eebd6c317f54242
MD5 147a9a83d358a32dc688b2af6a757ca2
BLAKE2b-256 da03efd85ada0e8c4a392bbcc3b78b69617aaddcb6b075d34445a15e2249e53c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sanic_ext-22.3.1-py3-none-any.whl
  • Upload date:
  • Size: 45.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for sanic_ext-22.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee47a840e732a09c5dd748d1630a3959d066c3b89d7a26780ec29dc43e1f4282
MD5 42c5550274963299f85a056c1477d573
BLAKE2b-256 7a6c532d501ff07118799f62e53600887ebbd669b3d9ab11b0890c7a14775092

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