import elbus import msgpack name = 'test.client.python.sync.rpc.caller' # create new elbus client and connect bus = elbus.client.Client('/tmp/elbus.sock', name) bus.connect() # init rpc rpc = elbus.rpc.Rpc(bus) params = {'hello': 123} # call a method, no reply required rpc.call0('test.client.python.sync.rpc', elbus.rpc.Request('test', msgpack.dumps(params))).wait_completed() # call a method and wait for the reply result = rpc.call('test.client.python.sync.rpc', elbus.rpc.Request('test', msgpack.dumps(params))).wait_completed() print(msgpack.loads(result.get_payload(), raw=False))