Metadata-Version: 2.1
Name: WinTmp
Version: 1.2.0
Summary: A package used to get temperature on Windows Machines.
Author-email: Kethan Vegunta <kethan@vegunta.com>
Keywords: windows,temperature,cpu,gpu,amd,intel,nvidia
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pythonnet
Requires-Dist: wmi

# 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 privilages to access the sensor data as it uses LibreHardwareMonitor internally. Please ensure that your code is run with admin privilages.

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:

```python
>>> 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!
