生成对d-bus客户机有用的类和方法

dbus-client-gen的Python项目详细描述


简介

这个库包含一些方法,它们使用 D总线接口和返回类或函数,在 构造python d-bus客户机。XML规范具有 由introspectable的introspect()方法返回的数据的格式 接口

方法

托管对象类

This function consumes the spec for a single interface and returns a class which constructs objects which wrap the table for a particular object in the format returned by the GetManagedObjects() method of the ObjectManager interface. Each object has an instance method for each property of the interface.

MO U查询生成器

This function consumes the spec for a single interface and returns a function which implements a query on the whole object returned by a GetManagedObjects() call. The query function takes two arguments: the GetManagedObjects() object and a dict of key/value pairs. The query function generates pairs of the object path and corresponding table which match all the key/value pairs in the table.

错误

此库导出异常类型dbusclientror及其所有子类型。 如果在类期间传播任何其他类型的错误,则构成错误 生成或执行类的方法时。

下面显示了错误的继承权。短划线后的条目表示 异常包含的消息之外的其他字段。只留下 错误等级的继承权是直接构建的。

数据库客户端错误

  • DbusClientGenerationError This exception is raised if an error occurs while generating a method. Such an exception would result from introspection data which lacked the necessary attributes or entries.

  • DbusClientRuntimeError - interface name This exception is raised if there is an error while the generated method is executing.

    • DbusClientMissingInterfaceError This exception is raisded if when constructing a managed object it turns out that its argument does not have an entry for the expected interface.
    • DbusClientMissingPropertyError - property name This exception is raised if when reading a value for a managed object it turns out that the value corresponding to that property is not available.
    • DbusClientMissingSearchPropertiesError - too many fields to list here This exception is raised if when traversing a GetManagedObjects() result the keys used by the query have no corresponding values in the result.
    • DbusClientUnknownSearchPropertiesError – too many fields to list here This exception is raised if the search properties specified can not be found in the specified interface.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何修复:线程“main”java中的异常。java中随机数布尔数组的lang.ArrayIndexOutOfBoundsException   如何在Java中向字符串数组添加字符串?   java扫描器useDelimiter字符串参数?   java如何读取包含子类实例的对象的可包裹对象数组?   java Checkstyle RegexpHeader未正确检测正则表达式   比较Java中的两个XML树   java试图调用虚拟方法“int安卓”。看法看法对空对象引用执行getVisibility()   java错误的解析日期   用于双向I/O的io Java数据对象   gradle执行失败的Twilio SMS(Java)   java代码抛出严重错误:没有为参数1异常指定值   安卓 java。调用getDrawable()时lang.OutOfMemoryError   java如何将可滚动的JPanel保存为jpeg图像(而不是快照)   java bufferedReader现在需要10多秒才能完成(Kotlin)   java在线读取文本文件中的数字   关于访问说明符的java   在java中的incrementAndGet()实现中,原子将`getIntVolatile(Object var1,long var2)`替换为`getInt(Object var1,long var2)`