MaaFw 4.0.0a1__py3-none-manylinux2014_aarch64.whl → 4.0.0b1__py3-none-manylinux2014_aarch64.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 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
+ ]
Binary file
Binary file
Binary file
Binary file
Binary file
maa/bin/libMaaToolkit.so CHANGED
Binary file
maa/bin/libMaaUtils.so 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
@@ -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 Enum
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(Enum):
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(Enum):
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.0a1
3
+ Version: 4.0.0b1
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,31 +1,31 @@
1
1
  maa/__init__.py,sha256=t2Z9yJWrSZfH16xYN67bKpiPEHDf7iaiw4wi0PjmU8U,250
2
- maa/agent_client.py,sha256=M7h0bZ6KQdCIeTMNtVKRnSDP2-NWBlA8WON41ByHDI4,2549
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=32xhHQ2gYXQ4pVamLfW6lO5wCA2-9J8KVmr47ZYKde8,13251
8
+ maa/define.py,sha256=qec4GQkYi6AtorJ1ix880Fz67bpZULJOV3VpZEDd2Es,13341
9
9
  maa/job.py,sha256=MUI5T2X9ON9c7Dl6yo_0pp8Ulpn25XOD_uEdGm2k-TA,1231
10
10
  maa/library.py,sha256=i-YpxpmU-G_AwKdnRMnSSSRXiKDSwbwYdn9IQf1OLJc,4211
11
- maa/notification_handler.py,sha256=1sFukH3R5l9Fp73CP7DV8fv6gTYge_kb6foSDNcNERY,5251
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
- maa/bin/libMaaAdbControlUnit.so,sha256=Jd_8JsqTVhK2_Do43csB6dBo_46PqAz0s6Vcq9HEe84,35721720
18
- maa/bin/libMaaAgentClient.so,sha256=AoXnyTxEbAFgYtSxyD3PDDGu-zMJ_a-q5zT-3UA-3HI,9654280
19
- maa/bin/libMaaAgentServer.so,sha256=v1cVS34AAhssF6X7UuYGMd0mW0G01rMyML79hOlm90s,23972504
20
- maa/bin/libMaaDbgControlUnit.so,sha256=_GdnYhEDqbizOj2RYCe0gAG_oM7Xy5Gf_yjluWXAlHA,9397592
21
- maa/bin/libMaaFramework.so,sha256=Y4nlEJrsB9ldJgFpjwBBEZQITUQSdFMKiCoVtJO7joE,85375040
22
- maa/bin/libMaaToolkit.so,sha256=p2ToFuRdIBjLHbyy3edxIpMmrqA-Oq94G_crHciyP7c,25392032
23
- maa/bin/libMaaUtils.so,sha256=xPFZkKzqo9e-b0uAXT1wITh2Bq3__sgkJ163ShjcHj8,12461120
17
+ maa/bin/libMaaAdbControlUnit.so,sha256=Qkeq-powIxBb2-97OVOFS_dPTE3M13am5PbWeC9XPS4,35721720
18
+ maa/bin/libMaaAgentClient.so,sha256=uQYuGKK3SBjCeLby8iNyu6rtfSM1ME_s40I3LaeHv94,9663272
19
+ maa/bin/libMaaAgentServer.so,sha256=1xWELJko9u3C9H7Z7r6FgziN44vAVDNFjVp24fhOswA,23972400
20
+ maa/bin/libMaaDbgControlUnit.so,sha256=UxirHvIswsGN871aDYBIFZObr24KqVtl6neOlEkl6rw,9397592
21
+ maa/bin/libMaaFramework.so,sha256=QZHDX8HzyKNxcK-22dty5dOer0AA6ZXbfiYfy4x_0GY,85377040
22
+ maa/bin/libMaaToolkit.so,sha256=SMaEoJ3sMfLGbhRnvsuftE0irnSU_FsOGbsXCPrqWj0,25574072
23
+ maa/bin/libMaaUtils.so,sha256=dwdclR1EP0hCJzUQwAR0GBRFo-GxnZ0XAAQDDZTVQ_k,12461408
24
24
  maa/bin/libfastdeploy_ppocr.so,sha256=OPB9oG0O7ZGNZUuY9U0nPsWcWnIN9xu1s0PRvXkmUEY,5815536
25
25
  maa/bin/libonnxruntime.so.1,sha256=LiAUFtvZ6eh6yGCoDoqSdN1fWR6LCyscxjQbOpdo14w,19769616
26
26
  maa/bin/libopencv_world4.so.408,sha256=fb-nh6oI32qImBiK1hRu7gSoe1u7r2aRbXxyCIgxPaA,16272176
27
- maafw-4.0.0a1.dist-info/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
28
- maafw-4.0.0a1.dist-info/METADATA,sha256=t5Jb8apHgUXX3oTiF4aHPkN6odrba1FtfWxwx4hRQuA,13054
29
- maafw-4.0.0a1.dist-info/WHEEL,sha256=yDhKHiFeayM-TFm6HVJdezo80NXfmq_ti8Xl5in-W8c,107
30
- maafw-4.0.0a1.dist-info/top_level.txt,sha256=G8r2L__aYaMq4S3R70G6NsfEROiVp08kUcWvATzk2J8,4
31
- maafw-4.0.0a1.dist-info/RECORD,,
27
+ maafw-4.0.0b1.dist-info/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
28
+ maafw-4.0.0b1.dist-info/METADATA,sha256=w_U7TCgPO_yjH9L0Ea_TWZTjrtH5dEyiV-zI4M5D-1o,13077
29
+ maafw-4.0.0b1.dist-info/WHEEL,sha256=yDhKHiFeayM-TFm6HVJdezo80NXfmq_ti8Xl5in-W8c,107
30
+ maafw-4.0.0b1.dist-info/top_level.txt,sha256=G8r2L__aYaMq4S3R70G6NsfEROiVp08kUcWvATzk2J8,4
31
+ maafw-4.0.0b1.dist-info/RECORD,,