ryry-cli 4.20__tar.gz → 4.22__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 (31) hide show
  1. {ryry_cli-4.20/ryry_cli.egg-info → ryry_cli-4.22}/PKG-INFO +3 -2
  2. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/constant.py +2 -2
  3. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/daemon_base.py +3 -1
  4. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/store.py +1 -1
  5. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/upload.py +11 -7
  6. {ryry_cli-4.20 → ryry_cli-4.22/ryry_cli.egg-info}/PKG-INFO +3 -2
  7. {ryry_cli-4.20 → ryry_cli-4.22}/ryry_cli.egg-info/requires.txt +2 -0
  8. {ryry_cli-4.20 → ryry_cli-4.22}/setup.py +5 -3
  9. {ryry_cli-4.20 → ryry_cli-4.22}/LICENSE +0 -0
  10. {ryry_cli-4.20 → ryry_cli-4.22}/README.md +0 -0
  11. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/__init__.py +0 -0
  12. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/daemon_manager.py +0 -0
  13. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/main.py +0 -0
  14. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/ryry_server_socket.py +0 -0
  15. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/ryry_service.py +0 -0
  16. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/ryry_webapi.py +0 -0
  17. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/ryry_widget.py +0 -0
  18. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/script_template/__init__.py +0 -0
  19. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/script_template/daemon.py +0 -0
  20. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/script_template/main.py +0 -0
  21. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/script_template/run.py +0 -0
  22. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/server_func.py +0 -0
  23. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/shared_memory.py +0 -0
  24. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/task.py +0 -0
  25. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/taskUtils.py +0 -0
  26. {ryry_cli-4.20 → ryry_cli-4.22}/ryry/utils.py +0 -0
  27. {ryry_cli-4.20 → ryry_cli-4.22}/ryry_cli.egg-info/SOURCES.txt +0 -0
  28. {ryry_cli-4.20 → ryry_cli-4.22}/ryry_cli.egg-info/dependency_links.txt +0 -0
  29. {ryry_cli-4.20 → ryry_cli-4.22}/ryry_cli.egg-info/entry_points.txt +0 -0
  30. {ryry_cli-4.20 → ryry_cli-4.22}/ryry_cli.egg-info/top_level.txt +0 -0
  31. {ryry_cli-4.20 → ryry_cli-4.22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 4.20
3
+ Version: 4.22
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -23,7 +23,8 @@ Requires-Dist: gputil
23
23
  Requires-Dist: urlparser
24
24
  Requires-Dist: urllib3
25
25
  Requires-Dist: portalocker
26
- Requires-Dist: mecord-cli>=0.7.405
26
+ Provides-Extra: with-mecord
27
+ Requires-Dist: mecord-cli>=0.7.405; extra == "with-mecord"
27
28
 
28
29
  ryry Python Tool
29
30
  ===============================================
@@ -1,6 +1,6 @@
1
1
  #!!!!! do not change this file !!!!!
2
- app_version="4.20"
3
- app_bulld_anchor="Noh_2025-07-23 22:54:54.495460"
2
+ app_version="4.22"
3
+ app_bulld_anchor="Noh_2025-07-24 11:12:04.496003"
4
4
  app_name="ryry-cli"
5
5
  import sys, os
6
6
  if getattr(sys, 'frozen', False):
@@ -6,6 +6,7 @@ import signal
6
6
  import threading
7
7
  from typing import Optional, Dict, Any
8
8
  from ryry import ryry_webapi
9
+ import platform
9
10
 
10
11
  class SimpleDaemonBase:
11
12
  """
@@ -56,7 +57,8 @@ class SimpleDaemonBase:
56
57
  self.running = False
57
58
 
58
59
  # 注册信号处理器
59
- signal.signal(signal.SIGINT, signal_handler) # Ctrl+C
60
+ if platform.system() != "Windows":
61
+ signal.signal(signal.SIGINT, signal_handler) # Ctrl+C (在Windows上禁用)
60
62
  signal.signal(signal.SIGTERM, signal_handler) # 终止信号
61
63
 
62
64
  if hasattr(signal, 'SIGBREAK'):
@@ -155,7 +155,7 @@ def extend():
155
155
  _genExtend()
156
156
  elif read_data["extend"].get("device_id", "") != read_data.get("deviceInfo", {}).get("device_id", ""):
157
157
  _genExtend()
158
- elif read_data["extend"].get("app", "") == "ryry-cli 4.20":
158
+ elif read_data["extend"].get("app", "") == "ryry-cli 4.22":
159
159
  _genExtend()
160
160
  else:
161
161
  _genExtend()
@@ -106,13 +106,17 @@ def uploadByDomain(src, targetDomain, taskUUID, keepItAlways=False, uploadPath=N
106
106
  if ftp_config:
107
107
  return ftpUpload(src, file_name, ftp_config, upload_path)
108
108
 
109
- if "mnt/NAS/mcn" in upload_path or "aigc_output/" in targetDomain:
110
- ftp_config = getFtpConfig("183.6.90.205")
111
- return ftpUpload(src, file_name, ftp_config, upload_path)
112
- elif (targetDomain == None or len(targetDomain) <= 0) and (uploadPath and len(uploadPath) > 0):
113
- #找不到domain,但是有uploadPath的情况下,默认走ftp
114
- ftp_config = getFtpConfig("183.6.90.205")
115
- return ftpUpload(src, file_name, ftp_config, upload_path)
109
+ if upload_path:
110
+ if "mnt/NAS/mcn" in upload_path or "aigc_output/" in upload_path:
111
+ ftp_config = getFtpConfig("183.6.90.205")
112
+ return ftpUpload(src, file_name, ftp_config, upload_path)
113
+ elif (targetDomain != None and"aigc_output/" in targetDomain):
114
+ ftp_config = getFtpConfig("183.6.90.205")
115
+ return ftpUpload(src, file_name, ftp_config, upload_path)
116
+ elif (targetDomain == None or len(targetDomain) <= 0) and (uploadPath and len(uploadPath) > 0):
117
+ #找不到domain,但是有uploadPath的情况下,默认走ftp
118
+ ftp_config = getFtpConfig("183.6.90.205")
119
+ return ftpUpload(src, file_name, ftp_config, upload_path)
116
120
 
117
121
  from ryry import ryry_webapi
118
122
  return ryry_webapi.upload(src, ext, keepItAlways)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 4.20
3
+ Version: 4.22
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -23,7 +23,8 @@ Requires-Dist: gputil
23
23
  Requires-Dist: urlparser
24
24
  Requires-Dist: urllib3
25
25
  Requires-Dist: portalocker
26
- Requires-Dist: mecord-cli>=0.7.405
26
+ Provides-Extra: with-mecord
27
+ Requires-Dist: mecord-cli>=0.7.405; extra == "with-mecord"
27
28
 
28
29
  ryry Python Tool
29
30
  ===============================================
@@ -10,4 +10,6 @@ gputil
10
10
  urlparser
11
11
  urllib3
12
12
  portalocker
13
+
14
+ [with_mecord]
13
15
  mecord-cli>=0.7.405
@@ -3,7 +3,7 @@ import os
3
3
  import subprocess
4
4
  import datetime
5
5
 
6
- ryry_version = "4.20"
6
+ ryry_version = "4.22"
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:
@@ -69,9 +69,11 @@ setuptools.setup(
69
69
  'gputil',
70
70
  'urlparser',
71
71
  'urllib3',
72
- 'portalocker',
73
- 'mecord-cli>=0.7.405',
72
+ 'portalocker'
74
73
  ],
74
+ extras_require={
75
+ 'with_mecord': ['mecord-cli>=0.7.405'],
76
+ },
75
77
  dependency_links=[],
76
78
  entry_points={
77
79
  'console_scripts':[
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