pyhw 0.6.2__tar.gz → 0.6.4__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. {pyhw-0.6.2/src/pyhw.egg-info → pyhw-0.6.4}/PKG-INFO +11 -2
  2. {pyhw-0.6.2 → pyhw-0.6.4}/README.md +9 -0
  3. {pyhw-0.6.2 → pyhw-0.6.4}/pyproject.toml +2 -2
  4. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/host/macos.py +11 -1
  5. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/library/lib/iokitGPULib.dylib +0 -0
  6. {pyhw-0.6.2 → pyhw-0.6.4/src/pyhw.egg-info}/PKG-INFO +11 -2
  7. pyhw-0.6.4/src/pyhw.egg-info/requires.txt +1 -0
  8. pyhw-0.6.2/src/pyhw.egg-info/requires.txt +0 -1
  9. {pyhw-0.6.2 → pyhw-0.6.4}/LICENSE +0 -0
  10. {pyhw-0.6.2 → pyhw-0.6.4}/setup.cfg +0 -0
  11. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/__init__.py +0 -0
  12. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/__main__.py +0 -0
  13. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/__init__.py +0 -0
  14. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/backendBase.py +0 -0
  15. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/cpu/__init__.py +0 -0
  16. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/cpu/cpuBase.py +0 -0
  17. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/cpu/cpuInfo.py +0 -0
  18. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/cpu/linux.py +0 -0
  19. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/cpu/macos.py +0 -0
  20. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/gpu/__init__.py +0 -0
  21. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/gpu/gpuBase.py +0 -0
  22. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/gpu/gpuInfo.py +0 -0
  23. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/gpu/linux.py +0 -0
  24. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/gpu/macos.py +0 -0
  25. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/host/__init__.py +0 -0
  26. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/host/hostBase.py +0 -0
  27. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/host/hostInfo.py +0 -0
  28. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/host/linux.py +0 -0
  29. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/host/windows.py +0 -0
  30. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/kernel/__init__.py +0 -0
  31. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/kernel/kernelBase.py +0 -0
  32. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/kernel/kernelInfo.py +0 -0
  33. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/kernel/unix.py +0 -0
  34. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/kernel/windows.py +0 -0
  35. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/memory/__init__.py +0 -0
  36. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/memory/linux.py +0 -0
  37. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/memory/macos.py +0 -0
  38. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/memory/memoryBase.py +0 -0
  39. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/memory/memoryInfo.py +0 -0
  40. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/metal/t.py +0 -0
  41. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/nic/__init__.py +0 -0
  42. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/nic/linux.py +0 -0
  43. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/nic/macos.py +0 -0
  44. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/nic/nicBase.py +0 -0
  45. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/nic/nicInfo.py +0 -0
  46. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/npu/__init__.py +0 -0
  47. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/npu/linux.py +0 -0
  48. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/npu/macos.py +0 -0
  49. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/npu/npuBase.py +0 -0
  50. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/npu/npuInfo.py +0 -0
  51. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/os/__init__.py +0 -0
  52. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/os/linux.py +0 -0
  53. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/os/macos.py +0 -0
  54. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/os/osBase.py +0 -0
  55. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/os/osInfo.py +0 -0
  56. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/shell/__init__.py +0 -0
  57. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/shell/shellBase.py +0 -0
  58. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/shell/unix.py +0 -0
  59. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/title/__init__.py +0 -0
  60. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/title/titleBase.py +0 -0
  61. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/title/unix.py +0 -0
  62. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/title/windows.py +0 -0
  63. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/uptime/__init__.py +0 -0
  64. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/uptime/linux.py +0 -0
  65. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/uptime/macos.py +0 -0
  66. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/uptime/uptimeBase.py +0 -0
  67. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/backend/uptime/uptimeInfo.py +0 -0
  68. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/__init__.py +0 -0
  69. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/color/__init__.py +0 -0
  70. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/color/colorConfig.py +0 -0
  71. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/color/colorSet.py +0 -0
  72. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/color/colorUtil.py +0 -0
  73. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/frontendBase.py +0 -0
  74. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/__init__.py +0 -0
  75. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/alpine.pyhw +0 -0
  76. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/arch.pyhw +0 -0
  77. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/armbian.pyhw +0 -0
  78. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/centos.pyhw +0 -0
  79. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/debian.pyhw +0 -0
  80. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/fedora.pyhw +0 -0
  81. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/fedora_small.pyhw +0 -0
  82. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/linux.pyhw +0 -0
  83. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/macOS.pyhw +0 -0
  84. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/raspbian.pyhw +0 -0
  85. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/ubuntu.pyhw +0 -0
  86. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw +0 -0
  87. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/frontend/logo/logoBase.py +0 -0
  88. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/macos.py +0 -0
  89. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/pyhwException/__init__.py +0 -0
  90. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/pyhwException/pyhwException.py +0 -0
  91. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/pyhwUtil/__init__.py +0 -0
  92. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/pyhwUtil/pyhwUtil.py +0 -0
  93. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw/pyhwUtil/sysctlUtil.py +0 -0
  94. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw.egg-info/SOURCES.txt +0 -0
  95. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw.egg-info/dependency_links.txt +0 -0
  96. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw.egg-info/entry_points.txt +0 -0
  97. {pyhw-0.6.2 → pyhw-0.6.4}/src/pyhw.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyhw
3
- Version: 0.6.2
3
+ Version: 0.6.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
@@ -13,7 +13,7 @@ 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.0.3
16
+ Requires-Dist: pypci-ng>=0.0.8
17
17
 
