2.5 KiB
2.5 KiB
Extensions
A list of Sanic extensions created by the community.
- Sessions: Support for sessions. Allows using redis, memcache or an in memory store.
- CORS: A port of flask-cors.
- Compress: Allows you to easily gzip Sanic responses. A port of Flask-Compress.
- Jinja2: Support for Jinja2 template.
- OpenAPI/Swagger: OpenAPI support, plus a Swagger UI.
- Pagination: Simple pagination support.
- Motor: Simple motor wrapper.
- Sanic CRUD: CRUD REST API generation with peewee models.
- UserAgent: Add
user_agent
to request - Limiter: Rate limiting for sanic.
- Sanic EnvConfig: Pull environment variables into your sanic config.
- Babel: Adds i18n/l10n support to Sanic applications with the help of the
Babel
library - Dispatch: A dispatcher inspired by
DispatcherMiddleware
in werkzeug. Can act as a Sanic-to-WSGI adapter. - Sanic-OAuth: OAuth Library for connecting to & creating your own token providers.
- Sanic-nginx-docker-example: Simple and easy to use example of Sanic behined nginx using docker-compose.
- sanic-graphql: GraphQL integration with Sanic
- sanic-prometheus: Prometheus metrics for Sanic
- Sanic-RestPlus: A port of Flask-RestPlus for Sanic. Full-featured REST API with SwaggerUI generation.
- sanic-transmute: A Sanic extension that generates APIs from python function and classes, and also generates Swagger UI/documentation automatically.
- pytest-sanic: A pytest plugin for Sanic. It helps you to test your code asynchronously.
- jinja2-sanic: a jinja2 template renderer for Sanic.(Documentation)