pyhw 0.1.2b0__tar.gz → 0.1.3b0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. {pyhw-0.1.2b0/src/pyhw.egg-info → pyhw-0.1.3b0}/PKG-INFO +1 -3
  2. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/pyproject.toml +1 -1
  3. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/__main__.py +1 -1
  4. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/cpu/linux.py +5 -0
  5. {pyhw-0.1.2b0 → pyhw-0.1.3b0/src/pyhw.egg-info}/PKG-INFO +1 -3
  6. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw.egg-info/SOURCES.txt +0 -1
  7. pyhw-0.1.2b0/setup.py +0 -28
  8. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/LICENSE +0 -0
  9. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/MANIFEST.in +0 -0
  10. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/README.md +0 -0
  11. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/setup.cfg +0 -0
  12. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/__init__.py +0 -0
  13. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/__init__.py +0 -0
  14. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/backendBase.py +0 -0
  15. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/cpu/__init__.py +0 -0
  16. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/cpu/cpuBase.py +0 -0
  17. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/gpu/__init__.py +0 -0
  18. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/gpu/gpuBase.py +0 -0
  19. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/gpu/linux.py +0 -0
  20. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/host/__init__.py +0 -0
  21. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/host/hostBase.py +0 -0
  22. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/host/linux.py +0 -0
  23. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/host/macos.py +0 -0
  24. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/host/windows.py +0 -0
  25. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/kernel/__init__.py +0 -0
  26. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/kernel/kernelBase.py +0 -0
  27. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/kernel/linux.py +0 -0
  28. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/kernel/macos.py +0 -0
  29. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/kernel/windows.py +0 -0
  30. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/memory/__init__.py +0 -0
  31. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/memory/linux.py +0 -0
  32. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/memory/memoryBase.py +0 -0
  33. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/metal/t.py +0 -0
  34. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/os/__init__.py +0 -0
  35. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/os/linux.py +0 -0
  36. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/os/osBase.py +0 -0
  37. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/shell/__init__.py +0 -0
  38. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/shell/shellBase.py +0 -0
  39. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/shell/unix.py +0 -0
  40. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/title/__init__.py +0 -0
  41. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/title/titleBase.py +0 -0
  42. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/title/unix.py +0 -0
  43. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/title/windows.py +0 -0
  44. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/uptime/__init__.py +0 -0
  45. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/uptime/linux.py +0 -0
  46. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/backend/uptime/uptimeBase.py +0 -0
  47. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/__init__.py +0 -0
  48. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/color/__init__.py +0 -0
  49. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/color/colorConfig.py +0 -0
  50. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/color/colorSet.py +0 -0
  51. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/color/colorUtil.py +0 -0
  52. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/frontendBase.py +0 -0
  53. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/logo/__init__.py +0 -0
  54. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/logo/ascii/debian.pyhw +0 -0
  55. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/logo/ascii/fedora.pyhw +0 -0
  56. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/logo/ascii/fedora_small.pyhw +0 -0
  57. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/logo/ascii/linux.pyhw +0 -0
  58. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/logo/ascii/macOS.pyhw +0 -0
  59. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/logo/ascii/ubuntu.pyhw +0 -0
  60. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/logo/ascii/ubuntu_small.pyhw +0 -0
  61. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/frontend/logo/logoBase.py +0 -0
  62. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/macos.py +0 -0
  63. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/pyhwException/__init__.py +0 -0
  64. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/pyhwException/pyhwException.py +0 -0
  65. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/pyhwUtil/__init__.py +0 -0
  66. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw/pyhwUtil/pyhwUtil.py +0 -0
  67. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw.egg-info/dependency_links.txt +0 -0
  68. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw.egg-info/entry_points.txt +0 -0
  69. {pyhw-0.1.2b0 → pyhw-0.1.3b0}/src/pyhw.egg-info/top_level.txt +0 -0
@@ -1,9 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyhw
3
- Version: 0.1.2b0
3
+ Version: 0.1.3b0
4
4
  Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
5
- Home-page: https://github.com/xiaoran007/pyhw
6
- Author: Xiao Ran
7
5
  Author-email: Xiao Ran <xiaoran.007@icloud.com>
8
6
  License: BSD-3-Clause
9
7
  Project-URL: homepage, https://github.com/xiaoran007/pyhw
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyhw"
7
- version = "0.1.2b"
7
+ version = "0.1.3b"
8
8
  description = "PyHw, a neofetch-like command line tool for fetching system information but written mostly in python."
9
9
  authors = [
10
10
  { name = "Xiao Ran", email = "xiaoran.007@icloud.com" }
@@ -14,7 +14,7 @@ from .pyhwUtil import getOS, selectOSLogo
14
14
 
15
15
 
16
16
  def main():
17
- print("This is a test version of PyHw. Currently, it only supports Linux.")
17
+ print("This is a test version of PyHw. Currently, it only supports Linux. Currently there are some display issues on small terminals.")
18
18
  if getOS() != "linux":
19
19
  print(f"Only Linux is supported for now. Current os: {getOS()}")
20
20
  return
@@ -17,6 +17,7 @@ class CPUDetectLinux:
17
17
 
18
18
  def getCPUInfo(self):
19
19
  self.__getCPUInfo()
20
+ self.__modelClean()
20
21
  if self.__cpuInfo.model != "":
21
22
  self.__cpuInfo.cpu = self.__cpuInfo.model
22
23
  if self.__cpuInfo.cores != "":
@@ -54,3 +55,7 @@ class CPUDetectLinux:
54
55
  if line.startswith("cpu MHz") or line.startswith("clock"):
55
56
  self.__cpuInfo.frequency = float(line.split(":")[1].strip()) / 1000 # Ghz
56
57
  break
58
+
59
+ def __modelClean(self):
60
+ self.__cpuInfo.model = self.__cpuInfo.model.replace("(R)", "")
61
+ self.__cpuInfo.model = self.__cpuInfo.model.replace("(TM)", "")
@@ -1,9 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyhw
3
- Version: 0.1.2b0
3
+ Version: 0.1.3b0
4
4
  Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
5
- Home-page: https://github.com/xiaoran007/pyhw
6
- Author: Xiao Ran
7
5
  Author-email: Xiao Ran <xiaoran.007@icloud.com>
8
6
  License: BSD-3-Clause
9
7
  Project-URL: homepage, https://github.com/xiaoran007/pyhw
@@ -2,7 +2,6 @@ LICENSE
2
2
  MANIFEST.in
3
3
  README.md
4
4
  pyproject.toml
5
- setup.py
6
5
  src/pyhw/__init__.py
7
6
  src/pyhw/__main__.py
8
7
  src/pyhw/macos.py
pyhw-0.1.2b0/setup.py DELETED
@@ -1,28 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- setup(
4
- name="pyhw",
5
- version="0.1.0b",
6
- author="Xiao Ran",
7
- author_email="xiaoran.007@icloud.com",
8
- description="PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.",
9
- long_description=open('README.md').read(),
10
- long_description_content_type="text/markdown",
11
- url="https://github.com/xiaoran007/pyhw",
12
- license="BSD-3-Clause",
13
- packages=find_packages(where="src"),
14
- package_dir={"": "src"},
15
- include_package_data=True,
16
- entry_points={
17
- 'console_scripts': [
18
- 'pyhw=pyhw.__main__:main',
19
- ],
20
- },
21
- classifiers=[
22
- "Programming Language :: Python :: 3",
23
- "License :: OSI Approved :: BSD-3-Clause License",
24
- "Operating System :: OS Independent",
25
- ],
26
- python_requires='>=3.9',
27
- install_requires=[],
28
- )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes