Skip to main content

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 unmodified data.json response 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


Download files

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

Source Distribution

librehardwaremonitor_api-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

librehardwaremonitor_api-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file librehardwaremonitor_api-1.0.0.tar.gz.

File metadata

File hashes

Hashes for librehardwaremonitor_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1c2651b76545d611d27cb070da4c223afd76a8dbca9c7a0a1e4b1a582ff7ddf1
MD5 920dd7340344ad9e1bc8fed562df8c94
BLAKE2b-256 0c77a30e0c462e99f0a92b645f8c41eb388c057c07f65ce82cb00ba47f85d20a

See more details on using hashes here.

File details

Details for the file librehardwaremonitor_api-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for librehardwaremonitor_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18e593c53b03dc0fbaccda337bec28a26c881b6dd6435299bb518bdf60741daa
MD5 fa2dc0db82f75380ff14e004dc66e48e
BLAKE2b-256 a4a24f79d73c4d8042453b555eb4e542b57b87275c7c037a5417133f70be9c63

See more details on using hashes here.

Supported by

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