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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| beatbot_cloud-0.4.2.tar.gz | 18.4 kB | With provenance | Details for beatbot_cloud-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beatbot_cloud-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for beatbot_cloud-0.4.2-py3-none-any.whl |
Total release size: 33.9 kB
Release files / beatbot_cloud-0.4.2.tar.gz
| Download URL | beatbot_cloud-0.4.2.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4974bc4cabd0e92724fbab12e45f4b79b0f496e8d6b89ae5d3ea6972e7058dd6
|
|
BLAKE2b-256 checksum How to use checksums |
0a7bf6d636fb9b5a653e3dd42c501a320218d8fe4b69f4e3f21947310902d424
|
| 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 7, 2026.
Transparency logRelease files / beatbot_cloud-0.4.2-py3-none-any.whl
| Download URL | beatbot_cloud-0.4.2-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b305586d761181e6f00c95306d873abf0c3edcc7494dbbbe9cd304f6b087ee5
|
|
BLAKE2b-256 checksum How to use checksums |
2b2021273781160df03014ca4ddca36a3f4b51cc40b168226b554e23cacfeae7
|
| 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 7, 2026.
Transparency logSecurity for beatbot-cloud 0.4.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.
Attestation for beatbot_cloud-0.4.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 Sep 7, 2026.
Transparency logA 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.