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
Release history Release notifications | RSS feed
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
Close
Hashes for sage_utils-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb92cb1633e9dfdc79ec8e454789939f0d7c0f99f68013b7de320a66f51e61a |
|
MD5 | d0494a285bc44f539284f7af4e7b22e5 |
|
BLAKE2b-256 | 06222075e5ec4d60af48536e58fcbb9b1251eae0fd951f5ff3a8c0916e9b4240 |