ryry-cli 2.90__tar.gz → 2.92__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.90/ryry_cli.egg-info → ryry-cli-2.92}/PKG-INFO +1 -4
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/constant.py +2 -2
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/ryry_widget.py +8 -3
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/task.py +2 -2
- {ryry-cli-2.90 → ryry-cli-2.92/ryry_cli.egg-info}/PKG-INFO +1 -4
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/entry_points.txt +0 -1
- {ryry-cli-2.90 → ryry-cli-2.92}/setup.py +1 -1
- {ryry-cli-2.90 → ryry-cli-2.92}/LICENSE +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/README.md +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/__init__.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/main.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/ryry_server_socket.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/ryry_service.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/ryry_webapi.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/script_template/__init__.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/script_template/main.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/script_template/run.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/server_func.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/store.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/taskUtils.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/upload.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry/utils.py +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry-cli-2.90 → ryry-cli-2.92}/setup.cfg +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ryry-cli
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.92
|
|
4
4
|
Summary: ryry tools
|
|
5
5
|
Home-page: https://github.com/dalipenMedia
|
|
6
6
|
Author: dalipen
|
|
7
7
|
Author-email: dalipen01@gmail.com
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
10
8
|
Classifier: Programming Language :: Python :: 3
|
|
11
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
10
|
Classifier: Operating System :: OS Independent
|
|
@@ -56,4 +54,3 @@ you can modify script and h5 file yourself, then publish to ryry sever
|
|
|
56
54
|
|
|
57
55
|
get ryry status
|
|
58
56
|
$ ryry services status
|
|
59
|
-
|
|
@@ -303,8 +303,13 @@ def widgetReInstall(name, url, local_path):
|
|
|
303
303
|
local_path = os.path.join(constant.base_path, "widget", name)
|
|
304
304
|
|
|
305
305
|
download_file = os.path.join(constant.base_path, ''.join(str(uuid.uuid4()).split('-')) + ".zip")
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
try:
|
|
307
|
+
with open(download_file, 'wb+') as f:
|
|
308
|
+
f.write(requests.get(url).content)
|
|
309
|
+
except:
|
|
310
|
+
#bak url
|
|
311
|
+
with open(download_file, 'wb+') as f:
|
|
312
|
+
f.write(requests.get(url.replace("api.dalipen.com", "aigc.zjtemplate.com")).content)
|
|
308
313
|
try:
|
|
309
314
|
if os.path.exists(download_file) and os.stat(download_file).st_size > 100:
|
|
310
315
|
if os.path.exists(local_path):
|
|
@@ -382,7 +387,7 @@ def UpdateWidgetFromPypi():
|
|
|
382
387
|
widgetInstallNotify(widget_name, remote_version)
|
|
383
388
|
addWidgetToEnv(widget_name)
|
|
384
389
|
print(f"auto install {widget_name}")
|
|
385
|
-
elif is_install == False:
|
|
390
|
+
elif is_install == False and widget_id in _map:
|
|
386
391
|
print(f"auto remove {widget_name}")
|
|
387
392
|
widgetUninstall(widget_name, package_url)
|
|
388
393
|
store.removeWidget(widget_id)
|
|
@@ -100,8 +100,8 @@ def executeLocalPython(taskUUID, cmd, param, timeout=3600):
|
|
|
100
100
|
o2 = error.decode(encoding="utf8", errors="ignore")
|
|
101
101
|
error_msg = f"{o1}\n{o2}"
|
|
102
102
|
short_error_msg = ""
|
|
103
|
-
if len(error_msg) >
|
|
104
|
-
short_error_msg = f"{error_msg[0:
|
|
103
|
+
if len(error_msg) > 1810:
|
|
104
|
+
short_error_msg = f"{error_msg[0:900]}\n...\n{error_msg[len(error_msg)-900:]}"
|
|
105
105
|
else:
|
|
106
106
|
short_error_msg = error_msg
|
|
107
107
|
outData["message"] = short_error_msg
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ryry-cli
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.92
|
|
4
4
|
Summary: ryry tools
|
|
5
5
|
Home-page: https://github.com/dalipenMedia
|
|
6
6
|
Author: dalipen
|
|
7
7
|
Author-email: dalipen01@gmail.com
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
10
8
|
Classifier: Programming Language :: Python :: 3
|
|
11
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
10
|
Classifier: Operating System :: OS Independent
|
|
@@ -56,4 +54,3 @@ you can modify script and h5 file yourself, then publish to ryry sever
|
|
|
56
54
|
|
|
57
55
|
get ryry status
|
|
58
56
|
$ ryry services status
|
|
59
|
-
|
|
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
|