Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def getMsgClient(configHolder):
    return MsgClientFactory(configHolder).getClient()

src/s/t/stratuslab-client-14.03.0/stratuslab/messaging/MessagePublishers.py   stratuslab-client(Download)
import base64
import json
from stratuslab.messaging.MsgClientFactory import getMsgClient
from stratuslab.Exceptions import InputException
    def __init__(self, message, configHolder):
        if not isinstance(message, basestring):
            raise InputException("Message should be 'str' or 'unicode'.")
        self.message = message
        self.client = getMsgClient(configHolder)