catscript 1.4.0__tar.gz → 1.7.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: catscript
3
- Version: 1.4.0
3
+ Version: 1.7.0
4
4
  Summary: The typing library of CatScript
5
5
  Project-URL: Homepage, https://catscript.app
6
6
  Author-email: 0x530c <0x530c@gmail.com>
@@ -9,7 +9,7 @@ exclude = [
9
9
 
10
10
  [project]
11
11
  name = "catscript"
12
- version = "1.4.0"
12
+ version = "1.7.0"
13
13
  authors = [{ name = "0x530c", email = "0x530c@gmail.com" }]
14
14
  description = "The typing library of CatScript"
15
15
  readme = "README.md"
@@ -0,0 +1,3 @@
1
+ from . import app, device, key, screen, script, sys, touch, ui
2
+
3
+ __all__ = ["app", "device", "key", "screen", "script", "sys", "touch", "ui"]
@@ -0,0 +1,26 @@
1
+ def list() -> list[dict[str, str]]:
2
+ return []
3
+
4
+
5
+ def uninstall(id: str) -> None:
6
+ pass
7
+
8
+
9
+ def bundle_path(id: str) -> str:
10
+ return ""
11
+
12
+
13
+ def data_path(id: str) -> str:
14
+ return ""
15
+
16
+
17
+ def front() -> str:
18
+ return ""
19
+
20
+
21
+ def run(id: str) -> None:
22
+ pass
23
+
24
+
25
+ def kill(id: str) -> None:
26
+ pass
@@ -0,0 +1,78 @@
1
+ def alert(text: str) -> str:
2
+ return ""
3
+
4
+
5
+ def copy(text: str) -> None:
6
+ pass
7
+
8
+
9
+ def brightness() -> int:
10
+ return 0
11
+
12
+
13
+ def set_brightness(value: int, disable_auto: bool = False) -> None:
14
+ pass
15
+
16
+
17
+ def volume() -> int:
18
+ return 0
19
+
20
+
21
+ def set_volume(value: int) -> None:
22
+ pass
23
+
24
+
25
+ def locked() -> bool:
26
+ return False
27
+
28
+
29
+ def unlock(password: str = "") -> None:
30
+ pass
31
+
32
+
33
+ def orientation_locked() -> bool:
34
+ return False
35
+
36
+
37
+ def set_orientation_lock(on: bool) -> None:
38
+ pass
39
+
40
+
41
+ def assistive_touch_enabled() -> bool:
42
+ return False
43
+
44
+
45
+ def set_assistive_touch(on: bool) -> None:
46
+ pass
47
+
48
+
49
+ def control_center_visible() -> bool:
50
+ return False
51
+
52
+
53
+ def set_control_center(on: bool) -> None:
54
+ pass
55
+
56
+
57
+ def execute(command: str) -> str:
58
+ return ""
59
+
60
+
61
+ def log(object: object) -> None:
62
+ pass
63
+
64
+
65
+ def open_url(url: str) -> None:
66
+ pass
67
+
68
+
69
+ def paste(text: str) -> None:
70
+ pass
71
+
72
+
73
+ def play_sound(id: int) -> None:
74
+ pass
75
+
76
+
77
+ def toast(text: str, ms: int) -> None:
78
+ pass
@@ -12,3 +12,13 @@ def move(x: int, y: int, id: int = 1) -> None:
12
12
 
13
13
  def up(id: int = 1) -> None:
14
14
  pass
15
+
16
+
17
+ def swipe(
18
+ x1: int, y1: int, x2: int, y2: int, duration: int = 300, id: int = 1
19
+ ) -> None:
20
+ pass
21
+
22
+
23
+ def long_press(x: int, y: int, duration: int = 500, id: int = 1) -> None:
24
+ pass
@@ -0,0 +1,37 @@
1
+ def tree() -> dict[str, object]:
2
+ return {}
3
+
4
+
5
+ def elements() -> list[dict[str, object]]:
6
+ return []
7
+
8
+
9
+ def find(
10
+ role: str | None = None,
11
+ label: str | None = None,
12
+ value: str | None = None,
13
+ contains: bool = False,
14
+ index: int = 0,
15
+ ) -> dict[str, object] | None:
16
+ return None
17
+
18
+
19
+ def wait(
20
+ role: str | None = None,
21
+ label: str | None = None,
22
+ value: str | None = None,
23
+ contains: bool = False,
24
+ timeout: float = 10.0,
25
+ interval: float = 0.5,
26
+ ) -> dict[str, object] | None:
27
+ return None
28
+
29
+
30
+ def tap(
31
+ element: dict[str, object] | None = None,
32
+ role: str | None = None,
33
+ label: str | None = None,
34
+ value: str | None = None,
35
+ contains: bool = False,
36
+ ) -> bool:
37
+ return False
@@ -1,3 +0,0 @@
1
- from . import app, device, key, screen, script, sys, touch
2
-
3
- __all__ = ["app", "device", "key", "screen", "script", "sys", "touch"]
@@ -1,10 +0,0 @@
1
- def front() -> str:
2
- return ""
3
-
4
-
5
- def run(id: str) -> None:
6
- pass
7
-
8
-
9
- def kill(id: str) -> None:
10
- pass
@@ -1,26 +0,0 @@
1
- def alert(text: str) -> str:
2
- return ""
3
-
4
-
5
- def execute(command: str) -> str:
6
- return ""
7
-
8
-
9
- def log(object: object) -> None:
10
- pass
11
-
12
-
13
- def open_url(url: str) -> None:
14
- pass
15
-
16
-
17
- def paste(text: str) -> None:
18
- pass
19
-
20
-
21
- def play_sound(id: int) -> None:
22
- pass
23
-
24
-
25
- def toast(text: str, ms: int) -> None:
26
- pass
File without changes
File without changes
File without changes
File without changes