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
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 Distribution
sage-utils-0.2.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for sage_utils-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561c0cc216201ea477f4a814757b41385f0ab113ef1b2f5ea16fd997afcaebae |
|
MD5 | e9aa10db7aacd817eba1f35d2974a9ab |
|
BLAKE2b-256 | 42d544f2fb0461ee3458dd5532ffbd6010f94f95eb6b04e5e22eec1fe8252253 |