ryry-cli 2.42__tar.gz → 2.44__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 (28) hide show
  1. {ryry_cli-2.42 → ryry_cli-2.44}/PKG-INFO +1 -1
  2. ryry_cli-2.44/ryry/constant.py +5 -0
  3. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/ryry_widget.py +1 -2
  4. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/server_func.py +5 -4
  5. {ryry_cli-2.42 → ryry_cli-2.44}/ryry_cli.egg-info/PKG-INFO +1 -1
  6. {ryry_cli-2.42 → ryry_cli-2.44}/setup.py +1 -1
  7. ryry_cli-2.42/ryry/constant.py +0 -5
  8. {ryry_cli-2.42 → ryry_cli-2.44}/LICENSE +0 -0
  9. {ryry_cli-2.42 → ryry_cli-2.44}/README.md +0 -0
  10. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/__init__.py +0 -0
  11. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/main.py +0 -0
  12. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/ryry_server_socket.py +0 -0
  13. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/ryry_service.py +0 -0
  14. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/ryry_webapi.py +0 -0
  15. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/script_template/__init__.py +0 -0
  16. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/script_template/main.py +0 -0
  17. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/script_template/run.py +0 -0
  18. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/store.py +0 -0
  19. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/task.py +0 -0
  20. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/taskUtils.py +0 -0
  21. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/upload.py +0 -0
  22. {ryry_cli-2.42 → ryry_cli-2.44}/ryry/utils.py +0 -0
  23. {ryry_cli-2.42 → ryry_cli-2.44}/ryry_cli.egg-info/SOURCES.txt +0 -0
  24. {ryry_cli-2.42 → ryry_cli-2.44}/ryry_cli.egg-info/dependency_links.txt +0 -0
  25. {ryry_cli-2.42 → ryry_cli-2.44}/ryry_cli.egg-info/entry_points.txt +0 -0
  26. {ryry_cli-2.42 → ryry_cli-2.44}/ryry_cli.egg-info/requires.txt +0 -0
  27. {ryry_cli-2.42 → ryry_cli-2.44}/ryry_cli.egg-info/top_level.txt +0 -0
  28. {ryry_cli-2.42 → ryry_cli-2.44}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.42
3
+ Version: 2.44
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -0,0 +1,5 @@
1
+ #!!!!! do not change this file !!!!!
2
+ app_version="2.44"
3
+ app_bulld_number=244
4
+ app_bulld_anchor="Noh_2024-08-29 18:59:29.332549"
5
+ app_name="ryry-cli"
@@ -168,9 +168,8 @@ def addWidgetToEnv(root, mute=False):
168
168
  version = package.version
169
169
  root = os.path.join(package.location, name.replace("-", "_"))
170
170
  except:
171
- root = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), root.replace("-", "_"))
172
171
  pass
173
- print(root)
172
+
174
173
  if CheckWidgetDataInPath(root) == False:
175
174
  return
176
175
  data = GetWidgetConfig(root)
@@ -23,7 +23,7 @@ class TaskThread(Thread):
23
23
  params = False
24
24
  idx = 0
25
25
  call_back = None
26
- def __init__(self, idx, total, func, params, callback):
26
+ def __init__(self, idx, total, func, params, callback, timeout=3600):
27
27
  super().__init__()
28
28
  self.idx = idx
29
29
  self.total = total
@@ -32,6 +32,7 @@ class TaskThread(Thread):
32
32
  self.checking = False
33
33
  self.checkCount = 0
34
34
  self.params = params
35
+ self.timeout = timeout
35
36
  self.call_back = callback
36
37
  if self.call_back == None:
37
38
  raise Exception("need callback function")
@@ -45,7 +46,7 @@ class TaskThread(Thread):
45
46
  if cmd:
46
47
  self.checkUUID = "local_" + ''.join(str(uuid.uuid4()).split('-'))
47
48
  self.params["task_id"] = self.checkUUID
48
- executeSuccess, result_obj = task.executeLocalPython(self.checkUUID, cmd, self.params)
49
+ executeSuccess, result_obj = task.executeLocalPython(self.checkUUID, cmd, self.params, self.timeout)
49
50
  if executeSuccess and result_obj["status"] == 0:
50
51
  self.call_back(self.idx, result_obj["result"])
51
52
  return
@@ -79,7 +80,7 @@ class Task:
79
80
  urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
80
81
  thread_data = {}
81
82
 
82
- def __init__(self, func: str, multi_params: list[dict], fromUUID=""):
83
+ def __init__(self, func: str, multi_params: list[dict], fromUUID="", timeout=3600):
83
84
  self.thread_data = {}
84
85
 
85
86
  realTaskUUID = fromUUID
@@ -98,7 +99,7 @@ class Task:
98
99
  param["fromUUID"] = realTaskUUID
99
100
  param["domain"] = domain
100
101
  self.thread_data[str(idx)] = {
101
- "thread" : TaskThread(idx, len(multi_params), func, param, _callback),
102
+ "thread" : TaskThread(idx, len(multi_params), func, param, _callback, timeout),
102
103
  "result" : None
103
104
  }
104
105
  idx+=1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.42
3
+ Version: 2.44
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 = "2.42"
6
+ ryry_version = "2.44"
7
7
  ryry_build_number = int(ryry_version.replace(".",""))
8
8
  cur_dir = os.path.dirname(os.path.abspath(__file__))
9
9
  constanspy = os.path.join(cur_dir, "ryry", "constant.py")
@@ -1,5 +0,0 @@
1
- #!!!!! do not change this file !!!!!
2
- app_version="2.42"
3
- app_bulld_number=242
4
- app_bulld_anchor="Noh_2024-08-26 21:56:46.961109"
5
- app_name="ryry-cli"
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