byzh-core 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl
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.
- byzh_core/Bos/__init__.py +6 -0
- byzh_core/Bos/make.py +26 -0
- byzh_core/Bos/path.py +17 -0
- byzh_core/Bos/remove.py +8 -0
- byzh_core/__init__.py +1 -1
- {byzh_core-0.0.1.dist-info → byzh_core-0.0.2.dist-info}/METADATA +14 -7
- {byzh_core-0.0.1.dist-info → byzh_core-0.0.2.dist-info}/RECORD +10 -6
- {byzh_core-0.0.1.dist-info → byzh_core-0.0.2.dist-info}/LICENSE +0 -0
- {byzh_core-0.0.1.dist-info → byzh_core-0.0.2.dist-info}/WHEEL +0 -0
- {byzh_core-0.0.1.dist-info → byzh_core-0.0.2.dist-info}/top_level.txt +0 -0
byzh_core/Bos/make.py
ADDED
@@ -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
|
+
|
byzh_core/Bos/path.py
ADDED
@@ -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()
|
byzh_core/Bos/remove.py
ADDED
byzh_core/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: byzh_core
|
3
|
-
Version: 0.0.
|
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
|
-
#
|
12
|
-
just like tqdm
|
11
|
+
# Barchive
|
13
12
|
|
14
|
-
#
|
15
|
-
jsut like loguru
|
13
|
+
# Bbasic
|
16
14
|
|
17
|
-
#
|
18
|
-
|
15
|
+
# Bconfig
|
16
|
+
|
17
|
+
# Bmath
|
18
|
+
|
19
|
+
# Btable
|
20
|
+
|
21
|
+
# Bterminal
|
22
|
+
|
23
|
+
# Btqdm
|
24
|
+
|
25
|
+
# Bwriter
|
@@ -1,4 +1,4 @@
|
|
1
|
-
byzh_core/__init__.py,sha256=
|
1
|
+
byzh_core/__init__.py,sha256=D5TWdy8yOI-sk4rcb--qdUwnoq8eKlzd0BKiqP7mgqY,108
|
2
2
|
byzh_core/Barchive/__init__.py,sha256=wUdz646VS0Uhq9lwMkd3YQHCvQhLDqgADoDjFGMqIn0,65
|
3
3
|
byzh_core/Barchive/archive.py,sha256=yIQgef1APUcZdHM_7Pa9rCam-P3PA3pbcSJSaySoUj4,2498
|
4
4
|
byzh_core/Bbasic/__init__.py,sha256=wr7Y7YJINhgpV5X6BT5DaGJKcHUOZYNerCGXoi2Egac,116
|
@@ -8,6 +8,10 @@ byzh_core/Bconfig/config.py,sha256=P9C4kAkxKnIFaJCErBXdABfOyWgFgVHpR-i-fiZXCNs,1
|
|
8
8
|
byzh_core/Bmath/__init__.py,sha256=G3AQug6izkEX3UfzO_mqUNJW88ZKlmYb4Q8CAactK4w,105
|
9
9
|
byzh_core/Bmath/divides.py,sha256=dr85IqGSE9NvugQu7az29GLcjRiLjXU_hZTwtNifIXg,1132
|
10
10
|
byzh_core/Bmath/get_norm.py,sha256=y1QsCTo7qhtGTXIxpc6JtamLWloC7ENRuVdNtK5yi58,596
|
11
|
+
byzh_core/Bos/__init__.py,sha256=oS4x-8mUcJ8Z1SdMRmkRO2itSzu32DNlEr5p_7CZFFQ,170
|
12
|
+
byzh_core/Bos/make.py,sha256=4sI6eR9CSJggHq3TQu492g2zpHd-5WRWUdP3bvYKksM,492
|
13
|
+
byzh_core/Bos/path.py,sha256=p6anjmqakMAQfqa58IYpZVME8oCIY3obxqTxjmt5mgM,395
|
14
|
+
byzh_core/Bos/remove.py,sha256=HuGQlEOz7IZB_c6T9MzR3miRx60IeaBYP-3lp-P20-I,156
|
11
15
|
byzh_core/Btable/__init__.py,sha256=wpfHMPD4awPRDJVYlaiGtkkpjq2srWB7d7LrWhoX5R0,161
|
12
16
|
byzh_core/Btable/auto_table.py,sha256=JREmn6KIlZKkv1Vsc23Ow3fDiJAgfMppbGKDUY8rfyk,14002
|
13
17
|
byzh_core/Btable/row_table.py,sha256=rIX0-Yvb3RnO0RJBkA4m18gux1zYSnEKTy6uQGcWilc,5999
|
@@ -21,8 +25,8 @@ byzh_core/Btqdm/b_tqdm.py,sha256=692mfNqXhCwXunIpIMNVDt-5GRz4XMVCbcbiM4F9WGM,262
|
|
21
25
|
byzh_core/Bwriter/__init__.py,sha256=KSsbCJZ-1j5wOr-ZbTg8K3A8Du73d22DQVLdmq-3CBo,116
|
22
26
|
byzh_core/Bwriter/globalwriter.py,sha256=tSjWxzLylAeZep67n5jbRsjQkXkBKRZLvKXUyGSY92Q,1824
|
23
27
|
byzh_core/Bwriter/writer.py,sha256=px0ZNoSuXS_RbwVnYsBx2lYohyhHACfHM8-HBNEflhU,4006
|
24
|
-
byzh_core-0.0.
|
25
|
-
byzh_core-0.0.
|
26
|
-
byzh_core-0.0.
|
27
|
-
byzh_core-0.0.
|
28
|
-
byzh_core-0.0.
|
28
|
+
byzh_core-0.0.2.dist-info/LICENSE,sha256=-nRwf0Xga4AX5bsWBXXflpDpgX_U23X06oAMcdf0dSY,1089
|
29
|
+
byzh_core-0.0.2.dist-info/METADATA,sha256=ZfBmv-NnQwC4EfRWshoSLuuL_YjFO8HWXiP3rnnsAkw,369
|
30
|
+
byzh_core-0.0.2.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
31
|
+
byzh_core-0.0.2.dist-info/top_level.txt,sha256=Xv-pzvl6kPdIbi5UehQcUdGhLtb8-4WhS5dRK1LINwM,10
|
32
|
+
byzh_core-0.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|