Search code examples
pythondbus

Print D-Bus introspection tree


How can I print out a tree of all the available information on D-Bus?

*Bus Name
    * Interface
        *Method
            *Signature
    * Interface
        *Method
            *Signature
        *Method
            *Signature
*Bus Name
    * Interface
        *Method
            *Signature

Solution

  • I have created a git repository to demonstrate how to solve this problem: https://github.com/smokedice/PyDBusTree

    The code is rather slow because it doesn't use call backs. If anyone would like to improve the code please post it here, or push to the repository.