Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wintmp-1.3.0.tar.gz (346.5 kB view details)

Uploaded Source

Built Distribution

wintmp-1.3.0-py3-none-any.whl (344.7 kB view details)

Uploaded Python 3

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

Hashes for wintmp-1.3.0.tar.gz
Algorithm Hash digest
SHA256 1b052969b31f2887a8f445b4e3171fd324ab6e3981c01411a005489c5b97fbf9
MD5 ffc50c743b6ca0c3482fb55d242b65d3
BLAKE2b-256 86394b8d2ae63c9c8f032b3f9f4f3a93cf3b1b7ee6017a75d50a484094fc54d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for wintmp-1.3.0.tar.gz:

Publisher: python-publish.yml on kethan1/WinTmp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for wintmp-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd81a759599596c2b13d9bd9c7aeb16126d812a431e3d4b6d6015547ad717f89
MD5 afc6ec63143d7eab82c5c107a01c5abf
BLAKE2b-256 a054c68bf39655a296458b2a0afaf91013e31b183c1c2d22660d303410c17d22

See more details on using hashes here.

Provenance

The following attestation bundles were made for wintmp-1.3.0-py3-none-any.whl:

Publisher: python-publish.yml on kethan1/WinTmp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page