byzh-core 0.0.2.9__tar.gz → 0.0.2.11__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.
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/PKG-INFO +1 -1
- byzh_core-0.0.2.11/byzh_core/Bwriter/__init__.py +5 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Bwriter/writer.py +7 -4
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/__init__.py +1 -1
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core.egg-info/PKG-INFO +1 -1
- byzh_core-0.0.2.9/byzh_core/Bwriter/__init__.py +0 -3
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/LICENSE +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/README.md +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/B_os.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Barchive/__init__.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Barchive/archive.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Bbasic/__init__.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Bbasic/text_style.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Bmath/__init__.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Bmath/divides.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Bmath/get_norm.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Btable/__init__.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Btable/auto_table.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Bterminal/__init__.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Bterminal/cmd.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Btqdm/__init__.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/Btqdm/my_tqdm.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/obsolete/Bconfig/__init__.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/obsolete/Bconfig/config.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/obsolete/__init__.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/obsolete/auto_table.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/obsolete/row_table.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core/obsolete/xy_table.py +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core.egg-info/SOURCES.txt +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core.egg-info/dependency_links.txt +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core.egg-info/requires.txt +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/byzh_core.egg-info/top_level.txt +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/setup.cfg +0 -0
- {byzh_core-0.0.2.9 → byzh_core-0.0.2.11}/setup.py +0 -0
@@ -5,6 +5,9 @@ import os
|
|
5
5
|
|
6
6
|
from ..Bbasic import B_Color
|
7
7
|
|
8
|
+
def color_wrap(string:str, color:B_Color):
|
9
|
+
return color.value + string + B_Color.RESET.value
|
10
|
+
|
8
11
|
class B_Writer:
|
9
12
|
def __init__(
|
10
13
|
self,
|
@@ -22,7 +25,7 @@ class B_Writer:
|
|
22
25
|
self.mode = mode
|
23
26
|
self.time_file = time_file
|
24
27
|
|
25
|
-
self.color = color
|
28
|
+
self.color = color
|
26
29
|
|
27
30
|
self.f = None
|
28
31
|
self.setFile(self.path, self.mode, self.time_file)
|
@@ -66,9 +69,9 @@ class B_Writer:
|
|
66
69
|
t = time.strftime("%Y-%m-%d %H:%M:%S ##### ", time.localtime())
|
67
70
|
|
68
71
|
if color is None:
|
69
|
-
print(
|
72
|
+
print(color_wrap(t+str(string), self.color))
|
70
73
|
else:
|
71
|
-
print(
|
74
|
+
print(color_wrap(t+str(string), color))
|
72
75
|
|
73
76
|
def toFile(self, string:str, ifTime:bool=None):
|
74
77
|
'''
|
@@ -82,7 +85,7 @@ class B_Writer:
|
|
82
85
|
elif ifTime==True or self.time_file==True:
|
83
86
|
t = time.strftime("%Y-%m-%d %H:%M:%S ##### ", time.localtime())
|
84
87
|
|
85
|
-
self.f.write(str(string
|
88
|
+
self.f.write(str(t+string))
|
86
89
|
self.f.write("\n")
|
87
90
|
self.f.flush()
|
88
91
|
|
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
|
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
|