SHICTHRSMACE 1.2.0__tar.gz → 1.3.0__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.
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/PKG-INFO +1 -1
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/SHRMACE_Data.py +2 -1
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/__init__.py +1 -1
- shicthrsmace-1.3.0/SHICTHRSMACE/api/SHRMACE_get_system_info.py +41 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/utils/SHRMACE_dispatcher.py +2 -1
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE.egg-info/PKG-INFO +1 -1
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE.egg-info/SOURCES.txt +1 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/setup.py +1 -1
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/SHRMACE_ErrorBase.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_cpu_id.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_cpu_info.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_cpu_vendor.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_disk_id.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_disk_info.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_gpu_id.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_gpu_info.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_mac_info.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_mb_id.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_mb_info.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_mem_info.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_pdc_id.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/SHRMACE_get_uuid.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/api/__init__.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE/utils/__init__.py +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE.egg-info/dependency_links.txt +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE.egg-info/not-zip-safe +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE.egg-info/requires.txt +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/SHICTHRSMACE.egg-info/top_level.txt +0 -0
- {shicthrsmace-1.2.0 → shicthrsmace-1.3.0}/setup.cfg +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
import platform
|
|
3
|
+
import copy
|
|
4
|
+
from ..SHRMACE_ErrorBase import SHRMACEException
|
|
5
|
+
|
|
6
|
+
MEM_INFO_COMMAND : str = 'wmic memorychip get Manufacturer, PartNumber, SerialNumber, Capacity, Speed, DeviceLocator, MemoryType, FormFactor'
|
|
7
|
+
|
|
8
|
+
def get_system_info(var) -> None:
|
|
9
|
+
try:
|
|
10
|
+
os_name : str = platform.system()
|
|
11
|
+
os_version : str = platform.version()
|
|
12
|
+
architecture : str = platform.architecture()[0]
|
|
13
|
+
architecture_type : str = platform.architecture()[1]
|
|
14
|
+
system_type : str = get_win_platform()
|
|
15
|
+
result : dict = {'os_name' : os_name , 'os_version' : os_version ,
|
|
16
|
+
'architecture' : architecture , 'architecture_type' : architecture_type ,
|
|
17
|
+
'platform' : system_type}
|
|
18
|
+
var.SHRMACEResult['WindowsSystemInfo'] = copy.deepcopy(result)
|
|
19
|
+
except Exception as e:
|
|
20
|
+
raise SHRMACEException(f'SHRMACE [ERROR.2014] unable to system info | {str(e)}')
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def get_win_platform() -> str:
|
|
24
|
+
version = platform.version().split('.')
|
|
25
|
+
|
|
26
|
+
if len(version) < 3:
|
|
27
|
+
raise SHRMACEException(f'SHRMACE [ERROR.2014.0] windows version is not supported')
|
|
28
|
+
|
|
29
|
+
major = int(version[0])
|
|
30
|
+
minor = int(version[1])
|
|
31
|
+
build = int(version[2])
|
|
32
|
+
|
|
33
|
+
if major == 10 and minor == 0:
|
|
34
|
+
if build >= 22000:
|
|
35
|
+
return "windows 11"
|
|
36
|
+
|
|
37
|
+
elif build >= 10240:
|
|
38
|
+
return "windows 10"
|
|
39
|
+
else:
|
|
40
|
+
raise SHRMACEException(f'SHRMACE [ERROR.2014.1] windows version only support 10.0.22000 and above')
|
|
41
|
+
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import threading
|
|
3
3
|
from ..SHRMACE_ErrorBase import SHRMACEException
|
|
4
4
|
from ..SHRMACE_Data import SHRMACEData
|
|
5
|
+
from ..api.SHRMACE_get_system_info import get_system_info
|
|
5
6
|
from ..api.SHRMACE_get_uuid import get_uuid
|
|
6
7
|
from ..api.SHRMACE_get_pdc_id import get_pdc_id
|
|
7
8
|
from ..api.SHRMACE_get_cpu_info import get_cpu_info
|
|
@@ -15,7 +16,7 @@ from ..api.SHRMACE_get_disk_info import get_disk_info
|
|
|
15
16
|
from ..api.SHRMACE_get_mem_info import get_mem_info
|
|
16
17
|
from ..api.SHRMACE_get_mac_info import get_mac_info
|
|
17
18
|
|
|
18
|
-
MACE_PROCESS_LIST : list = [get_uuid , get_pdc_id , get_cpu_info ,
|
|
19
|
+
MACE_PROCESS_LIST : list = [get_system_info , get_uuid , get_pdc_id , get_cpu_info ,
|
|
19
20
|
get_cpu_id , get_cpu_vendor , get_mb_info ,
|
|
20
21
|
get_mb_id , get_gpu_info , get_gpu_id ,
|
|
21
22
|
get_disk_info , get_mem_info , get_mac_info]
|
|
@@ -20,6 +20,7 @@ SHICTHRSMACE/api/SHRMACE_get_mb_id.py
|
|
|
20
20
|
SHICTHRSMACE/api/SHRMACE_get_mb_info.py
|
|
21
21
|
SHICTHRSMACE/api/SHRMACE_get_mem_info.py
|
|
22
22
|
SHICTHRSMACE/api/SHRMACE_get_pdc_id.py
|
|
23
|
+
SHICTHRSMACE/api/SHRMACE_get_system_info.py
|
|
23
24
|
SHICTHRSMACE/api/SHRMACE_get_uuid.py
|
|
24
25
|
SHICTHRSMACE/api/__init__.py
|
|
25
26
|
SHICTHRSMACE/utils/SHRMACE_dispatcher.py
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|