MaaFw 4.2.0b1__py3-none-win_amd64.whl → 4.2.1__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 +38 -24
- 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
- {maafw-4.2.0b1.dist-info → maafw-4.2.1.dist-info}/METADATA +1 -1
- {maafw-4.2.0b1.dist-info → maafw-4.2.1.dist-info}/RECORD +13 -13
- {maafw-4.2.0b1.dist-info → maafw-4.2.1.dist-info}/WHEEL +0 -0
- {maafw-4.2.0b1.dist-info → maafw-4.2.1.dist-info}/licenses/LICENSE.md +0 -0
maa/agent_client.py
CHANGED
|
@@ -9,10 +9,17 @@ from .buffer import StringBuffer
|
|
|
9
9
|
class AgentClient:
|
|
10
10
|
_handle: MaaAgentClientHandle
|
|
11
11
|
|
|
12
|
-
def __init__(self):
|
|
12
|
+
def __init__(self, identifier: Optional[str] = None):
|
|
13
13
|
self._set_api_properties()
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
if identifier:
|
|
16
|
+
id_buffer = StringBuffer()
|
|
17
|
+
id_buffer.set(identifier)
|
|
18
|
+
id_buffer_handle = id_buffer._handle
|
|
19
|
+
else:
|
|
20
|
+
id_buffer_handle = None
|
|
21
|
+
|
|
22
|
+
self._handle = Library.agent_client().MaaAgentClientCreateV2(id_buffer_handle)
|
|
16
23
|
if not self._handle:
|
|
17
24
|
raise RuntimeError("Failed to create agent client.")
|
|
18
25
|
|
|
@@ -20,6 +27,16 @@ class AgentClient:
|
|
|
20
27
|
if self._handle:
|
|
21
28
|
Library.agent_client().MaaAgentClientDestroy(self._handle)
|
|
22
29
|
|
|
30
|
+
@property
|
|
31
|
+
def identifier(self) -> Optional[str]:
|
|
32
|
+
id_buffer = StringBuffer()
|
|
33
|
+
if not Library.agent_client().MaaAgentClientIdentifier(
|
|
34
|
+
self._handle, id_buffer._handle
|
|
35
|
+
):
|
|
36
|
+
return None
|
|
37
|
+
|
|
38
|
+
return id_buffer.get()
|
|
39
|
+
|
|
23
40
|
def bind(self, resource: Resource) -> bool:
|
|
24
41
|
# avoid gc
|
|
25
42
|
self._resource = resource
|
|
@@ -30,26 +47,16 @@ class AgentClient:
|
|
|
30
47
|
)
|
|
31
48
|
)
|
|
32
49
|
|
|
33
|
-
def create_socket(self, identifier: str = "") -> Optional[str]:
|
|
34
|
-
id_buffer = StringBuffer()
|
|
35
|
-
id_buffer.set(identifier)
|
|
36
|
-
|
|
37
|
-
ret = bool(
|
|
38
|
-
Library.agent_client().MaaAgentClientCreateSocket(
|
|
39
|
-
self._handle, id_buffer._handle
|
|
40
|
-
)
|
|
41
|
-
)
|
|
42
|
-
if not ret:
|
|
43
|
-
return None
|
|
44
|
-
|
|
45
|
-
return id_buffer.get()
|
|
46
|
-
|
|
47
50
|
def connect(self) -> bool:
|
|
48
51
|
return bool(Library.agent_client().MaaAgentClientConnect(self._handle))
|
|
49
52
|
|
|
50
53
|
def disconnect(self) -> bool:
|
|
51
54
|
return bool(Library.agent_client().MaaAgentClientDisconnect(self._handle))
|
|
52
55
|
|
|
56
|
+
@property
|
|
57
|
+
def connected(self) -> bool:
|
|
58
|
+
return bool(Library.agent_client().MaaAgentClientConnected(self._handle))
|
|
59
|
+
|
|
53
60
|
_api_properties_initialized: bool = False
|
|
54
61
|
|
|
55
62
|
@staticmethod
|
|
@@ -62,8 +69,16 @@ class AgentClient:
|
|
|
62
69
|
|
|
63
70
|
AgentClient._api_properties_initialized = True
|
|
64
71
|
|
|
65
|
-
Library.agent_client().
|
|
66
|
-
Library.agent_client().
|
|
72
|
+
Library.agent_client().MaaAgentClientCreateV2.restype = MaaAgentClientHandle
|
|
73
|
+
Library.agent_client().MaaAgentClientCreateV2.argtypes = [
|
|
74
|
+
MaaStringBufferHandle,
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
Library.agent_client().MaaAgentClientIdentifier.restype = MaaBool
|
|
78
|
+
Library.agent_client().MaaAgentClientIdentifier.argtypes = [
|
|
79
|
+
MaaAgentClientHandle,
|
|
80
|
+
MaaStringBufferHandle,
|
|
81
|
+
]
|
|
67
82
|
|
|
68
83
|
Library.agent_client().MaaAgentClientDestroy.restype = None
|
|
69
84
|
Library.agent_client().MaaAgentClientDestroy.argtypes = [MaaAgentClientHandle]
|
|
@@ -74,12 +89,6 @@ class AgentClient:
|
|
|
74
89
|
MaaResourceHandle,
|
|
75
90
|
]
|
|
76
91
|
|
|
77
|
-
Library.agent_client().MaaAgentClientCreateSocket.restype = MaaBool
|
|
78
|
-
Library.agent_client().MaaAgentClientCreateSocket.argtypes = [
|
|
79
|
-
MaaAgentClientHandle,
|
|
80
|
-
MaaStringBufferHandle,
|
|
81
|
-
]
|
|
82
|
-
|
|
83
92
|
Library.agent_client().MaaAgentClientConnect.restype = MaaBool
|
|
84
93
|
Library.agent_client().MaaAgentClientConnect.argtypes = [
|
|
85
94
|
MaaAgentClientHandle,
|
|
@@ -89,3 +98,8 @@ class AgentClient:
|
|
|
89
98
|
Library.agent_client().MaaAgentClientDisconnect.argtypes = [
|
|
90
99
|
MaaAgentClientHandle,
|
|
91
100
|
]
|
|
101
|
+
|
|
102
|
+
Library.agent_client().MaaAgentClientConnected.restype = MaaBool
|
|
103
|
+
Library.agent_client().MaaAgentClientConnected.argtypes = [
|
|
104
|
+
MaaAgentClientHandle,
|
|
105
|
+
]
|
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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
maa/__init__.py,sha256=t2Z9yJWrSZfH16xYN67bKpiPEHDf7iaiw4wi0PjmU8U,250
|
|
2
|
-
maa/agent_client.py,sha256=
|
|
2
|
+
maa/agent_client.py,sha256=vrL1pyqYyK2CQePbMbCQraZnzx0rPaYWK4G8D9qU__Y,3365
|
|
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
|
|
@@ -15,18 +15,18 @@ 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=fOHPjhsbCDr_Wqu0jvHu5l_dW1W_Jfu8OUifHllksNw,742400
|
|
19
|
+
maa/bin/MaaAgentClient.dll,sha256=3-hNDtkr0FZk4VV6tmIQbaSGm9_Psop30XcCO9lwKhg,963072
|
|
20
|
+
maa/bin/MaaAgentServer.dll,sha256=JzN_X25ql0tq1jOnl92jafrVl70c4xPyO54qELsgcxc,1138176
|
|
21
|
+
maa/bin/MaaDbgControlUnit.dll,sha256=KesWEWIxhmC0SbzUrn30kCyd7jRa_67ERcYRIeprLL0,399872
|
|
22
|
+
maa/bin/MaaFramework.dll,sha256=EgF5oLYhDD8Np_InVRtnFix9cNXc6fEU5Yb9s0P6RuA,1535488
|
|
23
|
+
maa/bin/MaaToolkit.dll,sha256=gOQIdlbHI4T2hMCAzTBIerr0qaO3Fyq866XzoApEl2U,720384
|
|
24
|
+
maa/bin/MaaUtils.dll,sha256=NVWT7B9M50NLOoYLVbRO79rOWZqwS5j8YTnhe-ThpuM,547840
|
|
25
|
+
maa/bin/MaaWin32ControlUnit.dll,sha256=4z8bAKdLiu8rDjcyQnzwcrvbvFjHCmkM2zUwXbumQUU,335360
|
|
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.2.
|
|
30
|
-
maafw-4.2.
|
|
31
|
-
maafw-4.2.
|
|
32
|
-
maafw-4.2.
|
|
29
|
+
maafw-4.2.1.dist-info/licenses/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
|
|
30
|
+
maafw-4.2.1.dist-info/METADATA,sha256=wXL5_ve6TIvhZC7Cik5f-Jb8PF8UxJoEfYYirv5Le80,21231
|
|
31
|
+
maafw-4.2.1.dist-info/WHEEL,sha256=k6hccRrl6UmjGsv-l-15TwZnTH21KqjgBTXuBtbSCtM,93
|
|
32
|
+
maafw-4.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|