kotonebot 0.5.0__py3-none-any.whl → 0.7.0__py3-none-any.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.
- kotonebot/__init__.py +39 -39
- kotonebot/backend/bot.py +312 -312
- kotonebot/backend/color.py +525 -525
- kotonebot/backend/context/__init__.py +3 -3
- kotonebot/backend/context/context.py +1002 -1002
- kotonebot/backend/context/task_action.py +183 -183
- kotonebot/backend/core.py +86 -129
- kotonebot/backend/debug/entry.py +89 -89
- kotonebot/backend/debug/mock.py +78 -78
- kotonebot/backend/debug/server.py +222 -222
- kotonebot/backend/debug/vars.py +351 -351
- kotonebot/backend/dispatch.py +227 -227
- kotonebot/backend/flow_controller.py +196 -196
- kotonebot/backend/image.py +36 -5
- kotonebot/backend/loop.py +222 -208
- kotonebot/backend/ocr.py +535 -535
- kotonebot/backend/preprocessor.py +103 -103
- kotonebot/client/__init__.py +9 -9
- kotonebot/client/device.py +369 -529
- kotonebot/client/fast_screenshot.py +377 -377
- kotonebot/client/host/__init__.py +43 -43
- kotonebot/client/host/adb_common.py +101 -107
- kotonebot/client/host/custom.py +118 -118
- kotonebot/client/host/leidian_host.py +196 -196
- kotonebot/client/host/mumu12_host.py +353 -353
- kotonebot/client/host/protocol.py +214 -214
- kotonebot/client/host/windows_common.py +73 -58
- kotonebot/client/implements/__init__.py +65 -70
- kotonebot/client/implements/adb.py +89 -89
- kotonebot/client/implements/nemu_ipc/__init__.py +11 -11
- kotonebot/client/implements/nemu_ipc/external_renderer_ipc.py +284 -284
- kotonebot/client/implements/nemu_ipc/nemu_ipc.py +327 -327
- kotonebot/client/implements/remote_windows.py +188 -188
- kotonebot/client/implements/uiautomator2.py +85 -85
- kotonebot/client/implements/windows/__init__.py +1 -0
- kotonebot/client/implements/windows/print_window.py +133 -0
- kotonebot/client/implements/windows/send_message.py +324 -0
- kotonebot/client/implements/{windows.py → windows/windows.py} +175 -176
- kotonebot/client/protocol.py +69 -69
- kotonebot/client/registration.py +24 -24
- kotonebot/client/scaler.py +467 -0
- kotonebot/config/base_config.py +103 -96
- kotonebot/config/config.py +61 -0
- kotonebot/config/manager.py +36 -36
- kotonebot/core/__init__.py +13 -0
- kotonebot/core/entities/base.py +182 -0
- kotonebot/core/entities/compound.py +75 -0
- kotonebot/core/entities/ocr.py +117 -0
- kotonebot/core/entities/template_match.py +198 -0
- kotonebot/devtools/__init__.py +42 -0
- kotonebot/devtools/cli/__init__.py +6 -0
- kotonebot/devtools/cli/main.py +53 -0
- kotonebot/{tools → devtools}/mirror.py +354 -354
- kotonebot/devtools/project/project.py +41 -0
- kotonebot/devtools/project/scanner.py +202 -0
- kotonebot/devtools/project/schema.py +99 -0
- kotonebot/devtools/resgen/__init__.py +42 -0
- kotonebot/devtools/resgen/codegen.py +331 -0
- kotonebot/devtools/resgen/core.py +94 -0
- kotonebot/devtools/resgen/parsers.py +360 -0
- kotonebot/devtools/resgen/utils.py +158 -0
- kotonebot/devtools/resgen/validation.py +115 -0
- kotonebot/devtools/web/dist/assets/bootstrap-icons-BOrJxbIo.woff +0 -0
- kotonebot/devtools/web/dist/assets/bootstrap-icons-BtvjY1KL.woff2 +0 -0
- kotonebot/devtools/web/dist/assets/ext-language_tools-CD021WJ2.js +2577 -0
- kotonebot/devtools/web/dist/assets/index-B_m5f2LF.js +2836 -0
- kotonebot/devtools/web/dist/assets/index-BlEDyGGa.css +9 -0
- kotonebot/devtools/web/dist/assets/language-client-C9muzqaq.js +128 -0
- kotonebot/devtools/web/dist/assets/mode-python-CtHp76XS.js +476 -0
- kotonebot/devtools/web/dist/icons/symbol-class.svg +3 -0
- kotonebot/devtools/web/dist/icons/symbol-file.svg +3 -0
- kotonebot/devtools/web/dist/icons/symbol-method.svg +3 -0
- kotonebot/devtools/web/dist/index.html +25 -0
- kotonebot/devtools/web/server/__init__.py +0 -0
- kotonebot/devtools/web/server/rest_api.py +217 -0
- kotonebot/devtools/web/server/server.py +85 -0
- kotonebot/errors.py +76 -76
- kotonebot/interop/win/__init__.py +13 -9
- kotonebot/interop/win/_mouse.py +310 -310
- kotonebot/interop/win/message_box.py +313 -313
- kotonebot/interop/win/reg.py +37 -37
- kotonebot/interop/win/shake_mouse.py +224 -0
- kotonebot/interop/win/shortcut.py +43 -43
- kotonebot/interop/win/task_dialog.py +513 -513
- kotonebot/interop/win/window.py +89 -0
- kotonebot/logging/__init__.py +2 -2
- kotonebot/logging/log.py +17 -17
- kotonebot/primitives/__init__.py +19 -17
- kotonebot/primitives/geometry.py +1067 -862
- kotonebot/primitives/visual.py +143 -63
- kotonebot/ui/file_host/sensio.py +36 -36
- kotonebot/ui/file_host/tmp_send.py +54 -54
- kotonebot/ui/pushkit/__init__.py +3 -3
- kotonebot/ui/pushkit/image_host.py +88 -88
- kotonebot/ui/pushkit/protocol.py +13 -13
- kotonebot/ui/pushkit/wxpusher.py +54 -54
- kotonebot/ui/user.py +148 -148
- kotonebot/util.py +436 -436
- {kotonebot-0.5.0.dist-info → kotonebot-0.7.0.dist-info}/METADATA +84 -82
- kotonebot-0.7.0.dist-info/RECORD +109 -0
- {kotonebot-0.5.0.dist-info → kotonebot-0.7.0.dist-info}/WHEEL +1 -1
- kotonebot-0.7.0.dist-info/entry_points.txt +2 -0
- {kotonebot-0.5.0.dist-info → kotonebot-0.7.0.dist-info}/licenses/LICENSE +673 -673
- kotonebot/client/implements/adb_raw.py +0 -163
- kotonebot-0.5.0.dist-info/RECORD +0 -71
- /kotonebot/{tools → devtools/project}/__init__.py +0 -0
- {kotonebot-0.5.0.dist-info → kotonebot-0.7.0.dist-info}/top_level.txt +0 -0
kotonebot/__init__.py
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
from .backend.context import (
|
|
2
|
-
ContextOcr,
|
|
3
|
-
ContextImage,
|
|
4
|
-
ContextDebug,
|
|
5
|
-
ContextColor,
|
|
6
|
-
device,
|
|
7
|
-
ocr,
|
|
8
|
-
image,
|
|
9
|
-
debug,
|
|
10
|
-
color,
|
|
11
|
-
config,
|
|
12
|
-
rect_expand,
|
|
13
|
-
sleep,
|
|
14
|
-
task,
|
|
15
|
-
action,
|
|
16
|
-
use_screenshot,
|
|
17
|
-
wait
|
|
18
|
-
)
|
|
19
|
-
from .util import (
|
|
20
|
-
cropped,
|
|
21
|
-
AdaptiveWait,
|
|
22
|
-
Countdown,
|
|
23
|
-
Interval,
|
|
24
|
-
until,
|
|
25
|
-
)
|
|
26
|
-
from .backend.color import (
|
|
27
|
-
hsv_cv2web,
|
|
28
|
-
hsv_web2cv,
|
|
29
|
-
rgb_to_hsv,
|
|
30
|
-
hsv_to_rgb
|
|
31
|
-
)
|
|
32
|
-
from .backend.ocr import (
|
|
33
|
-
fuzz,
|
|
34
|
-
regex,
|
|
35
|
-
contains,
|
|
36
|
-
equals,
|
|
37
|
-
)
|
|
38
|
-
from .backend.bot import KotoneBot
|
|
39
|
-
from .backend.loop import Loop
|
|
1
|
+
from .backend.context import (
|
|
2
|
+
ContextOcr,
|
|
3
|
+
ContextImage,
|
|
4
|
+
ContextDebug,
|
|
5
|
+
ContextColor,
|
|
6
|
+
device,
|
|
7
|
+
ocr,
|
|
8
|
+
image,
|
|
9
|
+
debug,
|
|
10
|
+
color,
|
|
11
|
+
config,
|
|
12
|
+
rect_expand,
|
|
13
|
+
sleep,
|
|
14
|
+
task,
|
|
15
|
+
action,
|
|
16
|
+
use_screenshot,
|
|
17
|
+
wait
|
|
18
|
+
)
|
|
19
|
+
from .util import (
|
|
20
|
+
cropped,
|
|
21
|
+
AdaptiveWait,
|
|
22
|
+
Countdown,
|
|
23
|
+
Interval,
|
|
24
|
+
until,
|
|
25
|
+
)
|
|
26
|
+
from .backend.color import (
|
|
27
|
+
hsv_cv2web,
|
|
28
|
+
hsv_web2cv,
|
|
29
|
+
rgb_to_hsv,
|
|
30
|
+
hsv_to_rgb
|
|
31
|
+
)
|
|
32
|
+
from .backend.ocr import (
|
|
33
|
+
fuzz,
|
|
34
|
+
regex,
|
|
35
|
+
contains,
|
|
36
|
+
equals,
|
|
37
|
+
)
|
|
38
|
+
from .backend.bot import KotoneBot
|
|
39
|
+
from .backend.loop import Loop
|
|
40
40
|
from .ui import user
|