Skip to content

Instantly share code, notes, and snippets.

View cknoll's full-sized avatar

C. Knoll cknoll

  • Faculty of Electrical and Computer Engineering, Dresden University of Technology
  • Dresden, Saxony, Germany, EU, Earth, Universe
View GitHub Profile
@cknoll
cknoll / client.py
Created January 7, 2018 21:26 — forked from caspian311/client.py
Simple client-service dbus example in python.
#!/usr/bin/env python
import dbus
class Client():
def __init__(self):
bus = dbus.SessionBus()
service = bus.get_object('com.example.service', "/com/example/service")
self._message = service.get_dbus_method('get_message', 'com.example.service.Message')
self._quit = service.get_dbus_method('quit', 'com.example.service.Quit')