A Python API client for LibreHardwareMonitor
Project description
LibreHardwareMonitor API Client
A Python library for interacting with the LibreHardwareMonitor API.
Overview
This library provides a simple interface for fetching data from the API provided by the inbuilt LibreHardwareMonitor web server.
Methods
The library provides two callable methods:
get_data_json: Returns the unmodifieddata.jsonresponse from the LibreHardwareMonitor API as dict.get_hardware_device_names: Returns a list of all hardware device names in the computer.
Installation
To install the library, run the following command:
pip install librehardwaremonitor-api
Usage
import asyncio
from librehardwaremonitor_api import LibreHardwareMonitorClient
async def main():
client = LibreHardwareMonitorClient("<HOSTNAME OR IP ADDRESS>", <PORT>)
data_json = await client.get_data_json()
print(data_json)
device_names = await client.get_hardware_device_names()
print(device_names)
asyncio.run(main())
TODO
- implement basic auth
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file librehardwaremonitor_api-1.0.0.tar.gz.
File metadata
- Download URL: librehardwaremonitor_api-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c2651b76545d611d27cb070da4c223afd76a8dbca9c7a0a1e4b1a582ff7ddf1
|
|
| MD5 |
920dd7340344ad9e1bc8fed562df8c94
|
|
| BLAKE2b-256 |
0c77a30e0c462e99f0a92b645f8c41eb388c057c07f65ce82cb00ba47f85d20a
|
File details
Details for the file librehardwaremonitor_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: librehardwaremonitor_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18e593c53b03dc0fbaccda337bec28a26c881b6dd6435299bb518bdf60741daa
|
|
| MD5 |
fa2dc0db82f75380ff14e004dc66e48e
|
|
| BLAKE2b-256 |
a4a24f79d73c4d8042453b555eb4e542b57b87275c7c037a5417133f70be9c63
|