pyhw 0.11.2__tar.gz → 0.11.4__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pyhw-0.11.2/src/pyhw.egg-info → pyhw-0.11.4}/PKG-INFO +4 -3
- {pyhw-0.11.2 → pyhw-0.11.4}/pyproject.toml +6 -3
- pyhw-0.11.4/src/pyhw/__init__.py +1 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/__main__.py +9 -1
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/pyhwUtil/cliUtil.py +15 -0
- {pyhw-0.11.2 → pyhw-0.11.4/src/pyhw.egg-info}/PKG-INFO +4 -3
- pyhw-0.11.4/src/pyhw.egg-info/requires.txt +1 -0
- pyhw-0.11.2/src/pyhw/__init__.py +0 -1
- pyhw-0.11.2/src/pyhw.egg-info/requires.txt +0 -1
- {pyhw-0.11.2 → pyhw-0.11.4}/LICENSE +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/README.md +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/setup.cfg +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/backendBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/cpu/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/cpu/bsd.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/cpu/cpuBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/cpu/cpuInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/cpu/linux.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/cpu/macos.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/cpu/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/gpu/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/gpu/bsd.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/gpu/gpuBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/gpu/gpuInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/gpu/linux.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/gpu/macos.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/gpu/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/host/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/host/bsd.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/host/hostBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/host/hostInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/host/linux.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/host/macos.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/host/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/kernel/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/kernel/kernelBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/kernel/kernelInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/kernel/unix.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/kernel/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/memory/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/memory/bsd.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/memory/linux.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/memory/macos.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/memory/memoryBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/memory/memoryInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/memory/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/metal/t.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/nic/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/nic/bsd.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/nic/linux.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/nic/macos.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/nic/nicBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/nic/nicInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/nic/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/npu/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/npu/bsd.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/npu/linux.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/npu/macos.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/npu/npuBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/npu/npuInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/npu/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/os/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/os/bsd.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/os/linux.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/os/macos.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/os/osBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/os/osInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/os/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/shell/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/shell/shellBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/shell/shellInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/shell/unix.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/shell/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/title/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/title/titleBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/title/titleInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/title/unix.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/title/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/uptime/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/uptime/bsd.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/uptime/linux.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/uptime/macos.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/uptime/uptimeBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/uptime/uptimeInfo.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/backend/uptime/windows.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/color/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/color/colorConfig.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/color/colorSet.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/color/colorUtil.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/frontendBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/alpine.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/arch.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/armbian.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/centos.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/debian.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/fedora.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/fedora_small.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/freebsd.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/linux.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/macOS.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/raspbian.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/ubuntu.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/windows_10.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/windows_11.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/windows_2025.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/ascii/windows_old.pyhw +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/frontend/logo/logoBase.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/library/lib/iokitGPULib.dylib +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/pyhwException/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/pyhwException/pyhwException.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/pyhwUtil/__init__.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/pyhwUtil/pyhwUtil.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw/pyhwUtil/sysctlUtil.py +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw.egg-info/SOURCES.txt +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw.egg-info/dependency_links.txt +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw.egg-info/entry_points.txt +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/src/pyhw.egg-info/top_level.txt +0 -0
- {pyhw-0.11.2 → pyhw-0.11.4}/test/test_cliUtil.py +0 -0
@@ -1,8 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.11.
|
3
|
+
Version: 0.11.4
|
4
4
|
Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
|
5
|
-
Author
|
5
|
+
Author: Xiao Ran
|
6
|
+
Maintainer-email: Xiao Ran <xiaoran.007@icloud.com>
|
6
7
|
License: BSD-3-Clause
|
7
8
|
Project-URL: homepage, https://github.com/xiaoran007/pyhw
|
8
9
|
Keywords: neofetch,system information,command line tool,python,hardware information,fastfetch,fetching
|
@@ -13,7 +14,7 @@ Classifier: Operating System :: OS Independent
|
|
13
14
|
Requires-Python: >=3.9
|
14
15
|
Description-Content-Type: text/markdown
|
15
16
|
License-File: LICENSE
|
16
|
-
Requires-Dist: pypci-ng>=0.1.
|
17
|
+
Requires-Dist: pypci-ng>=0.1.5
|
17
18
|
|
18
19
|
# PyHw
|
19
20
|
[](https://pepy.tech/project/pyhw)
|
@@ -4,17 +4,20 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "pyhw"
|
7
|
-
version = "0.11.
|
7
|
+
version = "0.11.4"
|
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 = [
|
11
|
-
{
|
11
|
+
{name = "Xiao Ran"}
|
12
|
+
]
|
13
|
+
maintainers = [
|
14
|
+
{name = "Xiao Ran", email="xiaoran.007@icloud.com"},
|
12
15
|
]
|
13
16
|
readme = "README.md"
|
14
17
|
license = {text = "BSD-3-Clause"}
|
15
18
|
requires-python = ">=3.9"
|
16
19
|
dependencies = [
|
17
|
-
"pypci-ng>=0.1.
|
20
|
+
"pypci-ng>=0.1.5"
|
18
21
|
]
|
19
22
|
classifiers = [
|
20
23
|
"Development Status :: 4 - Beta",
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.11.4'
|
@@ -115,7 +115,15 @@ def main():
|
|
115
115
|
logo_os = selectOSLogo(OSDetect(os=current_os).getOSInfo().id)
|
116
116
|
Printer(logo_os=logo_os, data=createDataString(data)).cPrint()
|
117
117
|
|
118
|
-
|
118
|
+
timeout = 3
|
119
|
+
processes[0].join(timeout)
|
120
|
+
if processes[0].is_alive():
|
121
|
+
processes[0].terminate()
|
122
|
+
processes[0].join()
|
123
|
+
release_dict["is_new_release"] = False
|
124
|
+
else:
|
125
|
+
pass
|
126
|
+
|
119
127
|
if release_dict["is_new_release"]:
|
120
128
|
print(f"🔔 Found a newer version: v{release_dict['release']} (current: v{release_dict['current']})")
|
121
129
|
print("🚀 You can use the following command to upgrade:")
|
@@ -7,9 +7,15 @@ import importlib.metadata
|
|
7
7
|
|
8
8
|
|
9
9
|
class ReleaseChecker:
|
10
|
+
"""
|
11
|
+
Helper Class to check if there is a newer version of the package.
|
12
|
+
"""
|
10
13
|
PACKAGE_NAME = "pyhw"
|
11
14
|
|
12
15
|
def __init__(self):
|
16
|
+
"""
|
17
|
+
Initialize the ReleaseChecker.
|
18
|
+
"""
|
13
19
|
self.isInPIPX = self.__is_running_in_pipx()
|
14
20
|
self.CurrentVersion = self.__get_installed_version()
|
15
21
|
self.LatestVersion = self.__get_latest_version()
|
@@ -39,6 +45,11 @@ class ReleaseChecker:
|
|
39
45
|
|
40
46
|
@staticmethod
|
41
47
|
def parse_version(version):
|
48
|
+
"""
|
49
|
+
Parse the version string to a tuple of integers.
|
50
|
+
:param version: version string
|
51
|
+
:return: tuple of integers
|
52
|
+
"""
|
42
53
|
return tuple(map(int, version.split(".")))
|
43
54
|
|
44
55
|
def __is_newer_version(self):
|
@@ -48,6 +59,10 @@ class ReleaseChecker:
|
|
48
59
|
return self.parse_version(self.CurrentVersion) < self.parse_version(self.LatestVersion)
|
49
60
|
|
50
61
|
def check_for_updates(self):
|
62
|
+
"""
|
63
|
+
Check if there is a newer version of the package.
|
64
|
+
:return: Boolean
|
65
|
+
"""
|
51
66
|
return self.__is_newer_version()
|
52
67
|
|
53
68
|
def check_for_updates_print(self):
|
@@ -1,8 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.11.
|
3
|
+
Version: 0.11.4
|
4
4
|
Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
|
5
|
-
Author
|
5
|
+
Author: Xiao Ran
|
6
|
+
Maintainer-email: Xiao Ran <xiaoran.007@icloud.com>
|
6
7
|
License: BSD-3-Clause
|
7
8
|
Project-URL: homepage, https://github.com/xiaoran007/pyhw
|
8
9
|
Keywords: neofetch,system information,command line tool,python,hardware information,fastfetch,fetching
|
@@ -13,7 +14,7 @@ Classifier: Operating System :: OS Independent
|
|
13
14
|
Requires-Python: >=3.9
|
14
15
|
Description-Content-Type: text/markdown
|
15
16
|
License-File: LICENSE
|
16
|
-
Requires-Dist: pypci-ng>=0.1.
|
17
|
+
Requires-Dist: pypci-ng>=0.1.5
|
17
18
|
|
18
19
|
# PyHw
|
19
20
|
[](https://pepy.tech/project/pyhw)
|
@@ -0,0 +1 @@
|
|
1
|
+
pypci-ng>=0.1.5
|
pyhw-0.11.2/src/pyhw/__init__.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '0.11.2'
|
@@ -1 +0,0 @@
|
|
1
|
-
pypci-ng>=0.1.4
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|