https://github.com/rm-hull/pysensors3
Python3 bindings to libsensors (via ctypes)
https://github.com/rm-hull/pysensors3
Last synced: over 1 year ago
JSON representation
Python3 bindings to libsensors (via ctypes)
- Host: GitHub
- URL: https://github.com/rm-hull/pysensors3
- Owner: rm-hull
- License: lgpl-3.0
- Created: 2019-03-09T14:09:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T05:45:23.000Z (about 7 years ago)
- Last Synced: 2024-10-03T12:17:43.015Z (almost 2 years ago)
- Language: Python
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
PySensors3
----------
Python3 bindings to libsensors (via ctypes)
.. image:: https://img.shields.io/pypi/pyversions/pysensors3.svg
:target: https://pypi.python.org/pypi/pysensors3
.. image:: https://img.shields.io/pypi/v/pysensors3.svg
:target: https://pypi.python.org/pypi/pysensors3
.. image:: https://img.shields.io/maintenance/yes/2019.svg?maxAge=2592000
Hard fork of `pysensors `_. See ``_ for original documentation.
Usage
-----
.. code-block:: python
import sensors
sensors.init()
try:
for chip in sensors.iter_detected_chips():
print(f'{chip} at {chip.adapter_name}')
for feature in chip:
print(f' {feature.label}: {feature.get_value()}')
finally:
sensors.cleanup()
Copyright
---------
Original license (LGPL 2+) retained for this derivative work.