1 """\
2 Implements the public API for a D-Bus client. See the dbus.service module
3 to export objects or claim well-known names.
4
5 ..
6 for epydoc's benefit
7
8 :NewField SupportedUsage: Supported usage
9 :NewField Constructor: Constructor
10 """
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 __all__ = [
38
39 'Bus', 'SystemBus', 'SessionBus', 'StarterBus',
40
41
42 'Interface',
43
44
45 'get_default_main_loop', 'set_default_main_loop',
46
47 'validate_interface_name', 'validate_member_name',
48 'validate_bus_name', 'validate_object_path',
49 'validate_error_name',
50
51 'BUS_DAEMON_NAME', 'BUS_DAEMON_PATH', 'BUS_DAEMON_IFACE',
52 'LOCAL_PATH', 'LOCAL_IFACE', 'PEER_IFACE',
53 'INTROSPECTABLE_IFACE', 'PROPERTIES_IFACE',
54
55 'ObjectPath', 'ByteArray', 'Signature', 'Byte', 'Boolean',
56 'Int16', 'UInt16', 'Int32', 'UInt32', 'Int64', 'UInt64',
57 'Double', 'String', 'Array', 'Struct', 'Dictionary',
58
59
60 'DBusException',
61 'MissingErrorHandlerException', 'MissingReplyHandlerException',
62 'ValidationException', 'IntrospectionParserException',
63 'UnknownMethodException', 'NameExistsException',
64
65
66 'service', 'mainloop', 'lowlevel'
67 ]
68
69 from dbus._compat import is_py2
70 if is_py2:
71 __all__.append('UTF8String')
72
73 __docformat__ = 'restructuredtext'
74
75 try:
76 from dbus._version import version, __version__
77 except ImportError:
78 pass
79
80
81 import dbus.exceptions as exceptions
82 import dbus.types as types
83
84 from _dbus_bindings import (
85 get_default_main_loop, set_default_main_loop, validate_bus_name,
86 validate_error_name, validate_interface_name, validate_member_name,
87 validate_object_path)
88 from _dbus_bindings import (
89 BUS_DAEMON_IFACE, BUS_DAEMON_NAME, BUS_DAEMON_PATH, INTROSPECTABLE_IFACE,
90 LOCAL_IFACE, LOCAL_PATH, PEER_IFACE, PROPERTIES_IFACE)
91
92 from dbus.exceptions import (
93 DBusException, IntrospectionParserException, MissingErrorHandlerException,
94 MissingReplyHandlerException, NameExistsException, UnknownMethodException,
95 ValidationException)
96 from _dbus_bindings import (
97 Array, Boolean, Byte, ByteArray, Dictionary, Double, Int16, Int32, Int64,
98 ObjectPath, Signature, String, Struct, UInt16, UInt32, UInt64)
99
100 if is_py2:
101 from _dbus_bindings import UTF8String
102
103 from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus
104 from dbus.proxies import Interface
105