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

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.4
File Size Uploaded Provenance Actions
beatbot_cloud-0.4.4.tar.gz 18.7 kB With provenance Details for beatbot_cloud-0.4.4.tar.gz

Built distribution (wheel)

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

Total release size: 34.2 kB

Release files / beatbot_cloud-0.4.4.tar.gz

Download URL beatbot_cloud-0.4.4.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d5e49c969da4a934ce773124baf12cb0199f8be82e3e4ad1b20beb384dc7dac0
BLAKE2b-256 checksum
How to use checksums
0a82db36d2a550ca8578128442f6bac3cf37581e58b163bc52279f1d0ecdecb2
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 / beatbot_cloud-0.4.4-py3-none-any.whl

Download URL beatbot_cloud-0.4.4-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b682e79f70b2e2a3914d232bc47d4436922436a29e8eb527b45595ac63cf242
BLAKE2b-256 checksum
How to use checksums
fac44283baf384509b976bd53a1ca5adb3e863e51d0a57d53073d5c1c15114fd
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 beatbot-cloud 0.4.4

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