TSVZ 3.16__py3-none-any.whl → 3.17__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.
- TSVZ.py +5 -2
- {tsvz-3.16.dist-info → tsvz-3.17.dist-info}/METADATA +1 -1
- tsvz-3.17.dist-info/RECORD +6 -0
- tsvz-3.16.dist-info/RECORD +0 -6
- {tsvz-3.16.dist-info → tsvz-3.17.dist-info}/WHEEL +0 -0
- {tsvz-3.16.dist-info → tsvz-3.17.dist-info}/entry_points.txt +0 -0
- {tsvz-3.16.dist-info → tsvz-3.17.dist-info}/top_level.txt +0 -0
TSVZ.py
CHANGED
|
@@ -22,7 +22,7 @@ if os.name == 'nt':
|
|
|
22
22
|
elif os.name == 'posix':
|
|
23
23
|
import fcntl
|
|
24
24
|
|
|
25
|
-
version = '3.
|
|
25
|
+
version = '3.17'
|
|
26
26
|
__version__ = version
|
|
27
27
|
author = 'pan@zopyr.us'
|
|
28
28
|
|
|
@@ -57,7 +57,7 @@ def get_delimiter(delimiter,file_name = ''):
|
|
|
57
57
|
return rtn
|
|
58
58
|
|
|
59
59
|
def pretty_format_table(data, delimiter = DEFAULT_DELIMITER,header = None):
|
|
60
|
-
version = 1.
|
|
60
|
+
version = 1.11
|
|
61
61
|
if not data:
|
|
62
62
|
return ''
|
|
63
63
|
if type(data) == str:
|
|
@@ -87,6 +87,9 @@ def pretty_format_table(data, delimiter = DEFAULT_DELIMITER,header = None):
|
|
|
87
87
|
#col_widths[c] = max(len(row[c]) for row in data)
|
|
88
88
|
# handle ansii escape sequences
|
|
89
89
|
col_widths[c] = max(len(re.sub(r'\x1b\[[0-?]*[ -/]*[@-~]','',row[c])) for row in data)
|
|
90
|
+
if header:
|
|
91
|
+
header_widths = [len(re.sub(r'\x1b\[[0-?]*[ -/]*[@-~]', '', col)) for col in header]
|
|
92
|
+
col_widths = [max(col_widths[i], header_widths[i]) for i in range(num_cols)]
|
|
90
93
|
# Build the row format string
|
|
91
94
|
row_format = ' | '.join('{{:<{}}}'.format(width) for width in col_widths)
|
|
92
95
|
# Print the header
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
TSVZ.py,sha256=9ccdCwpUlduKSChPpZ1xaLpnVKSoBfkKHs2mtTm2PtI,68057
|
|
2
|
+
tsvz-3.17.dist-info/METADATA,sha256=4W_qIeWuVgvkQELUdgtAGEaycfFi-h-BCkv8eUwUvXs,1826
|
|
3
|
+
tsvz-3.17.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
4
|
+
tsvz-3.17.dist-info/entry_points.txt,sha256=WeXidyV5yKCRLaVsnAY35xGa08QgytOfvr1CK9aescI,60
|
|
5
|
+
tsvz-3.17.dist-info/top_level.txt,sha256=OPx4LvOpaYykaos7oL_jGaObSWXxLzhHiWLuz-K147g,5
|
|
6
|
+
tsvz-3.17.dist-info/RECORD,,
|
tsvz-3.16.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
TSVZ.py,sha256=TpzTN4ExxJt2QO2IvOfGyMyo2f_2kzdk5jmel_aN53A,67863
|
|
2
|
-
tsvz-3.16.dist-info/METADATA,sha256=6yN2gCJs5LgREHWMC_Cj5pHtdmu_9R24L9xIm1g-eSQ,1826
|
|
3
|
-
tsvz-3.16.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
4
|
-
tsvz-3.16.dist-info/entry_points.txt,sha256=WeXidyV5yKCRLaVsnAY35xGa08QgytOfvr1CK9aescI,60
|
|
5
|
-
tsvz-3.16.dist-info/top_level.txt,sha256=OPx4LvOpaYykaos7oL_jGaObSWXxLzhHiWLuz-K147g,5
|
|
6
|
-
tsvz-3.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|