yuehua-ziniao-webdriver 0.1.1__py3-none-any.whl → 0.1.3__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.
- yuehua_ziniao_webdriver/__init__.py +1 -1
- yuehua_ziniao_webdriver/client.py +1 -1
- yuehua_ziniao_webdriver/process.py +1 -17
- {yuehua_ziniao_webdriver-0.1.1.dist-info → yuehua_ziniao_webdriver-0.1.3.dist-info}/METADATA +1 -1
- {yuehua_ziniao_webdriver-0.1.1.dist-info → yuehua_ziniao_webdriver-0.1.3.dist-info}/RECORD +8 -8
- {yuehua_ziniao_webdriver-0.1.1.dist-info → yuehua_ziniao_webdriver-0.1.3.dist-info}/WHEEL +0 -0
- {yuehua_ziniao_webdriver-0.1.1.dist-info → yuehua_ziniao_webdriver-0.1.3.dist-info}/licenses/LICENSE +0 -0
- {yuehua_ziniao_webdriver-0.1.1.dist-info → yuehua_ziniao_webdriver-0.1.3.dist-info}/top_level.txt +0 -0
|
@@ -45,31 +45,15 @@ class ProcessManager:
|
|
|
45
45
|
f"socket_port={socket_port}, version={version}"
|
|
46
46
|
)
|
|
47
47
|
|
|
48
|
-
def kill_existing_process(self
|
|
48
|
+
def kill_existing_process(self) -> bool:
|
|
49
49
|
"""关闭已存在的紫鸟客户端进程
|
|
50
50
|
|
|
51
|
-
Args:
|
|
52
|
-
force: 是否强制关闭(不询问用户),默认 True
|
|
53
|
-
|
|
54
51
|
Returns:
|
|
55
52
|
bool: 成功关闭返回 True,用户取消返回 False
|
|
56
53
|
|
|
57
54
|
Raises:
|
|
58
55
|
ProcessError: 进程关闭失败
|
|
59
56
|
"""
|
|
60
|
-
# 确认是否继续
|
|
61
|
-
if not force:
|
|
62
|
-
try:
|
|
63
|
-
confirmation = input(
|
|
64
|
-
"在启动之前,需要先关闭紫鸟浏览器的主进程,"
|
|
65
|
-
"确定要终止进程吗?(y/n): "
|
|
66
|
-
)
|
|
67
|
-
if confirmation.lower() != 'y':
|
|
68
|
-
logger.info("用户取消关闭进程")
|
|
69
|
-
return False
|
|
70
|
-
except (EOFError, KeyboardInterrupt):
|
|
71
|
-
logger.info("用户取消关闭进程")
|
|
72
|
-
return False
|
|
73
57
|
|
|
74
58
|
try:
|
|
75
59
|
if is_windows():
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
yuehua_ziniao_webdriver/__init__.py,sha256=
|
|
1
|
+
yuehua_ziniao_webdriver/__init__.py,sha256=i6_jNmZxn_bR_jleS4IhGIQgW1DDSanJGWNA_52DCSU,3757
|
|
2
2
|
yuehua_ziniao_webdriver/browser.py,sha256=DzXw86FkyletLkyS9cLHw0znJ4RuTpNqdAB50VG6M5w,7774
|
|
3
|
-
yuehua_ziniao_webdriver/client.py,sha256=
|
|
3
|
+
yuehua_ziniao_webdriver/client.py,sha256=MbIx5Du3HZDuNqhL5vlObX4Z4oMSqSD5yFmVfbjsAa0,12911
|
|
4
4
|
yuehua_ziniao_webdriver/config.py,sha256=BDR2ow1-a64mEkhMZPFe5yFhNHwMD4xA96LOL_4F0jg,8760
|
|
5
5
|
yuehua_ziniao_webdriver/exceptions.py,sha256=VrjDtSGaLM0SzCJZsscWzoa3b7rrBdzTLvAOGoq2rp0,5943
|
|
6
6
|
yuehua_ziniao_webdriver/http_client.py,sha256=jYCU29G4B2bof6KunsnUcf04ZBBkNKTt3jFBKfgDPBM,7476
|
|
7
|
-
yuehua_ziniao_webdriver/process.py,sha256=
|
|
7
|
+
yuehua_ziniao_webdriver/process.py,sha256=jfbzJuI6DogQO24TmbjMPfFpIKMhFBkEpu8JMsnzsMk,7847
|
|
8
8
|
yuehua_ziniao_webdriver/store.py,sha256=MIuprMov9Byw7f_ZIbQbqYt7u6PEY6M6uGOmRlFZkZ4,13983
|
|
9
9
|
yuehua_ziniao_webdriver/types.py,sha256=CsoTY8U7tp9g8dietiVSqMng9gcAVn3hBJD1U-Y2rzc,5429
|
|
10
10
|
yuehua_ziniao_webdriver/utils.py,sha256=Zh3vx66RK-eYizSouNjz7__L5LeYuBGGbEWAk71evHs,8601
|
|
11
|
-
yuehua_ziniao_webdriver-0.1.
|
|
12
|
-
yuehua_ziniao_webdriver-0.1.
|
|
13
|
-
yuehua_ziniao_webdriver-0.1.
|
|
14
|
-
yuehua_ziniao_webdriver-0.1.
|
|
15
|
-
yuehua_ziniao_webdriver-0.1.
|
|
11
|
+
yuehua_ziniao_webdriver-0.1.3.dist-info/licenses/LICENSE,sha256=24xAK38EuYb8_sQtFg8i22yGRjjY6Gb_4zO1XF3ix5A,1063
|
|
12
|
+
yuehua_ziniao_webdriver-0.1.3.dist-info/METADATA,sha256=0g9mjjifmPQeJgJRBBy5-etXfvGv3AEpnXJEwStFjTI,11556
|
|
13
|
+
yuehua_ziniao_webdriver-0.1.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
14
|
+
yuehua_ziniao_webdriver-0.1.3.dist-info/top_level.txt,sha256=bzRolXKa_ludi3DHGrMzEt_9WZZQCqlRmAt9sKHHTTY,24
|
|
15
|
+
yuehua_ziniao_webdriver-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
{yuehua_ziniao_webdriver-0.1.1.dist-info → yuehua_ziniao_webdriver-0.1.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{yuehua_ziniao_webdriver-0.1.1.dist-info → yuehua_ziniao_webdriver-0.1.3.dist-info}/top_level.txt
RENAMED
|
File without changes
|