Project 'mj/mo-submit' was moved to 'mo-p/osmo'. Please update any links and bookmarks that may still have the old path.
        Select Git revision
      
  create-round
  client.py  866 B 
#!/usr/bin/python3
from dbus_next.aio import MessageBus, ProxyInterface
import dbus_next.introspection as intr
from dbus_next.message import Message
from dbus_next.service import ServiceInterface, method, dbus_property, signal
from dbus_next import Variant, DBusError, BusType, MessageType, RequestNameReply
import asyncio
import os
from typing import Union, Optional, Callable, Dict, List, Set
async def main():
    bus = await MessageBus(negotiate_unix_fd=True).connect()
    ins = await bus.introspect('cz.ucw.test', '/cz/ucw/Machine')
    pxy = bus.get_proxy_object('cz.ucw.test', '/cz/ucw/Machine', ins)
    pif = pxy.get_interface('cz.ucw.TestInterface')
    # fd = os.open('/dev/null', os.O_RDWR)
    xx = await pif.call_shell(0, 1, 2)
    # xx = await pif.call_frobate(42, 'brum')
    print(xx)
asyncio.get_event_loop().run_until_complete(main())