MaaFw 2.2.2__py3-none-macosx_13_0_arm64.whl → 2.3.0a1__py3-none-macosx_13_0_arm64.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.
- {MaaFw-2.2.2.dist-info → MaaFw-2.3.0a1.dist-info}/METADATA +11 -6
- MaaFw-2.3.0a1.dist-info/RECORD +30 -0
- MaaFw-2.3.0a1.dist-info/WHEEL +4 -0
- maa/bin/MaaNode.node +0 -0
- maa/bin/libMaaAdbControlUnit.dylib +0 -0
- maa/bin/libMaaDbgControlUnit.dylib +0 -0
- maa/bin/libMaaFramework.dylib +0 -0
- maa/bin/libMaaToolkit.dylib +0 -0
- maa/bin/libMaaUtils.dylib +0 -0
- maa/bin/libc++.1.dylib +0 -0
- maa/bin/libc++abi.1.dylib +0 -0
- maa/bin/libfastdeploy_ppocr.dylib +0 -0
- maa/bin/{libonnxruntime.1.18.0.dylib → libonnxruntime.1.19.2.dylib} +0 -0
- maa/bin/libopencv_world4.4.8.0.dylib +0 -0
- maa/bin/libunwind.1.dylib +0 -0
- maa/define.py +34 -9
- maa/resource.py +44 -9
- MaaFw-2.2.2.dist-info/RECORD +0 -29
- MaaFw-2.2.2.dist-info/WHEEL +0 -4
- {MaaFw-2.2.2.dist-info → MaaFw-2.3.0a1.dist-info}/LICENSE.md +0 -0
- {MaaFw-2.2.2.dist-info → MaaFw-2.3.0a1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: MaaFw
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0a1
|
|
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
|
|
@@ -87,7 +87,7 @@ _✨ 基于图像识别的自动化黑盒测试框架 ✨_
|
|
|
87
87
|
- [maa-whmx](https://github.com/MAWHA/maa-whmx) 物华弥新 小助手  
|
|
88
88
|
基于全新架构的 物华弥新 小助手。图像技术 + 模拟控制,解放双手!由 MaaFramework 强力驱动!
|
|
89
89
|
|
|
90
|
-
- [MAA-for-Millennium-Tour](https://github.com/Ostwind23/MAA-for-Millennium-Tour) 千年之旅 小助手  
|
|
90
|
+
- [MAA-for-Millennium-Tour](https://github.com/Ostwind23/MAA-for-Millennium-Tour) 千年之旅 小助手  
|
|
91
91
|
基于全新架构的 千年之旅 小助手。图像技术 + 模拟控制,解放侍主的大手!由 MaaFramework 强力驱动!
|
|
92
92
|
|
|
93
93
|
- [MFAWPF](https://github.com/SweetSmellFox/MFAWPF) MFA 任务管理器 
|
|
@@ -104,7 +104,13 @@ _✨ 基于图像识别的自动化黑盒测试框架 ✨_
|
|
|
104
104
|
|
|
105
105
|
- [MPA](https://github.com/overflow65537/MAA_Punish) 战双 小助手 
|
|
106
106
|
基于全新架构的 战双帕弥什 小助手。图像技术 + 模拟控制,解放双手!由 玛丽的黑咖啡 2.0 强力驱动!
|
|
107
|
-
|
|
107
|
+
|
|
108
|
+
- [MaaYuan](https://github.com/syoius/MaaYuan) 代号鸢/如鸢 一键长草小助手 
|
|
109
|
+
基于全新架构的 代号鸢/如鸢 小助手。图像技术 + 模拟控制,解放双手!由 MaaFramework 强力驱动!
|
|
110
|
+
|
|
111
|
+
- [MAAGUI](https://github.com/Night-stars-1/maa-gui) MAAGUI  
|
|
112
|
+
基于全新架构的 MAA GUI。由 MaaFramework 强力驱动!
|
|
113
|
+
|
|
108
114
|
## 生态共建
|
|
109
115
|
|
|
110
116
|
MAA 正计划建设为一类项目,而非舟的单一软件。
|
|
@@ -159,9 +165,7 @@ _请留意,仅当您准备开发 MaaFramework 本身时,才需要阅读本
|
|
|
159
165
|
|
|
160
166
|
感谢以下开发者对 MaaFramework 作出的贡献:
|
|
161
167
|
|
|
162
|
-
|
|
163
|
-
<img src="https://contrib.rocks/image?repo=MaaXYZ/MaaFramework&max=1000" />
|
|
164
|
-
</a>
|
|
168
|
+
[](https://github.com/MaaXYZ/MaaFramework/graphs/contributors)
|
|
165
169
|
|
|
166
170
|
## 讨论
|
|
167
171
|
|
|
@@ -169,6 +173,7 @@ _请留意,仅当您准备开发 MaaFramework 本身时,才需要阅读本
|
|
|
169
173
|
|
|
170
174
|
## 赞助
|
|
171
175
|
|
|
176
|
+
<!-- markdownlint-disable MD045 -->
|
|
172
177
|
<a href="https://afdian.com/a/misteo">
|
|
173
178
|
<img width="200" src="https://pic1.afdiancdn.com/static/img/welcome/button-sponsorme.png">
|
|
174
179
|
</a>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
maa/__init__.py,sha256=rBIC5X_VsfFXOMJRdKjgDyO428XHgeWAT3t6ZYmqO1M,207
|
|
2
|
+
maa/buffer.py,sha256=E0tuasXPm6A_4r22PGSwObgGXb2qCMJrT5yrAvcgk6I,17424
|
|
3
|
+
maa/context.py,sha256=Y71T92tIAGq6x8bJfYX8emUPEmPUA7nhnWgqOHh390E,5722
|
|
4
|
+
maa/controller.py,sha256=VOz4Und15toq6oehHR0BHC10LMhFVqKAcImQNXCqHxQ,22547
|
|
5
|
+
maa/custom_action.py,sha256=pqPjDK7nVkGL8fceJadwb7IkeGjYc2X8RaXZOnVZXQs,2527
|
|
6
|
+
maa/custom_recognition.py,sha256=Y3Asdgb19YZioOVZZVs_hLSW6uBg7WDZDQPR2XfZpFU,3087
|
|
7
|
+
maa/define.py,sha256=uvqM04p6NLfju1Zz-EMR-8Af8MZGpEImMAt3QdcYvIA,13114
|
|
8
|
+
maa/job.py,sha256=jXGQ4YV_G8sAi-B7OmUrbPCEIf4xZjWqCSr36LT6Qt0,1153
|
|
9
|
+
maa/library.py,sha256=nDTBUFC6_91gmyy8SfkTTccMZET9XGU8IxvuVUEwQ6E,2099
|
|
10
|
+
maa/notification_handler.py,sha256=KjQlu66fNVwGGli8kuhNdSZPj2vO_oXjaNt_B1i_5wA,5251
|
|
11
|
+
maa/resource.py,sha256=74mQvWr4ZYkE2Y3g7ranbai5XEYhQdUAP7SW_U8GrgI,9512
|
|
12
|
+
maa/tasker.py,sha256=0hALFCHKHuOBQMSqyG4BYi1idJLy64UZMpqL4GQVZKs,14929
|
|
13
|
+
maa/toolkit.py,sha256=TlF8MoaGcWLklpISIlQNvc_rpTFBFrpDbLgctfQ_zqo,11325
|
|
14
|
+
maa/bin/MaaNode.node,sha256=5yRaPnEPSJApkqMWMtQPLrTUrR9jbJmNNWunLI7qDUs,1354000
|
|
15
|
+
maa/bin/libMaaAdbControlUnit.dylib,sha256=gNGtF8UH2lBxS7DTjrcheB3CUL2WFDOrEQhVTU7UsiQ,731520
|
|
16
|
+
maa/bin/libMaaDbgControlUnit.dylib,sha256=RxxqFZC_wegI2aiiJWT7OEbs4_utE0RlTrP-b4mjBrQ,364992
|
|
17
|
+
maa/bin/libMaaFramework.dylib,sha256=tW1_vALKD8-W7TcdyvRWuiVBPnY_sVzCL2d0bQbmeXs,2193792
|
|
18
|
+
maa/bin/libMaaToolkit.dylib,sha256=drW7LiEnj7OJhC1HbAqgJm-9K_5YY4kXedUMM018wM4,800128
|
|
19
|
+
maa/bin/libMaaUtils.dylib,sha256=Xfhe6zZbgkpyAc_NiuweRl6eUB_xLsj3AvboLrMFU0c,577632
|
|
20
|
+
maa/bin/libc++.1.dylib,sha256=-NjWxcCQBJL03154cPG2_COm-OVCpwF8b81TJjYf2aw,1080592
|
|
21
|
+
maa/bin/libc++abi.1.dylib,sha256=Lpwa1Kkuixz73imzeXDQ4OvpSGpsuFkXXHIvvY8pIzM,349840
|
|
22
|
+
maa/bin/libfastdeploy_ppocr.dylib,sha256=ViKwyfN6Ww7xHuRfrzqTuxX1Fns67H1BgYn7sA4aLnw,4606768
|
|
23
|
+
maa/bin/libonnxruntime.1.19.2.dylib,sha256=FzcCPn-JufK8YRRyPmKLQJ_aP43bN4fxhZoE2A9LTUo,17359936
|
|
24
|
+
maa/bin/libopencv_world4.4.8.0.dylib,sha256=mO_QXdobdCYOmXFE39YfFzxBokvrchE23Xbl30XLhNg,13211472
|
|
25
|
+
maa/bin/libunwind.1.dylib,sha256=CiUuVPISHrOccd8MA1NAK6EtyugjnDOSLqc9UbBVyso,110528
|
|
26
|
+
MaaFw-2.3.0a1.dist-info/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
|
|
27
|
+
MaaFw-2.3.0a1.dist-info/METADATA,sha256=RM5hjE8VzPetY3U4qceijcumdE0HmoXVNpV7uZ4H-K4,11027
|
|
28
|
+
MaaFw-2.3.0a1.dist-info/WHEEL,sha256=JRuoozy0O6nPA5wOTZVLh5z23ChOY7RlJvoL-ISVaP0,103
|
|
29
|
+
MaaFw-2.3.0a1.dist-info/top_level.txt,sha256=G8r2L__aYaMq4S3R70G6NsfEROiVp08kUcWvATzk2J8,4
|
|
30
|
+
MaaFw-2.3.0a1.dist-info/RECORD,,
|
maa/bin/MaaNode.node
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
maa/bin/libMaaFramework.dylib
CHANGED
|
Binary file
|
maa/bin/libMaaToolkit.dylib
CHANGED
|
Binary file
|
maa/bin/libMaaUtils.dylib
CHANGED
|
Binary file
|
maa/bin/libc++.1.dylib
CHANGED
|
Binary file
|
maa/bin/libc++abi.1.dylib
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
maa/bin/libunwind.1.dylib
CHANGED
|
Binary file
|
maa/define.py
CHANGED
|
@@ -110,15 +110,33 @@ class MaaCtrlOptionEnum:
|
|
|
110
110
|
Recording = 5
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
#
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
#
|
|
121
|
-
|
|
113
|
+
class MaaInferenceDeviceEnum:
|
|
114
|
+
CPU = -2
|
|
115
|
+
Auto = -1
|
|
116
|
+
# and more gpu id or flag...
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class MaaInferenceExecutionProviderEnum:
|
|
120
|
+
# I don't recommend setting up MaaResOption_InferenceDevice in this case,
|
|
121
|
+
# because you don't know which EP will be used on different user devices.
|
|
122
|
+
Auto = 0
|
|
123
|
+
|
|
124
|
+
# MaaResOption_InferenceDevice will not work.
|
|
125
|
+
CPU = 1
|
|
126
|
+
|
|
127
|
+
# MaaResOption_InferenceDevice will be used to set adapter id,
|
|
128
|
+
# It's from Win32 API `EnumAdapters1`.
|
|
129
|
+
DirectML = 2
|
|
130
|
+
|
|
131
|
+
# MaaResOption_InferenceDevice will be used to set coreml_flag,
|
|
132
|
+
# Reference to
|
|
133
|
+
# https://github.com/microsoft/onnxruntime/blob/main/include/onnxruntime/core/providers/coreml/coreml_provider_factory.h
|
|
134
|
+
# But you need to pay attention to the onnxruntime version we use, the latest flag may not be supported.
|
|
135
|
+
CoreML = 3
|
|
136
|
+
|
|
137
|
+
# MaaResOption_InferenceDevice will be used to set NVIDIA GPU ID
|
|
138
|
+
# TODO!
|
|
139
|
+
CUDA = 4
|
|
122
140
|
|
|
123
141
|
|
|
124
142
|
class MaaResOptionEnum:
|
|
@@ -131,6 +149,13 @@ class MaaResOptionEnum:
|
|
|
131
149
|
# default value is MaaInferenceDevice_Auto
|
|
132
150
|
InferenceDevice = 1
|
|
133
151
|
|
|
152
|
+
# Use the specified inference execution provider
|
|
153
|
+
# Please set this option before loading the model.
|
|
154
|
+
#
|
|
155
|
+
# value: MaaInferenceExecutionProvider, eg: 0; val_size: sizeof(MaaInferenceExecutionProvider)
|
|
156
|
+
# default value is MaaInferenceExecutionProvider_Auto
|
|
157
|
+
InferenceExecutionProvider = 2
|
|
158
|
+
|
|
134
159
|
|
|
135
160
|
MaaAdbScreencapMethod = ctypes.c_uint64
|
|
136
161
|
|
maa/resource.py
CHANGED
|
@@ -60,18 +60,45 @@ class Resource:
|
|
|
60
60
|
def clear(self) -> bool:
|
|
61
61
|
return bool(Library.framework.MaaResourceClear(self._handle))
|
|
62
62
|
|
|
63
|
+
def use_cpu(self) -> bool:
|
|
64
|
+
return self.set_inference(
|
|
65
|
+
MaaInferenceExecutionProviderEnum.CPU, MaaInferenceDeviceEnum.CPU
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
def use_directml(self, device_id: int = MaaInferenceDeviceEnum.Auto) -> bool:
|
|
69
|
+
return self.set_inference(MaaInferenceExecutionProviderEnum.DirectML, device_id)
|
|
70
|
+
|
|
71
|
+
def use_coreml(self, coreml_flag: int = MaaInferenceDeviceEnum.Auto) -> bool:
|
|
72
|
+
return self.set_inference(MaaInferenceExecutionProviderEnum.CoreML, coreml_flag)
|
|
73
|
+
|
|
74
|
+
def use_auto_ep(self) -> bool:
|
|
75
|
+
return self.set_inference(
|
|
76
|
+
MaaInferenceExecutionProviderEnum.Auto, MaaInferenceDeviceEnum.Auto
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
# not implemented
|
|
80
|
+
# def use_cuda(self, nvidia_gpu_id: int) -> bool:
|
|
81
|
+
# return self.set_inference(MaaInferenceExecutionProviderEnum.CUDA, nvidia_gpu_id)
|
|
82
|
+
|
|
63
83
|
def set_gpu(self, gpu_id: int) -> bool:
|
|
84
|
+
"""
|
|
85
|
+
Deprecated, please use `use_directml`, `use_coreml` or `use_cuda` instead.
|
|
86
|
+
"""
|
|
64
87
|
if gpu_id < 0:
|
|
65
88
|
return False
|
|
66
|
-
return self.
|
|
89
|
+
return self.use_directml(gpu_id)
|
|
67
90
|
|
|
68
91
|
def set_cpu(self) -> bool:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
92
|
+
"""
|
|
93
|
+
Deprecated, please use `use_cpu` instead.
|
|
94
|
+
"""
|
|
95
|
+
return self.use_cpu()
|
|
96
|
+
|
|
72
97
|
def set_auto_device(self) -> bool:
|
|
73
|
-
|
|
74
|
-
|
|
98
|
+
"""
|
|
99
|
+
Deprecated, please use `use_auto_ep` instead.
|
|
100
|
+
"""
|
|
101
|
+
return self.use_auto_ep()
|
|
75
102
|
|
|
76
103
|
def register_custom_recognition(
|
|
77
104
|
self, name: str, recognition: "CustomRecognition" # type: ignore
|
|
@@ -149,13 +176,21 @@ class Resource:
|
|
|
149
176
|
|
|
150
177
|
### private ###
|
|
151
178
|
|
|
152
|
-
def
|
|
153
|
-
|
|
179
|
+
def set_inference(self, execution_provider: int, device_id: int) -> bool:
|
|
180
|
+
cep = ctypes.c_int32(execution_provider)
|
|
181
|
+
cdevice = ctypes.c_int32(device_id)
|
|
154
182
|
return bool(
|
|
183
|
+
Library.framework.MaaResourceSetOption(
|
|
184
|
+
self._handle,
|
|
185
|
+
MaaResOptionEnum.InferenceExecutionProvider,
|
|
186
|
+
ctypes.pointer(cep),
|
|
187
|
+
ctypes.sizeof(ctypes.c_int32),
|
|
188
|
+
)
|
|
189
|
+
) and bool(
|
|
155
190
|
Library.framework.MaaResourceSetOption(
|
|
156
191
|
self._handle,
|
|
157
192
|
MaaResOptionEnum.InferenceDevice,
|
|
158
|
-
ctypes.pointer(
|
|
193
|
+
ctypes.pointer(cdevice),
|
|
159
194
|
ctypes.sizeof(ctypes.c_int32),
|
|
160
195
|
)
|
|
161
196
|
)
|
MaaFw-2.2.2.dist-info/RECORD
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
maa/__init__.py,sha256=rBIC5X_VsfFXOMJRdKjgDyO428XHgeWAT3t6ZYmqO1M,207
|
|
2
|
-
maa/buffer.py,sha256=E0tuasXPm6A_4r22PGSwObgGXb2qCMJrT5yrAvcgk6I,17424
|
|
3
|
-
maa/context.py,sha256=Y71T92tIAGq6x8bJfYX8emUPEmPUA7nhnWgqOHh390E,5722
|
|
4
|
-
maa/controller.py,sha256=VOz4Und15toq6oehHR0BHC10LMhFVqKAcImQNXCqHxQ,22547
|
|
5
|
-
maa/custom_action.py,sha256=pqPjDK7nVkGL8fceJadwb7IkeGjYc2X8RaXZOnVZXQs,2527
|
|
6
|
-
maa/custom_recognition.py,sha256=Y3Asdgb19YZioOVZZVs_hLSW6uBg7WDZDQPR2XfZpFU,3087
|
|
7
|
-
maa/define.py,sha256=klaIWvNS5DDgKo6EC330EqqWlKQ4JLCOHZ8d7Ifaoqo,12126
|
|
8
|
-
maa/job.py,sha256=jXGQ4YV_G8sAi-B7OmUrbPCEIf4xZjWqCSr36LT6Qt0,1153
|
|
9
|
-
maa/library.py,sha256=nDTBUFC6_91gmyy8SfkTTccMZET9XGU8IxvuVUEwQ6E,2099
|
|
10
|
-
maa/notification_handler.py,sha256=KjQlu66fNVwGGli8kuhNdSZPj2vO_oXjaNt_B1i_5wA,5251
|
|
11
|
-
maa/resource.py,sha256=bvS02sCCS9DRw_zJZeyCk8_DrZry6KBlUIvcfpKoUIg,8243
|
|
12
|
-
maa/tasker.py,sha256=0hALFCHKHuOBQMSqyG4BYi1idJLy64UZMpqL4GQVZKs,14929
|
|
13
|
-
maa/toolkit.py,sha256=TlF8MoaGcWLklpISIlQNvc_rpTFBFrpDbLgctfQ_zqo,11325
|
|
14
|
-
maa/bin/libMaaAdbControlUnit.dylib,sha256=n6dKb18p_tvk8qQ-Rgf8OvnA_LCXQwJPHFXs8nLOWPU,731520
|
|
15
|
-
maa/bin/libMaaDbgControlUnit.dylib,sha256=V-Wh9Aw_FyM0QqyN0nNKS5ma-o9gSrVZaWtAr7VdnMo,364992
|
|
16
|
-
maa/bin/libMaaFramework.dylib,sha256=6Xla-9vXBS_XdPRXaTCEh6UKFrcbgTwPr20XxuJVQjg,2115888
|
|
17
|
-
maa/bin/libMaaToolkit.dylib,sha256=jAH77Ag4bTckmgbqFPMtr3pCHmHobtvXDubsvi6DV7M,800128
|
|
18
|
-
maa/bin/libMaaUtils.dylib,sha256=FlvM4eQL45WNRgbH48E9FyfEWw7x_FPbQrnc13TFpCY,579184
|
|
19
|
-
maa/bin/libc++.1.dylib,sha256=i9hJhT3s99KAQ6_xwQaCiU-K0AXV3swePv233ZG9daw,1080592
|
|
20
|
-
maa/bin/libc++abi.1.dylib,sha256=OfO5-J95GLREDfg8wuvREDqxhaMX3kaPHFibk-4UDn4,349840
|
|
21
|
-
maa/bin/libfastdeploy_ppocr.dylib,sha256=c5U7kTJO7-74yPl7d3oSSHlcMgttV6BHzoLJxceOMMM,4130112
|
|
22
|
-
maa/bin/libonnxruntime.1.18.0.dylib,sha256=eQcZHTNV3jpj8cSME1VshU161EOQCR7iuz_RBS8wDlI,13560800
|
|
23
|
-
maa/bin/libopencv_world4.4.8.0.dylib,sha256=Xti9r7YjocCvntvWqqyByiJfETGPkpBI_mmnpJXw3eU,13194960
|
|
24
|
-
maa/bin/libunwind.1.dylib,sha256=E59VpXjCsFZLHK_OFBcbbcdyA5FwkCnndoTA-Sar4rs,110528
|
|
25
|
-
MaaFw-2.2.2.dist-info/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
|
|
26
|
-
MaaFw-2.2.2.dist-info/METADATA,sha256=-Jr7OovF3t1PTdM7qWd5yvWkG7pGBXz5xfJEQjW7K88,10390
|
|
27
|
-
MaaFw-2.2.2.dist-info/WHEEL,sha256=22DH9JiJbsa0Z60gDQbUQ9pPR-Aj8xfpPO5MiOX0TBQ,103
|
|
28
|
-
MaaFw-2.2.2.dist-info/top_level.txt,sha256=G8r2L__aYaMq4S3R70G6NsfEROiVp08kUcWvATzk2J8,4
|
|
29
|
-
MaaFw-2.2.2.dist-info/RECORD,,
|
MaaFw-2.2.2.dist-info/WHEEL
DELETED
|
File without changes
|
|
File without changes
|