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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sanic_ext-22.3.2-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sanic-ext-22.3.2.tar.gz
  • Upload date:
  • Size: 34.0 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.2.tar.gz
Algorithm Hash digest
SHA256 f454a9add86ca1fa29d2a740fcadcd54be8539b12790b34902d13570befaceb2
MD5 d6cfa4286d899e202b2bdadab7ab0df5
BLAKE2b-256 4c620ce7acfd0ee18193f1879c97417a2be924c7003e983caca8328ca7801f9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sanic_ext-22.3.2-py3-none-any.whl
  • Upload date:
  • Size: 45.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4bac1502581e3b28a6de2753f21ea0d58489f4a4a036f408e7199fdae027b3d0
MD5 2a277906c9ecb8d725e70b365bf94b60
BLAKE2b-256 870f214e1ac8530c2d87a464e0ce7dc8babe8a92949ac397f8f0f229931bb531

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page