A new Python library for DBus: dbus-next
Lawrence D'Oliveiro
ldo at geek-central.gen.nz
Tue May 7 22:22:20 UTC 2019
On Tue, 7 May 2019 15:00:44 -0400, Tony Crisci wrote:
> * Support asyncio and the GLib main loop
Seems like you have to explicitly import different versions of your
classes to work with the GLib event loop versus “vanilla” asyncio. And
what about other event loops? Really you should just work with the
standard asyncio API, and leave it to other packages to provide
alternative event-loop wrappers that can slide into the asyncio API.
That is the approach I took with DBussy, and you can see a small
example of it in action here
<https://github.com/ldo/glibcoro_examples/blob/master/dbus_signal_listener>.
More information about the dbus
mailing list