Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

SDK for Open Matchmaking microservices in Python

Project description

SDK for Open Matchmaking microservices in Python

Features

  • Framework agnostic solution
  • Easy to write a new extension and use it later with your code
  • Base class for implementing AMQP workers
  • Register a new microservice in Open Matchmaking platform

Installation

This package should be installed using pip:

pip install sage-utils

Example

from sanic import Sanic
from sage_utils.extension import BaseExtension


class CustomExtension(BaseExtension):
    extension_name = app_attribute = 'custom'

    def hello(self, user):
        print("Hello, {}!".format(user))


app = Sanic(__name__)
CustomExtension()  # available via `app.custom` or `app.extensions['custom']`
app.custom.hello('world')  # Hello, world!

License

The sage-utils-python is published under BSD license. For more details read LICENSE file.

Project details


Download files

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

Files for sage-utils, version 0.5.6
Filename, size File type Python version Upload date Hashes
Filename, size sage_utils-0.5.6-py2.py3-none-any.whl (7.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size sage-utils-0.5.6.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page