enaut
enaut

Reputation: 441

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

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?

Upvotes: 2

Views: 3392

Answers (2)

rautesamtr
rautesamtr

Reputation: 21

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.

Upvotes: 2

lb90
lb90

Reputation: 958

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.

Upvotes: 2

Related Questions