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

Uploaded Source

Built Distribution

sanic_ext-23.12.0-py3-none-any.whl (95.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sanic-ext-23.12.0.tar.gz
  • Upload date:
  • Size: 65.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for sanic-ext-23.12.0.tar.gz
Algorithm Hash digest
SHA256 42fc41e7fafa58f3b790f685f3dd8a8de281460b4169d0e91f4e11b8747f845c
MD5 081d0a37618cb75f5f79a9269dbf1fa7
BLAKE2b-256 7dbf807ded5b25f5576173c4603a1f16f67150b63eb899b0996231d88b10b90f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sanic_ext-23.12.0-py3-none-any.whl
  • Upload date:
  • Size: 95.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for sanic_ext-23.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ba2c143d7c41d89b87a11c6214b9d9b52c3994ff8ce3a03792b54ec5627e2c3
MD5 1241e3902bc77a6bec9f338edafbff60
BLAKE2b-256 c242140f19f464e6fe6597e7274341751b72466acc360bbd70013cca1f3249b1

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