statblk 1.24__py3-none-any.whl → 1.26__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.
- {statblk-1.24.dist-info → statblk-1.26.dist-info}/METADATA +1 -1
- statblk-1.26.dist-info/RECORD +6 -0
- statblk.py +8 -3
- statblk-1.24.dist-info/RECORD +0 -6
- {statblk-1.24.dist-info → statblk-1.26.dist-info}/WHEEL +0 -0
- {statblk-1.24.dist-info → statblk-1.26.dist-info}/entry_points.txt +0 -0
- {statblk-1.24.dist-info → statblk-1.26.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,6 @@
|
|
1
|
+
statblk.py,sha256=_MApAKWxN1ohR6_jlA4de21vlGspxVP5V1zpRZ0gJls,27886
|
2
|
+
statblk-1.26.dist-info/METADATA,sha256=FLgZP2P0NZMU_tIMeTM51fjc3BIDU23YO3QSFgMKRc0,1465
|
3
|
+
statblk-1.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
4
|
+
statblk-1.26.dist-info/entry_points.txt,sha256=JDz-sa6FIdaOckmlz9NbnhZXQaB5Yle-cTKgUQmAV40,41
|
5
|
+
statblk-1.26.dist-info/top_level.txt,sha256=dBdU6_PD4tG_7uquWEs6YremqudiePASv3u3G59scf4,8
|
6
|
+
statblk-1.26.dist-info/RECORD,,
|
statblk.py
CHANGED
@@ -139,6 +139,10 @@ except:
|
|
139
139
|
elif return_object:return A
|
140
140
|
elif with_stdErr:return[A.stdout+A.stderr for A in A]
|
141
141
|
else:return[A.stdout for A in A]
|
142
|
+
def join_threads(threads=...,timeout=None):
|
143
|
+
A=multiCMD.__running_threads if threads is ... else threads
|
144
|
+
for B in A:B.join(timeout=timeout)
|
145
|
+
if A is multiCMD.__running_threads:multiCMD.__running_threads={A for A in A if A.is_alive()}
|
142
146
|
def pretty_format_table(data,delimiter='\t',header=None,full=False):
|
143
147
|
O=delimiter;B=header;A=data;import re;S=1.12;Z=S
|
144
148
|
def J(s):return len(re.sub('\\x1b\\[[0-?]*[ -/]*[@-~]','',s))
|
@@ -276,7 +280,7 @@ except :
|
|
276
280
|
def cache_decorator(func):
|
277
281
|
return func
|
278
282
|
|
279
|
-
version = '1.
|
283
|
+
version = '1.26'
|
280
284
|
VERSION = version
|
281
285
|
__version__ = version
|
282
286
|
COMMIT_DATE = '2025-09-10'
|
@@ -592,8 +596,8 @@ def get_drives_info(print_bytes = False, use_1024 = False, mounted_only=False, b
|
|
592
596
|
rtpt = str(rtpt)
|
593
597
|
wtpt = str(wtpt)
|
594
598
|
else:
|
595
|
-
rtpt = multiCMD.format_bytes(rtpt, use_1024_bytes=use_1024, to_str=True,str_format='.
|
596
|
-
wtpt = multiCMD.format_bytes(wtpt, use_1024_bytes=use_1024, to_str=True,str_format='.
|
599
|
+
rtpt = multiCMD.format_bytes(rtpt, use_1024_bytes=use_1024, to_str=True,str_format='.0f') + 'B/s'
|
600
|
+
wtpt = multiCMD.format_bytes(wtpt, use_1024_bytes=use_1024, to_str=True,str_format='.0f') + 'B/s'
|
597
601
|
except Exception:
|
598
602
|
rtpt = ''
|
599
603
|
wtpt = ''
|
@@ -637,6 +641,7 @@ def get_drives_info(print_bytes = False, use_1024 = False, mounted_only=False, b
|
|
637
641
|
if not full:
|
638
642
|
device_name = device_name.replace('/dev/', '')
|
639
643
|
output.append([device_name, fstype, size, fsusepct, mountpoint, smart, label, uuid, model, serial, discard, rtpt, wtpt])
|
644
|
+
multiCMD.join_threads()
|
640
645
|
return output
|
641
646
|
|
642
647
|
|
statblk-1.24.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
statblk.py,sha256=G4d4sAHSntx7yNDNGm4QraddfeaBE-4-1LvQK0wq1XA,27617
|
2
|
-
statblk-1.24.dist-info/METADATA,sha256=2myAwJWf7SBkiKQp-d9I3dwm_iV-lFH2TlJ-qdnvmGA,1465
|
3
|
-
statblk-1.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
4
|
-
statblk-1.24.dist-info/entry_points.txt,sha256=JDz-sa6FIdaOckmlz9NbnhZXQaB5Yle-cTKgUQmAV40,41
|
5
|
-
statblk-1.24.dist-info/top_level.txt,sha256=dBdU6_PD4tG_7uquWEs6YremqudiePASv3u3G59scf4,8
|
6
|
-
statblk-1.24.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|