pyhw 0.12.4__tar.gz → 0.13.0__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.
- {pyhw-0.12.4/src/pyhw.egg-info → pyhw-0.13.0}/PKG-INFO +20 -12
- {pyhw-0.12.4 → pyhw-0.13.0}/README.md +17 -8
- {pyhw-0.12.4 → pyhw-0.13.0}/pyproject.toml +3 -4
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/__init__.py +1 -1
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/gpu/linux.py +1 -1
- pyhw-0.13.0/src/pyhw/library/lib/iokitGPULib.dylib +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/library/lib/iokitHostLib.dylib +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0/src/pyhw.egg-info}/PKG-INFO +20 -12
- pyhw-0.13.0/src/pyhw.egg-info/requires.txt +1 -0
- pyhw-0.12.4/src/pyhw/library/lib/iokitGPULib.dylib +0 -0
- pyhw-0.12.4/src/pyhw.egg-info/requires.txt +0 -1
- {pyhw-0.12.4 → pyhw-0.13.0}/LICENSE +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/setup.cfg +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/__main__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/backendBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/cpu/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/cpu/bsd.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/cpu/cpuBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/cpu/cpuInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/cpu/linux.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/cpu/macos.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/cpu/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/gpu/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/gpu/bsd.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/gpu/gpuBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/gpu/gpuInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/gpu/macos.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/gpu/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/host/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/host/bsd.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/host/hostBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/host/hostInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/host/linux.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/host/macos.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/host/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/kernel/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/kernel/kernelBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/kernel/kernelInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/kernel/unix.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/kernel/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/memory/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/memory/bsd.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/memory/linux.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/memory/macos.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/memory/memoryBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/memory/memoryInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/memory/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/nic/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/nic/bsd.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/nic/linux.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/nic/macos.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/nic/nicBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/nic/nicInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/nic/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/npu/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/npu/bsd.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/npu/linux.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/npu/macos.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/npu/npuBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/npu/npuInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/npu/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/os/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/os/bsd.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/os/linux.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/os/macos.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/os/osBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/os/osInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/os/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/shell/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/shell/shellBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/shell/shellInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/shell/unix.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/shell/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/title/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/title/titleBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/title/titleInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/title/unix.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/title/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/uptime/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/uptime/bsd.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/uptime/linux.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/uptime/macos.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/uptime/uptimeBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/uptime/uptimeInfo.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/backend/uptime/windows.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/color/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/color/colorConfig.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/color/colorSet.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/color/colorUtil.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/frontendBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/alpine.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/arch.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/armbian.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/centos.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/debian.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/fedora.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/fedora_small.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/freebsd.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/kali.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/linux.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/linuxmint.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/macOS.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/opensuse-leap.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/opensuse-tumbleweed.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/raspbian.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/rhel.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/ubuntu.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/windows_10.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/windows_11.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/windows_2025.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/ascii/windows_old.pyhw +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/frontend/logo/logoBase.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/library/lib/nvmlGPULib_amd64.so +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/library/lib/nvmlGPULib_arm64.so +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/library/test/iokitHostLibTest.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/library/test/nvmlGPULibTest.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/pyhwException/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/pyhwException/pyhwException.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/pyhwUtil/__init__.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/pyhwUtil/cliUtil.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/pyhwUtil/pyhwUtil.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw/pyhwUtil/sysctlUtil.py +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw.egg-info/SOURCES.txt +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw.egg-info/dependency_links.txt +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw.egg-info/entry_points.txt +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/src/pyhw.egg-info/top_level.txt +0 -0
- {pyhw-0.12.4 → pyhw-0.13.0}/test/test_cliUtil.py +0 -0
@@ -1,20 +1,19 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.13.0
|
4
4
|
Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
|
5
5
|
Author: Xiao Ran
|
6
6
|
Maintainer-email: Xiao Ran <xiaoran.007@icloud.com>
|
7
|
-
License: BSD-3-Clause
|
7
|
+
License-Expression: BSD-3-Clause
|
8
8
|
Project-URL: homepage, https://github.com/xiaoran007/pyhw
|
9
9
|
Keywords: neofetch,system information,command line tool,python,hardware information,fastfetch,fetching
|
10
10
|
Classifier: Development Status :: 4 - Beta
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
12
|
-
Classifier: License :: OSI Approved :: BSD License
|
13
12
|
Classifier: Operating System :: OS Independent
|
14
13
|
Requires-Python: >=3.9
|
15
14
|
Description-Content-Type: text/markdown
|
16
15
|
License-File: LICENSE
|
17
|
-
Requires-Dist: pypci-ng>=0.2.
|
16
|
+
Requires-Dist: pypci-ng>=0.2.3
|
18
17
|
Dynamic: license-file
|
19
18
|
|
20
19
|
# PyHw
|
@@ -33,14 +32,16 @@ Dynamic: license-file
|
|
33
32
|

