Skip to main content

Utils for sanic microservice development

https://img.shields.io/pypi/v/sanic-service-utils.svg https://img.shields.io/pypi/l/sanic-service-utils.svg

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

Installation

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.

Blueprints

All blueprints can be found in listeners module.

anji_orm_configuration:

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.

sentry_configuration:

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

backgroun_task_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.

aiohttp_session_configuration:

Just configure aiohttp settion like async_session variable for app.

jinja_session_configuration:

Just configure jinja render system like jinja variable for app.

log_configuration:

Just configure logging for app by app name.

sanic_session_configuration:

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

Metadata

Release files for sanic-service-utils 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for sanic-service-utils 0.6.3
File Interpreter ABI Platform Actions
sanic_service_utils-0.6.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for sanic_service_utils-0.6.3-py2.py3-none-any.whl

Release files / sanic_service_utils-0.6.3-py2.py3-none-any.whl

Download URL sanic_service_utils-0.6.3-py2.py3-none-any.whl
Size 12.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1000bc02cbeefbd585ca9858170bdee4452c540ffc712bcd647ede59c4af3590
BLAKE2b-256 checksum
How to use checksums
ee176a64ea4d400601b2fe622eb8655b41dadbd86595fddce934ffc13899390a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Security for sanic-service-utils 0.6.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page