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.1.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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for librehardwaremonitor_api-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d04e0dd4e351b1f5b425d7fc8a0017bbb15b87c2008a5c35ec7edf52d2d2e809
MD5 64eacbce68f86625f0ae43d47c0ec940
BLAKE2b-256 dfc44da3c666cfedbbbb2d7af7e8b653f74141dc4eebb629502dd8672e74244b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for librehardwaremonitor_api-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 446d898f105b5ecf515408c1d3a13042ce9504f1bc61f135277ae30ee451faed
MD5 78eae966e43532a38bd8b3d5eba86476
BLAKE2b-256 69e49f7a3d8d4dd96c137ed91fdc3b09c677817e3a6f263463b35d0cbff09f44

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