Migration from dbus to GDbus in Python 3

Migration from dbus to GDbus in Python 3

While you can use GDBus from Python, it might not be the nicest (most Pythonic) API to use, since it’s a C API which is mechanically introspected and exposed to Python.

You might be better off using pydbus, which is a modern D-Bus client library written for Python. Its documentation has plenty of examples in Python.

If you must use GDBus, here are some Python examples:

And here’s the GDBus API reference for Python (mechanically generated from the C API):

Migration from dbus to GDbus in Python 3

Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *