ActionStreamer 0.2.4__tar.gz → 0.2.5__tar.gz

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.
Files changed (29) hide show
  1. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Device/Device.py +9 -7
  2. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/PKG-INFO +1 -1
  3. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/pyproject.toml +1 -1
  4. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/CommonFunctions/CommonFunctions.py +0 -0
  5. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/CommonFunctions/Wifi/Wifi.py +0 -0
  6. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/CommonFunctions/Wifi/__init__.py +0 -0
  7. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/CommonFunctions/__init__.py +0 -0
  8. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/Model/Model.py +0 -0
  9. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/Model/__init__.py +0 -0
  10. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/API/API.py +0 -0
  11. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/API/__init__.py +0 -0
  12. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Config/Config.py +0 -0
  13. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Config/__init__.py +0 -0
  14. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Device/__init__.py +0 -0
  15. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Event/Event.py +0 -0
  16. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Event/__init__.py +0 -0
  17. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/File/File.py +0 -0
  18. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/File/__init__.py +0 -0
  19. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Health/Health.py +0 -0
  20. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Health/__init__.py +0 -0
  21. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/LogMessage/LogMessage.py +0 -0
  22. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/LogMessage/__init__.py +0 -0
  23. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Patch/Patch.py +0 -0
  24. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/Patch/__init__.py +0 -0
  25. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/VideoClip/VideoClip.py +0 -0
  26. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/VideoClip/__init__.py +0 -0
  27. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/WebService/__init__.py +0 -0
  28. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/ActionStreamer/__init__.py +0 -0
  29. {actionstreamer-0.2.4 → actionstreamer-0.2.5}/README.md +0 -0
@@ -83,33 +83,35 @@ def get_manufacturer():
83
83
 
84
84
  if platform.system() == "Windows":
85
85
  return get_manufacturer_windows()
86
- elif platform.system() == "Linux":
87
- return get_manufacturer_linux()
88
86
  else:
89
- return "", 1
87
+ return get_manufacturer_linux()
90
88
 
91
89
 
92
90
  def get_manufacturer_windows():
93
-
94
91
  try:
95
92
  import wmi
96
93
  w = wmi.WMI()
97
94
  for processor in w.Win32_Processor():
98
95
  return parse_manufacturer(processor.Manufacturer.strip()), 0
99
- except Exception:
96
+ except Exception as e:
97
+ print(f"Exception in get_manufacturer_windows: {e}")
100
98
  return "", 1
101
99
 
100
+ return "", 1
102
101
 
103
- def get_manufacturer_linux():
104
102
 
103
+ def get_manufacturer_linux():
105
104
  try:
106
105
  result = subprocess.run(['dmidecode', '-t', 'processor'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
107
106
  for line in result.stdout.splitlines():
108
107
  if line.strip().startswith("Manufacturer"):
109
108
  return parse_manufacturer(line.split(":")[1].strip()), 0
110
- except Exception:
109
+ except Exception as e:
110
+ print(f"Exception in get_manufacturer_linux: {e}")
111
111
  return "", 1
112
112
 
113
+ return "", 1
114
+
113
115
 
114
116
  def parse_manufacturer(manufacturer):
115
117
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ActionStreamer
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: A library for the ActionStreamer API.
5
5
  Author: ActionStreamer
6
6
  Author-email: joe@actionstreamer.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ActionStreamer"
3
- version = "0.2.4"
3
+ version = "0.2.5"
4
4
  description = "A library for the ActionStreamer API."
5
5
  authors = ["ActionStreamer <joe@actionstreamer.com>"]
6
6
  readme = "README.md"
File without changes