ryry-cli 5.3__tar.gz → 5.4__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 (32) hide show
  1. {ryry_cli-5.3/ryry_cli.egg-info → ryry_cli-5.4}/PKG-INFO +1 -1
  2. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/constant.py +2 -2
  3. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/server_func.py +12 -3
  4. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/store.py +1 -1
  5. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/upload.py +1 -2
  6. {ryry_cli-5.3 → ryry_cli-5.4/ryry_cli.egg-info}/PKG-INFO +1 -1
  7. {ryry_cli-5.3 → ryry_cli-5.4}/setup.py +1 -1
  8. {ryry_cli-5.3 → ryry_cli-5.4}/LICENSE +0 -0
  9. {ryry_cli-5.3 → ryry_cli-5.4}/README.md +0 -0
  10. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/__init__.py +0 -0
  11. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/daemon_base.py +0 -0
  12. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/daemon_manager.py +0 -0
  13. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/main.py +0 -0
  14. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/proxy_manager.py +0 -0
  15. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/ryry_server_socket.py +0 -0
  16. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/ryry_service.py +0 -0
  17. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/ryry_webapi.py +0 -0
  18. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/ryry_widget.py +0 -0
  19. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/script_template/__init__.py +0 -0
  20. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/script_template/daemon.py +0 -0
  21. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/script_template/main.py +0 -0
  22. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/script_template/run.py +0 -0
  23. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/shared_memory.py +0 -0
  24. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/task.py +0 -0
  25. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/taskUtils.py +0 -0
  26. {ryry_cli-5.3 → ryry_cli-5.4}/ryry/utils.py +0 -0
  27. {ryry_cli-5.3 → ryry_cli-5.4}/ryry_cli.egg-info/SOURCES.txt +0 -0
  28. {ryry_cli-5.3 → ryry_cli-5.4}/ryry_cli.egg-info/dependency_links.txt +0 -0
  29. {ryry_cli-5.3 → ryry_cli-5.4}/ryry_cli.egg-info/entry_points.txt +0 -0
  30. {ryry_cli-5.3 → ryry_cli-5.4}/ryry_cli.egg-info/requires.txt +0 -0
  31. {ryry_cli-5.3 → ryry_cli-5.4}/ryry_cli.egg-info/top_level.txt +0 -0
  32. {ryry_cli-5.3 → ryry_cli-5.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 5.3
3
+ Version: 5.4
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="5.3"
3
- app_bulld_anchor="Noh_2025-09-28 18:49:54.075325"
2
+ app_version="5.4"
3
+ app_bulld_anchor="Noh_2025-09-28 22:05:40.262632"
4
4
  app_name="ryry-cli"
5
5
  import sys, os
6
6
  if getattr(sys, 'frozen', False):
@@ -1,7 +1,7 @@
1
1
  import time, urllib3, sys, os, uuid, json
2
2
  from threading import Thread, Lock
3
3
 
4
- from ryry import ryry_webapi, upload, taskUtils, task, constant
4
+ from ryry import ryry_webapi, upload, taskUtils, task, constant, ryry_service
5
5
 
6
6
  lock = Lock()
7
7
  def print_progress_bar(iteration, total, name, idx, total_bars):
@@ -43,8 +43,17 @@ class TaskThread(Thread):
43
43
  self.checkCount = 0
44
44
  wait_time_step = 5
45
45
  cmd = task.cmdWithWidgetName(self.func)
46
- if cmd:
47
- self.checkUUID = ryry_webapi.createLocalTask(self.func, self.params, self.timeout)
46
+
47
+ if cmd:
48
+ if not ryry_service.ryryService().is_running():
49
+ self.checkUUID = "local_" + ''.join(str(uuid.uuid4()).split('-'))
50
+ self.params["task_id"] = self.checkUUID
51
+ executeSuccess, result_obj = task.executeLocalPython(self.checkUUID, cmd, self.params, self.timeout)
52
+ if executeSuccess and result_obj["status"] == 0:
53
+ self.call_back(self.idx, result_obj["result"])
54
+ return
55
+ else:
56
+ self.checkUUID = ryry_webapi.createLocalTask(self.func, self.params, self.timeout)
48
57
  else:
49
58
  self.checkUUID = ryry_webapi.createTask(self.func, self.params)
50
59
  time.sleep(wait_time_step)
@@ -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 5.3":
158
+ elif read_data["extend"].get("app", "") == "ryry-cli 5.4":
159
159
  _genExtend()
160
160
  else:
161
161
  _genExtend()
@@ -345,7 +345,6 @@ FTP_REPLACEMENT = {
345
345
  "192.168.50.12": "219.136.123.179",
346
346
  "219.136.123.179": "192.168.50.12",
347
347
  "183.6.90.205": "219.136.123.179",
348
- "183.6.90.205": "192.168.50.12",
349
348
  }
350
349
 
351
350
  SUBDOMAIN = {
@@ -678,4 +677,4 @@ def downloadDir(url, saveDir, useCount=-1, autoDelete=False):
678
677
  print(f"url {url} not support")
679
678
  except Exception as e:
680
679
  print(f"downloadDir fail: {e}")
681
- return None
680
+ return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 5.3
3
+ Version: 5.4
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 = "5.3"
6
+ ryry_version = "5.4"
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
File without changes