ActionStreamer 0.2.4__tar.gz → 0.2.6__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.
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Device/Device.py +13 -11
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/PKG-INFO +1 -1
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/pyproject.toml +1 -1
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/CommonFunctions/CommonFunctions.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/CommonFunctions/Wifi/Wifi.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/CommonFunctions/Wifi/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/CommonFunctions/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/Model/Model.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/Model/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/API/API.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/API/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Config/Config.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Config/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Device/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Event/Event.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Event/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/File/File.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/File/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Health/Health.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Health/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/LogMessage/LogMessage.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/LogMessage/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Patch/Patch.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/Patch/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/VideoClip/VideoClip.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/VideoClip/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/__init__.py +0 -0
- {actionstreamer-0.2.4 → actionstreamer-0.2.6}/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
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
except Exception:
|
|
105
|
+
with open("/proc/cpuinfo", "r") as f:
|
|
106
|
+
for line in f:
|
|
107
|
+
if line.startswith("Hardware"):
|
|
108
|
+
return parse_manufacturer(line.split(":")[1].strip()), 0
|
|
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
|
|
{actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/CommonFunctions/CommonFunctions.py
RENAMED
|
File without changes
|
|
File without changes
|
{actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/CommonFunctions/Wifi/__init__.py
RENAMED
|
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
|
{actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/LogMessage/LogMessage.py
RENAMED
|
File without changes
|
{actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/LogMessage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/VideoClip/VideoClip.py
RENAMED
|
File without changes
|
{actionstreamer-0.2.4 → actionstreamer-0.2.6}/ActionStreamer/WebService/VideoClip/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|