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_fork-23.12.0.tar.gz (65.2 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_fork-23.12.0-py3-none-any.whl (95.3 kB view details)

Uploaded Python 3

File details

Details for the file sanic_ext_fork-23.12.0.tar.gz.

File metadata

  • Download URL: sanic_ext_fork-23.12.0.tar.gz
  • Upload date:
  • Size: 65.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sanic_ext_fork-23.12.0.tar.gz
Algorithm Hash digest
SHA256 582b8068dff142405d98270190a0db300b3f61b5c6cdd9a9c5b7083214981f52
MD5 5587da58359e68d63a04ce9af309748c
BLAKE2b-256 5cb5cf6451096c49dcd43958303bfebe0c42e4fddb499d02ecbcd423582312de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sanic_ext_fork-23.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f151dedf62deb10a1ce727a19b0e5a71b7b9a9725187e8e533b90be2ebb60ec
MD5 f12cb09cc047b60c4c0f50a5be5fc2b4
BLAKE2b-256 6cd4bca924f7257545fdf5796b1e457b36a334b2f66e163d2280cbb929479439

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