pyhw 0.12.4__py3-none-any.whl → 0.13.0__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.12.4'
1
+ __version__ = '0.13.0'
2
2
  __author__ = 'xiaoran007'
pyhw/backend/gpu/linux.py CHANGED
@@ -51,7 +51,7 @@ class GPUDetectLinux:
51
51
  cores = lib.GetGPUCoreCountByPciBusId(f'00000000:{device.bus}'.encode())
52
52
  return cores
53
53
  except Exception as e:
54
- print(f"An error occurred while getting GPU info using nvml: {e}")
54
+ # print(f"An error occurred while getting GPU info using nvml: {e}")
55
55
  return 0
56
56
 
57
57
  def __handleNonePciDevices(self):
Binary file
Binary file
@@ -1,20 +1,19 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyhw
3
- Version: 0.12.4
3
+ Version: 0.13.0
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.2
16
+ Requires-Dist: pypci-ng>=0.2.3
18
17
  Dynamic: license-file
19
18
 
20
19
  # PyHw
@@ -33,14 +32,16 @@ Dynamic: license-file
33
32
  ![Static Badge](https://img.shields.io/badge/riscv64-%238A2BE2)
34
33
 
35
34
 
36
- PyHw, a neofetch-like command line tool for fetching system information but written mostly in Python. **Currently, this project is still in the initial stage, only Linux, macOS, FreeBSD and Windows are supported.**
35
+ PyHw, a neofetch-like command line tool for fetching system information but written mostly in Python.
37
36
 
38
37
  This project is a Python reimplementation of [neofetch](https://github.com/dylanaraps/neofetch) and references the [fastfetch](https://github.com/fastfetch-cli/fastfetch) project for logo style settings. Since this project is implemented in Python, it will be easier to maintain and extend than bash and c implementation. Also, this project only relies on the Python standard library, so you can run it on any device that has a Python environment (I hope so 🤔).
39
38
 
40
39
 
41
40
  [//]: # (![demo]&#40;https://i2.imgs.ovh/d/BQACAgUAAx0EUvSR8wACMvpmyFVohzKxLcUdLiJaEa3wlo_OrQACuw4AAoX-QVaSpG0-rTAeRTUE&#41;)
42
41
  [//]: # (![demo]&#40;https://files.catbox.moe/xx58xy.jpg&#41;)
43
- ![demo](https://files.catbox.moe/2d21fu.jpg)
42
+ [//]: # (![demo]&#40;https://files.catbox.moe/2d21fu.jpg&#41;)
43
+
44
+ ![demo](https://files.catbox.moe/ik4ioi.png)
44
45
 
45
46
 
46
47
 
@@ -102,15 +103,22 @@ hint: See PEP 668 for the detailed specification.
102
103
  ```
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).
104
105
 
105
- ## 2. Tested OS
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
106
+ ## 2. Usability
107
+ ### Tested Platform
108
+ The following platforms have been tested and are known to work with this package:
109
+ * macOS: arm64, x86_64
110
+ * Linux: arm64, x86_64, riscv64
111
+ * FreeBSD: arm64
112
+ * Windows 10: x86_64
113
+ * Windows 11: arm64, x86_64
111
114
 
112
115
  For more detailed information, please refer to [Tested Platform](docs/tested_platform.md).
113
116
 
117
+ Please note that this package requires `Python 3.9`, so very old versions of Linux may not be supported.
118
+
119
+ ### Features
120
+ The functionality of this package varies slightly on different operating systems and architectures, please refer to [this](docs/functionality.md) documentation for details.
121
+
114
122
  ## 3. Add Logo
115
123
  1. Create a file named **\<os>.pyhw** in **logo/ascii** folder
116
124
  2. Modify **colorConfig.py** file to add a new logo style
@@ -1,4 +1,4 @@
1
- pyhw/__init__.py,sha256=cLvhuwktXvGfep0EXHlrozCFkIUDtlLNuQfhDaI-qQM,49
1
+ pyhw/__init__.py,sha256=HyJN_rr0HTNZOb2FjZj4XXrMr5iPVy5rHgd3yOnMBoI,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
@@ -13,7 +13,7 @@ pyhw/backend/gpu/__init__.py,sha256=EpMjPvUaXt0LTNMvGmB8WgXbUB9keCxuOhu8NT3Re6o,
13
13
  pyhw/backend/gpu/bsd.py,sha256=ladMMIlTwb6Z1ETCLFII--lkeLCp50Wb7WFrlOXa5DQ,123
14
14
  pyhw/backend/gpu/gpuBase.py,sha256=ZPT9o7PhYpzlwign0GsCT519F9DGx-1UEMVVOM8MV_k,748
15
15
  pyhw/backend/gpu/gpuInfo.py,sha256=d_z_z5DiZAg85wP0VOBQEU0QHdaK3qFqA2Tp9Eq8-Zs,133
16
- pyhw/backend/gpu/linux.py,sha256=FPWu7-8k7P1L7bw8ey9hVdpxF63O5hZg8Q4lKzaPukI,3008
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
19
  pyhw/backend/host/__init__.py,sha256=Efaj7-Oya7H8HdpZHQCLrwn-mcfPb-d6yfh4dzsE_7I,58
@@ -103,8 +103,8 @@ 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/iokitGPULib.dylib,sha256=1T6nWbzwmDwH4Tu7U2Pka_7ikjIz6xfGBBvC5ejv0SQ,154552
107
- pyhw/library/lib/iokitHostLib.dylib,sha256=0sdPRA-dtogsgPEgb-VN32on6oIJMT9PmRZ0whRpQE0,149256
106
+ pyhw/library/lib/iokitGPULib.dylib,sha256=1YWsob0FBmzQSX0cktW_m1kPuU8dpHoZOu_FTyVuISk,155224
107
+ pyhw/library/lib/iokitHostLib.dylib,sha256=5ODiCEjoQwVppGmpen9nPGKGqXE9ntohyTUHZkT8viE,149912
108
108
  pyhw/library/lib/nvmlGPULib_amd64.so,sha256=lrkxeJjChUs8oVhaw_uMeXKbUJp24KroQ_hhcLtHfTg,12784
109
109
  pyhw/library/lib/nvmlGPULib_arm64.so,sha256=DFIYqNcuRxiZ8_jrYoaRB3Dx9GrY7UBXscwXQvV4k3I,13528
110
110
  pyhw/library/test/iokitHostLibTest.py,sha256=oz5x1g4WMdoikU3Eo6zoxcHZ4e-UMRhXg0C0Lflo-ac,272
@@ -115,9 +115,9 @@ pyhw/pyhwUtil/__init__.py,sha256=n3jWo-q-jSouXvUHMg45DOHS5xLRG64E02A9rDQb44M,323
115
115
  pyhw/pyhwUtil/cliUtil.py,sha256=_zNrhzQvrtqUp6xyZ0JTs_KyL1wvLji-nBmU65XA1aI,2342
116
116
  pyhw/pyhwUtil/pyhwUtil.py,sha256=_eUOHcuUqPHYuecDf0nEdF2GRuRJhW99MqYSJyZ4KUA,8270
117
117
  pyhw/pyhwUtil/sysctlUtil.py,sha256=S-rUvqi7ZrMyMouIhxlyHEQ4agM7sCT1Y7uzs3Hu5-o,841
118
- pyhw-0.12.4.dist-info/licenses/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
119
- pyhw-0.12.4.dist-info/METADATA,sha256=FW756VzCh8TiNnpFspu1ZAuCp9AMXZ1CtVT-nSXMLSI,6893
120
- pyhw-0.12.4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
121
- pyhw-0.12.4.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
122
- pyhw-0.12.4.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
123
- pyhw-0.12.4.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5