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.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 pybrilliantkiosk 0.1.1
File Size Uploaded Provenance Actions
pybrilliantkiosk-0.1.1.tar.gz 161.9 kB With provenance Details for pybrilliantkiosk-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 208.1 kB

Release files / pybrilliantkiosk-0.1.1.tar.gz

Download URL pybrilliantkiosk-0.1.1.tar.gz
Size 161.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2ef84dbb045ef1793f83756dc12d6a68bd5178cf65c71f52c14271c280b2c10d
BLAKE2b-256 checksum
How to use checksums
d3a7fb622adc517821c5195c450580938a8387679057b0cad80b28bf4a8811f4
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.1-py3-none-any.whl

Download URL pybrilliantkiosk-0.1.1-py3-none-any.whl
Size 46.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a6d5161b3d522bb3f054e0407e4a54d0f0d658b01ed8ea42f1f037ec0d41c1a
BLAKE2b-256 checksum
How to use checksums
e038a8fbf8da485507ba5fdab325ac8c2d52e038be99395a6b166ab0958e4958
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.1

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.1.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