pyhw 0.12.5__py3-none-any.whl → 0.13.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyhw/__init__.py +1 -1
- pyhw/backend/host/__init__.py +1 -1
- pyhw/backend/host/macos.py +0 -3
- pyhw/backend/host/windows.py +0 -3
- {pyhw-0.12.5.dist-info → pyhw-0.13.1.dist-info}/METADATA +49 -33
- {pyhw-0.12.5.dist-info → pyhw-0.13.1.dist-info}/RECORD +10 -10
- {pyhw-0.12.5.dist-info → pyhw-0.13.1.dist-info}/WHEEL +1 -1
- {pyhw-0.12.5.dist-info → pyhw-0.13.1.dist-info}/entry_points.txt +0 -0
- {pyhw-0.12.5.dist-info → pyhw-0.13.1.dist-info}/licenses/LICENSE +0 -0
- {pyhw-0.12.5.dist-info → pyhw-0.13.1.dist-info}/top_level.txt +0 -0
pyhw/__init__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = '0.
|
1
|
+
__version__ = '0.13.1'
|
2
2
|
__author__ = 'xiaoran007'
|
pyhw/backend/host/__init__.py
CHANGED
pyhw/backend/host/macos.py
CHANGED
pyhw/backend/host/windows.py
CHANGED
@@ -1,23 +1,22 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pyhw
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.13.1
|
4
4
|
Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
|
5
5
|
Author: Xiao Ran
|
6
6
|
Maintainer-email: Xiao Ran <xiaoran.007@icloud.com>
|
7
|
-
License: BSD-3-Clause
|
7
|
+
License-Expression: BSD-3-Clause
|
8
8
|
Project-URL: homepage, https://github.com/xiaoran007/pyhw
|
9
9
|
Keywords: neofetch,system information,command line tool,python,hardware information,fastfetch,fetching
|
10
10
|
Classifier: Development Status :: 4 - Beta
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
12
|
-
Classifier: License :: OSI Approved :: BSD License
|
13
12
|
Classifier: Operating System :: OS Independent
|
14
13
|
Requires-Python: >=3.9
|
15
14
|
Description-Content-Type: text/markdown
|
16
15
|
License-File: LICENSE
|
17
|
-
Requires-Dist: pypci-ng>=0.2.
|
16
|
+
Requires-Dist: pypci-ng>=0.2.4
|
18
17
|
Dynamic: license-file
|
19
18
|
|
20
|
-
# PyHw
|
19
|
+
# PyHw, a neofetch-like system information fetching tool
|
21
20
|
[](https://pepy.tech/project/pyhw)
|
22
21
|

|
23
22
|

|
@@ -40,10 +39,18 @@ This project is a Python reimplementation of [neofetch](https://github.com/dylan
|
|
40
39
|
|
41
40
|
[//]: # ()
|
42
41
|
[//]: # ()
|
43
|
-
![demo]
|
42
|
+
[//]: # ()
|
44
43
|
|
44
|
+

|
45
45
|
|
46
46
|
|
47
|
+
- [1. Install](#1-install)
|
48
|
+
- [2. Usability](#2-usability)
|
49
|
+
- [3. Add Logo](#3-add-logo)
|
50
|
+
- [4. Build from source](#4-build-from-source)
|
51
|
+
- [5. Test Package](#5-test-package)
|
52
|
+
- [6. Troubleshooting](#6-troubleshooting)
|
53
|
+
|
47
54
|
|
48
55
|
## 1. Install
|
49
56
|
There are already a lot of similar tools so you can choose any of them; they're all essentially no different. If you want to try this tool, There are two convenient ways to install it.
|
@@ -80,41 +87,27 @@ python -m pyhw
|
|
80
87
|
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__.
|
81
88
|
|
82
89
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
install.
|
92
|
-
|
93
|
-
If you wish to install a non-Debian-packaged Python package,
|
94
|
-
create a virtual environment using python3 -m venv path/to/venv.
|
95
|
-
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
|
96
|
-
sure you have python3-full installed.
|
97
|
-
|
98
|
-
For more information visit http://rptl.io/venv
|
90
|
+
## 2. Usability
|
91
|
+
### Tested Platform
|
92
|
+
The following platforms have been tested and are known to work with this package:
|
93
|
+
* macOS: arm64, x86_64
|
94
|
+
* Linux: arm64, x86_64, riscv64, ppc64le, mips64el, s390x
|
95
|
+
* FreeBSD: arm64, x86_64
|
96
|
+
* Windows 10: x86_64
|
97
|
+
* Windows 11: arm64, x86_64
|
99
98
|
|
100
|
-
|
101
|
-
hint: See PEP 668 for the detailed specification.
|
102
|
-
```
|
103
|
-
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), conda environment or force remove this restriction (not recommended).
|
99
|
+
For more detailed information, please refer to [Tested Platform](docs/tested_platform.md).
|
104
100
|
|
105
|
-
|
106
|
-
* macOS arm64, x86_64
|
107
|
-
* Linux arm64, x86_64, riscv64
|
108
|
-
* FreeBSD arm64
|
109
|
-
* Windows 10 x86_64
|
110
|
-
* Windows 11 arm64, x86_64
|
101
|
+
Please note that this package requires `Python 3.9`, so very old versions of Linux may not be supported.
|
111
102
|
|
112
|
-
|
103
|
+
### Features
|
104
|
+
The functionality of this package varies slightly on different operating systems and architectures, please refer to [this](docs/functionality.md) documentation for details.
|
113
105
|
|
114
106
|
## 3. Add Logo
|
115
107
|
1. Create a file named **\<os>.pyhw** in **logo/ascii** folder
|
116
108
|
2. Modify **colorConfig.py** file to add a new logo style
|
117
109
|
3. Update **pyhwUtil.py** to enable new logo style.
|
110
|
+
4. You may create a new `PR` to add your logo style to the main repository.
|
118
111
|
|
119
112
|
## 4. Build from source
|
120
113
|
|
@@ -158,3 +151,26 @@ If you have docker installed, you can test this package through docker by type:
|
|
158
151
|
make test # local build
|
159
152
|
make test-pypi # release version
|
160
153
|
```
|
154
|
+
|
155
|
+
## 6. Troubleshooting
|
156
|
+
### 6.1 Important note about debian 12:
|
157
|
+
If you use system pip to install pyhw, you will encounter this problem on debian12 and some related distributions (like Ubuntu 24.04):
|
158
|
+
```text
|
159
|
+
error: externally-managed-environment
|
160
|
+
|
161
|
+
× This environment is externally managed
|
162
|
+
╰─> To install Python packages system-wide, try apt install
|
163
|
+
python3-xyz, where xyz is the package you are trying to
|
164
|
+
install.
|
165
|
+
|
166
|
+
If you wish to install a non-Debian-packaged Python package,
|
167
|
+
create a virtual environment using python3 -m venv path/to/venv.
|
168
|
+
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
|
169
|
+
sure you have python3-full installed.
|
170
|
+
|
171
|
+
For more information visit http://rptl.io/venv
|
172
|
+
|
173
|
+
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.
|
174
|
+
hint: See PEP 668 for the detailed specification.
|
175
|
+
```
|
176
|
+
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), conda environment or force remove this restriction (not recommended).
|
@@ -1,4 +1,4 @@
|
|
1
|
-
pyhw/__init__.py,sha256=
|
1
|
+
pyhw/__init__.py,sha256=LL9z_-DbQQS5lyyJjmes2IiQLVljZt3nxn-vbj1FN4s,49
|
2
2
|
pyhw/__main__.py,sha256=oZpFtvSyYTM8cMsulvi51zJV0gtmw3OCQVdgoaHbtxc,4977
|
3
3
|
pyhw/backend/__init__.py,sha256=X1D1D28lSojDrUzUolgJvmbuctwBh_UxG3FwUeL8adA,51
|
4
4
|
pyhw/backend/backendBase.py,sha256=mloo8mPEbgbIdmyQ3I4vdEXMSSjxWi_wnwACmzvHbEo,506
|
@@ -16,13 +16,13 @@ pyhw/backend/gpu/gpuInfo.py,sha256=d_z_z5DiZAg85wP0VOBQEU0QHdaK3qFqA2Tp9Eq8-Zs,1
|
|
16
16
|
pyhw/backend/gpu/linux.py,sha256=DQMayZINcQLJe4_Gm_SYWhG8gL1T0YcyP97TfEwYVis,3010
|
17
17
|
pyhw/backend/gpu/macos.py,sha256=s-GZk_Q7K58nSOYuOIAYLRvLafwHyQtsWrPVe3CuXac,4068
|
18
18
|
pyhw/backend/gpu/windows.py,sha256=9VlObAdcOXJyFFxHKHSnFdL07xiGZHNHwn6C843TfNg,1170
|
19
|
-
pyhw/backend/host/__init__.py,sha256=
|
19
|
+
pyhw/backend/host/__init__.py,sha256=OmlSGjg3crlFcGz2FhBDyd35R7H0rriy3eq57y8h0_s,59
|
20
20
|
pyhw/backend/host/bsd.py,sha256=xePlHfVYv7PSWMU1a7mTbMK3mzl2ssttkI13Xi5s00w,381
|
21
21
|
pyhw/backend/host/hostBase.py,sha256=gM49SY6rEaxec_0bUOMk7QlEfR7vjfWp3BXEUqgdncc,762
|
22
22
|
pyhw/backend/host/hostInfo.py,sha256=YUISVT-tumsU4M_b6tmeAq5-RBrW0K0c4_WoyR7xTeA,451
|
23
23
|
pyhw/backend/host/linux.py,sha256=xvbZrwlKN--tKMf4_YyN20cGTSIcV5yLG3Gez7M15Pk,3157
|
24
|
-
pyhw/backend/host/macos.py,sha256=
|
25
|
-
pyhw/backend/host/windows.py,sha256=
|
24
|
+
pyhw/backend/host/macos.py,sha256=VYuO6zpEmBfII9FGLtqa10m-YwxrdCCSSsYp9G9AtWw,16275
|
25
|
+
pyhw/backend/host/windows.py,sha256=RRsR8Ejlym66uJ3FopOCcPzZAkDKQu3Inq4KJ8kl0SI,1165
|
26
26
|
pyhw/backend/kernel/__init__.py,sha256=fGjwjpOhwA_PnsWbwoq102hwhTay2ufYKaTqxjSV2-I,65
|
27
27
|
pyhw/backend/kernel/kernelBase.py,sha256=3ZmkRkvwoWk3R-by2cgBlZnMSQzVjTC8Owmv53Pm4II,539
|
28
28
|
pyhw/backend/kernel/kernelInfo.py,sha256=Nkumd0McbimCjc7yJrvz6bcwpWu1Tdo_LKomjZr7Jgk,341
|
@@ -116,9 +116,9 @@ pyhw/pyhwUtil/__init__.py,sha256=n3jWo-q-jSouXvUHMg45DOHS5xLRG64E02A9rDQb44M,323
|
|
116
116
|
pyhw/pyhwUtil/cliUtil.py,sha256=_zNrhzQvrtqUp6xyZ0JTs_KyL1wvLji-nBmU65XA1aI,2342
|
117
117
|
pyhw/pyhwUtil/pyhwUtil.py,sha256=_eUOHcuUqPHYuecDf0nEdF2GRuRJhW99MqYSJyZ4KUA,8270
|
118
118
|
pyhw/pyhwUtil/sysctlUtil.py,sha256=S-rUvqi7ZrMyMouIhxlyHEQ4agM7sCT1Y7uzs3Hu5-o,841
|
119
|
-
pyhw-0.
|
120
|
-
pyhw-0.
|
121
|
-
pyhw-0.
|
122
|
-
pyhw-0.
|
123
|
-
pyhw-0.
|
124
|
-
pyhw-0.
|
119
|
+
pyhw-0.13.1.dist-info/licenses/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
|
120
|
+
pyhw-0.13.1.dist-info/METADATA,sha256=Mq4S_h2DDMz3dvqSoa3Aawyl-C8nb0qBaw46ZgnloeY,7600
|
121
|
+
pyhw-0.13.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
122
|
+
pyhw-0.13.1.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
|
123
|
+
pyhw-0.13.1.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
|
124
|
+
pyhw-0.13.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|