byzh-core 0.0.2.2__tar.gz → 0.0.2.3__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 (38) hide show
  1. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/PKG-INFO +1 -1
  2. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/B_os.py +2 -1
  3. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Btable/auto_table.py +5 -5
  4. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Btqdm/my_tqdm.py +2 -2
  5. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/__init__.py +1 -1
  6. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core.egg-info/PKG-INFO +1 -1
  7. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/LICENSE +0 -0
  8. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/README.md +0 -0
  9. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Barchive/__init__.py +0 -0
  10. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Barchive/archive.py +0 -0
  11. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bbasic/__init__.py +0 -0
  12. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bbasic/text_style.py +0 -0
  13. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bconfig/__init__.py +0 -0
  14. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bconfig/config.py +0 -0
  15. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bmath/__init__.py +0 -0
  16. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bmath/divides.py +0 -0
  17. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bmath/get_norm.py +0 -0
  18. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bos/B_os.py +0 -0
  19. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bos/__init__.py +0 -0
  20. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bos/make.py +0 -0
  21. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bos/remove.py +0 -0
  22. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Btable/__init__.py +0 -0
  23. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Btable/obsolete/__init__.py +0 -0
  24. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Btable/obsolete/b_auto_table.py +0 -0
  25. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Btable/row_table.py +0 -0
  26. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Btable/xy_table.py +0 -0
  27. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bterminal/__init__.py +0 -0
  28. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bterminal/cmd.py +0 -0
  29. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Btqdm/__init__.py +0 -0
  30. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bwriter/__init__.py +0 -0
  31. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bwriter/globalwriter.py +0 -0
  32. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core/Bwriter/writer.py +0 -0
  33. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core.egg-info/SOURCES.txt +0 -0
  34. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core.egg-info/dependency_links.txt +0 -0
  35. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core.egg-info/requires.txt +0 -0
  36. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/byzh_core.egg-info/top_level.txt +0 -0
  37. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/setup.cfg +0 -0
  38. {byzh_core-0.0.2.2 → byzh_core-0.0.2.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: byzh_core
3
- Version: 0.0.2.2
3
+ Version: 0.0.2.3
4
4
  Summary: byzh_core是byzh系列的核心库,包含了一些常用的工具函数和类。
5
5
  Author: byzh_rc
6
6
  License: MIT
@@ -56,4 +56,5 @@ def rm(path):
56
56
  if os.path.isdir(path):
57
57
  shutil.rmtree(path)
58
58
  if os.path.isfile(path):
59
- os.remove(path)
59
+ os.remove(path)
60
+
@@ -172,7 +172,7 @@ class B_AutoTable:
172
172
  dir = Path(path).resolve().parent
173
173
  os.makedirs(dir, exist_ok=True)
174
174
  with open(path, 'w') as f:
175
- f.write(self.get_table_by_str())
175
+ f.write(self.to_str())
176
176
 
177
177
  def update_txt(self, path):
178
178
  '''
@@ -194,7 +194,7 @@ class B_AutoTable:
194
194
 
195
195
 
196
196
 
197
- def get_table_by_strs(self) -> List[str]:
197
+ def to_strs(self) -> List[str]:
198
198
  transpose = self._need_transpose()
199
199
  self._update_all(transpose)
200
200
  self._update_widths()
@@ -222,9 +222,9 @@ class B_AutoTable:
222
222
 
223
223
  return results
224
224
 
225
- def get_table_by_str(self) -> str:
225
+ def to_str(self) -> str:
226
226
  result = ""
227
- strs = self.get_table_by_strs()
227
+ strs = self.to_strs()
228
228
  for x in strs[:-1]:
229
229
  result += x + '\n'
230
230
  result += strs[-1]
@@ -391,7 +391,7 @@ class B_AutoTable:
391
391
  return True
392
392
  return False
393
393
  def __str__(self):
394
- return self.get_table_by_str()
394
+ return self.to_str()
395
395
 
396
396
  def __getitem__(self, index):
397
397
  index = str(index)
@@ -19,7 +19,7 @@ class B_Tqdm:
19
19
  :param total: 总数
20
20
  :param prefix: 前缀
21
21
  :param suffix: 后缀
22
- :param length: 进度条长度(字符)
22
+ :param length: 进度条长度(字符), 默认为20个字符长度
23
23
  :param fill: 填充字符
24
24
  """
25
25
  super().__init__()
@@ -64,7 +64,7 @@ class B_Tqdm:
64
64
  # 更新进度条
65
65
  if self.total is not None:
66
66
  filled_length = int(self.length * self.current // self.total)
67
- bar = self.fill * filled_length + '-' * (self.length - filled_length)
67
+ bar = self.fill * filled_length + '-' * (self.length - filled_length) * len(self.fill)
68
68
 
69
69
  sys.stdout.write(f'\r{color}{self.prefix} |{bar}|'
70
70
  f' {self.current}/{self.total} -> {elapsed_str}<{estimated_str} | {speed:.1f} it/s |'
@@ -2,4 +2,4 @@
2
2
  # class 以"B_"开头
3
3
  # function 以"b_"开头
4
4
 
5
- __version__ = '0.0.2.2'
5
+ __version__ = '0.0.2.3'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: byzh_core
3
- Version: 0.0.2.2
3
+ Version: 0.0.2.3
4
4
  Summary: byzh_core是byzh系列的核心库,包含了一些常用的工具函数和类。
5
5
  Author: byzh_rc
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes