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.
Files changed (27) hide show
  1. {ryry-cli-2.90/ryry_cli.egg-info → ryry-cli-2.92}/PKG-INFO +1 -4
  2. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/constant.py +2 -2
  3. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/ryry_widget.py +8 -3
  4. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/task.py +2 -2
  5. {ryry-cli-2.90 → ryry-cli-2.92/ryry_cli.egg-info}/PKG-INFO +1 -4
  6. {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/entry_points.txt +0 -1
  7. {ryry-cli-2.90 → ryry-cli-2.92}/setup.py +1 -1
  8. {ryry-cli-2.90 → ryry-cli-2.92}/LICENSE +0 -0
  9. {ryry-cli-2.90 → ryry-cli-2.92}/README.md +0 -0
  10. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/__init__.py +0 -0
  11. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/main.py +0 -0
  12. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/ryry_server_socket.py +0 -0
  13. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/ryry_service.py +0 -0
  14. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/ryry_webapi.py +0 -0
  15. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/script_template/__init__.py +0 -0
  16. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/script_template/main.py +0 -0
  17. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/script_template/run.py +0 -0
  18. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/server_func.py +0 -0
  19. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/store.py +0 -0
  20. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/taskUtils.py +0 -0
  21. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/upload.py +0 -0
  22. {ryry-cli-2.90 → ryry-cli-2.92}/ryry/utils.py +0 -0
  23. {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/SOURCES.txt +0 -0
  24. {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/dependency_links.txt +0 -0
  25. {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/requires.txt +0 -0
  26. {ryry-cli-2.90 → ryry-cli-2.92}/ryry_cli.egg-info/top_level.txt +0 -0
  27. {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.90
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
-
@@ -1,6 +1,6 @@
1
1
  #!!!!! do not change this file !!!!!
2
- app_version="2.90"
3
- app_bulld_anchor="Noh_2025-02-08 17:52:12.505553"
2
+ app_version="2.92"
3
+ app_bulld_anchor="Noh_2025-02-26 15:26:33.701028"
4
4
  app_name="ryry-cli"
5
5
  import sys, os
6
6
  if getattr(sys, 'frozen', False):
@@ -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
- with open(download_file, 'wb+') as f:
307
- f.write(requests.get(url).content)
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) > 1010:
104
- short_error_msg = f"{error_msg[0:500]}\n...\n{error_msg[len(error_msg)-500:]}"
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.90
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
-
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  ryry = ryry.main:main
3
-
@@ -3,7 +3,7 @@ import os
3
3
  import subprocess
4
4
  import datetime
5
5
 
6
- ryry_version = "2.90"
6
+ ryry_version = "2.92"
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