MaaFw 4.0.0a2__py3-none-win_amd64.whl → 4.0.0b2__py3-none-win_amd64.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.
Potentially problematic release.
This version of MaaFw might be problematic. Click here for more details.
- maa/agent_client.py +8 -0
- maa/bin/MaaAdbControlUnit.dll +0 -0
- maa/bin/MaaAgentClient.dll +0 -0
- maa/bin/MaaAgentServer.dll +0 -0
- maa/bin/MaaDbgControlUnit.dll +0 -0
- maa/bin/MaaFramework.dll +0 -0
- maa/bin/MaaToolkit.dll +0 -0
- maa/bin/MaaUtils.dll +0 -0
- maa/bin/MaaWin32ControlUnit.dll +0 -0
- maa/define.py +10 -10
- maa/library.py +0 -4
- maa/notification_handler.py +3 -3
- {maafw-4.0.0a2.dist-info → maafw-4.0.0b2.dist-info}/METADATA +2 -1
- {maafw-4.0.0a2.dist-info → maafw-4.0.0b2.dist-info}/RECORD +17 -17
- {maafw-4.0.0a2.dist-info → maafw-4.0.0b2.dist-info}/LICENSE.md +0 -0
- {maafw-4.0.0a2.dist-info → maafw-4.0.0b2.dist-info}/WHEEL +0 -0
- {maafw-4.0.0a2.dist-info → maafw-4.0.0b2.dist-info}/top_level.txt +0 -0
maa/agent_client.py
CHANGED
|
@@ -47,6 +47,9 @@ class AgentClient:
|
|
|
47
47
|
def connect(self) -> bool:
|
|
48
48
|
return bool(Library.agent_client().MaaAgentClientConnect(self._handle))
|
|
49
49
|
|
|
50
|
+
def disconnect(self) -> bool:
|
|
51
|
+
return bool(Library.agent_client().MaaAgentClientDisconnect(self._handle))
|
|
52
|
+
|
|
50
53
|
_api_properties_initialized: bool = False
|
|
51
54
|
|
|
52
55
|
@staticmethod
|
|
@@ -81,3 +84,8 @@ class AgentClient:
|
|
|
81
84
|
Library.agent_client().MaaAgentClientConnect.argtypes = [
|
|
82
85
|
MaaAgentClientHandle,
|
|
83
86
|
]
|
|
87
|
+
|
|
88
|
+
Library.agent_client().MaaAgentClientDisconnect.restype = MaaBool
|
|
89
|
+
Library.agent_client().MaaAgentClientDisconnect.argtypes = [
|
|
90
|
+
MaaAgentClientHandle,
|
|
91
|
+
]
|
maa/bin/MaaAdbControlUnit.dll
CHANGED
|
Binary file
|
maa/bin/MaaAgentClient.dll
CHANGED
|
Binary file
|
maa/bin/MaaAgentServer.dll
CHANGED
|
Binary file
|
maa/bin/MaaDbgControlUnit.dll
CHANGED
|
Binary file
|
maa/bin/MaaFramework.dll
CHANGED
|
Binary file
|
maa/bin/MaaToolkit.dll
CHANGED
|
Binary file
|
maa/bin/MaaUtils.dll
CHANGED
|
Binary file
|
maa/bin/MaaWin32ControlUnit.dll
CHANGED
|
Binary file
|
maa/define.py
CHANGED
|
@@ -53,7 +53,7 @@ MaaCtrlOption = MaaOption
|
|
|
53
53
|
MaaResOption = MaaOption
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
class MaaGlobalOptionEnum:
|
|
56
|
+
class MaaGlobalOptionEnum(IntEnum):
|
|
57
57
|
Invalid = 0
|
|
58
58
|
|
|
59
59
|
# Log dir
|
|
@@ -89,7 +89,7 @@ class MaaGlobalOptionEnum:
|
|
|
89
89
|
DebugMode = 6
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
class MaaCtrlOptionEnum:
|
|
92
|
+
class MaaCtrlOptionEnum(IntEnum):
|
|
93
93
|
Invalid = 0
|
|
94
94
|
|
|
95
95
|
# Only one of long and short side can be set, and the other is automatically scaled according to the aspect ratio.
|
|
@@ -111,13 +111,13 @@ class MaaCtrlOptionEnum:
|
|
|
111
111
|
Recording = 5
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
class MaaInferenceDeviceEnum:
|
|
114
|
+
class MaaInferenceDeviceEnum(IntEnum):
|
|
115
115
|
CPU = -2
|
|
116
116
|
Auto = -1
|
|
117
117
|
# and more gpu id or flag...
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
class MaaInferenceExecutionProviderEnum:
|
|
120
|
+
class MaaInferenceExecutionProviderEnum(IntEnum):
|
|
121
121
|
# I don't recommend setting up MaaResOption_InferenceDevice in this case,
|
|
122
122
|
# because you don't know which EP will be used on different user devices.
|
|
123
123
|
Auto = 0
|
|
@@ -140,7 +140,7 @@ class MaaInferenceExecutionProviderEnum:
|
|
|
140
140
|
CUDA = 4
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
class MaaResOptionEnum:
|
|
143
|
+
class MaaResOptionEnum(IntEnum):
|
|
144
144
|
Invalid = 0
|
|
145
145
|
|
|
146
146
|
# Use the specified inference device.
|
|
@@ -161,7 +161,7 @@ class MaaResOptionEnum:
|
|
|
161
161
|
MaaAdbScreencapMethod = ctypes.c_uint64
|
|
162
162
|
|
|
163
163
|
|
|
164
|
-
class MaaAdbScreencapMethodEnum:
|
|
164
|
+
class MaaAdbScreencapMethodEnum(IntEnum):
|
|
165
165
|
"""
|
|
166
166
|
Use bitwise OR to set the method you need
|
|
167
167
|
MaaFramework will test their speed and use the fastest one.
|
|
@@ -184,7 +184,7 @@ class MaaAdbScreencapMethodEnum:
|
|
|
184
184
|
MaaAdbInputMethod = ctypes.c_uint64
|
|
185
185
|
|
|
186
186
|
|
|
187
|
-
class MaaAdbInputMethodEnum:
|
|
187
|
+
class MaaAdbInputMethodEnum(IntEnum):
|
|
188
188
|
"""
|
|
189
189
|
Use bitwise OR to set the method you need
|
|
190
190
|
MaaFramework will select the available ones according to priority.
|
|
@@ -206,7 +206,7 @@ MaaWin32ScreencapMethod = ctypes.c_uint64
|
|
|
206
206
|
|
|
207
207
|
|
|
208
208
|
# No bitwise OR, just set it
|
|
209
|
-
class MaaWin32ScreencapMethodEnum:
|
|
209
|
+
class MaaWin32ScreencapMethodEnum(IntEnum):
|
|
210
210
|
Null = 0
|
|
211
211
|
|
|
212
212
|
GDI = 1
|
|
@@ -218,7 +218,7 @@ MaaWin32InputMethod = ctypes.c_uint64
|
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
# No bitwise OR, just set it
|
|
221
|
-
class MaaWin32InputMethodEnum:
|
|
221
|
+
class MaaWin32InputMethodEnum(IntEnum):
|
|
222
222
|
Null = 0
|
|
223
223
|
|
|
224
224
|
Seize = 1
|
|
@@ -229,7 +229,7 @@ class MaaWin32InputMethodEnum:
|
|
|
229
229
|
MaaDbgControllerType = ctypes.c_uint64
|
|
230
230
|
|
|
231
231
|
|
|
232
|
-
class MaaDbgControllerTypeEnum:
|
|
232
|
+
class MaaDbgControllerTypeEnum(IntEnum):
|
|
233
233
|
Null = 0
|
|
234
234
|
|
|
235
235
|
CarouselImage = 1
|
maa/library.py
CHANGED
|
@@ -72,7 +72,6 @@ class Library:
|
|
|
72
72
|
def framework() -> ctypes.CDLL:
|
|
73
73
|
if not Library.is_agent_server():
|
|
74
74
|
if not Library._framework:
|
|
75
|
-
print(f"Opening framework library: {Library.framework_libpath}")
|
|
76
75
|
Library._framework = Library._lib_type(str(Library.framework_libpath))
|
|
77
76
|
|
|
78
77
|
return Library._framework
|
|
@@ -82,7 +81,6 @@ class Library:
|
|
|
82
81
|
@staticmethod
|
|
83
82
|
def toolkit() -> ctypes.CDLL:
|
|
84
83
|
if not Library._toolkit:
|
|
85
|
-
print(f"Opening toolkit library: {Library.toolkit_libpath}")
|
|
86
84
|
Library._toolkit = Library._lib_type(str(Library.toolkit_libpath))
|
|
87
85
|
|
|
88
86
|
return Library._toolkit
|
|
@@ -93,7 +91,6 @@ class Library:
|
|
|
93
91
|
raise ValueError("Agent server is not available in the current context.")
|
|
94
92
|
|
|
95
93
|
if not Library._agent_client:
|
|
96
|
-
print(f"Opening agent client library: {Library.agent_client_libpath}")
|
|
97
94
|
Library._agent_client = Library._lib_type(
|
|
98
95
|
str(Library.agent_client_libpath)
|
|
99
96
|
)
|
|
@@ -106,7 +103,6 @@ class Library:
|
|
|
106
103
|
raise ValueError("Agent client is not available in the current context.")
|
|
107
104
|
|
|
108
105
|
if not Library._agent_server:
|
|
109
|
-
print(f"Opening agent server library: {Library.agent_server_libpath}")
|
|
110
106
|
Library._agent_server = Library._lib_type(
|
|
111
107
|
str(Library.agent_server_libpath)
|
|
112
108
|
)
|
maa/notification_handler.py
CHANGED
|
@@ -2,13 +2,13 @@ import ctypes
|
|
|
2
2
|
import json
|
|
3
3
|
from abc import ABC
|
|
4
4
|
from typing import Optional, Tuple
|
|
5
|
-
from enum import
|
|
5
|
+
from enum import IntEnum
|
|
6
6
|
from dataclasses import dataclass
|
|
7
7
|
|
|
8
8
|
from .define import MaaNotificationCallback
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
# class NotificationEvent(
|
|
11
|
+
# class NotificationEvent(IntEnum):
|
|
12
12
|
# ResourceLoading = 1
|
|
13
13
|
# ControllerAction = 2
|
|
14
14
|
# TaskerTask = 3
|
|
@@ -17,7 +17,7 @@ from .define import MaaNotificationCallback
|
|
|
17
17
|
# TaskAction = 6
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
class NotificationType(
|
|
20
|
+
class NotificationType(IntEnum):
|
|
21
21
|
Unknown = 0
|
|
22
22
|
Starting = 1
|
|
23
23
|
Succeeded = 2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: MaaFw
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.0b2
|
|
4
4
|
Summary: An automation black-box testing framework based on image recognition
|
|
5
5
|
Author: MaaXYZ
|
|
6
6
|
Project-URL: Homepage, https://github.com/MaaXYZ/MaaFramework
|
|
@@ -8,6 +8,7 @@ Requires-Python: >=3.9
|
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
License-File: LICENSE.md
|
|
10
10
|
Requires-Dist: numpy
|
|
11
|
+
Requires-Dist: strenum
|
|
11
12
|
Requires-Dist: MaaAgentBinary
|
|
12
13
|
|
|
13
14
|
<!-- markdownlint-disable MD033 MD041 -->
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
maa/__init__.py,sha256=t2Z9yJWrSZfH16xYN67bKpiPEHDf7iaiw4wi0PjmU8U,250
|
|
2
|
-
maa/agent_client.py,sha256=
|
|
2
|
+
maa/agent_client.py,sha256=MGjwVCM_Y60O2pJJn5iCxh0ymg-ebOWlDw2euSaZSu0,2855
|
|
3
3
|
maa/buffer.py,sha256=XFr1MnWt-xmZkhQ_2ZzGfiqSJJwmphY4U07EEzMNYQc,16544
|
|
4
4
|
maa/context.py,sha256=hOxo7GArAmdBwMGHPqM1I2rtNE5N6WR1QwPOLxZgSvU,5754
|
|
5
5
|
maa/controller.py,sha256=V9ALn24vQX-mWngZbuapBcv-_HNHCtUwHXa3Em2X13s,22517
|
|
6
6
|
maa/custom_action.py,sha256=V-kJ-5ahcImnzrZBbAH_RJqoiQ7RjBT39ffdSOi9_c4,2495
|
|
7
7
|
maa/custom_recognition.py,sha256=o2k2tM-NstcDpivXPdoritI3laUN1NQl3Yq1M6RkNcE,3055
|
|
8
|
-
maa/define.py,sha256=
|
|
8
|
+
maa/define.py,sha256=qec4GQkYi6AtorJ1ix880Fz67bpZULJOV3VpZEDd2Es,13341
|
|
9
9
|
maa/job.py,sha256=MUI5T2X9ON9c7Dl6yo_0pp8Ulpn25XOD_uEdGm2k-TA,1231
|
|
10
|
-
maa/library.py,sha256=
|
|
11
|
-
maa/notification_handler.py,sha256=
|
|
10
|
+
maa/library.py,sha256=9af7ncHUk33N5JcacaAk87JLKkP3atu-J8wf-CvfYhw,3891
|
|
11
|
+
maa/notification_handler.py,sha256=563C8mcdmx3f3Q5cqs_lY219CMD_QX1euajc6-ec8sg,5260
|
|
12
12
|
maa/resource.py,sha256=RgHP-SAxwQRGvDOcC0oTYfEE8bOxs-llscgtBKNHRhk,9909
|
|
13
13
|
maa/tasker.py,sha256=Hgi1Pbq20rKnTM3fU5yZP_QjetYNOpov7YulatPWAPI,14551
|
|
14
14
|
maa/toolkit.py,sha256=H7P58dPLKzEm_aZMsDJ98IaMZnTE-hcFgK8MKnN0F6g,11381
|
|
15
15
|
maa/agent/__init__.py,sha256=K4vyyD6YgLR6PEQl86t4oKP4eViCdNr3Br94dNk8YjM,257
|
|
16
16
|
maa/agent/agent_server.py,sha256=e0yE_ffWJlTPydJbYLK9OhCM5fVVlZQIcvEQMjB5V68,3636
|
|
17
17
|
maa/bin/DirectML.dll,sha256=nJ5tgiVhxsQbkOaZSz6IV88dZtv7HgxMeZx8ibTpLaE,18527776
|
|
18
|
-
maa/bin/MaaAdbControlUnit.dll,sha256=
|
|
19
|
-
maa/bin/MaaAgentClient.dll,sha256=
|
|
20
|
-
maa/bin/MaaAgentServer.dll,sha256=
|
|
21
|
-
maa/bin/MaaDbgControlUnit.dll,sha256=
|
|
22
|
-
maa/bin/MaaFramework.dll,sha256=
|
|
23
|
-
maa/bin/MaaToolkit.dll,sha256=
|
|
24
|
-
maa/bin/MaaUtils.dll,sha256=
|
|
25
|
-
maa/bin/MaaWin32ControlUnit.dll,sha256
|
|
18
|
+
maa/bin/MaaAdbControlUnit.dll,sha256=1x3_7ScdCvh_V3kU6ikf-oCRxdiiscPuSPe3CROJrcw,1320960
|
|
19
|
+
maa/bin/MaaAgentClient.dll,sha256=e85okhE4JF1eWC7NkN55s-P2VHREMUyjhGGIuW5QNx0,1897472
|
|
20
|
+
maa/bin/MaaAgentServer.dll,sha256=Plx8ssiAp9ZLuIni-dS5VgEDKGdpjlwnwdZwEJIHF6k,2129920
|
|
21
|
+
maa/bin/MaaDbgControlUnit.dll,sha256=tzb6sJX23oEtgPHAnHlUzNGboPtnJxJTsH0LRJucSJM,775168
|
|
22
|
+
maa/bin/MaaFramework.dll,sha256=70kjQEbvUPskk2n_dcM2LGIZ29Nc124VlrSKwLAqWKw,2502656
|
|
23
|
+
maa/bin/MaaToolkit.dll,sha256=JSAoXCp7Obpu3cgqpxyV9g1X0-ovCxt4YhBvv7q6jhE,1261568
|
|
24
|
+
maa/bin/MaaUtils.dll,sha256=kZpWhQiw4I5nDlEX4jbcmwOg13fy-2sPl7J03e_JOlc,1017344
|
|
25
|
+
maa/bin/MaaWin32ControlUnit.dll,sha256=-6a3vItm4dcmmVhIFbGp0wdkoKI98Yetc8RonVR-lyQ,1557504
|
|
26
26
|
maa/bin/fastdeploy_ppocr_maa.dll,sha256=HowKaHyB31cTK8ZoPAgxlPQOEKUM_jEJoCvyku5hj6k,1168384
|
|
27
27
|
maa/bin/onnxruntime_maa.dll,sha256=rlFVEdC1cB6Yc4EbYuvoyGOr9o941NbLaOzwkaghAVo,19161600
|
|
28
28
|
maa/bin/opencv_world4_maa.dll,sha256=-RoYA6M1PHqnM0Yc-SpKY07rk1mx7PNH6CuxkutS9yw,18250752
|
|
29
|
-
maafw-4.0.
|
|
30
|
-
maafw-4.0.
|
|
31
|
-
maafw-4.0.
|
|
32
|
-
maafw-4.0.
|
|
33
|
-
maafw-4.0.
|
|
29
|
+
maafw-4.0.0b2.dist-info/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
|
|
30
|
+
maafw-4.0.0b2.dist-info/METADATA,sha256=V8vNGvij2MDh5lQk0NXbeIMf3IxXt5YK04_iLEzQInE,13077
|
|
31
|
+
maafw-4.0.0b2.dist-info/WHEEL,sha256=sLtab_Ac9ev8zJ1_mj2SltFxBWZi5rqzC7PLbOFDfko,96
|
|
32
|
+
maafw-4.0.0b2.dist-info/top_level.txt,sha256=G8r2L__aYaMq4S3R70G6NsfEROiVp08kUcWvATzk2J8,4
|
|
33
|
+
maafw-4.0.0b2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|