pyhw 0.7.3__tar.gz → 0.7.4__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pyhw-0.7.3/src/pyhw.egg-info → pyhw-0.7.4}/PKG-INFO +7 -3
- {pyhw-0.7.3 → pyhw-0.7.4}/README.md +6 -2
- {pyhw-0.7.3 → pyhw-0.7.4}/pyproject.toml +1 -1
- pyhw-0.7.4/src/pyhw/__init__.py +1 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/nic/linux.py +20 -3
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/library/lib/iokitGPULib.dylib +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4/src/pyhw.egg-info}/PKG-INFO +7 -3
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw.egg-info/SOURCES.txt +0 -1
- pyhw-0.7.3/src/pyhw/__init__.py +0 -1
- pyhw-0.7.3/src/pyhw/library/lib/iokitHostLib.dylib +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/LICENSE +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/setup.cfg +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/__main__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/backendBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/cpu/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/cpu/bsd.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/cpu/cpuBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/cpu/cpuInfo.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/cpu/linux.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/cpu/macos.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/gpu/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/gpu/bsd.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/gpu/gpuBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/gpu/gpuInfo.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/gpu/linux.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/gpu/macos.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/host/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/host/bsd.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/host/hostBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/host/hostInfo.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/host/linux.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/host/macos.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/host/windows.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/kernel/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/kernel/kernelBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/kernel/kernelInfo.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/kernel/unix.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/kernel/windows.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/memory/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/memory/bsd.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/memory/linux.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/memory/macos.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/memory/memoryBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/memory/memoryInfo.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/metal/t.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/nic/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/nic/bsd.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/nic/macos.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/nic/nicBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/nic/nicInfo.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/npu/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/npu/bsd.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/npu/linux.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/npu/macos.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/npu/npuBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/npu/npuInfo.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/os/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/os/bsd.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/os/linux.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/os/macos.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/os/osBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/os/osInfo.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/shell/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/shell/shellBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/shell/unix.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/title/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/title/titleBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/title/unix.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/title/windows.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/uptime/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/uptime/bsd.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/uptime/linux.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/uptime/macos.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/uptime/uptimeBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/backend/uptime/uptimeInfo.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/color/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/color/colorConfig.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/color/colorSet.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/color/colorUtil.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/frontendBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/alpine.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/arch.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/armbian.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/centos.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/debian.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/fedora.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/fedora_small.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/freebsd.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/linux.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/macOS.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/raspbian.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/ubuntu.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/frontend/logo/logoBase.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/pyhwException/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/pyhwException/pyhwException.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/pyhwUtil/__init__.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/pyhwUtil/pyhwUtil.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw/pyhwUtil/sysctlUtil.py +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw.egg-info/dependency_links.txt +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw.egg-info/entry_points.txt +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/src/pyhw.egg-info/requires.txt +0 -0
- {pyhw-0.7.3 → pyhw-0.7.4}/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.7.
|
3
|
+
Version: 0.7.4
|
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
|
@@ -33,8 +33,8 @@ This project is a Python reimplementation of [neofetch](https://github.com/dylan
|
|
33
33
|
|
34
34
|
|
35
35
|
[//]: # ()
|
36
|
-
![demo]
|
37
|
-
|
36
|
+
[//]: # ()
|
37
|
+

|
38
38
|
|
39
39
|
|
40
40
|
|
@@ -97,6 +97,10 @@ This is due to the fact that system python is not supposed to be managed by pip.
|
|
97
97
|
* Linux arm64, x86_64
|
98
98
|
* FreeBSD arm64
|
99
99
|
|
100
|
+
## Add Logo
|
101
|
+
1. Create a file named **\<os>.pyhw** in **logo/ascii** folder
|
102
|
+
2. Modify **colorConfig.py** file to add a new logo style
|
103
|
+
3. Update **pyhwUtil.py** to enable new logo style.
|
100
104
|
|
101
105
|
## Build from source
|
102
106
|
Currently, build process relay on swiftc and macOS IOKit framework. To build package from source, you need a Mac machine with macOS 11 and newer.
|
@@ -16,8 +16,8 @@ This project is a Python reimplementation of [neofetch](https://github.com/dylan
|
|
16
16
|
|
17
17
|
|
18
18
|
[//]: # ()
|
19
|
-
![demo]
|
20
|
-
|
19
|
+
[//]: # ()
|
20
|
+

|
21
21
|
|
22
22
|
|
23
23
|
|
@@ -80,6 +80,10 @@ This is due to the fact that system python is not supposed to be managed by pip.
|
|
80
80
|
* Linux arm64, x86_64
|
81
81
|
* FreeBSD arm64
|
82
82
|
|
83
|
+
## Add Logo
|
84
|
+
1. Create a file named **\<os>.pyhw** in **logo/ascii** folder
|
85
|
+
2. Modify **colorConfig.py** file to add a new logo style
|
86
|
+
3. Update **pyhwUtil.py** to enable new logo style.
|
83
87
|
|
84
88
|
## Build from source
|
85
89
|
Currently, build process relay on swiftc and macOS IOKit framework. To build package from source, you need a Mac machine with macOS 11 and newer.
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "pyhw"
|
7
|
-
version = "0.7.
|
7
|
+
version = "0.7.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 = [
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.7.4'
|
@@ -3,6 +3,7 @@ from .nicInfo import NICInfo
|
|
3
3
|
from ...pyhwUtil import getArch
|
4
4
|
from ...pyhwException import BackendException
|
5
5
|
import pypci
|
6
|
+
import os
|
6
7
|
|
7
8
|
|
8
9
|
class NICDetectLinux:
|
@@ -28,9 +29,25 @@ class NICDetectLinux:
|
|
28
29
|
self._nicInfo.number += 1
|
29
30
|
|
30
31
|
def __handleNonePciDevices(self):
|
31
|
-
#
|
32
|
-
|
33
|
-
|
32
|
+
# need to update
|
33
|
+
interfaces = list()
|
34
|
+
for i in os.listdir('/sys/class/net/'):
|
35
|
+
if i == "lo":
|
36
|
+
continue
|
37
|
+
interfaces.append(i)
|
38
|
+
if len(interfaces) > 0:
|
39
|
+
for interface in interfaces:
|
40
|
+
try:
|
41
|
+
if_ip = subprocess.run(["bash", "-c", f"ip -4 addr show {interface} | grep inet | awk '{{print $2}}'"], capture_output=True, text=True).stdout.strip().split("/")[0]
|
42
|
+
self._nicInfo.nics.append(f"{interface} @ {if_ip}")
|
43
|
+
self._nicInfo.number += 1
|
44
|
+
except:
|
45
|
+
pass
|
46
|
+
else:
|
47
|
+
pass
|
48
|
+
if self._nicInfo.number == 0:
|
49
|
+
self._nicInfo.nics.append("Not found")
|
50
|
+
self._nicInfo.number = 1
|
34
51
|
|
35
52
|
@staticmethod
|
36
53
|
def _nicNameClean(nic_name: str):
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.4
|
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
|
@@ -33,8 +33,8 @@ This project is a Python reimplementation of [neofetch](https://github.com/dylan
|
|
33
33
|
|
34
34
|
|
35
35
|
[//]: # ()
|
36
|
-
![demo]
|
37
|
-
|
36
|
+
[//]: # ()
|
37
|
+

|
38
38
|
|
39
39
|
|
40
40
|
|
@@ -97,6 +97,10 @@ This is due to the fact that system python is not supposed to be managed by pip.
|
|
97
97
|
* Linux arm64, x86_64
|
98
98
|
* FreeBSD arm64
|
99
99
|
|
100
|
+
## Add Logo
|
101
|
+
1. Create a file named **\<os>.pyhw** in **logo/ascii** folder
|
102
|
+
2. Modify **colorConfig.py** file to add a new logo style
|
103
|
+
3. Update **pyhwUtil.py** to enable new logo style.
|
100
104
|
|
101
105
|
## Build from source
|
102
106
|
Currently, build process relay on swiftc and macOS IOKit framework. To build package from source, you need a Mac machine with macOS 11 and newer.
|
@@ -95,7 +95,6 @@ src/pyhw/frontend/logo/ascii/raspbian.pyhw
|
|
95
95
|
src/pyhw/frontend/logo/ascii/ubuntu.pyhw
|
96
96
|
src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw
|
97
97
|
src/pyhw/library/lib/iokitGPULib.dylib
|
98
|
-
src/pyhw/library/lib/iokitHostLib.dylib
|
99
98
|
src/pyhw/pyhwException/__init__.py
|
100
99
|
src/pyhw/pyhwException/pyhwException.py
|
101
100
|
src/pyhw/pyhwUtil/__init__.py
|
pyhw-0.7.3/src/pyhw/__init__.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '0.7.3'
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|