catscript 1.0.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.
@@ -0,0 +1 @@
1
+ dist
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 0x530c
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,17 @@
1
+ Metadata-Version: 2.4
2
+ Name: catscript
3
+ Version: 1.0.0
4
+ Summary: The typing library of CatScript
5
+ Project-URL: Homepage, https://catscript.app
6
+ Author-email: 0x530c <0x530c@gmail.com>
7
+ License-File: LICENSE
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Requires-Python: >=3.10
12
+ Description-Content-Type: text/markdown
13
+
14
+ # CatScript
15
+
16
+ This is the typing library of [CatScript](https://catscript.app:w
17
+ ). It does not have actual functionality; it is used to provide type hints for script developers when writing scripts on the computer.
@@ -0,0 +1,4 @@
1
+ # CatScript
2
+
3
+ This is the typing library of [CatScript](https://catscript.app:w
4
+ ). It does not have actual functionality; it is used to provide type hints for script developers when writing scripts on the computer.
@@ -0,0 +1,19 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "catscript"
7
+ version = "1.0.0"
8
+ authors = [{ name = "0x530c", email = "0x530c@gmail.com" }]
9
+ description = "The typing library of CatScript"
10
+ readme = "README.md"
11
+ requires-python = ">=3.10"
12
+ classifiers = [
13
+ "Programming Language :: Python :: 3",
14
+ "License :: OSI Approved :: MIT License",
15
+ "Operating System :: OS Independent",
16
+ ]
17
+
18
+ [project.urls]
19
+ Homepage = "https://catscript.app"
File without changes
@@ -0,0 +1,10 @@
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
@@ -0,0 +1,10 @@
1
+ def id() -> str:
2
+ return ""
3
+
4
+
5
+ def name() -> str:
6
+ return ""
7
+
8
+
9
+ def sn() -> str:
10
+ return ""
@@ -0,0 +1,10 @@
1
+ def click(code: str) -> None:
2
+ pass
3
+
4
+
5
+ def down(code: str) -> None:
6
+ pass
7
+
8
+
9
+ def up(code: str) -> None:
10
+ pass
@@ -0,0 +1,38 @@
1
+ def size() -> tuple[int, int]:
2
+ return (0, 0)
3
+
4
+
5
+ def color(x: int, y: int) -> int:
6
+ return 0
7
+
8
+
9
+ def is_color(colors: list[tuple[int, int, int]], precision: float = 1.0) -> bool:
10
+ return True
11
+
12
+
13
+ def find_color(
14
+ color: int,
15
+ offset: list[tuple[int, int, int]] = [],
16
+ precision: float = 1.0,
17
+ region: tuple[int, int, int, int] = (0, 0, -1, -1),
18
+ max_miss: int = 0,
19
+ all: bool = False,
20
+ ) -> list[tuple[int, int]]:
21
+ return [(-1, -1)]
22
+
23
+
24
+ def find_image(
25
+ path: str,
26
+ ignore: list[int] = [],
27
+ precision: float = 1.0,
28
+ region: tuple[int, int, int, int] = (0, 0, -1, -1),
29
+ max_miss: int = 0,
30
+ all: bool = False,
31
+ ) -> list[tuple[int, int]]:
32
+ return [(-1, -1)]
33
+
34
+
35
+ def snapshot(
36
+ path: str, region: tuple[int, int, int, int] = (0, 0, -1, -1), scale: float = 1.0
37
+ ) -> None:
38
+ pass
@@ -0,0 +1,2 @@
1
+ def config() -> dict:
2
+ return {}
@@ -0,0 +1,14 @@
1
+ def alert(text: str) -> str:
2
+ return ""
3
+
4
+
5
+ def execute(command: str) -> str:
6
+ return ""
7
+
8
+
9
+ def paste(text: str) -> None:
10
+ pass
11
+
12
+
13
+ def toast(text: str, ms: int) -> None:
14
+ pass
@@ -0,0 +1,14 @@
1
+ def click(x: int, y: int, id: int = 1) -> None:
2
+ pass
3
+
4
+
5
+ def down(x: int, y: int, id: int = 1) -> None:
6
+ pass
7
+
8
+
9
+ def move(x: int, y: int, id: int = 1) -> None:
10
+ pass
11
+
12
+
13
+ def up(id: int = 1) -> None:
14
+ pass