ryry-cli 2.16__tar.gz → 2.17__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.16/ryry_cli.egg-info → ryry_cli-2.17}/PKG-INFO +1 -1
  2. ryry_cli-2.17/ryry/constant.py +5 -0
  3. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/ryry_webapi.py +0 -8
  4. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/server_func.py +9 -6
  5. {ryry_cli-2.16 → ryry_cli-2.17/ryry_cli.egg-info}/PKG-INFO +1 -1
  6. {ryry_cli-2.16 → ryry_cli-2.17}/setup.py +1 -1
  7. ryry_cli-2.16/ryry/constant.py +0 -5
  8. {ryry_cli-2.16 → ryry_cli-2.17}/LICENSE +0 -0
  9. {ryry_cli-2.16 → ryry_cli-2.17}/README.md +0 -0
  10. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/__init__.py +0 -0
  11. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/main.py +0 -0
  12. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/ryry_server_socket.py +0 -0
  13. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/ryry_service.py +0 -0
  14. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/ryry_widget.py +0 -0
  15. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/script_template/__init__.py +0 -0
  16. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/script_template/main.py +0 -0
  17. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/script_template/run.py +0 -0
  18. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/store.py +0 -0
  19. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/task.py +0 -0
  20. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/taskUtils.py +0 -0
  21. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/upload.py +0 -0
  22. {ryry_cli-2.16 → ryry_cli-2.17}/ryry/utils.py +0 -0
  23. {ryry_cli-2.16 → ryry_cli-2.17}/ryry_cli.egg-info/SOURCES.txt +0 -0
  24. {ryry_cli-2.16 → ryry_cli-2.17}/ryry_cli.egg-info/dependency_links.txt +0 -0
  25. {ryry_cli-2.16 → ryry_cli-2.17}/ryry_cli.egg-info/entry_points.txt +0 -0
  26. {ryry_cli-2.16 → ryry_cli-2.17}/ryry_cli.egg-info/requires.txt +0 -0
  27. {ryry_cli-2.16 → ryry_cli-2.17}/ryry_cli.egg-info/top_level.txt +0 -0
  28. {ryry_cli-2.16 → ryry_cli-2.17}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.16
3
+ Version: 2.17
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.17"
3
+ app_bulld_number=217
4
+ app_bulld_anchor="Noh_2024-06-20 19:50:23.197646"
5
+ app_name="ryry-cli"
@@ -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()
@@ -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 or checkCount > 100:
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(2)
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():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.16
3
+ Version: 2.17
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.16"
6
+ ryry_version = "2.17"
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.16"
3
- app_bulld_number=216
4
- app_bulld_anchor="Noh_2024-06-17 09:53:15.110700"
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