|
34
33
|
|
35
34
|
|
36
|
-
PyHw, a neofetch-like command line tool for fetching system information but written mostly in Python.
|
35
|
+
PyHw, a neofetch-like command line tool for fetching system information but written mostly in Python.
|
37
36
|
|
38
37
|
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 🤔).
|
39
38
|
|
40
39
|
|
41
40
|
[//]: # ()
|
42
41
|
[//]: # ()
|
43
|
-
![demo]
|
42
|
+
[//]: # ()
|
43
|
+
|
44
|
+

|
44
45
|
|
45
46
|
|
46
47
|
|
@@ -102,15 +103,22 @@ hint: See PEP 668 for the detailed specification.
|
|
102
103
|
```
|
103
104
|
This is due to the fact that system python is not supposed to be managed by pip. You can simply use **pipx** to install **pyhw**. Or you can use a virtual environment (venv), conda environment or force remove this restriction (not recommended).
|
104
105
|
|
105
|
-
## 2.
|
106
|
-
|
107
|
-
|
108
|
-
*
|
109
|
-
*
|
110
|
-
*
|
106
|
+
## 2. Usability
|
107
|
+
### Tested Platform
|
108
|
+
The following platforms have been tested and are known to work with this package:
|
109
|
+
* macOS: arm64, x86_64
|
110
|
+
* Linux: arm64, x86_64, riscv64
|
111
|
+
* FreeBSD: arm64
|
112
|
+
* Windows 10: x86_64
|
113
|
+
* Windows 11: arm64, x86_64
|
111
114
|
|
112
115
|
For more detailed information, please refer to [Tested Platform](docs/tested_platform.md).
|
113
116
|
|
117
|
+
Please note that this package requires `Python 3.9`, so very old versions of Linux may not be supported.
|
118
|
+
|
119
|
+
### Features
|
120
|
+
The functionality of this package varies slightly on different operating systems and architectures, please refer to [this](docs/functionality.md) documentation for details.
|
121
|
+
|
114
122
|
## 3. Add Logo
|
115
123
|
1. Create a file named **\<os>.pyhw** in **logo/ascii** folder
|
116
124
|
2. Modify **colorConfig.py** file to add a new logo style
|
@@ -14,14 +14,16 @@
|
|
14
14
|

|
15
15
|
|
16
16
|
|
17
|
-
PyHw, a neofetch-like command line tool for fetching system information but written mostly in Python.
|
17
|
+
PyHw, a neofetch-like command line tool for fetching system information but written mostly in Python.
|
18
18
|
|
19
19
|
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 🤔).
|
20
20
|
|
21
21
|
|
22
22
|
[//]: # ()
|
23
23
|
[//]: # ()
|
24
|
-
![demo]
|
24
|
+
[//]: # ()
|
25
|
+
|
26
|
+

|
25
27
|
|
26
28
|
|
27
29
|
|
@@ -83,15 +85,22 @@ hint: See PEP 668 for the detailed specification.
|
|
83
85
|
```
|
84
86
|
This is due to the fact that system python is not supposed to be managed by pip. You can simply use **pipx** to install **pyhw**. Or you can use a virtual environment (venv), conda environment or force remove this restriction (not recommended).
|
85
87
|
|
86
|
-
## 2.
|
87
|
-
|
88
|
-
|
89
|
-
*
|
90
|
-
*
|
91
|
-
*
|
88
|
+
## 2. Usability
|
89
|
+
### Tested Platform
|
90
|
+
The following platforms have been tested and are known to work with this package:
|
91
|
+
* macOS: arm64, x86_64
|
92
|
+
* Linux: arm64, x86_64, riscv64
|
93
|
+
* FreeBSD: arm64
|
94
|
+
* Windows 10: x86_64
|
95
|
+
* Windows 11: arm64, x86_64
|
92
96
|
|
93
97
|
For more detailed information, please refer to [Tested Platform](docs/tested_platform.md).
|
94
98
|
|
99
|
+
Please note that this package requires `Python 3.9`, so very old versions of Linux may not be supported.
|
100
|
+
|
101
|
+
### Features
|
102
|
+
The functionality of this package varies slightly on different operating systems and architectures, please refer to [this](docs/functionality.md) documentation for details.
|
103
|
+
|
95
104
|
## 3. Add Logo
|
96
105
|
1. Create a file named **\<os>.pyhw** in **logo/ascii** folder
|
97
106
|
2. Modify **colorConfig.py** file to add a new logo style
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "pyhw"
|
7
|
-
version = "0.
|
7
|
+
version = "0.13.0"
|
8
8
|
description = "PyHw, a neofetch-like command line tool for fetching system information but written mostly in python."
|
9
9
|
keywords = ["neofetch", "system information", "command line tool", "python", "hardware information", "fastfetch", "fetching"]
|
10
10
|
authors = [
|
@@ -14,15 +14,14 @@ maintainers = [
|
|
14
14
|
{name = "Xiao Ran", email="xiaoran.007@icloud.com"},
|
15
15
|
]
|
16
16
|
readme = "README.md"
|
17
|
-
license =
|
17
|
+
license = "BSD-3-Clause"
|
18
18
|
requires-python = ">=3.9"
|
19
19
|
dependencies = [
|
20
|
-
"pypci-ng>=0.2.
|
20
|
+
"pypci-ng>=0.2.3"
|
21
21
|
]
|
22
22
|
classifiers = [
|
23
23
|
"Development Status :: 4 - Beta",
|
24
24
|
"Programming Language :: Python :: 3",
|
25
|
-
"License :: OSI Approved :: BSD License",
|
26
25
|
"Operating System :: OS Independent"
|
27
26
|
]
|
28
27
|
urls = {homepage = "https://github.com/xiaoran007/pyhw"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = '0.
|
1
|
+
__version__ = '0.13.0'
|
2
2
|
__author__ = 'xiaoran007'
|
@@ -51,7 +51,7 @@ class GPUDetectLinux:
|
|
51
51
|
cores = lib.GetGPUCoreCountByPciBusId(f'00000000:{device.bus}'.encode())
|
52
52
|
return cores
|
53
53
|
except Exception as e:
|
54
|
-
print(f"An error occurred while getting GPU info using nvml: {e}")
|
54
|
+
# print(f"An error occurred while getting GPU info using nvml: {e}")
|
55
55
|
return 0
|
56
56
|
|
57
57
|
def __handleNonePciDevices(self):
|
Binary file
|
Binary file
|
@@ -1,20 +1,19 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.13.0
|
4
4
|
Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
|
5
5
|
Author: Xiao Ran
|
6
6
|
Maintainer-email: Xiao Ran <xiaoran.007@icloud.com>
|
7
|
-
License: BSD-3-Clause
|
7
|
+
License-Expression: BSD-3-Clause
|
8
8
|
Project-URL: homepage, https://github.com/xiaoran007/pyhw
|
9
9
|
Keywords: neofetch,system information,command line tool,python,hardware information,fastfetch,fetching
|
10
10
|
Classifier: Development Status :: 4 - Beta
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
12
|
-
Classifier: License :: OSI Approved :: BSD License
|
13
12
|
Classifier: Operating System :: OS Independent
|
14
13
|
Requires-Python: >=3.9
|
15
14
|
Description-Content-Type: text/markdown
|
16
15
|
License-File: LICENSE
|
17
|
-
Requires-Dist: pypci-ng>=0.2.
|
16
|
+
Requires-Dist: pypci-ng>=0.2.3
|
18
17
|
Dynamic: license-file
|
19
18
|
|
20
19
|
# PyHw
|
@@ -33,14 +32,16 @@ Dynamic: license-file
|
|
33
32
|

|
34
33
|
|
35
34
|
|
36
|
-
PyHw, a neofetch-like command line tool for fetching system information but written mostly in Python.
|
35
|
+
PyHw, a neofetch-like command line tool for fetching system information but written mostly in Python.
|
37
36
|
|
38
37
|
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 🤔).
|
39
38
|
|
40
39
|
|
41
40
|
[//]: # ()
|
42
41
|
[//]: # ()
|
43
|
-
![demo]
|
42
|
+
[//]: # ()
|
43
|
+
|
44
|
+

|
44
45
|
|
45
46
|
|
46
47
|
|
@@ -102,15 +103,22 @@ hint: See PEP 668 for the detailed specification.
|
|
102
103
|
```
|
103
104
|
This is due to the fact that system python is not supposed to be managed by pip. You can simply use **pipx** to install **pyhw**. Or you can use a virtual environment (venv), conda environment or force remove this restriction (not recommended).
|
104
105
|
|
105
|
-
## 2.
|
106
|
-
|
107
|
-
|
108
|
-
*
|
109
|
-
*
|
110
|
-
*
|
106
|
+
## 2. Usability
|
107
|
+
### Tested Platform
|
108
|
+
The following platforms have been tested and are known to work with this package:
|
109
|
+
* macOS: arm64, x86_64
|
110
|
+
* Linux: arm64, x86_64, riscv64
|
111
|
+
* FreeBSD: arm64
|
112
|
+
* Windows 10: x86_64
|
113
|
+
* Windows 11: arm64, x86_64
|
111
114
|
|
112
115
|
For more detailed information, please refer to [Tested Platform](docs/tested_platform.md).
|
113
116
|
|
117
|
+
Please note that this package requires `Python 3.9`, so very old versions of Linux may not be supported.
|
118
|
+
|
119
|
+
### Features
|
120
|
+
The functionality of this package varies slightly on different operating systems and architectures, please refer to [this](docs/functionality.md) documentation for details.
|
121
|
+
|
114
122
|
## 3. Add Logo
|
115
123
|
1. Create a file named **\<os>.pyhw** in **logo/ascii** folder
|
116
124
|
2. Modify **colorConfig.py** file to add a new logo style
|
@@ -0,0 +1 @@
|
|
1
|
+
pypci-ng>=0.2.3
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
pypci-ng>=0.2.2
|
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|