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 import os
38
39 __all__ = (
40
41 'Bus', 'SystemBus', 'SessionBus', 'StarterBus',
42
43
44 'Interface',
45
46
47 'get_default_main_loop', 'set_default_main_loop',
48
49 'validate_interface_name', 'validate_member_name',
50 'validate_bus_name', 'validate_object_path',
51 'validate_error_name',
52
53 'BUS_DAEMON_NAME', 'BUS_DAEMON_PATH', 'BUS_DAEMON_IFACE',
54 'LOCAL_PATH', 'LOCAL_IFACE', 'PEER_IFACE',
55 'INTROSPECTABLE_IFACE', 'PROPERTIES_IFACE',
56
57 'ObjectPath', 'ByteArray', 'Signature', 'Byte', 'Boolean',
58 'Int16', 'UInt16', 'Int32', 'UInt32', 'Int64', 'UInt64',
59 'Double', 'String', 'Array', 'Struct', 'Dictionary', 'UTF8String',
60
61
62 'DBusException',
63 'MissingErrorHandlerException', 'MissingReplyHandlerException',
64 'ValidationException', 'IntrospectionParserException',
65 'UnknownMethodException', 'NameExistsException',
66
67
68 'service', 'mainloop', 'lowlevel'
69 )
70 __docformat__ = 'restructuredtext'
71
72 try:
73 from dbus._version import version, __version__
74 except ImportError:
75 pass
76
77
78 import dbus.exceptions as exceptions
79 import dbus.types as types
80
81 from _dbus_bindings import get_default_main_loop, set_default_main_loop,\
82 validate_interface_name, validate_member_name,\
83 validate_bus_name, validate_object_path,\
84 validate_error_name
85 from _dbus_bindings import BUS_DAEMON_NAME, BUS_DAEMON_PATH, BUS_DAEMON_IFACE,\
86 LOCAL_PATH, LOCAL_IFACE, PEER_IFACE,\
87 INTROSPECTABLE_IFACE, PROPERTIES_IFACE
88
89 from dbus.exceptions import MissingErrorHandlerException, \
90 MissingReplyHandlerException, \
91 ValidationException, \
92 IntrospectionParserException, \
93 UnknownMethodException, \
94 NameExistsException, \
95 DBusException
96 from _dbus_bindings import ObjectPath, ByteArray, Signature, Byte, Boolean,\
97 Int16, UInt16, Int32, UInt32, Int64, UInt64,\
98 Double, String, Array, Struct, Dictionary, \
99 UTF8String
100 from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus
101 from dbus.proxies import Interface
102
103
104 if 'DBUS_PYTHON_NO_DEPRECATED' not in os.environ:
105 from dbus._dbus import dbus_bindings
106