MaaFw 4.1.2__py3-none-manylinux2014_x86_64.whl → 4.2.0b1__py3-none-manylinux2014_x86_64.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.0b1
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=3WhgE-2GJeHnVdUw_vb3jOgG_xRB3RSX-DrogbGBFlM,864488
18
- maa/bin/libMaaAgentClient.so,sha256=rG_S1Fqs_fssR18ISmTlk28-ptgI6W51qo6CoMdCJlg,2111552
19
- maa/bin/libMaaAgentServer.so,sha256=0UrdPorZCI3jRZLCaJFGmljXu3EPlNUkvJ4kgPoXHNE,2231496
20
- maa/bin/libMaaDbgControlUnit.so,sha256=7aF3mNQn_IFQFj9Zw1_eRpgxcN19ruTbPwE_xqBQ9R4,404968
21
- maa/bin/libMaaFramework.so,sha256=rAuhDBcgxupmTVrhwzptV-XWTSy53hIHuE3ui7fz480,2621496
22
- maa/bin/libMaaToolkit.so,sha256=9ccRPAI9Q20xeysjCPgrfBpnvp0TMzS0Iray5vhRMUE,1305888
23
- maa/bin/libMaaUtils.so,sha256=t80pDNql0jFYRNY6RaQHhgvgYWipapRGzQtj8mVRbLM,824848
17
+ maa/bin/libMaaAdbControlUnit.so,sha256=O6MzjEWixBDczt0LLUApIzYoUXNxZP8YCpoTeLSQaLI,15784216
18
+ maa/bin/libMaaAgentClient.so,sha256=v4hOLqZ9rZb6ZXjlMfyXlQ4LiEVtnKIzd0zr7FZoTww,8340728
19
+ maa/bin/libMaaAgentServer.so,sha256=4JoE_xWlxHmn9C0xPM7eKBu8jhQ8kbZINrHvDkXEC8w,14784072
20
+ maa/bin/libMaaDbgControlUnit.so,sha256=d7PN9g865qtb7fOmVoUlEZHwjvzk-aOh3kisiuSEHDM,4437408
21
+ maa/bin/libMaaFramework.so,sha256=rNy-X72yPD5Cb0JJyUbG5BizKTsy7F5jNyKanhVZyOM,41625632
22
+ maa/bin/libMaaToolkit.so,sha256=8ZxKCwhWDHx7tHVi3YpNmfINACU5Mb4gDFIPzOedtdM,14515440
23
+ maa/bin/libMaaUtils.so,sha256=oOneda1I67HCkaTmNrEyJPcPbgeRRUXEBq4WPxrjxHM,6323992
24
24
  maa/bin/libfastdeploy_ppocr.so,sha256=ZC3P75Pme8zo6jZ69CTXF3CbD93oVQdVl_awgjYsJqo,6722040
25
25
  maa/bin/libonnxruntime.so.1,sha256=fNYTPb_6EfFcO9F0BFAPzbRoVn5LXNnwIZ02uToi4ns,22362896
26
26
  maa/bin/libopencv_world4.so.408,sha256=wxNzqg0Pk6cJdVHNWzYhsLNs7h3hORzaAQ-YTOVVwM4,21684224
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=ElIck4UKS1gfqi_USxboIISULsrnySUDnW4muwHK3us,104
30
- maafw-4.1.2.dist-info/RECORD,,
27
+ maafw-4.2.0b1.dist-info/licenses/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
28
+ maafw-4.2.0b1.dist-info/METADATA,sha256=xjFgpCZkKoSimBS3OZL9XWm53uI6Q0Zh9rMUTfEr4ag,21233
29
+ maafw-4.2.0b1.dist-info/WHEEL,sha256=ElIck4UKS1gfqi_USxboIISULsrnySUDnW4muwHK3us,104
30
+ maafw-4.2.0b1.dist-info/RECORD,,
File without changes