pyhw 0.3.1__tar.gz → 0.3.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. {pyhw-0.3.1/src/pyhw.egg-info → pyhw-0.3.3}/PKG-INFO +8 -2
  2. {pyhw-0.3.1 → pyhw-0.3.3}/README.md +7 -1
  3. {pyhw-0.3.1 → pyhw-0.3.3}/pyproject.toml +1 -1
  4. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/cpu/linux.py +5 -0
  5. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/gpu/linux.py +12 -2
  6. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/os/linux.py +5 -0
  7. {pyhw-0.3.1 → pyhw-0.3.3/src/pyhw.egg-info}/PKG-INFO +8 -2
  8. {pyhw-0.3.1 → pyhw-0.3.3}/LICENSE +0 -0
  9. {pyhw-0.3.1 → pyhw-0.3.3}/MANIFEST.in +0 -0
  10. {pyhw-0.3.1 → pyhw-0.3.3}/setup.cfg +0 -0
  11. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/__init__.py +0 -0
  12. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/__main__.py +0 -0
  13. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/__init__.py +0 -0
  14. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/backendBase.py +0 -0
  15. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/cpu/__init__.py +0 -0
  16. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/cpu/cpuBase.py +0 -0
  17. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/cpu/cpuInfo.py +0 -0
  18. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/cpu/macos.py +0 -0
  19. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/gpu/__init__.py +0 -0
  20. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/gpu/gpuBase.py +0 -0
  21. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/gpu/gpuInfo.py +0 -0
  22. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/gpu/macos.py +0 -0
  23. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/host/__init__.py +0 -0
  24. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/host/hostBase.py +0 -0
  25. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/host/hostInfo.py +0 -0
  26. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/host/linux.py +0 -0
  27. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/host/macos.py +0 -0
  28. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/host/windows.py +0 -0
  29. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/kernel/__init__.py +0 -0
  30. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/kernel/kernelBase.py +0 -0
  31. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/kernel/kernelInfo.py +0 -0
  32. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/kernel/unix.py +0 -0
  33. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/kernel/windows.py +0 -0
  34. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/memory/__init__.py +0 -0
  35. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/memory/linux.py +0 -0
  36. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/memory/macos.py +0 -0
  37. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/memory/memoryBase.py +0 -0
  38. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/memory/memoryInfo.py +0 -0
  39. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/metal/t.py +0 -0
  40. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/os/__init__.py +0 -0
  41. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/os/macos.py +0 -0
  42. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/os/osBase.py +0 -0
  43. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/os/osInfo.py +0 -0
  44. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/shell/__init__.py +0 -0
  45. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/shell/shellBase.py +0 -0
  46. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/shell/unix.py +0 -0
  47. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/title/__init__.py +0 -0
  48. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/title/titleBase.py +0 -0
  49. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/title/unix.py +0 -0
  50. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/title/windows.py +0 -0
  51. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/uptime/__init__.py +0 -0
  52. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/uptime/linux.py +0 -0
  53. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/uptime/macos.py +0 -0
  54. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/uptime/uptimeBase.py +0 -0
  55. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/backend/uptime/uptimeInfo.py +0 -0
  56. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/__init__.py +0 -0
  57. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/color/__init__.py +0 -0
  58. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/color/colorConfig.py +0 -0
  59. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/color/colorSet.py +0 -0
  60. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/color/colorUtil.py +0 -0
  61. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/frontendBase.py +0 -0
  62. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/__init__.py +0 -0
  63. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/ascii/armbian.pyhw +0 -0
  64. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/ascii/debian.pyhw +0 -0
  65. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/ascii/fedora.pyhw +0 -0
  66. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/ascii/fedora_small.pyhw +0 -0
  67. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/ascii/linux.pyhw +0 -0
  68. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/ascii/macOS.pyhw +0 -0
  69. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/ascii/raspbian.pyhw +0 -0
  70. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/ascii/ubuntu.pyhw +0 -0
  71. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw +0 -0
  72. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/frontend/logo/logoBase.py +0 -0
  73. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/macos.py +0 -0
  74. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/pyhwException/__init__.py +0 -0
  75. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/pyhwException/pyhwException.py +0 -0
  76. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/pyhwUtil/__init__.py +0 -0
  77. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/pyhwUtil/pyhwUtil.py +0 -0
  78. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw/pyhwUtil/sysctlUtil.py +0 -0
  79. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw.egg-info/SOURCES.txt +0 -0
  80. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw.egg-info/dependency_links.txt +0 -0
  81. {pyhw-0.3.1 → pyhw-0.3.3}/src/pyhw.egg-info/entry_points.txt +0 -0
  82. {pyhw-0.3.1 → pyhw-0.3.3}/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.3.1
3
+ Version: 0.3.3
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
@@ -15,7 +15,7 @@ Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
 
17
17
  # PyHw
