pyhw 0.1.2b0__py3-none-any.whl → 0.1.3b0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pyhw/__main__.py +1 -1
- pyhw/backend/cpu/linux.py +5 -0
- {pyhw-0.1.2b0.dist-info → pyhw-0.1.3b0.dist-info}/METADATA +1 -3
- {pyhw-0.1.2b0.dist-info → pyhw-0.1.3b0.dist-info}/RECORD +8 -8
- {pyhw-0.1.2b0.dist-info → pyhw-0.1.3b0.dist-info}/LICENSE +0 -0
- {pyhw-0.1.2b0.dist-info → pyhw-0.1.3b0.dist-info}/WHEEL +0 -0
- {pyhw-0.1.2b0.dist-info → pyhw-0.1.3b0.dist-info}/entry_points.txt +0 -0
- {pyhw-0.1.2b0.dist-info → pyhw-0.1.3b0.dist-info}/top_level.txt +0 -0
pyhw/__main__.py
CHANGED
@@ -14,7 +14,7 @@ from .pyhwUtil import getOS, selectOSLogo
|
|
14
14
|
|
15
15
|
|
16
16
|
def main():
|
17
|
-
print("This is a test version of PyHw. Currently, it only supports Linux.")
|
17
|
+
print("This is a test version of PyHw. Currently, it only supports Linux. Currently there are some display issues on small terminals.")
|
18
18
|
if getOS() != "linux":
|
19
19
|
print(f"Only Linux is supported for now. Current os: {getOS()}")
|
20
20
|
return
|
pyhw/backend/cpu/linux.py
CHANGED
@@ -17,6 +17,7 @@ class CPUDetectLinux:
|
|
17
17
|
|
18
18
|
def getCPUInfo(self):
|
19
19
|
self.__getCPUInfo()
|
20
|
+
self.__modelClean()
|
20
21
|
if self.__cpuInfo.model != "":
|
21
22
|
self.__cpuInfo.cpu = self.__cpuInfo.model
|
22
23
|
if self.__cpuInfo.cores != "":
|
@@ -54,3 +55,7 @@ class CPUDetectLinux:
|
|
54
55
|
if line.startswith("cpu MHz") or line.startswith("clock"):
|
55
56
|
self.__cpuInfo.frequency = float(line.split(":")[1].strip()) / 1000 # Ghz
|
56
57
|
break
|
58
|
+
|
59
|
+
def __modelClean(self):
|
60
|
+
self.__cpuInfo.model = self.__cpuInfo.model.replace("(R)", "")
|
61
|
+
self.__cpuInfo.model = self.__cpuInfo.model.replace("(TM)", "")
|
@@ -1,9 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.3b0
|
4
4
|
Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
|
5
|
-
Home-page: https://github.com/xiaoran007/pyhw
|
6
|
-
Author: Xiao Ran
|
7
5
|
Author-email: Xiao Ran <xiaoran.007@icloud.com>
|
8
6
|
License: BSD-3-Clause
|
9
7
|
Project-URL: homepage, https://github.com/xiaoran007/pyhw
|
@@ -1,11 +1,11 @@
|
|
1
1
|
pyhw/__init__.py,sha256=IMjkMO3twhQzluVTo8Z6rE7Eg-9U79_LGKMcsWLKBkY,22
|
2
|
-
pyhw/__main__.py,sha256=
|
2
|
+
pyhw/__main__.py,sha256=xWpiNAcjA1OVvUoGoKMSNYb7mk-7DfXldmwxoU1QOZw,1512
|
3
3
|
pyhw/macos.py,sha256=kF973QvtEFky4m8RnYTJ-HWPuJi3625tvnWqJAT_DHM,4598
|
4
4
|
pyhw/backend/__init__.py,sha256=knn_3Yroow1h0dqdrozk3zyy3vz-kQyNBRjR6OLmVoY,50
|
5
5
|
pyhw/backend/backendBase.py,sha256=t9FKQPdK7yFZF0vrsXpjIUJNKrB-cXYeL5MDohlgguA,450
|
6
6
|
pyhw/backend/cpu/__init__.py,sha256=5YfANJVRwNwTRodG0ENOgusrdN592aaSnfq5ok4dKTo,56
|
7
7
|
pyhw/backend/cpu/cpuBase.py,sha256=VwVq7uazw90N02Sdvk1XK-K0MKgDA_FYDsLyWAxBzkc,348
|
8
|
-
pyhw/backend/cpu/linux.py,sha256=
|
8
|
+
pyhw/backend/cpu/linux.py,sha256=hynJ12Aa1llRr9ozVwlW2KbX9Hre40bS_Lyf6eDFbFc,2357
|
9
9
|
pyhw/backend/gpu/__init__.py,sha256=EpMjPvUaXt0LTNMvGmB8WgXbUB9keCxuOhu8NT3Re6o,56
|
10
10
|
pyhw/backend/gpu/gpuBase.py,sha256=tTl9L0CKc49VkaEYGFEp_8A5Mmzfpd9h3DaKN0-FwFA,293
|
11
11
|
pyhw/backend/gpu/linux.py,sha256=Ds0V7SZ-lhY4ZG2R6tGfcNJASHKXZfzIHJFgYYyvSMg,1529
|
@@ -55,9 +55,9 @@ pyhw/pyhwException/__init__.py,sha256=8JsFvtF13g0Y5t4z9fRndDXtfCzuBM59jDf6PhWSFS
|
|
55
55
|
pyhw/pyhwException/pyhwException.py,sha256=wxuzFQa9g7XB1q9TUKO_55lw7wMEJMpzG8w1GVTFVa0,197
|
56
56
|
pyhw/pyhwUtil/__init__.py,sha256=T87U8jEL-Z0jBZOYAzZpqu_8jBYRkqIONG6ZCARl8nc,137
|
57
57
|
pyhw/pyhwUtil/pyhwUtil.py,sha256=MNAePrn17jNugorg8WLPhl_aFjfQxEpJQ8pBWLhd9gA,1611
|
58
|
-
pyhw-0.1.
|
59
|
-
pyhw-0.1.
|
60
|
-
pyhw-0.1.
|
61
|
-
pyhw-0.1.
|
62
|
-
pyhw-0.1.
|
63
|
-
pyhw-0.1.
|
58
|
+
pyhw-0.1.3b0.dist-info/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
|
59
|
+
pyhw-0.1.3b0.dist-info/METADATA,sha256=YEXBHvwRKizHe3UkU0ef-1XhiNzUwnxenO8A6Uu-U3Y,1965
|
60
|
+
pyhw-0.1.3b0.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
61
|
+
pyhw-0.1.3b0.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
|
62
|
+
pyhw-0.1.3b0.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
|
63
|
+
pyhw-0.1.3b0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|