ryry-cli 4.25__tar.gz → 4.27__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 (33) hide show
  1. {ryry_cli-4.25/ryry_cli.egg-info → ryry_cli-4.27}/PKG-INFO +2 -1
  2. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/constant.py +2 -2
  3. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/daemon_manager.py +0 -12
  4. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/proxy_manager.py +1 -1
  5. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/store.py +1 -1
  6. {ryry_cli-4.25 → ryry_cli-4.27/ryry_cli.egg-info}/PKG-INFO +2 -1
  7. {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/SOURCES.txt +0 -1
  8. {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/requires.txt +1 -0
  9. {ryry_cli-4.25 → ryry_cli-4.27}/setup.py +3 -2
  10. ryry_cli-4.25/ryry/test_proxy.py +0 -1
  11. {ryry_cli-4.25 → ryry_cli-4.27}/LICENSE +0 -0
  12. {ryry_cli-4.25 → ryry_cli-4.27}/README.md +0 -0
  13. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/__init__.py +0 -0
  14. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/daemon_base.py +0 -0
  15. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/main.py +0 -0
  16. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/ryry_server_socket.py +0 -0
  17. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/ryry_service.py +0 -0
  18. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/ryry_webapi.py +0 -0
  19. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/ryry_widget.py +0 -0
  20. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/script_template/__init__.py +0 -0
  21. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/script_template/daemon.py +0 -0
  22. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/script_template/main.py +0 -0
  23. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/script_template/run.py +0 -0
  24. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/server_func.py +0 -0
  25. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/shared_memory.py +0 -0
  26. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/task.py +0 -0
  27. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/taskUtils.py +0 -0
  28. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/upload.py +0 -0
  29. {ryry_cli-4.25 → ryry_cli-4.27}/ryry/utils.py +0 -0
  30. {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/dependency_links.txt +0 -0
  31. {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/entry_points.txt +0 -0
  32. {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/top_level.txt +0 -0
  33. {ryry_cli-4.25 → ryry_cli-4.27}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 4.25
3
+ Version: 4.27
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -23,6 +23,7 @@ Requires-Dist: gputil
23
23
  Requires-Dist: urlparser
24
24
  Requires-Dist: urllib3
25
25
  Requires-Dist: portalocker
26
+ Requires-Dist: PyYAML
26
27
  Provides-Extra: with-mecord
27
28
  Requires-Dist: mecord-cli>=0.7.405; extra == "with-mecord"
28
29
 
@@ -1,6 +1,6 @@
1
1
  #!!!!! do not change this file !!!!!
2
- app_version="4.25"
3
- app_bulld_anchor="Noh_2025-07-29 15:39:39.681916"
2
+ app_version="4.27"
3
+ app_bulld_anchor="Noh_2025-07-29 16:03:03.738626"
4
4
  app_name="ryry-cli"
5
5
  import sys, os
6
6
  if getattr(sys, 'frozen', False):
@@ -255,7 +255,6 @@ class DaemonManager:
255
255
  daemon_info["accept_tasks"] = ready_info.get("accept_tasks", False)
256
256
  config[widget_id] = daemon_info
257
257
  self._write_daemon_config(config)
258
- taskUtils.taskPrint(None, f"Daemon {widget_id} 就绪信号已收到")
259
258
  break
260
259
  except Exception as e:
261
260
  taskUtils.taskPrint(None, f"读取就绪信号文件失败: {e}")
@@ -368,14 +367,11 @@ class DaemonManager:
368
367
  daemon_info = config.get(widget_id, {})
369
368
 
370
369
  if not daemon_info:
371
- taskUtils.taskPrint(None, f"Daemon {widget_id} 无配置信息")
372
370
  return {"running": False, "ready": False, "accept_tasks": False}
373
371
 
374
372
  pid = daemon_info.get("pid", 0)
375
373
  running = daemon_info.get("running", False) and self._is_process_alive(pid)
376
374
 
377
- taskUtils.taskPrint(None, f"Daemon {widget_id} 状态检查: PID={pid}, config_running={daemon_info.get('running', False)}, process_alive={self._is_process_alive(pid)}, final_running={running}")
378
-
379
375
  # 如果进程还活着,检查是否有停止信号文件
380
376
  if running:
381
377
  stop_file = os.path.join(constant.base_path, f"daemon_stopped_{widget_id}.json")
@@ -427,8 +423,6 @@ class DaemonManager:
427
423
  """同步daemon状态与widgetMap,自动关闭不需要的daemon,启动需要的新daemon"""
428
424
  config = self._read_daemon_config()
429
425
  widget_map = store.widgetMap()
430
-
431
- taskUtils.taskPrint(None, f"开始同步daemon状态,当前配置: {list(config.keys())}")
432
426
 
433
427
  # 0. 首先检查所有已死亡的daemon进程并清理
434
428
  dead_daemons = []
@@ -437,8 +431,6 @@ class DaemonManager:
437
431
  pid = daemon_info.get("pid", 0)
438
432
  # 检查进程是否还活着
439
433
  is_alive = self._is_process_alive(pid)
440
- taskUtils.taskPrint(None, f"检查daemon {widget_id} (PID: {pid}): {'活着' if is_alive else '死亡'}")
441
-
442
434
  if not is_alive:
443
435
  dead_daemons.append(widget_id)
444
436
  taskUtils.taskPrint(None, f"Found dead daemon {widget_id} with PID {pid}")
@@ -503,8 +495,6 @@ class DaemonManager:
503
495
  status = self.get_daemon_status(widget_id)
504
496
  daemon_info = config.get(widget_id)
505
497
 
506
- taskUtils.taskPrint(None, f"检查widget {widget_id}: status={status.get('running', False)}, daemon_info={daemon_info.get('running', False) if daemon_info else 'None'}")
507
-
508
498
  # 检查是否需要启动
509
499
  need_start = False
510
500
  reason = ""
@@ -519,8 +509,6 @@ class DaemonManager:
519
509
  if need_start:
520
510
  taskUtils.taskPrint(None, f"Starting daemon {widget_id}: {reason}")
521
511
  self.start_daemon(widget_id, widget_info)
522
- else:
523
- taskUtils.taskPrint(None, f"Daemon {widget_id} 无需启动")
524
512
 
525
513
  # 建议在start_all_daemons后调用一次同步
526
514
  def start_all_daemons(self):
@@ -18,7 +18,7 @@ class ProxyManager:
18
18
  """代理管理器,用于管理clashcore代理"""
19
19
 
20
20
  def __init__(self, config_path: Optional[str] = None):
21
- pass
21
+ return
22
22
  self.config_path = config_path or self._get_default_config_path()
23
23
  self.clash_process = None
24
24
  self.proxy_enabled = False
@@ -155,7 +155,7 @@ def extend():
155
155
  _genExtend()
156
156
  elif read_data["extend"].get("device_id", "") != read_data.get("deviceInfo", {}).get("device_id", ""):
157
157
  _genExtend()
158
- elif read_data["extend"].get("app", "") == "ryry-cli 4.25":
158
+ elif read_data["extend"].get("app", "") == "ryry-cli 4.27":
159
159
  _genExtend()
160
160
  else:
161
161
  _genExtend()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 4.25
3
+ Version: 4.27
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -23,6 +23,7 @@ Requires-Dist: gputil
23
23
  Requires-Dist: urlparser
24
24
  Requires-Dist: urllib3
25
25
  Requires-Dist: portalocker
26
+ Requires-Dist: PyYAML
26
27
  Provides-Extra: with-mecord
27
28
  Requires-Dist: mecord-cli>=0.7.405; extra == "with-mecord"
28
29
 
@@ -16,7 +16,6 @@ ryry/shared_memory.py
16
16
  ryry/store.py
17
17
  ryry/task.py
18
18
  ryry/taskUtils.py
19
- ryry/test_proxy.py
20
19
  ryry/upload.py
21
20
  ryry/utils.py
22
21
  ryry/script_template/__init__.py
@@ -10,6 +10,7 @@ gputil
10
10
  urlparser
11
11
  urllib3
12
12
  portalocker
13
+ PyYAML
13
14
 
14
15
  [with_mecord]
15
16
  mecord-cli>=0.7.405
@@ -3,7 +3,7 @@ import os
3
3
  import subprocess
4
4
  import datetime
5
5
 
6
- ryry_version = "4.25"
6
+ ryry_version = "4.27"
7
7
  cur_dir = os.path.dirname(os.path.abspath(__file__))
8
8
  constanspy = os.path.join(cur_dir, "ryry", "constant.py")
9
9
  try:
@@ -69,7 +69,8 @@ setuptools.setup(
69
69
  'gputil',
70
70
  'urlparser',
71
71
  'urllib3',
72
- 'portalocker'
72
+ 'portalocker',
73
+ 'PyYAML'
73
74
  ],
74
75
  extras_require={
75
76
  'with_mecord': ['mecord-cli>=0.7.405'],
@@ -1 +0,0 @@
1
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes