HardwareMonitor 1.0.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.
- hardwaremonitor-1.0.0/.github/workflows/release.yaml +145 -0
- hardwaremonitor-1.0.0/.gitignore +20 -0
- hardwaremonitor-1.0.0/.gitmodules +6 -0
- hardwaremonitor-1.0.0/BUILD.md +23 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/CPU/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/CPU/__init__.pyi +63 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Controller/AeroCool/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Controller/AeroCool/__init__.pyi +10 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Controller/AquaComputer/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Controller/AquaComputer/__init__.pyi +10 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Controller/__init__.py +0 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Gpu/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Gpu/__init__.pyi +6 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Motherboard/Lpc/EC/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Motherboard/Lpc/EC/__init__.pyi +65 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Motherboard/Lpc/__init__.py +0 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Motherboard/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Motherboard/__init__.pyi +235 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Psu/Corsair/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Psu/Corsair/__init__.pyi +14 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Psu/__init__.py +0 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Storage/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/Storage/__init__.pyi +405 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Hardware/__init__.pyi +948 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Interop/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Interop/__init__.pyi +29 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Software/__init__.py +3 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Software/__init__.pyi +9 -0
- hardwaremonitor-1.0.0/HardwareMonitor/Util.py +193 -0
- hardwaremonitor-1.0.0/HardwareMonitor/__init__.py +21 -0
- hardwaremonitor-1.0.0/HardwareMonitor/_util/types.pyi +239 -0
- hardwaremonitor-1.0.0/HardwareMonitor/lib/HidSharp.dll +0 -0
- hardwaremonitor-1.0.0/HardwareMonitor/lib/LICENSE +373 -0
- hardwaremonitor-1.0.0/HardwareMonitor/lib/LibreHardwareMonitorLib.dll +0 -0
- hardwaremonitor-1.0.0/HardwareMonitor.egg-info/PKG-INFO +186 -0
- hardwaremonitor-1.0.0/HardwareMonitor.egg-info/SOURCES.txt +50 -0
- hardwaremonitor-1.0.0/HardwareMonitor.egg-info/dependency_links.txt +1 -0
- hardwaremonitor-1.0.0/HardwareMonitor.egg-info/requires.txt +1 -0
- hardwaremonitor-1.0.0/HardwareMonitor.egg-info/top_level.txt +1 -0
- hardwaremonitor-1.0.0/LICENSE +29 -0
- hardwaremonitor-1.0.0/PKG-INFO +186 -0
- hardwaremonitor-1.0.0/README.md +138 -0
- hardwaremonitor-1.0.0/examples/wsgi_provider.py +136 -0
- hardwaremonitor-1.0.0/pyproject.toml +45 -0
- hardwaremonitor-1.0.0/scripts/generate_all.py +10 -0
- hardwaremonitor-1.0.0/scripts/generate_namespace_init.py +172 -0
- hardwaremonitor-1.0.0/scripts/generate_stubs.py +34 -0
- hardwaremonitor-1.0.0/scripts/generate_types_util.py +41 -0
- hardwaremonitor-1.0.0/scripts/namespace_template.py +3 -0
- hardwaremonitor-1.0.0/setup.cfg +4 -0
- hardwaremonitor-1.0.0/test/TestHardwareMonitor.py +50 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "[0-9]+.[0-9]+.[0-9]+"
|
|
7
|
+
- "[0-9]+.[0-9]+.[0-9]+a[0-9]+"
|
|
8
|
+
- "[0-9]+.[0-9]+.[0-9]+b[0-9]+"
|
|
9
|
+
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
|
|
10
|
+
|
|
11
|
+
env:
|
|
12
|
+
PACKAGE_NAME: "HardwareMonitor"
|
|
13
|
+
OWNER: "SimpleNick"
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
details:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
outputs:
|
|
19
|
+
new_version: ${{ steps.release.outputs.new_version }}
|
|
20
|
+
suffix: ${{ steps.release.outputs.suffix }}
|
|
21
|
+
tag_name: ${{ steps.release.outputs.tag_name }}
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v2
|
|
24
|
+
|
|
25
|
+
- name: Extract tag and Details
|
|
26
|
+
id: release
|
|
27
|
+
run: |
|
|
28
|
+
if [ "${{ github.ref_type }}" = "tag" ]; then
|
|
29
|
+
TAG_NAME=${GITHUB_REF#refs/tags/}
|
|
30
|
+
NEW_VERSION=$(echo $TAG_NAME | awk -F'-' '{print $1}')
|
|
31
|
+
SUFFIX=$(echo $TAG_NAME | grep -oP '[a-z]+[0-9]+' || echo "")
|
|
32
|
+
echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
|
|
33
|
+
echo "suffix=$SUFFIX" >> "$GITHUB_OUTPUT"
|
|
34
|
+
echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT"
|
|
35
|
+
echo "Version is $NEW_VERSION"
|
|
36
|
+
echo "Suffix is $SUFFIX"
|
|
37
|
+
echo "Tag name is $TAG_NAME"
|
|
38
|
+
else
|
|
39
|
+
echo "No tag found"
|
|
40
|
+
exit 1
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
check_pypi:
|
|
44
|
+
needs: details
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
steps:
|
|
47
|
+
- name: Fetch information from PyPI
|
|
48
|
+
run: |
|
|
49
|
+
response=$(curl -s https://pypi.org/pypi/${{ env.PACKAGE_NAME }}/json || echo "{}")
|
|
50
|
+
latest_previous_version=$(echo $response | grep -oP '"releases":\{"\K[^"]+' | sort -rV | head -n 1)
|
|
51
|
+
if [ -z "$latest_previous_version" ]; then
|
|
52
|
+
echo "Package not found on PyPI."
|
|
53
|
+
latest_previous_version="0.0.0"
|
|
54
|
+
fi
|
|
55
|
+
echo "Latest version on PyPI: $latest_previous_version"
|
|
56
|
+
echo "latest_previous_version=$latest_previous_version" >> $GITHUB_ENV
|
|
57
|
+
|
|
58
|
+
- name: Compare versions and exit if not newer
|
|
59
|
+
run: |
|
|
60
|
+
NEW_VERSION=${{ needs.details.outputs.new_version }}
|
|
61
|
+
LATEST_VERSION=$latest_previous_version
|
|
62
|
+
if [ "$(printf '%s\n' "$LATEST_VERSION" "$NEW_VERSION" | sort -rV | head -n 1)" != "$NEW_VERSION" ] || [ "$NEW_VERSION" == "$LATEST_VERSION" ]; then
|
|
63
|
+
echo "The new version $NEW_VERSION is not greater than the latest version $LATEST_VERSION on PyPI."
|
|
64
|
+
exit 1
|
|
65
|
+
else
|
|
66
|
+
echo "The new version $NEW_VERSION is greater than the latest version $LATEST_VERSION on PyPI."
|
|
67
|
+
fi
|
|
68
|
+
|
|
69
|
+
setup_and_build:
|
|
70
|
+
needs: [details, check_pypi]
|
|
71
|
+
runs-on: ubuntu-latest
|
|
72
|
+
steps:
|
|
73
|
+
- uses: actions/checkout@v4
|
|
74
|
+
|
|
75
|
+
- name: Set up Python
|
|
76
|
+
uses: actions/setup-python@v5
|
|
77
|
+
with:
|
|
78
|
+
python-version: "3.12"
|
|
79
|
+
|
|
80
|
+
- name: Install pypa/build
|
|
81
|
+
run: >-
|
|
82
|
+
python -m
|
|
83
|
+
pip install
|
|
84
|
+
build
|
|
85
|
+
--user
|
|
86
|
+
|
|
87
|
+
- name: Build source and wheel distribution
|
|
88
|
+
run: >-
|
|
89
|
+
python -m
|
|
90
|
+
build
|
|
91
|
+
--sdist
|
|
92
|
+
--wheel
|
|
93
|
+
--outdir dist
|
|
94
|
+
|
|
95
|
+
- name: Upload artifacts
|
|
96
|
+
uses: actions/upload-artifact@v3
|
|
97
|
+
with:
|
|
98
|
+
name: dist
|
|
99
|
+
path: dist/
|
|
100
|
+
|
|
101
|
+
pypi_publish:
|
|
102
|
+
runs-on: ubuntu-latest
|
|
103
|
+
needs: [setup_and_build, details]
|
|
104
|
+
|
|
105
|
+
permissions:
|
|
106
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
107
|
+
id-token: write
|
|
108
|
+
# Dedicated environments with protections for publishing are strongly recommended.
|
|
109
|
+
environment:
|
|
110
|
+
name: release
|
|
111
|
+
|
|
112
|
+
steps:
|
|
113
|
+
- name: Retrieve release distributions
|
|
114
|
+
uses: actions/download-artifact@v3
|
|
115
|
+
with:
|
|
116
|
+
name: dist
|
|
117
|
+
path: dist/
|
|
118
|
+
|
|
119
|
+
- name: Publish release distributions to PyPI
|
|
120
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
121
|
+
|
|
122
|
+
github_release:
|
|
123
|
+
name: Create GitHub Release
|
|
124
|
+
needs: [setup_and_build, details]
|
|
125
|
+
runs-on: ubuntu-latest
|
|
126
|
+
permissions:
|
|
127
|
+
contents: write
|
|
128
|
+
steps:
|
|
129
|
+
- name: Checkout Code
|
|
130
|
+
uses: actions/checkout@v4
|
|
131
|
+
with:
|
|
132
|
+
fetch-depth: 0
|
|
133
|
+
|
|
134
|
+
- name: Download artifacts
|
|
135
|
+
uses: actions/download-artifact@v3
|
|
136
|
+
with:
|
|
137
|
+
name: dist
|
|
138
|
+
path: dist/
|
|
139
|
+
|
|
140
|
+
- name: Create GitHub Release
|
|
141
|
+
id: create_release
|
|
142
|
+
env:
|
|
143
|
+
GH_TOKEN: ${{ github.token }}
|
|
144
|
+
run: |
|
|
145
|
+
gh release create ${{ needs.details.outputs.tag_name }} dist/* --title ${{ needs.details.outputs.tag_name }} --generate-notes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
[submodule "submodules/LibreHardwareMonitor"]
|
|
2
|
+
path = submodules/LibreHardwareMonitor
|
|
3
|
+
url = https://github.com/LibreHardwareMonitor/LibreHardwareMonitor.git
|
|
4
|
+
[submodule "submodules/pythonstubs"]
|
|
5
|
+
path = submodules/pythonstubs
|
|
6
|
+
url = https://github.com/mcneel/pythonstubs.git
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# PyHardwareMonitor Build Instructions
|
|
2
|
+
|
|
3
|
+
The module is for the most part generated using scripts in the `script` subfolder.
|
|
4
|
+
|
|
5
|
+
## Build Dependencies/Tools
|
|
6
|
+
|
|
7
|
+
### LibreHardwareMonitorLib
|
|
8
|
+
Load the [submodules/LibreHardwareMonitor/LibreHardwareMonitor.sln](VisualStudio project) file located at `submodules/LibreHardwareMonitor`.
|
|
9
|
+
Build the `LibreHardwareMonitorLib` solution for `Release` configuration and `Any CPU` target.
|
|
10
|
+
|
|
11
|
+
### PyStubbler
|
|
12
|
+
Load the [submodules/pythonstubs/builder/PyStubblerNET.sln](VisualStudio project) file located at `submodules/pythonstubs/builder`.
|
|
13
|
+
Build the `PyStubblerNET` solution for `Release` configuration and `Any CPU` target.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Generate Package files
|
|
17
|
+
|
|
18
|
+
All the module generator steps can be run in one command
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
py scripts/generate_all.py
|
|
22
|
+
```
|
|
23
|
+
> Note: It is assumed that python is installed on Windows with the pylauncher option set.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
from HardwareMonitor.Hardware import GroupAffinity, Hardware, ISettings
|
|
2
|
+
from HardwareMonitor._util.types import UInt32
|
|
3
|
+
from typing import List, Set
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CpuId:
|
|
7
|
+
@property
|
|
8
|
+
def Affinity(self) -> GroupAffinity: ...
|
|
9
|
+
@property
|
|
10
|
+
def ApicId(self) -> UInt32: ...
|
|
11
|
+
@property
|
|
12
|
+
def BrandString(self) -> str: ...
|
|
13
|
+
@property
|
|
14
|
+
def CoreId(self) -> UInt32: ...
|
|
15
|
+
@property
|
|
16
|
+
def Data(self) -> List[UInt32]: ...
|
|
17
|
+
@property
|
|
18
|
+
def ExtData(self) -> List[UInt32]: ...
|
|
19
|
+
@property
|
|
20
|
+
def Family(self) -> UInt32: ...
|
|
21
|
+
@property
|
|
22
|
+
def Group(self) -> int: ...
|
|
23
|
+
@property
|
|
24
|
+
def Model(self) -> UInt32: ...
|
|
25
|
+
@property
|
|
26
|
+
def Name(self) -> str: ...
|
|
27
|
+
@property
|
|
28
|
+
def PkgType(self) -> UInt32: ...
|
|
29
|
+
@property
|
|
30
|
+
def ProcessorId(self) -> UInt32: ...
|
|
31
|
+
def Get(group: int, thread: int) -> CpuId: ...
|
|
32
|
+
@property
|
|
33
|
+
def Stepping(self) -> UInt32: ...
|
|
34
|
+
@property
|
|
35
|
+
def Thread(self) -> int: ...
|
|
36
|
+
@property
|
|
37
|
+
def ThreadId(self) -> UInt32: ...
|
|
38
|
+
@property
|
|
39
|
+
def Vendor(self) -> Vendor: ...
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class GenericCpu(Hardware):
|
|
43
|
+
def __init__(self, processorIndex: int, cpuId: Set[Set[CpuId]], settings: ISettings): ...
|
|
44
|
+
@property
|
|
45
|
+
def CpuId(self) -> Set[Set[CpuId]]: ...
|
|
46
|
+
@property
|
|
47
|
+
def HardwareType(self) -> HardwareType: ...
|
|
48
|
+
@property
|
|
49
|
+
def HasModelSpecificRegisters(self) -> bool: ...
|
|
50
|
+
@property
|
|
51
|
+
def HasTimeStampCounter(self) -> bool: ...
|
|
52
|
+
@property
|
|
53
|
+
def Index(self) -> int: ...
|
|
54
|
+
@property
|
|
55
|
+
def TimeStampCounterFrequency(self) -> float: ...
|
|
56
|
+
def GetReport(self) -> str: ...
|
|
57
|
+
def Update(self) -> None: ...
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class Vendor:
|
|
61
|
+
Unknown = 0
|
|
62
|
+
Intel = 1
|
|
63
|
+
AMD = 2
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from HardwareMonitor.Hardware import ISettings
|
|
2
|
+
from HardwareMonitor._util.types import IReadOnlyList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class AeroCoolGroup:
|
|
6
|
+
def __init__(self, settings: ISettings): ...
|
|
7
|
+
def Close(self) -> None: ...
|
|
8
|
+
@property
|
|
9
|
+
def Hardware(self) -> IReadOnlyList: ...
|
|
10
|
+
def GetReport(self) -> str: ...
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from HardwareMonitor.Hardware import ISettings
|
|
2
|
+
from HardwareMonitor._util.types import IReadOnlyList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class AquaComputerGroup:
|
|
6
|
+
def __init__(self, settings: ISettings): ...
|
|
7
|
+
def Close(self) -> None: ...
|
|
8
|
+
@property
|
|
9
|
+
def Hardware(self) -> IReadOnlyList: ...
|
|
10
|
+
def GetReport(self) -> str: ...
|
|
File without changes
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from HardwareMonitor.Hardware import Hardware, ISettings, SensorType
|
|
2
|
+
from HardwareMonitor._util.types import AsyncCallback, Byte, IAsyncResult, IntPtr, Object, Single, UInt16
|
|
3
|
+
from typing import Iterable, Set
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class BadConfigurationException:
|
|
7
|
+
def __init__(self, message: str): ...
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class BusMutexLockingFailedException:
|
|
11
|
+
def __init__(self): ...
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class EmbeddedController(Hardware):
|
|
15
|
+
@property
|
|
16
|
+
def HardwareType(self) -> HardwareType: ...
|
|
17
|
+
def GetReport(self) -> str: ...
|
|
18
|
+
def Update(self) -> None: ...
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class EmbeddedControllerReader:
|
|
22
|
+
def __init__(self, object: Object, method: IntPtr): ...
|
|
23
|
+
def BeginInvoke(self, ecIO: IEmbeddedControllerIO, register: UInt16, callback: AsyncCallback, object: Object) -> IAsyncResult: ...
|
|
24
|
+
def EndInvoke(self, result: IAsyncResult) -> Single: ...
|
|
25
|
+
def Invoke(self, ecIO: IEmbeddedControllerIO, register: UInt16) -> Single: ...
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class EmbeddedControllerSource:
|
|
29
|
+
def __init__(self, name: str, type: SensorType, register: UInt16, size: Byte, factor: Single, blank: int): ...
|
|
30
|
+
@property
|
|
31
|
+
def Blank(self) -> int: ...
|
|
32
|
+
@property
|
|
33
|
+
def Factor(self) -> Single: ...
|
|
34
|
+
@property
|
|
35
|
+
def Name(self) -> str: ...
|
|
36
|
+
@property
|
|
37
|
+
def Reader(self) -> EmbeddedControllerReader: ...
|
|
38
|
+
@property
|
|
39
|
+
def Register(self) -> UInt16: ...
|
|
40
|
+
@property
|
|
41
|
+
def Size(self) -> Byte: ...
|
|
42
|
+
@property
|
|
43
|
+
def Type(self) -> SensorType: ...
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class IEmbeddedControllerIO:
|
|
47
|
+
def Read(self, registers: Set[UInt16], data: Set[Byte]) -> None: ...
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class IOException:
|
|
51
|
+
def __init__(self, message: str): ...
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class MultipleBoardRecordsFoundException:
|
|
55
|
+
def __init__(self, model: str): ...
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class WindowsEmbeddedController(EmbeddedController):
|
|
59
|
+
def __init__(self, sources: Iterable[EmbeddedControllerSource], settings: ISettings): ...
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class WindowsEmbeddedControllerIO:
|
|
63
|
+
def __init__(self): ...
|
|
64
|
+
def Dispose(self) -> None: ...
|
|
65
|
+
def Read(self, registers: Set[UInt16], data: Set[Byte]) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
from HardwareMonitor.Hardware import IHardware, ISensor, ISettings, IVisitor, SensorEventHandler
|
|
2
|
+
from HardwareMonitor._util.types import IDictionary
|
|
3
|
+
from typing import Set
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Manufacturer:
|
|
7
|
+
Abit = 0
|
|
8
|
+
Acer = 1
|
|
9
|
+
Alienware = 2
|
|
10
|
+
AMD = 3
|
|
11
|
+
AOpen = 4
|
|
12
|
+
Apple = 5
|
|
13
|
+
ASRock = 6
|
|
14
|
+
ASUS = 7
|
|
15
|
+
Biostar = 8
|
|
16
|
+
Clevo = 9
|
|
17
|
+
Dell = 10
|
|
18
|
+
DFI = 11
|
|
19
|
+
ECS = 12
|
|
20
|
+
EPoX = 13
|
|
21
|
+
EVGA = 14
|
|
22
|
+
FIC = 15
|
|
23
|
+
Foxconn = 16
|
|
24
|
+
Fujitsu = 17
|
|
25
|
+
Gateway = 18
|
|
26
|
+
Gigabyte = 19
|
|
27
|
+
HP = 20
|
|
28
|
+
IBM = 21
|
|
29
|
+
Intel = 22
|
|
30
|
+
Jetway = 23
|
|
31
|
+
LattePanda = 24
|
|
32
|
+
Lenovo = 25
|
|
33
|
+
Medion = 26
|
|
34
|
+
Microsoft = 27
|
|
35
|
+
MSI = 28
|
|
36
|
+
NEC = 29
|
|
37
|
+
Pegatron = 30
|
|
38
|
+
Samsung = 31
|
|
39
|
+
Sapphire = 32
|
|
40
|
+
Shuttle = 33
|
|
41
|
+
Sony = 34
|
|
42
|
+
Supermicro = 35
|
|
43
|
+
Toshiba = 36
|
|
44
|
+
XFX = 37
|
|
45
|
+
Zotac = 38
|
|
46
|
+
Unknown = 39
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class Model:
|
|
50
|
+
_880GMH_USB3 = 0
|
|
51
|
+
A320M_HDV = 1
|
|
52
|
+
AB350_Pro4 = 2
|
|
53
|
+
AB350M = 3
|
|
54
|
+
AB350M_HDV = 4
|
|
55
|
+
AB350M_Pro4 = 5
|
|
56
|
+
AOD790GX_128M = 6
|
|
57
|
+
B450_Pro4 = 7
|
|
58
|
+
B450_Steel_Legend = 8
|
|
59
|
+
B450M_Pro4 = 9
|
|
60
|
+
B450M_Steel_Legend = 10
|
|
61
|
+
B85M_DGS = 11
|
|
62
|
+
Fatal1ty_AB350_Gaming_K4 = 12
|
|
63
|
+
P55_Deluxe = 13
|
|
64
|
+
X399_Phantom_Gaming_6 = 14
|
|
65
|
+
Z77Pro4M = 15
|
|
66
|
+
X570_Pro4 = 16
|
|
67
|
+
X570_Taichi = 17
|
|
68
|
+
X570_Phantom_Gaming_ITX = 18
|
|
69
|
+
Z790_Taichi = 19
|
|
70
|
+
CROSSHAIR_III_FORMULA = 20
|
|
71
|
+
ROG_CROSSHAIR_VIII_HERO = 21
|
|
72
|
+
ROG_CROSSHAIR_VIII_HERO_WIFI = 22
|
|
73
|
+
ROG_CROSSHAIR_VIII_DARK_HERO = 23
|
|
74
|
+
ROG_CROSSHAIR_VIII_FORMULA = 24
|
|
75
|
+
ROG_CROSSHAIR_VIII_IMPACT = 25
|
|
76
|
+
ROG_STRIX_X470_I = 26
|
|
77
|
+
ROG_CROSSHAIR_X670E_EXTREME = 27
|
|
78
|
+
ROG_CROSSHAIR_X670E_HERO = 28
|
|
79
|
+
ROG_CROSSHAIR_X670E_GENE = 29
|
|
80
|
+
ROG_STRIX_X670E_F_GAMING_WIFI = 30
|
|
81
|
+
ROG_STRIX_X570_E_GAMING = 31
|
|
82
|
+
ROG_STRIX_X570_F_GAMING = 32
|
|
83
|
+
ROG_STRIX_X570_I_GAMING = 33
|
|
84
|
+
ROG_STRIX_B550_E_GAMING = 34
|
|
85
|
+
ROG_STRIX_B550_F_GAMING_WIFI = 35
|
|
86
|
+
ROG_STRIX_B550_I_GAMING = 36
|
|
87
|
+
ROG_STRIX_Z390_E_GAMING = 37
|
|
88
|
+
ROG_STRIX_Z390_F_GAMING = 38
|
|
89
|
+
ROG_STRIX_Z390_I_GAMING = 39
|
|
90
|
+
ROG_STRIX_Z690_A_GAMING_WIFI_D4 = 40
|
|
91
|
+
ROG_MAXIMUS_XI_FORMULA = 41
|
|
92
|
+
ROG_MAXIMUS_X_HERO_WIFI_AC = 42
|
|
93
|
+
ROG_MAXIMUS_Z690_FORMULA = 43
|
|
94
|
+
ROG_MAXIMUS_Z690_HERO = 44
|
|
95
|
+
ROG_MAXIMUS_Z690_EXTREME_GLACIAL = 45
|
|
96
|
+
ROG_STRIX_Z790_I_GAMING_WIFI = 46
|
|
97
|
+
M2N_SLI_Deluxe = 47
|
|
98
|
+
M4A79XTD_EVO = 48
|
|
99
|
+
P5W_DH_Deluxe = 49
|
|
100
|
+
P6T = 50
|
|
101
|
+
P6X58D_E = 51
|
|
102
|
+
P8P67 = 52
|
|
103
|
+
P8P67_EVO = 53
|
|
104
|
+
P8P67_M_PRO = 54
|
|
105
|
+
P8P67_PRO = 55
|
|
106
|
+
P8Z77_V = 56
|
|
107
|
+
P9X79 = 57
|
|
108
|
+
PRIME_X370_PRO = 58
|
|
109
|
+
PRIME_X470_PRO = 59
|
|
110
|
+
PRIME_X570_PRO = 60
|
|
111
|
+
PROART_X570_CREATOR_WIFI = 61
|
|
112
|
+
PRO_WS_X570_ACE = 62
|
|
113
|
+
RAMPAGE_EXTREME = 63
|
|
114
|
+
RAMPAGE_II_GENE = 64
|
|
115
|
+
ROG_MAXIMUS_X_APEX = 65
|
|
116
|
+
ROG_ZENITH_EXTREME = 66
|
|
117
|
+
ROG_ZENITH_II_EXTREME = 67
|
|
118
|
+
TUF_X470_PLUS_GAMING = 68
|
|
119
|
+
Z170_A = 69
|
|
120
|
+
TUF_GAMING_B550M_PLUS_WIFI = 70
|
|
121
|
+
ROG_MAXIMUS_Z790_HERO = 71
|
|
122
|
+
PRIME_Z690_A = 72
|
|
123
|
+
B660GTN = 73
|
|
124
|
+
X670E_Valkyrie = 74
|
|
125
|
+
LP_BI_P45_T2RS_Elite = 75
|
|
126
|
+
LP_DK_P55_T3EH9 = 76
|
|
127
|
+
A890GXM_A = 77
|
|
128
|
+
B350_Gaming_Plus = 78
|
|
129
|
+
B360M_PRO_VDH = 79
|
|
130
|
+
B450A_PRO = 80
|
|
131
|
+
Z270_PC_MATE = 81
|
|
132
|
+
Z77_MS7751 = 82
|
|
133
|
+
Z68_MS7672 = 83
|
|
134
|
+
X570_Gaming_Plus = 84
|
|
135
|
+
X58_SLI_Classified = 85
|
|
136
|
+
X58_3X_SLI = 86
|
|
137
|
+
_965P_S3 = 87
|
|
138
|
+
_970A_UD3 = 88
|
|
139
|
+
AB350_Gaming_3 = 89
|
|
140
|
+
AX370_Gaming_5 = 90
|
|
141
|
+
AX370_Gaming_K7 = 91
|
|
142
|
+
B360_AORUS_GAMING_3_WIFI_CF = 92
|
|
143
|
+
B550_AORUS_PRO = 93
|
|
144
|
+
B560M_AORUS_ELITE = 94
|
|
145
|
+
B560M_AORUS_PRO = 95
|
|
146
|
+
B560M_AORUS_PRO_AX = 96
|
|
147
|
+
B660M_DS3H_AX_DDR4 = 97
|
|
148
|
+
EP45_DS3R = 98
|
|
149
|
+
EP45_UD3R = 99
|
|
150
|
+
EX58_EXTREME = 100
|
|
151
|
+
EX58_UD3R = 101
|
|
152
|
+
G41M_COMBO = 102
|
|
153
|
+
G41MT_S2 = 103
|
|
154
|
+
G41MT_S2P = 104
|
|
155
|
+
H55_USB3 = 105
|
|
156
|
+
H55N_USB3 = 106
|
|
157
|
+
H61M_DS2_REV_1_2 = 107
|
|
158
|
+
H61M_USB3_B3_REV_2_0 = 108
|
|
159
|
+
H67A_UD3H_B3 = 109
|
|
160
|
+
H67A_USB3_B3 = 110
|
|
161
|
+
H81M_HD3 = 111
|
|
162
|
+
B75M_D3H = 112
|
|
163
|
+
MA770T_UD3 = 113
|
|
164
|
+
MA770T_UD3P = 114
|
|
165
|
+
MA785GM_US2H = 115
|
|
166
|
+
MA785GMT_UD2H = 116
|
|
167
|
+
MA78LM_S2H = 117
|
|
168
|
+
MA790X_UD3P = 118
|
|
169
|
+
P35_DS3 = 119
|
|
170
|
+
P35_DS3L = 120
|
|
171
|
+
P55_UD4 = 121
|
|
172
|
+
P55A_UD3 = 122
|
|
173
|
+
P55M_UD4 = 123
|
|
174
|
+
P67A_UD3_B3 = 124
|
|
175
|
+
P67A_UD3R_B3 = 125
|
|
176
|
+
P67A_UD4_B3 = 126
|
|
177
|
+
P8Z68_V_PRO = 127
|
|
178
|
+
X38_DS5 = 128
|
|
179
|
+
X399_AORUS_Gaming_7 = 129
|
|
180
|
+
X58A_UD3R = 130
|
|
181
|
+
X79_UD3 = 131
|
|
182
|
+
Z390_AORUS_ULTRA = 132
|
|
183
|
+
Z390_AORUS_PRO = 133
|
|
184
|
+
Z390_M_GAMING = 134
|
|
185
|
+
Z390_UD = 135
|
|
186
|
+
Z68A_D3H_B3 = 136
|
|
187
|
+
Z68AP_D3 = 137
|
|
188
|
+
Z68X_UD3H_B3 = 138
|
|
189
|
+
Z68X_UD7_B3 = 139
|
|
190
|
+
Z68XP_UD3R = 140
|
|
191
|
+
Z690_AORUS_PRO = 141
|
|
192
|
+
Z690_AORUS_ULTRA = 142
|
|
193
|
+
Z690_GAMING_X_DDR4 = 143
|
|
194
|
+
Z170N_WIFI = 144
|
|
195
|
+
X470_AORUS_GAMING_7_WIFI = 145
|
|
196
|
+
X570_AORUS_MASTER = 146
|
|
197
|
+
X570_GAMING_X = 147
|
|
198
|
+
X570_AORUS_ULTRA = 148
|
|
199
|
+
FH67 = 149
|
|
200
|
+
Unknown = 150
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
class Motherboard:
|
|
204
|
+
def __init__(self, smBios: SMBios, settings: ISettings): ...
|
|
205
|
+
def Accept(self, visitor: IVisitor) -> None: ...
|
|
206
|
+
def add_SensorAdded(self, value: SensorEventHandler) -> None: ...
|
|
207
|
+
def add_SensorRemoved(self, value: SensorEventHandler) -> None: ...
|
|
208
|
+
def Close(self) -> None: ...
|
|
209
|
+
@property
|
|
210
|
+
def HardwareType(self) -> HardwareType: ...
|
|
211
|
+
@property
|
|
212
|
+
def Identifier(self) -> Identifier: ...
|
|
213
|
+
@property
|
|
214
|
+
def Manufacturer(self) -> Manufacturer: ...
|
|
215
|
+
@property
|
|
216
|
+
def Model(self) -> Model: ...
|
|
217
|
+
@property
|
|
218
|
+
def Name(self) -> str: ...
|
|
219
|
+
@property
|
|
220
|
+
def Parent(self) -> IHardware: ...
|
|
221
|
+
@property
|
|
222
|
+
def Properties(self) -> IDictionary: ...
|
|
223
|
+
@property
|
|
224
|
+
def Sensors(self) -> Set[ISensor]: ...
|
|
225
|
+
@property
|
|
226
|
+
def SMBios(self) -> SMBios: ...
|
|
227
|
+
@property
|
|
228
|
+
def SubHardware(self) -> Set[IHardware]: ...
|
|
229
|
+
def GetReport(self) -> str: ...
|
|
230
|
+
def remove_SensorAdded(self, value: SensorEventHandler) -> None: ...
|
|
231
|
+
def remove_SensorRemoved(self, value: SensorEventHandler) -> None: ...
|
|
232
|
+
@Name.setter
|
|
233
|
+
def Name(self, value: str) -> None: ...
|
|
234
|
+
def Traverse(self, visitor: IVisitor) -> None: ...
|
|
235
|
+
def Update(self) -> None: ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from HardwareMonitor.Hardware import ISettings
|
|
2
|
+
from HardwareMonitor._util.types import IReadOnlyList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class CommunicationProtocolError:
|
|
6
|
+
def __init__(self, device: HidDevice, message: str): ...
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CorsairPsuGroup:
|
|
10
|
+
def __init__(self, settings: ISettings): ...
|
|
11
|
+
def Close(self) -> None: ...
|
|
12
|
+
@property
|
|
13
|
+
def Hardware(self) -> IReadOnlyList: ...
|
|
14
|
+
def GetReport(self) -> str: ...
|
|
File without changes
|