mobium 0.1.0rc2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mobium/__init__.py ADDED
@@ -0,0 +1,38 @@
1
+ """Mobium — mobile app automation on emulators, simulators and phones.
2
+
3
+ from mobium import start
4
+
5
+ with start(platform="android", app="com.android.settings") as device:
6
+ for element in device.map():
7
+ print(element.ref, element.label)
8
+ device.tap("@e1")
9
+ """
10
+
11
+ from ._device import Bounds, Device, DeviceInfo, Element, MobiumWarning, Session, connect, start
12
+ from ._errors import (
13
+ AmbiguousLocatorError,
14
+ DeviceNotReadyError,
15
+ DeviceServerError,
16
+ ElementNotReachableError,
17
+ InternalError,
18
+ InvalidArgumentError,
19
+ MobiumError,
20
+ NoDeviceError,
21
+ NoSuchAlertError,
22
+ NoSuchContextError,
23
+ NoSuchElementError,
24
+ NotConfirmedError,
25
+ NotPermittedError,
26
+ TimedOutError,
27
+ ToolchainMissingError,
28
+ UnsupportedError,
29
+ )
30
+
31
+ __all__ = [
32
+ "start", "connect", "Session", "Device", "DeviceInfo", "Element", "Bounds",
33
+ "MobiumError", "NoDeviceError", "DeviceNotReadyError", "ToolchainMissingError",
34
+ "NoSuchElementError", "AmbiguousLocatorError", "ElementNotReachableError",
35
+ "NoSuchContextError", "NoSuchAlertError", "UnsupportedError", "NotConfirmedError", "NotPermittedError",
36
+ "TimedOutError", "InvalidArgumentError", "DeviceServerError", "InternalError",
37
+ ]
38
+ __version__ = "0.1.0rc2"