MaaFw 4.1.2__py3-none-manylinux2014_aarch64.whl → 4.2.0a1__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.

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/resource.py CHANGED
@@ -1,5 +1,6 @@
1
1
  import ctypes
2
2
  import pathlib
3
+ import json
3
4
  from typing import Any, Optional, Union
4
5
 
5
6
  from .notification_handler import NotificationHandler
@@ -49,6 +50,24 @@ class Resource:
49
50
  )
50
51
  return Job(resid, self._status, self._wait)
51
52
 
53
+ def override_pipeline(self, pipeline_override: Dict) -> bool:
54
+ return bool(
55
+ Library.framework().MaaResourceOverridePipeline(
56
+ self._handle,
57
+ json.dumps(pipeline_override, ensure_ascii=False).encode(),
58
+ )
59
+ )
60
+
61
+ def override_next(self, name: str, next_list: List[str]) -> bool:
62
+ list_buffer = StringListBuffer()
63
+ list_buffer.set(next_list)
64
+
65
+ return bool(
66
+ Library.framework().MaaResourceOverrideNext(
67
+ self._handle, name.encode(), list_buffer._handle
68
+ )
69
+ )
70
+
52
71
  @property
53
72
  def loaded(self) -> bool:
54
73
  return bool(Library.framework().MaaResourceLoaded(self._handle))
@@ -264,6 +283,19 @@ class Resource:
264
283
  Library.framework().MaaResourceClear.restype = MaaBool
265
284
  Library.framework().MaaResourceClear.argtypes = [MaaResourceHandle]
266
285
 
286
+ Library.framework().MaaResourceOverridePipeline.restype = MaaBool
287
+ Library.framework().MaaResourceOverridePipeline.argtypes = [
288
+ MaaResourceHandle,
289
+ ctypes.c_char_p,
290
+ ]
291
+
292
+ Library.framework().MaaResourceOverrideNext.restype = MaaBool
293
+ Library.framework().MaaResourceOverrideNext.argtypes = [
294
+ MaaResourceHandle,
295
+ ctypes.c_char_p,
296
+ MaaStringBufferHandle,
297
+ ]
298
+
267
299
  Library.framework().MaaResourceGetHash.restype = MaaBool
268
300
  Library.framework().MaaResourceGetHash.argtypes = [
269
301
  MaaResourceHandle,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MaaFw
3
- Version: 4.1.2
3
+ Version: 4.2.0a1
4
4
  Summary: An automation black-box testing framework based on image recognition
5
5
  Project-URL: Homepage, https://github.com/MaaXYZ/MaaFramework
6
6
  Author: MaaXYZ
@@ -9,22 +9,22 @@ maa/define.py,sha256=qec4GQkYi6AtorJ1ix880Fz67bpZULJOV3VpZEDd2Es,13341
9
9
  maa/job.py,sha256=MUI5T2X9ON9c7Dl6yo_0pp8Ulpn25XOD_uEdGm2k-TA,1231
10
10
  maa/library.py,sha256=9af7ncHUk33N5JcacaAk87JLKkP3atu-J8wf-CvfYhw,3891
11
11
  maa/notification_handler.py,sha256=LFJY6YqF9fJSkRsvpmj6ZL5DexMN_cEOj-HmpWpB9o0,5442
12
- maa/resource.py,sha256=1dRadrja3qgyU8-tIL5C8P-YaZyH-uHKEbysxKIAj_U,10468
12
+ maa/resource.py,sha256=gjcYnhaLzR11jM9nd-QfUeVEsBDgJkubOQ3YiMZN5ic,11529
13
13
  maa/tasker.py,sha256=cAkYW8Mu5rAgsPlSGacTjJ830sF2yFtvlmXRvIJt-A4,14811
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=4wApkrNz8rUCDytj2wObyJ3lYXtwMh9nc45Ym3fpII8,925392
18
- maa/bin/libMaaAgentClient.so,sha256=MIBOkYcQVjIYZlrwoxztQgqbUg3jpFfji4pFztrtb_o,2052912
19
- maa/bin/libMaaAgentServer.so,sha256=8hOKoWoR47_RmQfVL9pzpt6vZ-ElM-0E2iv1CQwghIU,2235840
20
- maa/bin/libMaaDbgControlUnit.so,sha256=Byt7lM0iETGDTtmslji9tY0tBW_6Fwi83mSET7E77dg,415056
21
- maa/bin/libMaaFramework.so,sha256=dJwQQrNptotl_WCcvnGYDodRgX_4qCVo1nZh0MpJeEo,2722104
22
- maa/bin/libMaaToolkit.so,sha256=UczD0R_zGzzZ-PXV0h8_6JhgvS-gO-cI2H1f5n2LS8Q,1362944
23
- maa/bin/libMaaUtils.so,sha256=Iyznn9cHqCCCltJFb28n87b8YUYdWd_Y1x4QTBBnl9k,888272
17
+ maa/bin/libMaaAdbControlUnit.so,sha256=L3ZQVCdKV_VRuhLq1jZhX2ocxRn6sxvmcf2gWjVN6k8,15558000
18
+ maa/bin/libMaaAgentClient.so,sha256=c69LAUwbDyqaJYxG5ssXfmjI4E4KE1pQV8kS2gjGGM0,7992208
19
+ maa/bin/libMaaAgentServer.so,sha256=Z-sAqyknJwGuhxdqhtyhow_PAOZku52LmmM9oSViumM,14492528
20
+ maa/bin/libMaaDbgControlUnit.so,sha256=QsSLlnBJ7Pd55MDF7TkPY1PiyYQ84WXDRkDiTU1-wLI,4400712
21
+ maa/bin/libMaaFramework.so,sha256=-z7j7WuO2GCJVY1GANAvbwUEX0QMn3KgFV8yG9eNRAI,41524792
22
+ maa/bin/libMaaToolkit.so,sha256=kA05WmsesOFwm0QXjAoUkZo7XCicyHHxFEDbJcMIYh4,14209568
23
+ maa/bin/libMaaUtils.so,sha256=Q_h9Q6hsyNTwrTkNOq28iPFuRBzj2o5fLaX_2iGUCuw,6199192
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.1.2.dist-info/licenses/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
28
- maafw-4.1.2.dist-info/METADATA,sha256=wW70r5yxs7PkHNPAIT5-e71QN_mi5knzDl7U21N9Vr0,21231
29
- maafw-4.1.2.dist-info/WHEEL,sha256=8rPUfYBEmDdlgJUoJH6dpknsfcdCdyH-ZatJmZBsaqM,105
30
- maafw-4.1.2.dist-info/RECORD,,
27
+ maafw-4.2.0a1.dist-info/licenses/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
28
+ maafw-4.2.0a1.dist-info/METADATA,sha256=CDWGIyeyv2-AQ3W8dWT4c6OD-Qk-9dAr3XTO7thDa4o,21233
29
+ maafw-4.2.0a1.dist-info/WHEEL,sha256=8rPUfYBEmDdlgJUoJH6dpknsfcdCdyH-ZatJmZBsaqM,105
30
+ maafw-4.2.0a1.dist-info/RECORD,,
File without changes