18
- ![PyPI - Downloads](https://img.shields.io/pypi/dw/pyhw?label=PyPI)
18
+ [![Downloads](https://static.pepy.tech/badge/pyhw)](https://pepy.tech/project/pyhw)
19
19
  ![PyPI - Version](https://img.shields.io/pypi/v/pyhw?label=version)
20
20
 
21
21
  ![Static Badge](https://img.shields.io/badge/macOS-brightgreen)
@@ -26,6 +26,12 @@ PyHw, a neofetch-like command line tool for fetching system information but writ
26
26
 
27
27
  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 🤔).
28
28
 
29
+
30
+ ![demo](https://i2.imgs.ovh/d/BQACAgUAAx0EUvSR8wACMvpmyFVohzKxLcUdLiJaEa3wlo_OrQACuw4AAoX-QVaSpG0-rTAeRTUE)
31
+
32
+
33
+
34
+
29
35
  ## Install
30
36
  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, just install it directly by pip.
31
37
  ```shell
@@ -1,5 +1,5 @@
1
1
  # PyHw
2
- ![PyPI - Downloads](https://img.shields.io/pypi/dw/pyhw?label=PyPI)
2
+ [![Downloads](https://static.pepy.tech/badge/pyhw)](https://pepy.tech/project/pyhw)
3
3
  ![PyPI - Version](https://img.shields.io/pypi/v/pyhw?label=version)
4
4
 
5
5
  ![Static Badge](https://img.shields.io/badge/macOS-brightgreen)
@@ -10,6 +10,12 @@ PyHw, a neofetch-like command line tool for fetching system information but writ
10
10
 
11
11
  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 🤔).
12
12
 
13
+
14
+ ![demo](https://i2.imgs.ovh/d/BQACAgUAAx0EUvSR8wACMvpmyFVohzKxLcUdLiJaEa3wlo_OrQACuw4AAoX-QVaSpG0-rTAeRTUE)
15
+
16
+
17
+
18
+
13
19
  ## Install
14
20
  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, just install it directly by pip.
15
21
  ```shell
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyhw"
7
- version = "0.3.1"
7
+ version = "0.3.3"
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 = [
@@ -68,6 +68,11 @@ class CPUDetectLinux:
68
68
  model = compatible.split(",")[-1]
69
69
  if model.startswith("bcm"):
70
70
  self.__cpuInfo.model = model.upper()
71
+ elif "orangepi" in compatible:
72
+ if "allwinner" in compatible:
73
+ model = compatible.split(",")[-1]
74
+ if model.startswith("sun"):
75
+ self.__cpuInfo.model = f"Allwinner {model.split('-')[-1].upper()} ({model})"
71
76
  else:
72
77
  pass
73
78
 
@@ -10,6 +10,7 @@ class GPUDetectLinux:
10
10
 
11
11
  def getGPUInfo(self):
12
12
  self.__getGPUInfo()
13
+ self.__sortGPUList()
13
14
  return self.__gpuInfo
14
15
 
15
16
  def __getGPUInfo(self):
@@ -20,9 +21,9 @@ class GPUDetectLinux:
20
21
  if len(pci_info) == 0: # no pcie devices found
21
22
  self.__handleNonePciDevices()
22
23
  for line in pci_info.split("\n"):
23
- if "VGA" in line or "Display" in line or "3D" in line:
24
+ if "VGA" in line or "Display" in line or "3D " in line:
24
25
  gpu = line.split(": ")[1]
25
- self.__gpuInfo.gpus.append(gpu)
26
+ self.__gpuInfo.gpus.append(self.__gpuNameClean(gpu))
26
27
  self.__gpuInfo.number += 1
27
28
  if self.__gpuInfo.number == 0:
28
29
  self.__handleNonePciDevices() # fallback to a sbc device detection method
@@ -35,3 +36,12 @@ class GPUDetectLinux:
35
36
  else:
36
37
  self.__gpuInfo.number = 1
37
38
  self.__gpuInfo.gpus.append("Not found")
39
+
40
+ @staticmethod
41
+ def __gpuNameClean(gpu_name: str):
42
+ gpu_name_clean = gpu_name.replace("Corporation", "")
43
+ return gpu_name_clean
44
+
45
+ def __sortGPUList(self):
46
+ self.__gpuInfo.gpus.sort()
47
+
@@ -14,6 +14,7 @@ class OSDetectLinux:
14
14
  :return: dataclass OSInfoLinux, direct attrs: prettyName
15
15
  """
16
16
  self.__getOSInfo()
17
+ self.__handleArmbian()
17
18
  return self.__osInfo
18
19
 
19
20
  def __getOSInfo(self):
@@ -45,3 +46,7 @@ class OSDetectLinux:
45
46
  self.__osInfo.buildID = value.strip('"')
46
47
  except Exception:
47
48
  pass
49
+
50
+ def __handleArmbian(self):
51
+ if "Armbian" in self.__osInfo.prettyName or "armbian" in self.__osInfo.prettyName:
52
+ self.__osInfo.id = "armbian"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyhw
3
- Version: 0.3.1
3
+ Version: 0.3.3
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
@@ -15,7 +15,7 @@ Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
 
17
17
  # PyHw
18
- ![PyPI - Downloads](https://img.shields.io/pypi/dw/pyhw?label=PyPI)
18
+ [![Downloads](https://static.pepy.tech/badge/pyhw)](https://pepy.tech/project/pyhw)
19
19
  ![PyPI - Version](https://img.shields.io/pypi/v/pyhw?label=version)
20
20
 
21
21
  ![Static Badge](https://img.shields.io/badge/macOS-brightgreen)
@@ -26,6 +26,12 @@ PyHw, a neofetch-like command line tool for fetching system information but writ
26
26
 
27
27
  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 🤔).
28
28
 
29
+
30
+ ![demo](https://i2.imgs.ovh/d/BQACAgUAAx0EUvSR8wACMvpmyFVohzKxLcUdLiJaEa3wlo_OrQACuw4AAoX-QVaSpG0-rTAeRTUE)
31
+
32
+
33
+
34
+
29
35
  ## Install
30
36
  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, just install it directly by pip.
31
37
  ```shell
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