Skip to main content

Toolkit for sanic usage

Project description

sanic-service-utils set of utils to use with sanic framework


sanic-service-utils is available as a python library on Pypi. Installation is very simple using pip :

$ pip install sanic-service-utils

This will install sanic-service-utils as well as external dependency.

Basic usage

Basically sanic-service-utils is just set of blueprints for sanic and additional stuff. You should name you app correctly to use this set.


All blueprints can be found in listeners module.


Basically, setup register when you start app and stop it, when you stop app. Blueprint use variables ANJI_ORM_CONNECTION_STRING from configuration to configure register.


Configure sentry for web server, use variable SENTRY_DSN from configuration.


Set empty list like variable tasks_list to sanic app that will be cancelled on server stop. Please, use listener after_server_start to add new tasks.


Just configure aiohttp settion like async_session variable for app.


Just configure jinja render system like jinja variable for app.


Just configure logging for app by app name.


Configure sanic session plugin, you should add variable session_interface with SessionIntreface object to sanic app object.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sanic_service_utils-0.6.3-py2.py3-none-any.whl (12.6 kB view hashes)

Uploaded py2 py3

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