Skip to content

Consider adding bus.get_interface() shortcut #128

Description

@yurac

Seems that the following pattern repeats frequently:

  1. Get introspection
  2. Get proxy object
  3. Get interface

Is it possible to have a shortcut for this? Something like:

Class MessageBus:
    async def get_interface(self, name, path, interface):                                                               
        introspection = await self.introspect(name, path)                                                                    
        proxy = bus.get_proxy_object(name, path, introspection)                                                             
        return proxy.get_interface(interface)

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions