ryry-cli 4.11__tar.gz → 4.12__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.11/ryry_cli.egg-info → ryry_cli-4.12}/PKG-INFO +1 -1
  2. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/constant.py +2 -2
  3. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/ryry_server_socket.py +1 -1
  4. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/shared_memory.py +9 -2
  5. {ryry_cli-4.11 → ryry_cli-4.12/ryry_cli.egg-info}/PKG-INFO +1 -1
  6. {ryry_cli-4.11 → ryry_cli-4.12}/setup.py +1 -1
  7. {ryry_cli-4.11 → ryry_cli-4.12}/LICENSE +0 -0
  8. {ryry_cli-4.11 → ryry_cli-4.12}/README.md +0 -0
  9. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/__init__.py +0 -0
  10. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/daemon_base.py +0 -0
  11. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/daemon_manager.py +0 -0
  12. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/main.py +0 -0
  13. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/ryry_service.py +0 -0
  14. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/ryry_webapi.py +0 -0
  15. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/ryry_widget.py +0 -0
  16. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/script_template/__init__.py +0 -0
  17. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/script_template/daemon.py +0 -0
  18. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/script_template/main.py +0 -0
  19. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/script_template/run.py +0 -0
  20. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/server_func.py +0 -0
  21. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/store.py +0 -0
  22. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/task.py +0 -0
  23. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/taskUtils.py +0 -0
  24. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/upload.py +0 -0
  25. {ryry_cli-4.11 → ryry_cli-4.12}/ryry/utils.py +0 -0
  26. {ryry_cli-4.11 → ryry_cli-4.12}/ryry_cli.egg-info/SOURCES.txt +0 -0
  27. {ryry_cli-4.11 → ryry_cli-4.12}/ryry_cli.egg-info/dependency_links.txt +0 -0
  28. {ryry_cli-4.11 → ryry_cli-4.12}/ryry_cli.egg-info/entry_points.txt +0 -0
  29. {ryry_cli-4.11 → ryry_cli-4.12}/ryry_cli.egg-info/requires.txt +0 -0
  30. {ryry_cli-4.11 → ryry_cli-4.12}/ryry_cli.egg-info/top_level.txt +0 -0
  31. {ryry_cli-4.11 → ryry_cli-4.12}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 4.11
3
+ Version: 4.12
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -1,6 +1,6 @@
1
1
  #!!!!! do not change this file !!!!!
2
- app_version="4.11"
3
- app_bulld_anchor="Noh_2025-07-21 15:00:37.292846"
2
+ app_version="4.12"
3
+ app_bulld_anchor="Noh_2025-07-21 15:09:23.991341"
4
4
  app_name="ryry-cli"
5
5
  import sys, os
6
6
  if getattr(sys, 'frozen', False):
@@ -235,7 +235,7 @@ class RyryShortConnectThread(Thread):
235
235
 
236
236
  while (self.is_running):
237
237
  try:
238
- if self.executor.idlePower() == 0:
238
+ if self.executor.idlePower() <= 0:
239
239
  time.sleep(1)
240
240
  continue
241
241
 
@@ -541,24 +541,30 @@ class SharedMemoryService:
541
541
  def get_max_counter(self) -> int:
542
542
  """获取最大计数器(只读操作)"""
543
543
  data = self._read_data()
544
- return data.get("max_counter", 1)
544
+ max_counter = data.get("max_counter", 1)
545
+ print(f"get_max_counter = {max_counter}")
546
+ return max_counter
545
547
 
546
548
  def set_cur_counter(self, cur_counter: int):
547
549
  """设置当前计数器"""
548
550
  def operation(data):
549
551
  data["cur_counter"] = cur_counter
552
+ print(f"set_cur_counter = {cur_counter}")
550
553
  return cur_counter
551
554
  return self._atomic_operation(operation)
552
555
 
553
556
  def get_cur_counter(self) -> int:
554
557
  """获取当前计数器(只读操作)"""
555
558
  data = self._read_data()
556
- return data.get("cur_counter", 0)
559
+ cur_counter = data.get("cur_counter", 0)
560
+ print(f"get_cur_counter = {cur_counter}")
561
+ return cur_counter
557
562
 
558
563
  def increment_cur_counter(self) -> int:
559
564
  """增加当前计数器"""
560
565
  def operation(data):
561
566
  data["cur_counter"] = data.get("cur_counter", 0) + 1
567
+ print(f"increment_cur_counter")
562
568
  return data["cur_counter"]
563
569
  return self._atomic_operation(operation)
564
570
 
@@ -566,6 +572,7 @@ class SharedMemoryService:
566
572
  """减少当前计数器"""
567
573
  def operation(data):
568
574
  data["cur_counter"] = max(0, data.get("cur_counter", 0) - 1)
575
+ print(f"decrement_cur_counter")
569
576
  return data["cur_counter"]
570
577
  return self._atomic_operation(operation)
571
578
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 4.11
3
+ Version: 4.12
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 = "4.11"
6
+ ryry_version = "4.12"
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
File without changes
File without changes
File without changes
File without changes