ryry-cli 4.15__tar.gz → 4.16__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 (31) hide show
  1. {ryry_cli-4.15/ryry_cli.egg-info → ryry_cli-4.16}/PKG-INFO +1 -1
  2. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/constant.py +2 -2
  3. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/daemon_manager.py +2 -2
  4. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/main.py +7 -4
  5. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/store.py +1 -1
  6. {ryry_cli-4.15 → ryry_cli-4.16/ryry_cli.egg-info}/PKG-INFO +1 -1
  7. {ryry_cli-4.15 → ryry_cli-4.16}/setup.py +1 -1
  8. {ryry_cli-4.15 → ryry_cli-4.16}/LICENSE +0 -0
  9. {ryry_cli-4.15 → ryry_cli-4.16}/README.md +0 -0
  10. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/__init__.py +0 -0
  11. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/daemon_base.py +0 -0
  12. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/ryry_server_socket.py +0 -0
  13. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/ryry_service.py +0 -0
  14. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/ryry_webapi.py +0 -0
  15. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/ryry_widget.py +0 -0
  16. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/script_template/__init__.py +0 -0
  17. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/script_template/daemon.py +0 -0
  18. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/script_template/main.py +0 -0
  19. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/script_template/run.py +0 -0
  20. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/server_func.py +0 -0
  21. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/shared_memory.py +0 -0
  22. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/task.py +0 -0
  23. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/taskUtils.py +0 -0
  24. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/upload.py +0 -0
  25. {ryry_cli-4.15 → ryry_cli-4.16}/ryry/utils.py +0 -0
  26. {ryry_cli-4.15 → ryry_cli-4.16}/ryry_cli.egg-info/SOURCES.txt +0 -0
  27. {ryry_cli-4.15 → ryry_cli-4.16}/ryry_cli.egg-info/dependency_links.txt +0 -0
  28. {ryry_cli-4.15 → ryry_cli-4.16}/ryry_cli.egg-info/entry_points.txt +0 -0
  29. {ryry_cli-4.15 → ryry_cli-4.16}/ryry_cli.egg-info/requires.txt +0 -0
  30. {ryry_cli-4.15 → ryry_cli-4.16}/ryry_cli.egg-info/top_level.txt +0 -0
  31. {ryry_cli-4.15 → ryry_cli-4.16}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 4.15
3
+ Version: 4.16
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -1,6 +1,6 @@
1
1
  #!!!!! do not change this file !!!!!
2
- app_version="4.15"
3
- app_bulld_anchor="Noh_2025-07-22 14:52:18.517215"
2
+ app_version="4.16"
3
+ app_bulld_anchor="Noh_2025-07-22 16:42:23.102783"
4
4
  app_name="ryry-cli"
5
5
  import sys, os
6
6
  if getattr(sys, 'frozen', False):
@@ -238,8 +238,8 @@ class DaemonManager:
238
238
  return True
239
239
 
240
240
  try:
241
- # 发送停止命令
242
- response = self._send_command_to_process(widget_id, {"type": "stop"}, 600)
241
+ # 发送停止命令(最长等待1小时是否正常结束)
242
+ response = self._send_command_to_process(widget_id, {"type": "stop"}, 3600)
243
243
  if response and response.get("type") == "stop_result":
244
244
  # 等待进程结束
245
245
  start_time = time.time()
@@ -102,10 +102,10 @@ def widget_status(stdscr, idx):
102
102
  name = widget_map[it]["name"]
103
103
  version = widget_map[it].get("version", "1.0")
104
104
  max_task_number = widget_map[it].get("max_task_number", 1)
105
- timeout = widget_map[it].get("timeout", 600)
105
+ timeout = widget_map[it].get("timeout", 0)
106
106
  end_args = ""
107
107
  if is_block:
108
- end_args = "[X]"
108
+ end_args += "[X]"
109
109
 
110
110
  # 检查daemon状态
111
111
  color_pair = 0
@@ -120,11 +120,14 @@ def widget_status(stdscr, idx):
120
120
  elif daemon_manager and daemon_manager.should_start_daemon(it):
121
121
  color_pair = 2
122
122
  end_args += "[后台未运行]" # 应该启动但未运行
123
-
123
+ #检查timeout,如果没有填写不显示
124
+ if timeout > 0:
125
+ end_args += f" OOT:{timeout}s"
126
+
124
127
  max_task_number_str = ""
125
128
  if max_task_number > 0:
126
129
  max_task_number_str = f"*{max_task_number}"
127
- real_stdsrc(idx, 0, scr_str(f'{f"[{name}{max_task_number_str} v{version}] {it}{end_args} OOT:{timeout}s".ljust(maxJust)}'.ljust(ll*3-2)), curses.color_pair(color_pair))
130
+ real_stdsrc(idx, 0, scr_str(f'{f"[{name}{max_task_number_str} v{version}] {it}{end_args}".ljust(maxJust)}'.ljust(ll*3-2)), curses.color_pair(color_pair))
128
131
  idx+=1
129
132
  real_stdsrc(idx, 0, scr_str(f' PATH:{path}'.ljust(ll*3-2)))
130
133
  idx+=1
@@ -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.15":
158
+ elif read_data["extend"].get("app", "") == "ryry-cli 4.16":
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.15
3
+ Version: 4.16
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -3,7 +3,7 @@ import os
3
3
  import subprocess
4
4
  import datetime
5
5
 
6
- ryry_version = "4.15"
6
+ ryry_version = "4.16"
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:
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