ryry-cli 2.16__tar.gz → 2.18__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.
- {ryry_cli-2.16/ryry_cli.egg-info → ryry_cli-2.18}/PKG-INFO +1 -1
- ryry_cli-2.18/ryry/constant.py +5 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/ryry_webapi.py +0 -8
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/ryry_widget.py +2 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/server_func.py +9 -6
- {ryry_cli-2.16 → ryry_cli-2.18/ryry_cli.egg-info}/PKG-INFO +1 -1
- {ryry_cli-2.16 → ryry_cli-2.18}/setup.py +1 -1
- ryry_cli-2.16/ryry/constant.py +0 -5
- {ryry_cli-2.16 → ryry_cli-2.18}/LICENSE +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/README.md +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/__init__.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/main.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/store.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/task.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/upload.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry/utils.py +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.16 → ryry_cli-2.18}/setup.cfg +0 -0
|
@@ -30,14 +30,6 @@ def _aigc_post(func, params, files={}, timeout=10):
|
|
|
30
30
|
else:
|
|
31
31
|
raise Exception(f'''request {func} status_code={res.status_code}''')
|
|
32
32
|
except Exception as e:
|
|
33
|
-
taskUtils.taskPrint(None, f'''=============== ryry {func} server error {datetime.datetime.now().strftime('%Y_%m_%d_%H_%M_%S')} ===============
|
|
34
|
-
url={func}
|
|
35
|
-
|
|
36
|
-
req=
|
|
37
|
-
{params}
|
|
38
|
-
exception={e}
|
|
39
|
-
===============
|
|
40
|
-
''')
|
|
41
33
|
return -1, str(e), ""
|
|
42
34
|
finally:
|
|
43
35
|
s.close()
|
|
@@ -391,6 +391,8 @@ def UpdateWidgetFromPypi():
|
|
|
391
391
|
py_package = data["py_package"]
|
|
392
392
|
widgetid, remote_version, package_url = ryry_webapi.findWidget(py_package)
|
|
393
393
|
local_version = _local_package_version(py_package)
|
|
394
|
+
if len(local_version) <= 0:
|
|
395
|
+
continue
|
|
394
396
|
if compare_versions(remote_version, local_version) > 0:
|
|
395
397
|
#update
|
|
396
398
|
pipReInstall(py_package, package_url)
|
|
@@ -28,6 +28,8 @@ class TaskThread(Thread):
|
|
|
28
28
|
self.total = total
|
|
29
29
|
self.func = func
|
|
30
30
|
self.checkUUID = None
|
|
31
|
+
self.checking = False
|
|
32
|
+
self.checkCount = 0
|
|
31
33
|
self.params = params
|
|
32
34
|
self.call_back = callback
|
|
33
35
|
if self.call_back == None:
|
|
@@ -39,19 +41,19 @@ class TaskThread(Thread):
|
|
|
39
41
|
if len(self.func) > 0:
|
|
40
42
|
self.checkUUID = ryry_webapi.createTask(self.func, self.params)
|
|
41
43
|
print("")
|
|
42
|
-
checking = True
|
|
43
|
-
checkCount = 0
|
|
44
|
+
self.checking = True
|
|
45
|
+
self.checkCount = 0
|
|
44
46
|
time.sleep(5)
|
|
45
|
-
while checking
|
|
47
|
+
while self.checking and self.checkCount < 200:
|
|
46
48
|
finish, success, data, progress = ryry_webapi.checkTask(self.checkUUID)
|
|
47
49
|
print_progress_bar(progress, 100, f"Task{self.idx} {self.func}", self.idx+1, self.total)
|
|
48
50
|
if finish:
|
|
49
|
-
checking = False
|
|
51
|
+
self.checking = False
|
|
50
52
|
if success:
|
|
51
53
|
self.call_back(self.idx, data)
|
|
52
54
|
return
|
|
53
|
-
checkCount += 1
|
|
54
|
-
time.sleep(
|
|
55
|
+
self.checkCount += 1
|
|
56
|
+
time.sleep(3)
|
|
55
57
|
else:
|
|
56
58
|
print(f"widget {self.func} not found")
|
|
57
59
|
self.call_back(self.idx, None)
|
|
@@ -81,6 +83,7 @@ class Task:
|
|
|
81
83
|
"result" : None
|
|
82
84
|
}
|
|
83
85
|
idx+=1
|
|
86
|
+
time.sleep(1)
|
|
84
87
|
|
|
85
88
|
def call(self):
|
|
86
89
|
for t in self.thread_data.keys():
|
|
@@ -3,7 +3,7 @@ import os
|
|
|
3
3
|
import subprocess
|
|
4
4
|
import datetime
|
|
5
5
|
|
|
6
|
-
ryry_version = "2.
|
|
6
|
+
ryry_version = "2.18"
|
|
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")
|
ryry_cli-2.16/ryry/constant.py
DELETED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|