Skip to content

ChihweiLHBird/sanic-ext

 
 

Repository files navigation

Sanic | Build fast. Run fast.

Sanic Extensions

Build
PyTest
Docs
UserGuide
Package
Support

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

Getting started

from sanic import Sanic
from sanic_ext import Extend

app = Sanic("MyHelloWorldApp")
Extend(app)

Learn more

Go to the User Guide to learn more


Warning

Sanic Extensions is still in ALPHA release. The API will likely change a little as new features are added. The goal is to move it to BETA with a stable API by the December release.

Packages

No packages published

Languages

  • Python 98.1%
  • HTML 1.8%
  • Makefile 0.1%