pyhw 0.10.0__tar.gz → 0.10.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pyhw-0.10.0/src/pyhw.egg-info → pyhw-0.10.2}/PKG-INFO +4 -3
- {pyhw-0.10.0 → pyhw-0.10.2}/README.md +2 -1
- {pyhw-0.10.0 → pyhw-0.10.2}/pyproject.toml +2 -2
- pyhw-0.10.2/src/pyhw/__init__.py +1 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/frontendBase.py +3 -2
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/library/lib/iokitGPULib.dylib +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/pyhwUtil/pyhwUtil.py +5 -2
- {pyhw-0.10.0 → pyhw-0.10.2/src/pyhw.egg-info}/PKG-INFO +4 -3
- pyhw-0.10.0/src/pyhw/__init__.py +0 -1
- {pyhw-0.10.0 → pyhw-0.10.2}/LICENSE +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/setup.cfg +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/__main__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/backendBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/cpu/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/cpu/bsd.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/cpu/cpuBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/cpu/cpuInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/cpu/linux.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/cpu/macos.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/cpu/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/gpu/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/gpu/bsd.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/gpu/gpuBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/gpu/gpuInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/gpu/linux.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/gpu/macos.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/gpu/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/host/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/host/bsd.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/host/hostBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/host/hostInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/host/linux.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/host/macos.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/host/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/kernel/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/kernel/kernelBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/kernel/kernelInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/kernel/unix.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/kernel/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/memory/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/memory/bsd.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/memory/linux.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/memory/macos.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/memory/memoryBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/memory/memoryInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/memory/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/metal/t.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/nic/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/nic/bsd.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/nic/linux.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/nic/macos.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/nic/nicBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/nic/nicInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/nic/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/npu/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/npu/bsd.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/npu/linux.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/npu/macos.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/npu/npuBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/npu/npuInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/npu/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/os/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/os/bsd.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/os/linux.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/os/macos.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/os/osBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/os/osInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/os/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/shell/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/shell/shellBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/shell/shellInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/shell/unix.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/shell/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/title/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/title/titleBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/title/titleInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/title/unix.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/title/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/uptime/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/uptime/bsd.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/uptime/linux.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/uptime/macos.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/uptime/uptimeBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/uptime/uptimeInfo.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/backend/uptime/windows.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/color/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/color/colorConfig.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/color/colorSet.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/color/colorUtil.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/alpine.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/arch.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/armbian.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/centos.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/debian.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/fedora.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/fedora_small.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/freebsd.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/linux.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/macOS.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/raspbian.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/ubuntu.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/windows_10.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/windows_11.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/windows_2025.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/ascii/windows_old.pyhw +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/frontend/logo/logoBase.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/pyhwException/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/pyhwException/pyhwException.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/pyhwUtil/__init__.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw/pyhwUtil/sysctlUtil.py +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw.egg-info/SOURCES.txt +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw.egg-info/dependency_links.txt +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw.egg-info/entry_points.txt +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw.egg-info/requires.txt +0 -0
- {pyhw-0.10.0 → pyhw-0.10.2}/src/pyhw.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.2
|
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
|
@@ -10,7 +10,7 @@ Classifier: Development Status :: 4 - Beta
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
11
11
|
Classifier: License :: OSI Approved :: BSD License
|
12
12
|
Classifier: Operating System :: OS Independent
|
13
|
-
Requires-Python: >=3.
|
13
|
+
Requires-Python: >=3.9
|
14
14
|
Description-Content-Type: text/markdown
|
15
15
|
License-File: LICENSE
|
16
16
|
Requires-Dist: pypci-ng>=0.1.3
|
@@ -26,7 +26,8 @@ Requires-Dist: pypci-ng>=0.1.3
|
|
26
26
|

|
27
27
|
|
28
28
|

|
29
|
-

|
30
|
+

|
30
31
|

