What is recommended to use pydbus or dbus-python and what are the differences?

2.6k views Asked by At

I'm trying to implement a dbus service that will be then used in a Gtk-application.

There are two python modules (pydbus vs. dbus-python) claiming to do just that. I've been unable to find any pro and contra list of both implementations.

My short question is:

What is the recommended way to implement a dbusservice in Python3?

2

There are 2 answers

5
lb90 On

pydbus is better because dbus-python was deprecated.

You can read more here: https://wiki.python.org/moin/DbusExamples

To be honest it seems that pydbus is not actively maintained today, the last release is from 2016. There is a third way which is to use GDBus from GLib using PyGObject.

0
rautesamtr On

Since pydbus development is practically dead since 2018 the best choice for a pythonic implementation is probably dasbus. Dasbus is directly inspired by pydbus, intended to replace it and is in active development.