sensors.py
python bindings using ctypes for libsensors3 of the lm-sensors project. The code was written against libsensors 3.3.4.
For documentation of the low level API see sensors.h. For an example of the high level API see example.py.
For a GUI application that displays the sensor readings and is based on this library, take a look at sensors-unity.
Features
- Full access to low level libsensors3 API
- High level iterator API
- unicode handling
- Python2 and Python3 compatible
Licensing
LGPLv2 (same as libsensors3)
Usage Notes
As Python does not support call by reference for primitive types some of the libsensors API had to be adapted:
# nr is changed by refrence in the C API
chip_name, nr = sensors.get_detected_chips(None, nr)
# returns the value. throws on error
val = sensors.get_value(chip, subfeature_nr)
Missing Features (pull requests are welcome):
sensors_subfeature_typeenumsensors_get_subfeature
Metadata
Release files for sensors.py 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sensors.py-2.0.tar.gz | 12.8 kB | Without provenance | Details for sensors.py-2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sensors.py-2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sensors.py-2.0-py2.py3-none-any.whl |
Total release size: 26.1 kB
Release files / sensors.py-2.0.tar.gz
| Download URL | sensors.py-2.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b7a930d53a6d9f785085b88b9c088502f4252c06db0c02067a66999aa351b1a
|
|
BLAKE2b-256 checksum How to use checksums |
5869bd3246d2314f4588fa72c71ecba966598777ae0b59df5f8de62a6f1f3a53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / sensors.py-2.0-py2.py3-none-any.whl
| Download URL | sensors.py-2.0-py2.py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4f3940b0c884c422d547cf16a9e35291d856138eada17deb08a22df9bc6ad225
|
|
BLAKE2b-256 checksum How to use checksums |
92ca332ea2034a0f9dfcece93a6e33d11b2b9de9338a585cdbef6e7599a2cba5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for sensors.py 2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.