Skip to main content

pyhifiberry

Python library to interface with Hifiberry OS API (audiocontrol2). There are two APIs available:

This package is targeting mainly the needs for a hifiberry integration for Home assistant.

Usage example of the socketio API

Runs for 100 secs and prints artist name if metadata events occure.

import asyncio
from pyhifiberry.audiocontrol2sio import Audiocontrol2SIO

def metadata_callback(metadata):
    print(metadata['artist'])

async def main():
    api = await Audiocontrol2SIO.connect(<HIFIBERRY_IP>, <HIFIBERRY_PORT>)
    api.metadata.add_callback(metadata_callback)
    await asyncio.sleep(100)

if __name__ == '__main__':
    asyncio.run(main())

Metadata

Release files for pyhifiberry 0.1.1

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

Source distribution (sdist)

Source distribution for pyhifiberry 0.1.1
File Size Uploaded
pyhifiberry-0.1.1.tar.gz 85.1 kB Details

Built distribution (wheel)

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

Total release size: 194.9 kB

Release files / pyhifiberry-0.1.1.tar.gz

Download URL pyhifiberry-0.1.1.tar.gz
Size 85.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a07ed990745e31c5e9e1eacdcc0d773479ede99be4544b36977c9191c3beba55
BLAKE2b-256 checksum
How to use checksums
54c0521e5159885d5081ec20ea8f7a7e5709618f355b36d3e7e7ea0606bd1685
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Linux/5.13.0-39-generic

Release files / pyhifiberry-0.1.1-py3-none-any.whl

Download URL pyhifiberry-0.1.1-py3-none-any.whl
Size 109.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c18005cf0339dee388a033ce7ebfcab6c94af6f4998ff712463e48ebcba5dbe
BLAKE2b-256 checksum
How to use checksums
ba9f9df6f54ca4b08cacaf8b3545e2381f4fc72f78edf2ddd3bd8e3c4d113ad6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Linux/5.13.0-39-generic

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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