pyhw 0.6.3__tar.gz → 0.6.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pyhw-0.6.3/src/pyhw.egg-info → pyhw-0.6.5}/PKG-INFO +14 -2
- {pyhw-0.6.3 → pyhw-0.6.5}/README.md +13 -1
- {pyhw-0.6.3 → pyhw-0.6.5}/pyproject.toml +1 -1
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/cpu/macos.py +3 -1
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/host/linux.py +10 -2
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/host/macos.py +9 -1
- {pyhw-0.6.3 → pyhw-0.6.5/src/pyhw.egg-info}/PKG-INFO +14 -2
- {pyhw-0.6.3 → pyhw-0.6.5}/LICENSE +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/setup.cfg +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/__main__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/backendBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/cpu/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/cpu/cpuBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/cpu/cpuInfo.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/cpu/linux.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/gpu/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/gpu/gpuBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/gpu/gpuInfo.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/gpu/linux.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/gpu/macos.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/host/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/host/hostBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/host/hostInfo.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/host/windows.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/kernel/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/kernel/kernelBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/kernel/kernelInfo.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/kernel/unix.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/kernel/windows.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/memory/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/memory/linux.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/memory/macos.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/memory/memoryBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/memory/memoryInfo.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/metal/t.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/nic/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/nic/linux.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/nic/macos.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/nic/nicBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/nic/nicInfo.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/npu/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/npu/linux.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/npu/macos.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/npu/npuBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/npu/npuInfo.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/os/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/os/linux.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/os/macos.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/os/osBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/os/osInfo.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/shell/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/shell/shellBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/shell/unix.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/title/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/title/titleBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/title/unix.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/title/windows.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/uptime/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/uptime/linux.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/uptime/macos.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/uptime/uptimeBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/backend/uptime/uptimeInfo.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/color/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/color/colorConfig.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/color/colorSet.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/color/colorUtil.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/frontendBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/alpine.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/arch.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/armbian.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/centos.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/debian.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/fedora.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/fedora_small.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/linux.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/macOS.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/raspbian.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/ubuntu.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/frontend/logo/logoBase.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/library/lib/iokitGPULib.dylib +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/macos.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/pyhwException/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/pyhwException/pyhwException.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/pyhwUtil/__init__.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/pyhwUtil/pyhwUtil.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw/pyhwUtil/sysctlUtil.py +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw.egg-info/SOURCES.txt +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw.egg-info/dependency_links.txt +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw.egg-info/entry_points.txt +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw.egg-info/requires.txt +0 -0
- {pyhw-0.6.3 → pyhw-0.6.5}/src/pyhw.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.5
|
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
|
@@ -53,6 +53,18 @@ pyhw
|
|
53
53
|
```
|
54
54
|
Please note that the command line entry for __pyhw__ is created by pip, and depending on the user, this entry may not in the __system PATH__. If you encounter this problem, pip will give you a prompt, follow the prompts to add entry to the __system PATH__.
|
55
55
|
|
56
|
+
### Install by pipx
|
57
|
+
**pipx** is an amazing tool to help you install and run applications written in Python. It is more like **brew** or **apt**. You can find more information about it here [pipx](https://github.com/pypa/pipx).
|
58
|
+
|
59
|
+
You can install pyhw by the following command:
|
60
|
+
```shell
|
61
|
+
pipx install pyhw
|
62
|
+
```
|
63
|
+
You can then use this tool directly from the command line with the following command, just like neofetch.
|
64
|
+
```shell
|
65
|
+
pyhw
|
66
|
+
```
|
67
|
+
|
56
68
|
### Important note about debian 12:
|
57
69
|
If you use system pip to install pyhw, you will encounter this problem on debian12 and some related distributions:
|
58
70
|
```text
|
@@ -73,7 +85,7 @@ error: externally-managed-environment
|
|
73
85
|
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
|
74
86
|
hint: See PEP 668 for the detailed specification.
|
75
87
|
```
|
76
|
-
This is due to the fact that system python is not supposed to be managed by pip. You can use a virtual environment (venv) or force remove this restriction (not recommended).
|
88
|
+
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) or force remove this restriction (not recommended).
|
77
89
|
|
78
90
|
## Supported (Tested) OS
|
79
91
|
* macOS arm64, x86_64
|
@@ -36,6 +36,18 @@ pyhw
|
|
36
36
|
```
|
37
37
|
Please note that the command line entry for __pyhw__ is created by pip, and depending on the user, this entry may not in the __system PATH__. If you encounter this problem, pip will give you a prompt, follow the prompts to add entry to the __system PATH__.
|
38
38
|
|
39
|
+
### Install by pipx
|
40
|
+
**pipx** is an amazing tool to help you install and run applications written in Python. It is more like **brew** or **apt**. You can find more information about it here [pipx](https://github.com/pypa/pipx).
|
41
|
+
|
42
|
+
You can install pyhw by the following command:
|
43
|
+
```shell
|
44
|
+
pipx install pyhw
|
45
|
+
```
|
46
|
+
You can then use this tool directly from the command line with the following command, just like neofetch.
|
47
|
+
```shell
|
48
|
+
pyhw
|
49
|
+
```
|
50
|
+
|
39
51
|
### Important note about debian 12:
|
40
52
|
If you use system pip to install pyhw, you will encounter this problem on debian12 and some related distributions:
|
41
53
|
```text
|
@@ -56,7 +68,7 @@ error: externally-managed-environment
|
|
56
68
|
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
|
57
69
|
hint: See PEP 668 for the detailed specification.
|
58
70
|
```
|
59
|
-
This is due to the fact that system python is not supposed to be managed by pip. You can use a virtual environment (venv) or force remove this restriction (not recommended).
|
71
|
+
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) or force remove this restriction (not recommended).
|
60
72
|
|
61
73
|
## Supported (Tested) OS
|
62
74
|
* macOS arm64, x86_64
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "pyhw"
|
7
|
-
version = "0.6.
|
7
|
+
version = "0.6.5"
|
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 = [
|
@@ -64,6 +64,8 @@ class CPUDetectMacOS:
|
|
64
64
|
"Apple M3": "4.05 GHz",
|
65
65
|
"Apple M3 Pro": "4.05 GHz",
|
66
66
|
"Apple M3 Max": "4.05 GHz",
|
67
|
-
"Apple M4": "4.40 GHz"
|
67
|
+
"Apple M4": "4.40 GHz",
|
68
|
+
"Apple M4 Pro": "4.40 GHz",
|
69
|
+
"Apple M4 Max": "4.40 GHz"
|
68
70
|
}
|
69
71
|
self.__cpuInfo.frequency = freq.get(self.__cpuInfo.model, "Unknown")
|
@@ -19,9 +19,17 @@ class HostDetectLinux:
|
|
19
19
|
if self.__arch in ["x86_64", "x86"]:
|
20
20
|
try:
|
21
21
|
with open("/sys/devices/virtual/dmi/id/product_name", "r") as f:
|
22
|
-
|
22
|
+
product_name = f.read().strip()
|
23
|
+
if product_name.startswith("To be filled by O.E.M."):
|
24
|
+
self.__hostInfo.name = f"General {self.__arch} Host"
|
25
|
+
else:
|
26
|
+
self.__hostInfo.name = product_name
|
23
27
|
with open("/sys/devices/virtual/dmi/id/product_version", "r") as f:
|
24
|
-
|
28
|
+
version = f.read().strip()
|
29
|
+
if version.startswith("To be filled by O.E.M."):
|
30
|
+
self.__hostInfo.version = ""
|
31
|
+
else:
|
32
|
+
self.__hostInfo.version = version
|
25
33
|
self.__hostInfo.model = self.__hostInfo.name + " " + self.__hostInfo.version
|
26
34
|
except FileNotFoundError:
|
27
35
|
pass
|
@@ -172,7 +172,15 @@ class HostDetectMacOS:
|
|
172
172
|
|
173
173
|
elif hw_model.startswith("Mac"):
|
174
174
|
version = hw_model[len("Mac"):]
|
175
|
-
if self.__hwModelCheck(version, "16,
|
175
|
+
if self.__hwModelCheck(version, "16,3"):
|
176
|
+
return "iMac (24-inch, 2024, Four Thunderbolt / USB 4 ports)"
|
177
|
+
if self.__hwModelCheck(version, "16,2"):
|
178
|
+
return "iMac (24-inch, 2024, Two Thunderbolt / USB 4 ports)"
|
179
|
+
if self.__hwModelCheck(version, "16,1") or self.__hwModelCheck(version, "16,6") or self.__hwModelCheck(version, "16,8"):
|
180
|
+
return "MacBook Pro (14-inch, 2024, Three Thunderbolt 4 ports)"
|
181
|
+
if self.__hwModelCheck(version, "16,5") or self.__hwModelCheck(version, "16,7"):
|
182
|
+
return "MacBook Pro (16-inch, 2024, Three Thunderbolt 4 ports)"
|
183
|
+
if self.__hwModelCheck(version, "16,10") or self.__hwModelCheck(version, "16,15"):
|
176
184
|
return "Mac mini (M4, 2024)"
|
177
185
|
if self.__hwModelCheck(version, "15,13"):
|
178
186
|
return "MacBook Air (15-inch, M3, 2024)"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.5
|
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
|
@@ -53,6 +53,18 @@ pyhw
|
|
53
53
|
```
|
54
54
|
Please note that the command line entry for __pyhw__ is created by pip, and depending on the user, this entry may not in the __system PATH__. If you encounter this problem, pip will give you a prompt, follow the prompts to add entry to the __system PATH__.
|
55
55
|
|
56
|
+
### Install by pipx
|
57
|
+
**pipx** is an amazing tool to help you install and run applications written in Python. It is more like **brew** or **apt**. You can find more information about it here [pipx](https://github.com/pypa/pipx).
|
58
|
+
|
59
|
+
You can install pyhw by the following command:
|
60
|
+
```shell
|
61
|
+
pipx install pyhw
|
62
|
+
```
|
63
|
+
You can then use this tool directly from the command line with the following command, just like neofetch.
|
64
|
+
```shell
|
65
|
+
pyhw
|
66
|
+
```
|
67
|
+
|
56
68
|
### Important note about debian 12:
|
57
69
|
If you use system pip to install pyhw, you will encounter this problem on debian12 and some related distributions:
|
58
70
|
```text
|
@@ -73,7 +85,7 @@ error: externally-managed-environment
|
|
73
85
|
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
|
74
86
|
hint: See PEP 668 for the detailed specification.
|
75
87
|
```
|
76
|
-
This is due to the fact that system python is not supposed to be managed by pip. You can use a virtual environment (venv) or force remove this restriction (not recommended).
|
88
|
+
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) or force remove this restriction (not recommended).
|
77
89
|
|
78
90
|
## Supported (Tested) OS
|
79
91
|
* macOS arm64, x86_64
|
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
|