byzh-core 0.0.1__tar.gz → 0.0.2__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.1 → byzh_core-0.0.2}/PKG-INFO +14 -7
  2. byzh_core-0.0.2/README.md +15 -0
  3. byzh_core-0.0.2/byzh_core/Bos/__init__.py +6 -0
  4. byzh_core-0.0.2/byzh_core/Bos/make.py +26 -0
  5. byzh_core-0.0.2/byzh_core/Bos/path.py +17 -0
  6. byzh_core-0.0.2/byzh_core/Bos/remove.py +8 -0
  7. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/__init__.py +1 -1
  8. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core.egg-info/PKG-INFO +14 -7
  9. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core.egg-info/SOURCES.txt +4 -0
  10. {byzh_core-0.0.1 → byzh_core-0.0.2}/setup.py +0 -3
  11. byzh_core-0.0.1/README.md +0 -8
  12. {byzh_core-0.0.1 → byzh_core-0.0.2}/LICENSE +0 -0
  13. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Barchive/__init__.py +0 -0
  14. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Barchive/archive.py +0 -0
  15. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bbasic/__init__.py +0 -0
  16. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bbasic/text_style.py +0 -0
  17. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bconfig/__init__.py +0 -0
  18. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bconfig/config.py +0 -0
  19. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bmath/__init__.py +0 -0
  20. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bmath/divides.py +0 -0
  21. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bmath/get_norm.py +0 -0
  22. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Btable/__init__.py +0 -0
  23. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Btable/auto_table.py +0 -0
  24. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Btable/obsolete/__init__.py +0 -0
  25. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Btable/obsolete/b_auto_table.py +0 -0
  26. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Btable/row_table.py +0 -0
  27. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Btable/xy_table.py +0 -0
  28. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bterminal/__init__.py +0 -0
  29. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bterminal/cmd.py +0 -0
  30. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Btqdm/__init__.py +0 -0
  31. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Btqdm/b_tqdm.py +0 -0
  32. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bwriter/__init__.py +0 -0
  33. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bwriter/globalwriter.py +0 -0
  34. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core/Bwriter/writer.py +0 -0
  35. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core.egg-info/dependency_links.txt +0 -0
  36. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core.egg-info/requires.txt +0 -0
  37. {byzh_core-0.0.1 → byzh_core-0.0.2}/byzh_core.egg-info/top_level.txt +0 -0
  38. {byzh_core-0.0.1 → byzh_core-0.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: byzh_core
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: byzh_core是byzh系列的核心库,包含了一些常用的工具函数和类。
5
5
  Author: byzh_rc
6
6
  License: MIT
@@ -8,11 +8,18 @@ Description-Content-Type: text/markdown
8
8
  License-File: LICENSE
9
9
  Requires-Dist: wcwidth
10
10
 
11
- # progressBar.py
12
- just like tqdm
11
+ # Barchive
13
12
 
14
- # log.py
15
- jsut like loguru
13
+ # Bbasic
16
14
 
17
- # train.py
18
- provide Trainer
15
+ # Bconfig
16
+
17
+ # Bmath
18
+
19
+ # Btable
20
+
21
+ # Bterminal
22
+
23
+ # Btqdm
24
+
25
+ # Bwriter
@@ -0,0 +1,15 @@
1
+ # Barchive
2
+
3
+ # Bbasic
4
+
5
+ # Bconfig
6
+
7
+ # Bmath
8
+
9
+ # Btable
10
+
11
+ # Bterminal
12
+
13
+ # Btqdm
14
+
15
+ # Bwriter
@@ -0,0 +1,6 @@
1
+ from .remove import b_rm
2
+ from .make import b_makedir
3
+ from .path import b_get_parent_dir, b_get_cwd
4
+
5
+
6
+ __all__ = ['b_rm', 'b_makedir', 'b_get_parent_dir', 'b_get_cwd']
@@ -0,0 +1,26 @@
1
+ from pathlib import Path
2
+ import os
3
+ import shutil
4
+
5
+ def is_dir(path):
6
+ path = Path(path)
7
+ name = path.name
8
+ if '.' in name:
9
+ return False
10
+ return True
11
+
12
+ def is_file(path):
13
+ path = Path(path)
14
+ name = path.name
15
+ if '.' in name:
16
+ return True
17
+ return False
18
+ def b_makedir(path):
19
+ path = Path(path)
20
+
21
+ if is_dir(path):
22
+ os.makedirs(path, exist_ok=True)
23
+ if is_file(path):
24
+ os.makedirs(path.parent, exist_ok=True)
25
+
26
+
@@ -0,0 +1,17 @@
1
+ import os
2
+ from pathlib import Path
3
+ from typing import Literal
4
+
5
+ def b_get_parent_dir(path: Literal['__file__']) -> Path:
6
+ '''
7
+ 获取 该py文件 所在的文件夹
8
+ :param path: __file__
9
+ '''
10
+ parent_dir = Path(path).parent
11
+ return parent_dir
12
+
13
+ def b_get_cwd() -> Path:
14
+ '''
15
+ 获取 当前工作目录current working directory
16
+ '''
17
+ return Path.cwd()
@@ -0,0 +1,8 @@
1
+ import os
2
+ import shutil
3
+
4
+ def b_rm(path):
5
+ if os.path.isdir(path):
6
+ shutil.rmtree(path)
7
+ if os.path.isfile(path):
8
+ os.remove(path)
@@ -2,4 +2,4 @@
2
2
  # class 以"B_"开头
3
3
  # function 以"b_"开头
4
4
 
5
- __version__ = '0.0.1'
5
+ __version__ = '0.0.2'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: byzh_core
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: byzh_core是byzh系列的核心库,包含了一些常用的工具函数和类。
5
5
  Author: byzh_rc
6
6
  License: MIT
@@ -8,11 +8,18 @@ Description-Content-Type: text/markdown
8
8
  License-File: LICENSE
9
9
  Requires-Dist: wcwidth
10
10
 
11
- # progressBar.py
12
- just like tqdm
11
+ # Barchive
13
12
 
14
- # log.py
15
- jsut like loguru
13
+ # Bbasic
16
14
 
17
- # train.py
18
- provide Trainer
15
+ # Bconfig
16
+
17
+ # Bmath
18
+
19
+ # Btable
20
+
21
+ # Bterminal
22
+
23
+ # Btqdm
24
+
25
+ # Bwriter
@@ -16,6 +16,10 @@ byzh_core/Bconfig/config.py
16
16
  byzh_core/Bmath/__init__.py
17
17
  byzh_core/Bmath/divides.py
18
18
  byzh_core/Bmath/get_norm.py
19
+ byzh_core/Bos/__init__.py
20
+ byzh_core/Bos/make.py
21
+ byzh_core/Bos/path.py
22
+ byzh_core/Bos/remove.py
19
23
  byzh_core/Btable/__init__.py
20
24
  byzh_core/Btable/auto_table.py
21
25
  byzh_core/Btable/row_table.py
@@ -11,8 +11,5 @@ setup(
11
11
  packages=find_packages(),
12
12
  install_requires=[
13
13
  'wcwidth',
14
- # 'thop',
15
- # 'matplotlib',
16
- # 'seaborn',
17
14
  ],
18
15
  )
byzh_core-0.0.1/README.md DELETED
@@ -1,8 +0,0 @@
1
- # progressBar.py
2
- just like tqdm
3
-
4
- # log.py
5
- jsut like loguru
6
-
7
- # train.py
8
- provide Trainer
File without changes
File without changes