A package used to get temperature on Windows Machines.
Project description
WinTmp
WinTmp, short for Windows Temperature, is a Python module that provides easy access to the temperatures of the CPU and GPU in Windows.
This module requires administrator privileges to access the sensor data as it uses LibreHardwareMonitor internally. Please ensure that your code is run with admin privileges.
Install using pip
:
pip install WinTmp
WinTmp exposes two functions:
CPU_Temp()
- Returns the temperature of the first CPU as a float.
GPU_Temp()
- Returns the temperature of the first GPU found as a float.
CPU_Temps()
- Returns the temperatures of all the CPUs as a list of floats.
GPU_Temps()
- Returns the temperature of all the GPUs as a list of floats.
In admin command prompt type python
.
Demo:
>>> import WinTmp
>>> print(WinTmp.CPU_Temp())
44.00000762939453
>>> print(WinTmp.GPU_Temp())
44.12500762939453
>>> print(WinTmp.CPU_Temps())
[44.00000762939453]
>>> print(WinTmp.GPU_Temps())
[44.62500762939453]
PyPI: https://pypi.org/project/WinTmp/
Github: https://github.com/kethan1/WinTmp/
If you experience any issues, bugs, or shortcomings with this module, please don't hesitate to open an issue!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wintmp-1.3.0.tar.gz
.
File metadata
- Download URL: wintmp-1.3.0.tar.gz
- Upload date:
- Size: 346.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1b052969b31f2887a8f445b4e3171fd324ab6e3981c01411a005489c5b97fbf9
|
|
MD5 |
ffc50c743b6ca0c3482fb55d242b65d3
|
|
BLAKE2b-256 |
86394b8d2ae63c9c8f032b3f9f4f3a93cf3b1b7ee6017a75d50a484094fc54d1
|
Provenance
The following attestation bundles were made for wintmp-1.3.0.tar.gz
:
Publisher:
python-publish.yml
on kethan1/WinTmp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
wintmp-1.3.0.tar.gz
-
Subject digest:
1b052969b31f2887a8f445b4e3171fd324ab6e3981c01411a005489c5b97fbf9
- Sigstore transparency entry: 273175082
- Sigstore integration time:
-
Permalink:
kethan1/WinTmp@440e6ad227d94c01a96167d3cd3feef0a931ab62
-
Branch / Tag:
refs/tags/1.3.0
- Owner: https://github.com/kethan1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@440e6ad227d94c01a96167d3cd3feef0a931ab62
-
Trigger Event:
release
-
Statement type:
File details
Details for the file wintmp-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: wintmp-1.3.0-py3-none-any.whl
- Upload date:
- Size: 344.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
dd81a759599596c2b13d9bd9c7aeb16126d812a431e3d4b6d6015547ad717f89
|
|
MD5 |
afc6ec63143d7eab82c5c107a01c5abf
|
|
BLAKE2b-256 |
a054c68bf39655a296458b2a0afaf91013e31b183c1c2d22660d303410c17d22
|
Provenance
The following attestation bundles were made for wintmp-1.3.0-py3-none-any.whl
:
Publisher:
python-publish.yml
on kethan1/WinTmp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
wintmp-1.3.0-py3-none-any.whl
-
Subject digest:
dd81a759599596c2b13d9bd9c7aeb16126d812a431e3d4b6d6015547ad717f89
- Sigstore transparency entry: 273175083
- Sigstore integration time:
-
Permalink:
kethan1/WinTmp@440e6ad227d94c01a96167d3cd3feef0a931ab62
-
Branch / Tag:
refs/tags/1.3.0
- Owner: https://github.com/kethan1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@440e6ad227d94c01a96167d3cd3feef0a931ab62
-
Trigger Event:
release
-
Statement type: