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.
Metadata
Release files for sage-utils 0.5.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sage-utils-0.5.6.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sage_utils-0.5.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.7 kB
Release files / sage-utils-0.5.6.tar.gz
| Download URL | sage-utils-0.5.6.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6981010fc832a33ac0ad8ef6497aceb0da23dab61c5dd72dd07813b91ef39f0e
|
|
BLAKE2b-256 checksum How to use checksums |
492ddd5e6d621e27071e7e7b1878fa0860c312ca9b9159f90262964c2befbe76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Release files / sage_utils-0.5.6-py2.py3-none-any.whl
| Download URL | sage_utils-0.5.6-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7c3faa5b0a59342fbfaaa2b5b0fe6e2147934c9941dacc60731e07352b9646bc
|
|
BLAKE2b-256 checksum How to use checksums |
fc9fc2b226734ace669d3507ca97d80588a651156777c13ada13143b4dba5c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|