|
31
32
|
|
32
33
|
|
@@ -9,7 +9,8 @@
|
|
9
9
|

|
10
10
|
|
11
11
|

|
12
|
-

|
13
|
+

|
13
14
|

|
14
15
|
|
15
16
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "pyhw"
|
7
|
-
version = "0.10.
|
7
|
+
version = "0.10.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 = [
|
@@ -12,7 +12,7 @@ authors = [
|
|
12
12
|
]
|
13
13
|
readme = "README.md"
|
14
14
|
license = {text = "BSD-3-Clause"}
|
15
|
-
requires-python = ">=3.
|
15
|
+
requires-python = ">=3.9"
|
16
16
|
dependencies = [
|
17
17
|
"pypci-ng>=0.1.3"
|
18
18
|
]
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.10.2'
|
@@ -2,7 +2,7 @@ from .logo import Logo
|
|
2
2
|
from .color import ColorConfigSet, colorPrefix, colorSuffix, ColorSet
|
3
3
|
from ..pyhwUtil import getOS
|
4
4
|
from ..pyhwException import BackendException
|
5
|
-
import
|
5
|
+
import subprocess
|
6
6
|
import re
|
7
7
|
|
8
8
|
|
@@ -57,7 +57,8 @@ class Printer:
|
|
57
57
|
def __getColumns() -> int:
|
58
58
|
if getOS() == "linux":
|
59
59
|
try:
|
60
|
-
|
60
|
+
result = subprocess.run(['stty', 'size'], capture_output=True, text=True)
|
61
|
+
_, columns_str = result.stdout.split()
|
61
62
|
columns = int(columns_str)
|
62
63
|
except:
|
63
64
|
columns = 80 # default terminal size is 80 columns
|
Binary file
|
@@ -2,6 +2,7 @@ import platform
|
|
2
2
|
from ..backend import Data
|
3
3
|
import os
|
4
4
|
from dataclasses import dataclass
|
5
|
+
import subprocess
|
5
6
|
|
6
7
|
|
7
8
|
def getOS():
|
@@ -59,7 +60,8 @@ class DataStringProcessor:
|
|
59
60
|
def __getENV() -> int:
|
60
61
|
if getOS() == "linux":
|
61
62
|
try:
|
62
|
-
|
63
|
+
result = subprocess.run(['stty', 'size'], capture_output=True, text=True)
|
64
|
+
_, columns_str = result.stdout.split()
|
63
65
|
columns = int(columns_str)
|
64
66
|
except:
|
65
67
|
columns = 80 # default terminal size is 80 columns
|
@@ -199,7 +201,8 @@ def selectOSLogo(os_id: str):
|
|
199
201
|
else:
|
200
202
|
return "linux"
|
201
203
|
try:
|
202
|
-
|
204
|
+
result = subprocess.run(['stty', 'size'], capture_output=True, text=True)
|
205
|
+
rows_str, columns_str = result.stdout.split()
|
203
206
|
rows = int(rows_str)
|
204
207
|
columns = int(columns_str)
|
205
208
|
except:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.2
|
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
|
@@ -10,7 +10,7 @@ Classifier: Development Status :: 4 - Beta
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
11
11
|
Classifier: License :: OSI Approved :: BSD License
|
12
12
|
Classifier: Operating System :: OS Independent
|
13
|
-
Requires-Python: >=3.
|
13
|
+
Requires-Python: >=3.9
|
14
14
|
Description-Content-Type: text/markdown
|
15
15
|
License-File: LICENSE
|
16
16
|
Requires-Dist: pypci-ng>=0.1.3
|
@@ -26,7 +26,8 @@ Requires-Dist: pypci-ng>=0.1.3
|
|
26
26
|

|
27
27
|
|
28
28
|

|
29
|
-

|
30
|
+

|
30
31
|

|
31
32
|
|
32
33
|
|
pyhw-0.10.0/src/pyhw/__init__.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '0.10.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
|