Skip to main content

aiohifiberry

Async Python client for the HiFiBerry OS / HBOS NG AudioControl REST API.

This package is intended to hold the device communication layer used by a Home Assistant Core integration. It does not import Home Assistant.

Example

from aiohttp import ClientSession

from aiohifiberry import AudioControlClient


async with ClientSession() as session:
    client = AudioControlClient(session, "hifiberry.local")
    await client.async_update()
    print(client.now_playing)
    await client.async_command("pause")

Supported API Areas

  • Connection validation.
  • Now-playing and player discovery.
  • Active-player capability detection.
  • Play, pause, stop, next, and previous commands.
  • Volume state and volume commands.
  • HBOS NG cover-art lookup.

HBOS NG normally exposes AudioControl through the public web UI route:

http://<device>/api/audiocontrol/

Some builds also expose backend services on custom ports. The client defaults to port 80 and falls back to the public route for proxied endpoints when a non-80 port is supplied.

Metadata

Release files for aiohifiberry 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiohifiberry 0.2.0
File Size Uploaded Provenance Actions
aiohifiberry-0.2.0.tar.gz 7.4 kB Without provenance Details for aiohifiberry-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiohifiberry 0.2.0
File Interpreter ABI Platform Actions
aiohifiberry-0.2.0-py3-none-any.whl Python 3 none any Details for aiohifiberry-0.2.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / aiohifiberry-0.2.0.tar.gz

Download URL aiohifiberry-0.2.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
397d7cbe5815753f5090763b1a1e71cffa4e74a7d8ea92f94b996766c9ee128d
BLAKE2b-256 checksum
How to use checksums
609ee0afb3fc02a0f5d7db66ebab0db815db74c9dced133f8dbe3fde35c8a256
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / aiohifiberry-0.2.0-py3-none-any.whl

Download URL aiohifiberry-0.2.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e2b8f404a2ff15d754bfd53bb71645297b581d9a4b86afa4605114b9bbb9f82
BLAKE2b-256 checksum
How to use checksums
0251dc8fb1eefe835270fe52f4c5dffe85a55c3827a9dfc038e0dba7480add60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for aiohifiberry 0.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page