pyhw 0.11.0__tar.gz → 0.11.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pyhw-0.11.0/src/pyhw.egg-info → pyhw-0.11.2}/PKG-INFO +1 -1
- {pyhw-0.11.0 → pyhw-0.11.2}/pyproject.toml +1 -1
- pyhw-0.11.2/src/pyhw/__init__.py +1 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/__main__.py +6 -4
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/npu/macos.py +14 -14
- {pyhw-0.11.0 → pyhw-0.11.2/src/pyhw.egg-info}/PKG-INFO +1 -1
- pyhw-0.11.0/src/pyhw/__init__.py +0 -1
- {pyhw-0.11.0 → pyhw-0.11.2}/LICENSE +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/README.md +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/setup.cfg +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/backendBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/cpu/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/cpu/bsd.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/cpu/cpuBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/cpu/cpuInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/cpu/linux.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/cpu/macos.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/cpu/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/gpu/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/gpu/bsd.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/gpu/gpuBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/gpu/gpuInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/gpu/linux.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/gpu/macos.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/gpu/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/host/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/host/bsd.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/host/hostBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/host/hostInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/host/linux.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/host/macos.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/host/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/kernel/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/kernel/kernelBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/kernel/kernelInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/kernel/unix.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/kernel/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/memory/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/memory/bsd.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/memory/linux.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/memory/macos.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/memory/memoryBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/memory/memoryInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/memory/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/metal/t.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/nic/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/nic/bsd.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/nic/linux.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/nic/macos.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/nic/nicBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/nic/nicInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/nic/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/npu/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/npu/bsd.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/npu/linux.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/npu/npuBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/npu/npuInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/npu/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/os/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/os/bsd.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/os/linux.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/os/macos.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/os/osBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/os/osInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/os/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/shell/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/shell/shellBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/shell/shellInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/shell/unix.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/shell/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/title/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/title/titleBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/title/titleInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/title/unix.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/title/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/uptime/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/uptime/bsd.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/uptime/linux.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/uptime/macos.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/uptime/uptimeBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/uptime/uptimeInfo.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/backend/uptime/windows.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/color/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/color/colorConfig.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/color/colorSet.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/color/colorUtil.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/frontendBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/alpine.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/arch.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/armbian.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/centos.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/debian.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/fedora.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/fedora_small.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/freebsd.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/linux.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/macOS.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/raspbian.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/ubuntu.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/windows_10.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/windows_11.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/windows_2025.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/ascii/windows_old.pyhw +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/frontend/logo/logoBase.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/library/lib/iokitGPULib.dylib +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/pyhwException/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/pyhwException/pyhwException.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/pyhwUtil/__init__.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/pyhwUtil/cliUtil.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/pyhwUtil/pyhwUtil.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw/pyhwUtil/sysctlUtil.py +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw.egg-info/SOURCES.txt +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw.egg-info/dependency_links.txt +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw.egg-info/entry_points.txt +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw.egg-info/requires.txt +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/src/pyhw.egg-info/top_level.txt +0 -0
- {pyhw-0.11.0 → pyhw-0.11.2}/test/test_cliUtil.py +0 -0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "pyhw"
|
7
|
-
version = "0.11.
|
7
|
+
version = "0.11.2"
|
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 = [
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.11.2'
|
@@ -14,6 +14,7 @@ from .backend.npu import NPUDetect
|
|
14
14
|
from .pyhwUtil import createDataString
|
15
15
|
from .pyhwUtil import getOS, selectOSLogo
|
16
16
|
from .pyhwUtil import ReleaseChecker
|
17
|
+
from .frontend.color import colorPrefix, colorSuffix, ColorSet
|
17
18
|
import multiprocessing
|
18
19
|
|
19
20
|
|
@@ -22,6 +23,7 @@ def check_release(release_dict):
|
|
22
23
|
release_dict["is_new_release"] = releaseChecker.check_for_updates()
|
23
24
|
release_dict["release"] = releaseChecker.LatestVersion
|
24
25
|
release_dict["current"] = releaseChecker.CurrentVersion
|
26
|
+
release_dict["is_in_pipx"] = releaseChecker.isInPIPX
|
25
27
|
|
26
28
|
|
27
29
|
def detect_title(os, result_dict):
|
@@ -116,11 +118,11 @@ def main():
|
|
116
118
|
processes[0].join()
|
117
119
|
if release_dict["is_new_release"]:
|
118
120
|
print(f"🔔 Found a newer version: v{release_dict['release']} (current: v{release_dict['current']})")
|
119
|
-
print("
|
120
|
-
if
|
121
|
-
print(f"
|
121
|
+
print("🚀 You can use the following command to upgrade:")
|
122
|
+
if release_dict["is_in_pipx"]:
|
123
|
+
print(f"👉 {colorPrefix(ColorSet.COLOR_MODE_BOLD)}{colorPrefix(ColorSet.COLOR_FG_YELLOW)}pipx upgrade pyhw{colorSuffix()}")
|
122
124
|
else:
|
123
|
-
print(f"
|
125
|
+
print(f"👉 {colorPrefix(ColorSet.COLOR_MODE_BOLD)}{colorPrefix(ColorSet.COLOR_FG_YELLOW)}pip install -U pyhw{colorSuffix()}")
|
124
126
|
# else:
|
125
127
|
# # debug
|
126
128
|
# print("🎉 You are using the latest version of pyhw!")
|
@@ -46,20 +46,20 @@ class NPUDetectMacOS:
|
|
46
46
|
# see https://apple.fandom.com/wiki/Neural_Engine for more details.
|
47
47
|
model_name = CPUDetect(os=getOS()).getCPUInfo().model
|
48
48
|
npu = {
|
49
|
-
"Apple M1": "Apple Neural Engine 16
|
50
|
-
"Apple M1 Pro": "Apple Neural Engine 16
|
51
|
-
"Apple M1 Max": "Apple Neural Engine 16
|
52
|
-
"Apple M1 Ultra": "Apple Neural Engine 32
|
53
|
-
"Apple M2": "Apple Neural Engine 16
|
54
|
-
"Apple M2 Pro": "Apple Neural Engine 16
|
55
|
-
"Apple M2 Max": "Apple Neural Engine 16
|
56
|
-
"Apple M2 Ultra": "Apple Neural Engine 32
|
57
|
-
"Apple M3": "Apple Neural Engine 16
|
58
|
-
"Apple M3 Pro": "Apple Neural Engine 16
|
59
|
-
"Apple M3 Max": "Apple Neural Engine 16
|
60
|
-
"Apple M4": "Apple Neural Engine 16
|
61
|
-
"Apple M4 Pro": "Apple Neural Engine 16
|
62
|
-
"Apple M4 Max": "Apple Neural Engine 16
|
49
|
+
"Apple M1": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
50
|
+
"Apple M1 Pro": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
51
|
+
"Apple M1 Max": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
52
|
+
"Apple M1 Ultra": "Apple Neural Engine 32 Cores (5 nm) [SOC Integrated]",
|
53
|
+
"Apple M2": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
54
|
+
"Apple M2 Pro": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
55
|
+
"Apple M2 Max": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
56
|
+
"Apple M2 Ultra": "Apple Neural Engine 32 Cores (5 nm) [SOC Integrated]",
|
57
|
+
"Apple M3": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
58
|
+
"Apple M3 Pro": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
59
|
+
"Apple M3 Max": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
60
|
+
"Apple M4": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
61
|
+
"Apple M4 Pro": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
62
|
+
"Apple M4 Max": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]"
|
63
63
|
}
|
64
64
|
return npu.get(model_name, "Not Found")
|
65
65
|
|
pyhw-0.11.0/src/pyhw/__init__.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '0.11.0'
|
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
|