18
18
  # PyHw
19
19
  [![Downloads](https://static.pepy.tech/badge/pyhw)](https://pepy.tech/project/pyhw)
@@ -83,6 +83,10 @@ This is due to the fact that system python is not supposed to be managed by pip.
83
83
 
84
84
  ## Build from source
85
85
  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.
86
+
87
+ ### Dependencies
88
+ This package was originally implemented in pure python and only depends on the python standard library. However, in subsequent development, the code for the pci part was separated into a separate package **pypci-ng**, which can be obtained using pip (or check out [this](https://github.com/xiaoran007/pypci) GitHub repository).
89
+
86
90
  ### Build tools
87
91
  Make sure the following Python build tools are already installed.
88
92
  * setuptools
@@ -98,3 +102,8 @@ After the build process, the source package and the binary whl package can be fo
98
102
  ```shell
99
103
  pip install dist/*.whl --force-reinstall
100
104
  ```
105
+ Or simply type:
106
+ ```shell
107
+ make build
108
+ make install
109
+ ```
@@ -66,6 +66,10 @@ This is due to the fact that system python is not supposed to be managed by pip.
66
66
 
67
67
  ## Build from source
68
68
  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.
69
+
70
+ ### Dependencies
71
+ This package was originally implemented in pure python and only depends on the python standard library. However, in subsequent development, the code for the pci part was separated into a separate package **pypci-ng**, which can be obtained using pip (or check out [this](https://github.com/xiaoran007/pypci) GitHub repository).
72
+
69
73
  ### Build tools
70
74
  Make sure the following Python build tools are already installed.
71
75
  * setuptools
@@ -81,3 +85,8 @@ After the build process, the source package and the binary whl package can be fo
81
85
  ```shell
82
86
  pip install dist/*.whl --force-reinstall
83
87
  ```
88
+ Or simply type:
89
+ ```shell
90
+ make build
91
+ make install
92
+ ```
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyhw"
7
- version = "0.6.2"
7
+ version = "0.6.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 = [
@@ -14,7 +14,7 @@ readme = "README.md"
14
14
  license = {text = "BSD-3-Clause"}
15
15
  requires-python = ">=3.9"
16
16
  dependencies = [
17
- "pypci-ng>=0.0.3"
17
+ "pypci-ng>=0.0.8"
18
18
  ]
19
19
  classifiers = [
20
20
  "Development Status :: 4 - Beta",
@@ -172,6 +172,16 @@ class HostDetectMacOS:
172
172
 
173
173
  elif hw_model.startswith("Mac"):
174
174
  version = hw_model[len("Mac"):]
175
+ if self.__hwModelCheck(version, "16,3"):
176
+ return "iMac (24-inch, 2024, Four Thunderbolt / USB 4 ports)"
177
+ if self.__hwModelCheck(version, "16,2"):
178
+ return "iMac (24-inch, 2024, Two Thunderbolt / USB 4 ports)"
179
+ if self.__hwModelCheck(version, "16,1") or self.__hwModelCheck(version, "16,6") or self.__hwModelCheck(version, "16,8"):
180
+ return "MacBook Pro (14-inch, 2024, Three Thunderbolt 4 ports)"
181
+ if self.__hwModelCheck(version, "16,5") or self.__hwModelCheck(version, "16,7"):
182
+ return "MacBook Pro (16-inch, 2024, Three Thunderbolt 4 ports)"
183
+ if self.__hwModelCheck(version, "16,10") or self.__hwModelCheck(version, "16,15"):
184
+ return "Mac mini (M4, 2024)"
175
185
  if self.__hwModelCheck(version, "15,13"):
176
186
  return "MacBook Air (15-inch, M3, 2024)"
177
187
  if self.__hwModelCheck(version, "15,2"):
@@ -262,7 +272,7 @@ class HostDetectMacOS:
262
272
  if self.__hwModelCheck(version, "9,1"):
263
273
  return "iMac (24/20-inch, Early 2009)"
264
274
 
265
- return "Unknown Mac Model"
275
+ return hw_model
266
276
 
267
277
  @staticmethod
268
278
  def __hwModelCheck(version: str, target: str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyhw
3
- Version: 0.6.2
3
+ Version: 0.6.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
@@ -13,7 +13,7 @@ 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.0.3
16
+ Requires-Dist: pypci-ng>=0.0.8
17
17
 
18
18
  # PyHw
19
19
  [![Downloads](https://static.pepy.tech/badge/pyhw)](https://pepy.tech/project/pyhw)
@@ -83,6 +83,10 @@ This is due to the fact that system python is not supposed to be managed by pip.
83
83
 
84
84
  ## Build from source
85
85
  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.
86
+
87
+ ### Dependencies
88
+ This package was originally implemented in pure python and only depends on the python standard library. However, in subsequent development, the code for the pci part was separated into a separate package **pypci-ng**, which can be obtained using pip (or check out [this](https://github.com/xiaoran007/pypci) GitHub repository).
89
+
86
90
  ### Build tools
87
91
  Make sure the following Python build tools are already installed.
88
92
  * setuptools
@@ -98,3 +102,8 @@ After the build process, the source package and the binary whl package can be fo
98
102
  ```shell
99
103
  pip install dist/*.whl --force-reinstall
100
104
  ```
105
+ Or simply type:
106
+ ```shell
107
+ make build
108
+ make install
109
+ ```
@@ -0,0 +1 @@
1
+ pypci-ng>=0.0.8
@@ -1 +0,0 @@
1
- pypci-ng>=0.0.3
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