pyhw 0.3.2__py3-none-any.whl → 0.3.3b0__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.
pyhw/backend/gpu/linux.py CHANGED
@@ -20,9 +20,9 @@ class GPUDetectLinux:
20
20
  if len(pci_info) == 0: # no pcie devices found
21
21
  self.__handleNonePciDevices()
22
22
  for line in pci_info.split("\n"):
23
- if "VGA" in line or "Display" in line or "3D" in line:
23
+ if "VGA" in line or "Display" in line or "3D " in line:
24
24
  gpu = line.split(": ")[1]
25
- self.__gpuInfo.gpus.append(gpu)
25
+ self.__gpuInfo.gpus.append(self.__gpuNameClean(gpu))
26
26
  self.__gpuInfo.number += 1
27
27
  if self.__gpuInfo.number == 0:
28
28
  self.__handleNonePciDevices() # fallback to a sbc device detection method
@@ -35,3 +35,9 @@ class GPUDetectLinux:
35
35
  else:
36
36
  self.__gpuInfo.number = 1
37
37
  self.__gpuInfo.gpus.append("Not found")
38
+
39
+ @staticmethod
40
+ def __gpuNameClean(gpu_name: str):
41
+ gpu_name_clean = gpu_name.replace("Corporation", "")
42
+ return gpu_name_clean
43
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyhw
3
- Version: 0.3.2
3
+ Version: 0.3.3b0
4
4
  Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
5
5
  Author-email: Xiao Ran <xiaoran.007@icloud.com>
6
6
  License: BSD-3-Clause
@@ -15,7 +15,7 @@ Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
 
17
17
  # PyHw
18
- ![PyPI - Downloads](https://img.shields.io/pypi/dw/pyhw?label=PyPI)
18
+ [![Downloads](https://static.pepy.tech/badge/pyhw)](https://pepy.tech/project/pyhw)
19
19
  ![PyPI - Version](https://img.shields.io/pypi/v/pyhw?label=version)
20
20
 
21
21
  ![Static Badge](https://img.shields.io/badge/macOS-brightgreen)
@@ -26,6 +26,12 @@ PyHw, a neofetch-like command line tool for fetching system information but writ
26
26
 
27
27
  This project is a Python reimplementation of [neofetch](https://github.com/dylanaraps/neofetch) and references the [fastfetch](https://github.com/fastfetch-cli/fastfetch) project for logo style settings. Since this project is implemented in Python, it will be easier to maintain and extend than bash and c implementation. Also, this project only relies on the Python standard library, so you can run it on any device that has a Python environment (I hope so 🤔).
28
28
 
29
+
30
+ ![demo](https://i2.imgs.ovh/d/BQACAgUAAx0EUvSR8wACMvpmyFVohzKxLcUdLiJaEa3wlo_OrQACuw4AAoX-QVaSpG0-rTAeRTUE)
31
+
32
+
33
+
34
+
29
35
  ## Install
30
36
  There are already a lot of similar tools so you can choose any of them; they're all essentially no different. If you want to try this tool, just install it directly by pip.
31
37
  ```shell
@@ -11,7 +11,7 @@ pyhw/backend/cpu/macos.py,sha256=mnnH9ABiBgAiyA8-H9_tq2PC5OeneVLj67nMGoLDXh4,287
11
11
  pyhw/backend/gpu/__init__.py,sha256=EpMjPvUaXt0LTNMvGmB8WgXbUB9keCxuOhu8NT3Re6o,56
12
12
  pyhw/backend/gpu/gpuBase.py,sha256=Ge0DX2P8_EB7ovM7glmPUnVsPJL3OUHV2t_1T5mimR0,409
13
13
  pyhw/backend/gpu/gpuInfo.py,sha256=d_z_z5DiZAg85wP0VOBQEU0QHdaK3qFqA2Tp9Eq8-Zs,133
14
- pyhw/backend/gpu/linux.py,sha256=Tj7ngrSvVpBGtx3HxuSNcWEXbTeIea8ef5qL341JQYQ,1448
14
+ pyhw/backend/gpu/linux.py,sha256=05zXXrhii6y38GQVx5qMv36th1o3NwoI3Mk4m3ezstk,1620
15
15
  pyhw/backend/gpu/macos.py,sha256=sgrROfJC59KWjxfW2n90thVEjgDNYYLWo_pETDFPKQA,2308
16
16
  pyhw/backend/host/__init__.py,sha256=Efaj7-Oya7H8HdpZHQCLrwn-mcfPb-d6yfh4dzsE_7I,58
17
17
  pyhw/backend/host/hostBase.py,sha256=POyDW3f5JSWtEKyCfrVSBEddSwoywe_OBgUExCEuje8,563
@@ -69,9 +69,9 @@ pyhw/pyhwException/pyhwException.py,sha256=wxuzFQa9g7XB1q9TUKO_55lw7wMEJMpzG8w1G
69
69
  pyhw/pyhwUtil/__init__.py,sha256=PzeP9fXsIhvr3sUpJ4DxW9_H25DEIasBFfXd_NztfR4,226
70
70
  pyhw/pyhwUtil/pyhwUtil.py,sha256=qJREsuPU_lq7T0Ictc-_BkGEp0Zh24Ptq8aklkEe6GY,2292
71
71
  pyhw/pyhwUtil/sysctlUtil.py,sha256=S-rUvqi7ZrMyMouIhxlyHEQ4agM7sCT1Y7uzs3Hu5-o,841
72
- pyhw-0.3.2.dist-info/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
73
- pyhw-0.3.2.dist-info/METADATA,sha256=JeiSSgy7j5x0vGReNrkIWiuLYtH4bI5OfIEsLFUAI1Y,3912
74
- pyhw-0.3.2.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
75
- pyhw-0.3.2.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
76
- pyhw-0.3.2.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
77
- pyhw-0.3.2.dist-info/RECORD,,
72
+ pyhw-0.3.3b0.dist-info/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
73
+ pyhw-0.3.3b0.dist-info/METADATA,sha256=ALvz_QO827OOijvWP55k-uiSCkGzCg9piDZhxt3KiRs,4043
74
+ pyhw-0.3.3b0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
75
+ pyhw-0.3.3b0.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
76
+ pyhw-0.3.3b0.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
77
+ pyhw-0.3.3b0.dist-info/RECORD,,
File without changes
File without changes