Skip to main content

pybrilliantkiosk

Typed, fully async Python library for managing Brilliant smart panels that run the brilliant-ha-kiosk firmware add-on. It is the only code that talks to a panel; the Home Assistant integration builds on it.

  • asyncssh for SSH (password or private key, host-key pinning), no blocking I/O
  • aiohttp for GitHub releases; you inject the ClientSession
  • mypy --strict clean, ships py.typed
from pybrilliantkiosk import Panel, Releases

async with Panel("192.168.1.50", password="...", host_key=None) as panel:
    print(panel.host_key_fingerprint)  # pin this in the config flow
    snapshot = await panel.poll()  # health, settings, drift and setup status: ONE SSH command
    health = snapshot.health
    env = await panel.get_env()  # secrets masked
    await panel.set_env({"DAY_LEVEL": "12"}, restart=True)
    print(await panel.logs("ha-kiosk", 100))

client = Releases(session)
stable = await client.latest_stable()  # the release GitHub marks "Latest"
# Verify against a hash and size you keep yourself (streamed, capped at 50 MiB) ...
bundle, sha = await client.download(stable, sha256=PINNED_SHA256, size=PINNED_SIZE)
await panel.install(bundle, sha, size=PINNED_SIZE)
# ... or, weaker, against the release's own .sha256 asset: client.download(release)

set_env and reconcile_env hold the panel's setup lock, refuse (InvalidArgument, naming the keys, nothing written) when the running kiosk.env has a value that cannot be written safely instead of reverting it, and abort if kiosk.env changed on the panel since it was read (ConcurrentModification, retried once).

Errors: CannotConnect, AuthFailed, HostKeyMismatch, CommandFailed(exit_status, stderr), InvalidArgument, ChecksumMismatch, ConcurrentModification, ReleaseError; all derive from PanelError.

Development

python -m venv .venv && .venv/bin/pip install -e ".[dev]"
ruff check . && ruff format --check . && mypy --strict src && pytest  # 100 % coverage gate

Metadata

Release files for pybrilliantkiosk 0.1.2

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

Source distribution (sdist)

Source distribution for pybrilliantkiosk 0.1.2
File Size Uploaded Provenance Actions
pybrilliantkiosk-0.1.2.tar.gz 164.2 kB With provenance Details for pybrilliantkiosk-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 210.8 kB

Release files / pybrilliantkiosk-0.1.2.tar.gz

Download URL pybrilliantkiosk-0.1.2.tar.gz
Size 164.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c408afc10da46d187c390ddec93e2a1d3d7db05afb319f4f4ac3b625acf8cf94
BLAKE2b-256 checksum
How to use checksums
ac86a01ebef82ed0033c0d27077409746b19deae262235a2d847824aed0ea33a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / pybrilliantkiosk-0.1.2-py3-none-any.whl

Download URL pybrilliantkiosk-0.1.2-py3-none-any.whl
Size 46.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0f8a6942038e5fa19e25656724c3c01ed1176905652f87a323ae07bf6af50ae
BLAKE2b-256 checksum
How to use checksums
6f94738c40092a5fd71f6e2ab29f3e4c721551c65c36c792d4129bb34eec317e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for pybrilliantkiosk 0.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pybrilliantkiosk-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

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.

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