Client for myr-stack
Create virtualenv and activate
it, then proceed to install myr-client
for development:
$ git clone https://github.com/Vnet-as/myr-client.git
$ cd myr-client
$ pip install -e .
import celeryconf
from celery import Celery
app = Celery()
app.config_from_object(celeryconf)
from myr.client import Client
client = Client()
# conntact myr-discovery service to get the task/procedures definitions
client.discover()
# Now if ``invoicing.tasks.add_item`` was discovered in previous call
# we can call it by ``client.rpc``
client.rpc.invoicing.tasks.add_item(*args, **kwargs)