コード例 #1
0
from pylm.clients import Client

client = Client('server',
                'tcp://127.0.0.1:5555',
                sub_address='tcp://127.0.0.1:5558')

if __name__ == '__main__':
    result = client.eval(['server.foo', 'hub.foo'], b'a message')
    print('Client got: ', result)
コード例 #2
0
from pylm.clients import Client

client = Client('my_server', 'tcp://127.0.0.1:5555')

if __name__ == '__main__':
    result = client.eval('my_server.foo', b'a message', messages=1)
    print('Client got: ', result)
コード例 #3
0
ファイル: client.py プロジェクト: cperales/pylm
from pylm.clients import Client

client = Client('my_server',
                'tcp://127.0.0.1:5555',
                sub_address='tcp://127.0.0.1:5561')

if __name__ == '__main__':
    result = client.eval(['my_server.foo', 'my_pipeline.foo'], b'a message')
    print('Client got: ', result)