introspection

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Thu Jan 25 22:53:19 UTC 2018


I wrote:

> Which reminds me, I should add another to my DBussy examples, showing
> how you can bypass introspection and do entirely local construction
> of a proxy interface.

Hmm, turns out I have already done an example of this
<https://github.com/ldo/dbussy_examples/blob/master/list_bus_names>:

    dbus_daemon = ravel.def_proxy_interface \
      (
        ravel.INTERFACE.CLIENT,
        name = "DBusDaemon",
        introspected = dbus.standard_interfaces[DBUS.INTERFACE_DBUS],
        is_async = True
      )(connection = conn, dest = DBUS.SERVICE_DBUS)["/"]

The Pythonic form for the introspection is freely interconvertible
with the standard XML form.


More information about the dbus mailing list