Skip to main content

beatbot-cloud

beatbot-cloud is the asynchronous Python client for Beatbot cloud accounts. It provides region-aware REST access, typed device models, and a WebSocket event transport without depending on Home Assistant.

from beatbot_cloud import BeatbotClient, BeatbotEventClient

client = BeatbotClient(
    region="na",
    session=session,
    access_token=async_get_access_token,
)
devices = await client.get_devices()

events = BeatbotEventClient(
    session,
    client.event_stream_url,
    client.async_get_access_token,
    state_callback=async_handle_state,
    device_added_callback=async_handle_device_added,
    device_removed_callback=async_handle_device_removed,
    reconnect_callback=async_handle_reconnect,
    token_refresh_callback=async_refresh_access_token,
)
await events.async_run()

The caller provides an access token or a synchronous/asynchronous token provider. The library owns REST request construction and WebSocket reconnection; applications can register callbacks for events, successful reconnections, and rejected-token refreshes. State callbacks receive a BeatbotEvent, which can be applied with event.apply_to(device). Device-added and device-removed callbacks receive the device ID. The library routes cloud event types and ignores unknown types for these specialized callbacks. All callbacks may be synchronous or asynchronous. The optional positional event_callback remains supported and receives all events.

Development

python -m pip install -e '.[test]'
pytest
ruff check .
ruff format --check .
python -m build

Metadata

Release files for beatbot-cloud 0.4.3

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

Source distribution (sdist)

Source distribution for beatbot-cloud 0.4.3
File Size Uploaded Provenance Actions
beatbot_cloud-0.4.3.tar.gz 18.6 kB With provenance Details for beatbot_cloud-0.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for beatbot-cloud 0.4.3
File Interpreter ABI Platform Actions
beatbot_cloud-0.4.3-py3-none-any.whl Python 3 none any Details for beatbot_cloud-0.4.3-py3-none-any.whl

Total release size: 34.1 kB

Release files / beatbot_cloud-0.4.3.tar.gz

Download URL beatbot_cloud-0.4.3.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
91a7d4a168327070d0f6a222c6a3412d542264310e4db5ec13888ec4abe5cac6
BLAKE2b-256 checksum
How to use checksums
b1601555259c5fa0c287cbce7b0406ec70f75ffb6d219cbb6cde034eeaa8ff48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / beatbot_cloud-0.4.3-py3-none-any.whl

Download URL beatbot_cloud-0.4.3-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c723203efc1577eb101dd32c56fbaf9b899dfd624343661a8fd94e8e350926f3
BLAKE2b-256 checksum
How to use checksums
76a2d633619b9b849eeb0b985a1c2409eff233b13a140a921c770b80bf76cec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Security for beatbot-cloud 0.4.3

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 beatbot_cloud-0.4.3.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 Sep 18, 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