autoxkit 2.0.0__tar.gz → 2.0.1__tar.gz

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.
Files changed (34) hide show
  1. {autoxkit-2.0.0 → autoxkit-2.0.1}/PKG-INFO +1 -1
  2. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/android/adb.py +10 -0
  3. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit.egg-info/PKG-INFO +1 -1
  4. {autoxkit-2.0.0 → autoxkit-2.0.1}/pyproject.toml +1 -1
  5. {autoxkit-2.0.0 → autoxkit-2.0.1}/LICENSE.txt +0 -0
  6. {autoxkit-2.0.0 → autoxkit-2.0.1}/README.md +0 -0
  7. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/__init__.py +0 -0
  8. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/android/__init__.py +0 -0
  9. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/android/binary.py +0 -0
  10. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/android/client.py +0 -0
  11. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/android/control.py +0 -0
  12. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/android/models.py +0 -0
  13. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/android/streams.py +0 -0
  14. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/constants.py +0 -0
  15. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/hook/__init__.py +0 -0
  16. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/hook/event.py +0 -0
  17. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/hook/hook_listener.py +0 -0
  18. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/hook/hotkey_listener.py +0 -0
  19. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/match/__init__.py +0 -0
  20. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/match/match.py +0 -0
  21. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/mousekey/__init__.py +0 -0
  22. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/mousekey/input.py +0 -0
  23. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/mousekey/keyboard.py +0 -0
  24. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/mousekey/mouse.py +0 -0
  25. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/utils.py +0 -0
  26. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/window/__init__.py +0 -0
  27. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/window/window.py +0 -0
  28. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/window/window_action.py +0 -0
  29. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit/window/window_match.py +0 -0
  30. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit.egg-info/SOURCES.txt +0 -0
  31. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit.egg-info/dependency_links.txt +0 -0
  32. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit.egg-info/requires.txt +0 -0
  33. {autoxkit-2.0.0 → autoxkit-2.0.1}/autoxkit.egg-info/top_level.txt +0 -0
  34. {autoxkit-2.0.0 → autoxkit-2.0.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: autoxkit
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Python library for Windows automation and Android device screen casting and control
5
5
  Author-email: YorickFin <1582456060@qq.com>
6
6
  License: GPL-3.0-or-later
@@ -3,10 +3,17 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import asyncio
6
+ import os
6
7
  import re
8
+ import subprocess
7
9
  from dataclasses import dataclass
8
10
  from pathlib import Path
9
11
 
12
+ if os.name == "nt":
13
+ _CREATE_NO_WINDOW = subprocess.CREATE_NO_WINDOW
14
+ else:
15
+ _CREATE_NO_WINDOW = 0
16
+
10
17
 
11
18
  class AdbError(RuntimeError):
12
19
  pass
@@ -66,6 +73,7 @@ class AdbServerLauncher:
66
73
  "devices", "-l",
67
74
  stdout=asyncio.subprocess.PIPE,
68
75
  stderr=asyncio.subprocess.PIPE,
76
+ creationflags=_CREATE_NO_WINDOW,
69
77
  )
70
78
  stdout, _ = await proc.communicate()
71
79
  out = stdout.decode(errors="replace")
@@ -149,6 +157,7 @@ class AdbServerLauncher:
149
157
  *args,
150
158
  stdout=asyncio.subprocess.PIPE,
151
159
  stderr=asyncio.subprocess.PIPE,
160
+ creationflags=_CREATE_NO_WINDOW,
152
161
  )
153
162
 
154
163
  async def _adb(self, *args: str, check: bool = True) -> asyncio.subprocess.Process:
@@ -173,6 +182,7 @@ class AdbServerLauncher:
173
182
  *args,
174
183
  stdout=asyncio.subprocess.PIPE,
175
184
  stderr=asyncio.subprocess.PIPE,
185
+ creationflags=_CREATE_NO_WINDOW,
176
186
  )
177
187
  stdout, stderr = await proc.communicate()
178
188
  out = stdout.decode(errors="replace").strip()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: autoxkit
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Python library for Windows automation and Android device screen casting and control
5
5
  Author-email: YorickFin <1582456060@qq.com>
6
6
  License: GPL-3.0-or-later
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "autoxkit"
7
- version = "2.0.0"
7
+ version = "2.0.1"
8
8
  description = "Python library for Windows automation and Android device screen casting and control"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes