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-24.12.0.tar.gz (66.3 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-24.12.0-py3-none-any.whl (96.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sanic_ext_fork-24.12.0.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sanic_ext_fork-24.12.0.tar.gz
Algorithm Hash digest
SHA256 3795625b60854ae108822f5bcc39ebd5d7261025e59fb88f286575e062ddbac5
MD5 792c90356822398ba1a7b34017ac3b19
BLAKE2b-256 b783c7945f10a284036149e65444b0d6b3056d0e7c2b098f85048aab2a1e999f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sanic_ext_fork-24.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc39cad4745e44485fb367fa3da769d3a678bf750d3f51b22f6ab4a6d953def3
MD5 bce8b01108b4078d2138a4dd40c48065
BLAKE2b-256 dd1b9a365c3e82fae02192f538bc308ceefa44ef88c5c7d05ebadd1d8206ad17

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