pyhw 0.13.0__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 CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = '0.13.0'
1
+ __version__ = '0.13.1'
2
2
  __author__ = 'xiaoran007'
@@ -1,3 +1,3 @@
1
1
  from .hostBase import HostDetect
2
2
 
3
- __all__ = ["HostDetect"]
3
+ __all__ = ["HostDetect"]
@@ -1,6 +1,3 @@
1
- """
2
- In dev.
3
- """
4
1
  from .hostInfo import HostInfo
5
2
  from ...pyhwUtil import sysctlGetString
6
3
  import ctypes
@@ -1,6 +1,3 @@
1
- """
2
- In dev.
3
- """
4
1
  from ...pyhwUtil import getArch
5
2
  from ...pyhwException import BackendException
6
3
  from .hostInfo import HostInfo
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyhw
3
- Version: 0.13.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>
@@ -13,10 +13,10 @@ Classifier: Operating System :: OS Independent
13
13
  Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
- Requires-Dist: pypci-ng>=0.2.3
16
+ Requires-Dist: pypci-ng>=0.2.4
17
17
  Dynamic: license-file
18
18
 
19
- # PyHw
19
+ # PyHw, a neofetch-like system information fetching tool
20
20
  [![Downloads](https://static.pepy.tech/badge/pyhw)](https://pepy.tech/project/pyhw)
21
21
  ![PyPI - Version](https://img.shields.io/pypi/v/pyhw?label=version)
22
22
  ![Static Badge](https://img.shields.io/badge/Python-3.9%2B-green)
@@ -44,6 +44,12 @@ This project is a Python reimplementation of [neofetch](https://github.com/dylan
44
44
  ![demo](https://files.catbox.moe/ik4ioi.png)
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)
47
53
 
48
54
 
49
55
  ## 1. Install
@@ -81,34 +87,12 @@ python -m pyhw
81
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__.
82
88
 
83
89
 
84
- ### 1.3 Important note about debian 12:
85
- If you use system pip to install pyhw, you will encounter this problem on debian12 and some related distributions (like Ubuntu 24.04):
86
- ```text
87
- error: externally-managed-environment
88
-
89
- × This environment is externally managed
90
- ╰─> To install Python packages system-wide, try apt install
91
- python3-xyz, where xyz is the package you are trying to
92
- install.
93
-
94
- If you wish to install a non-Debian-packaged Python package,
95
- create a virtual environment using python3 -m venv path/to/venv.
96
- Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
97
- sure you have python3-full installed.
98
-
99
- For more information visit http://rptl.io/venv
100
-
101
- 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.
102
- hint: See PEP 668 for the detailed specification.
103
- ```
104
- 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).
105
-
106
90
  ## 2. Usability
107
91
  ### Tested Platform
108
92
  The following platforms have been tested and are known to work with this package:
109
93
  * macOS: arm64, x86_64
110
- * Linux: arm64, x86_64, riscv64
111
- * FreeBSD: arm64
94
+ * Linux: arm64, x86_64, riscv64, ppc64le, mips64el, s390x
95
+ * FreeBSD: arm64, x86_64
112
96
  * Windows 10: x86_64
113
97
  * Windows 11: arm64, x86_64
114
98
 
@@ -123,6 +107,7 @@ The functionality of this package varies slightly on different operating systems
123
107
  1. Create a file named **\<os>.pyhw** in **logo/ascii** folder
124
108
  2. Modify **colorConfig.py** file to add a new logo style
125
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.
126
111
 
127
112
  ## 4. Build from source
128
113
 
@@ -166,3 +151,26 @@ If you have docker installed, you can test this package through docker by type:
166
151
  make test # local build
167
152
  make test-pypi # release version
168
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=HyJN_rr0HTNZOb2FjZj4XXrMr5iPVy5rHgd3yOnMBoI,49
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=Efaj7-Oya7H8HdpZHQCLrwn-mcfPb-d6yfh4dzsE_7I,58
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=RgDjvi8RsAs9i-bHkcSdK--TaeyaxYzLXFZFMl8T6Eo,16295
25
- pyhw/backend/host/windows.py,sha256=qn2QiTK2wIijyyw_QKdiSizY3teyS-9RNBu5RxEPRSw,1185
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
@@ -103,6 +103,7 @@ pyhw/frontend/logo/ascii/windows_10.pyhw,sha256=jv5pzZs_CdOzpeTjyXfXJWcTQwK-J0LN
103
103
  pyhw/frontend/logo/ascii/windows_11.pyhw,sha256=VuQTzbBabaEQhm2JBVhy6Ja6lClUGacQsaiNUih9nhU,656
104
104
  pyhw/frontend/logo/ascii/windows_2025.pyhw,sha256=o8eWsiyhNpDoEjiWFiBMfkd-8MdIslGc1Jpm85LU4P8,643
105
105
  pyhw/frontend/logo/ascii/windows_old.pyhw,sha256=AMsvWAZ50HM8lweWEmzDWbRNDGkKFJo9qLY_VRKrciY,580
106
+ pyhw/library/lib/iokitCPULib.dylib,sha256=gLi_HpkmNrzfOnyDxtzzmy65PxlC56g2LcS1l056PHQ,173320
106
107
  pyhw/library/lib/iokitGPULib.dylib,sha256=1YWsob0FBmzQSX0cktW_m1kPuU8dpHoZOu_FTyVuISk,155224
107
108
  pyhw/library/lib/iokitHostLib.dylib,sha256=5ODiCEjoQwVppGmpen9nPGKGqXE9ntohyTUHZkT8viE,149912
108
109
  pyhw/library/lib/nvmlGPULib_amd64.so,sha256=lrkxeJjChUs8oVhaw_uMeXKbUJp24KroQ_hhcLtHfTg,12784
@@ -115,9 +116,9 @@ pyhw/pyhwUtil/__init__.py,sha256=n3jWo-q-jSouXvUHMg45DOHS5xLRG64E02A9rDQb44M,323
115
116
  pyhw/pyhwUtil/cliUtil.py,sha256=_zNrhzQvrtqUp6xyZ0JTs_KyL1wvLji-nBmU65XA1aI,2342
116
117
  pyhw/pyhwUtil/pyhwUtil.py,sha256=_eUOHcuUqPHYuecDf0nEdF2GRuRJhW99MqYSJyZ4KUA,8270
117
118
  pyhw/pyhwUtil/sysctlUtil.py,sha256=S-rUvqi7ZrMyMouIhxlyHEQ4agM7sCT1Y7uzs3Hu5-o,841
118
- pyhw-0.13.0.dist-info/licenses/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
119
- pyhw-0.13.0.dist-info/METADATA,sha256=05mIZRcfLnwwRVeGCGZ0gXl9rhVS0ic2PqsZF5pxzwU,7204
120
- pyhw-0.13.0.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
121
- pyhw-0.13.0.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
122
- pyhw-0.13.0.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
123
- pyhw-0.13.0.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5