pyhw 0.11.0__py3-none-any.whl → 0.11.2__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/__main__.py +6 -4
- pyhw/backend/npu/macos.py +14 -14
- {pyhw-0.11.0.dist-info → pyhw-0.11.2.dist-info}/METADATA +1 -1
- {pyhw-0.11.0.dist-info → pyhw-0.11.2.dist-info}/RECORD +9 -9
- {pyhw-0.11.0.dist-info → pyhw-0.11.2.dist-info}/LICENSE +0 -0
- {pyhw-0.11.0.dist-info → pyhw-0.11.2.dist-info}/WHEEL +0 -0
- {pyhw-0.11.0.dist-info → pyhw-0.11.2.dist-info}/entry_points.txt +0 -0
- {pyhw-0.11.0.dist-info → pyhw-0.11.2.dist-info}/top_level.txt +0 -0
pyhw/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '0.11.
|
1
|
+
__version__ = '0.11.2'
|
pyhw/__main__.py
CHANGED
@@ -14,6 +14,7 @@ from .backend.npu import NPUDetect
|
|
14
14
|
from .pyhwUtil import createDataString
|
15
15
|
from .pyhwUtil import getOS, selectOSLogo
|
16
16
|
from .pyhwUtil import ReleaseChecker
|
17
|
+
from .frontend.color import colorPrefix, colorSuffix, ColorSet
|
17
18
|
import multiprocessing
|
18
19
|
|
19
20
|
|
@@ -22,6 +23,7 @@ def check_release(release_dict):
|
|
22
23
|
release_dict["is_new_release"] = releaseChecker.check_for_updates()
|
23
24
|
release_dict["release"] = releaseChecker.LatestVersion
|
24
25
|
release_dict["current"] = releaseChecker.CurrentVersion
|
26
|
+
release_dict["is_in_pipx"] = releaseChecker.isInPIPX
|
25
27
|
|
26
28
|
|
27
29
|
def detect_title(os, result_dict):
|
@@ -116,11 +118,11 @@ def main():
|
|
116
118
|
processes[0].join()
|
117
119
|
if release_dict["is_new_release"]:
|
118
120
|
print(f"🔔 Found a newer version: v{release_dict['release']} (current: v{release_dict['current']})")
|
119
|
-
print("
|
120
|
-
if
|
121
|
-
print(f"
|
121
|
+
print("🚀 You can use the following command to upgrade:")
|
122
|
+
if release_dict["is_in_pipx"]:
|
123
|
+
print(f"👉 {colorPrefix(ColorSet.COLOR_MODE_BOLD)}{colorPrefix(ColorSet.COLOR_FG_YELLOW)}pipx upgrade pyhw{colorSuffix()}")
|
122
124
|
else:
|
123
|
-
print(f"
|
125
|
+
print(f"👉 {colorPrefix(ColorSet.COLOR_MODE_BOLD)}{colorPrefix(ColorSet.COLOR_FG_YELLOW)}pip install -U pyhw{colorSuffix()}")
|
124
126
|
# else:
|
125
127
|
# # debug
|
126
128
|
# print("🎉 You are using the latest version of pyhw!")
|
pyhw/backend/npu/macos.py
CHANGED
@@ -46,20 +46,20 @@ class NPUDetectMacOS:
|
|
46
46
|
# see https://apple.fandom.com/wiki/Neural_Engine for more details.
|
47
47
|
model_name = CPUDetect(os=getOS()).getCPUInfo().model
|
48
48
|
npu = {
|
49
|
-
"Apple M1": "Apple Neural Engine 16
|
50
|
-
"Apple M1 Pro": "Apple Neural Engine 16
|
51
|
-
"Apple M1 Max": "Apple Neural Engine 16
|
52
|
-
"Apple M1 Ultra": "Apple Neural Engine 32
|
53
|
-
"Apple M2": "Apple Neural Engine 16
|
54
|
-
"Apple M2 Pro": "Apple Neural Engine 16
|
55
|
-
"Apple M2 Max": "Apple Neural Engine 16
|
56
|
-
"Apple M2 Ultra": "Apple Neural Engine 32
|
57
|
-
"Apple M3": "Apple Neural Engine 16
|
58
|
-
"Apple M3 Pro": "Apple Neural Engine 16
|
59
|
-
"Apple M3 Max": "Apple Neural Engine 16
|
60
|
-
"Apple M4": "Apple Neural Engine 16
|
61
|
-
"Apple M4 Pro": "Apple Neural Engine 16
|
62
|
-
"Apple M4 Max": "Apple Neural Engine 16
|
49
|
+
"Apple M1": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
50
|
+
"Apple M1 Pro": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
51
|
+
"Apple M1 Max": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
52
|
+
"Apple M1 Ultra": "Apple Neural Engine 32 Cores (5 nm) [SOC Integrated]",
|
53
|
+
"Apple M2": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
54
|
+
"Apple M2 Pro": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
55
|
+
"Apple M2 Max": "Apple Neural Engine 16 Cores (5 nm) [SOC Integrated]",
|
56
|
+
"Apple M2 Ultra": "Apple Neural Engine 32 Cores (5 nm) [SOC Integrated]",
|
57
|
+
"Apple M3": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
58
|
+
"Apple M3 Pro": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
59
|
+
"Apple M3 Max": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
60
|
+
"Apple M4": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
61
|
+
"Apple M4 Pro": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]",
|
62
|
+
"Apple M4 Max": "Apple Neural Engine 16 Cores (3 nm) [SOC Integrated]"
|
63
63
|
}
|
64
64
|
return npu.get(model_name, "Not Found")
|
65
65
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
pyhw/__init__.py,sha256=
|
2
|
-
pyhw/__main__.py,sha256=
|
1
|
+
pyhw/__init__.py,sha256=GVW5OUsne42Hc51Qp5bYDLyYK2DyGUCaZC1c77xCNO4,23
|
2
|
+
pyhw/__main__.py,sha256=8HSnrBI8lNTo8K4iQTqBkiMGdwvtuXR3S05qdHKR42I,4790
|
3
3
|
pyhw/backend/__init__.py,sha256=knn_3Yroow1h0dqdrozk3zyy3vz-kQyNBRjR6OLmVoY,50
|
4
4
|
pyhw/backend/backendBase.py,sha256=mloo8mPEbgbIdmyQ3I4vdEXMSSjxWi_wnwACmzvHbEo,506
|
5
5
|
pyhw/backend/cpu/__init__.py,sha256=5YfANJVRwNwTRodG0ENOgusrdN592aaSnfq5ok4dKTo,56
|
@@ -46,7 +46,7 @@ pyhw/backend/nic/windows.py,sha256=c67JwHARtPxNsZ-0_MVKUfc7DwpsRVn7kiHdx_NyDn8,1
|
|
46
46
|
pyhw/backend/npu/__init__.py,sha256=PgLKbwpgT5vw9xpa294Zxb94McyxNXW46_vMbT2Iqyc,58
|
47
47
|
pyhw/backend/npu/bsd.py,sha256=eKkOWZ4MBybR_KOGGcsWUpzCGgghhvuBy5VNsnEE8cI,134
|
48
48
|
pyhw/backend/npu/linux.py,sha256=fPsaXClSC-Py2kHRi17y4eGWrjwRDmjsIX4lgMxRVPc,1806
|
49
|
-
pyhw/backend/npu/macos.py,sha256=
|
49
|
+
pyhw/backend/npu/macos.py,sha256=qOIXfWILnA-sAKH6nq_cep7BlH0rKk4bglc1VgyKp6U,2625
|
50
50
|
pyhw/backend/npu/npuBase.py,sha256=1cVWRmr8g-mDXrJAx2cUO4qWZft2TtT7L2-HzRot2nI,748
|
51
51
|
pyhw/backend/npu/npuInfo.py,sha256=82dK6XvW_XKw4O5-RfR4-qQRR7Plh8qqJLj0YDzISmU,135
|
52
52
|
pyhw/backend/npu/windows.py,sha256=Z2v5CORSa1ap66k48G7uVLbon3zaoT4ug5sX2_rt6vM,1196
|
@@ -106,9 +106,9 @@ pyhw/pyhwUtil/__init__.py,sha256=34ygvVBBqfJ_9OMzHToCcV_BVahixNsa_Z5yh6VsaPQ,304
|
|
106
106
|
pyhw/pyhwUtil/cliUtil.py,sha256=SuXAs-ousXw6h5i8psazJEP5Q9X5VaxZlxhPSFYdM-4,1933
|
107
107
|
pyhw/pyhwUtil/pyhwUtil.py,sha256=TxAgsDlrz-AJFyeXnOjL1MVnh1uR9dEqli5dmYPZcog,6915
|
108
108
|
pyhw/pyhwUtil/sysctlUtil.py,sha256=S-rUvqi7ZrMyMouIhxlyHEQ4agM7sCT1Y7uzs3Hu5-o,841
|
109
|
-
pyhw-0.11.
|
110
|
-
pyhw-0.11.
|
111
|
-
pyhw-0.11.
|
112
|
-
pyhw-0.11.
|
113
|
-
pyhw-0.11.
|
114
|
-
pyhw-0.11.
|
109
|
+
pyhw-0.11.2.dist-info/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
|
110
|
+
pyhw-0.11.2.dist-info/METADATA,sha256=T-an2HtTGEA2otXJ-7-TYiY9Vu9TTdKnKhkQfHYWycQ,6732
|
111
|
+
pyhw-0.11.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
112
|
+
pyhw-0.11.2.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
|
113
|
+
pyhw-0.11.2.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
|
114
|
+
pyhw-0.11.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|