Python SDK for Yarbo robot devices
Project description
Yarbo Data SDK
Python SDK for Yarbo robot devices. Enables integration with smart home platforms and custom applications.
Requirements: Python >= 3.10
Installation
pip install yarbo-data-sdk
Quick Start
from yarbo_robot_sdk import YarboClient
client = YarboClient()
client.login("user@email.com", "password")
devices = client.get_devices()
for device in devices:
print(f"{device.name} ({device.sn})")
Features
Authentication
Login with email/password (RSA-encrypted), automatic token refresh, and session save/restore.
client.login("user@email.com", "password")
# Save session
token, refresh_token = client.token, client.refresh_token
# Restore session (no re-login needed)
client.restore_session(username="user@email.com", token=token, refresh_token=refresh_token)
MQTT Real-time Data
Subscribe to device status messages and heartbeat with automatic zlib decompression (firmware >= 3.9.0).
client.mqtt_connect()
client.subscribe_device_message("SN123", "yarbo_Y", callback)
client.subscribe_heart_beat("SN123", "yarbo_Y", callback)
Device Control
Publish commands via MQTT with automatic compression.
client.mqtt_publish_command("SN123", "yarbo_Y", "set_working_state", {"state": 1})
Request with Feedback
Send commands and wait for device response via data_feedback topic.
client.get_device_msg("SN123", "yarbo_Y")
client.read_all_plan("SN123", "yarbo_Y")
client.read_gps_ref("SN123", "yarbo_Y")
Device Registry
JSON-driven device capability definitions with structured field and control metadata.
from yarbo_robot_sdk import get_field_definitions, get_control_field_definitions
fields = get_field_definitions("yarbo_Y")
controls = get_control_field_definitions("yarbo_Y")
Documentation
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yarbo_data_sdk-0.2.0.tar.gz.
File metadata
- Download URL: yarbo_data_sdk-0.2.0.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c9889f4ab85dd6daee551ce44e98dd03fca14c699c095a4d1241d6540c79574
|
|
| MD5 |
2cc06a39c4fd572e59f9aaa05b8ac6f2
|
|
| BLAKE2b-256 |
de19eb51c8400420bf46aaa19f5d559bbbcba1e771e0c7a8a996fff01d73faf5
|
Provenance
The following attestation bundles were made for yarbo_data_sdk-0.2.0.tar.gz:
Publisher:
publish-pypi.yml on YarboInc/YarboDataSDK
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yarbo_data_sdk-0.2.0.tar.gz -
Subject digest:
3c9889f4ab85dd6daee551ce44e98dd03fca14c699c095a4d1241d6540c79574 - Sigstore transparency entry: 1305775276
- Sigstore integration time:
-
Permalink:
YarboInc/YarboDataSDK@9dc2f4dc0b6733245d09980ccb395cdb4e442e05 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/YarboInc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@9dc2f4dc0b6733245d09980ccb395cdb4e442e05 -
Trigger Event:
push
-
Statement type:
File details
Details for the file yarbo_data_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: yarbo_data_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12b8b43ea30d4025a90250a1fadc0cae5ef99ec6ef97771a233b44268efd6bee
|
|
| MD5 |
acd63595eb83c4e8d0cd1dcc51377478
|
|
| BLAKE2b-256 |
f45ccf20d5400903f7c857d634124477b5de454a47d31bf257d5b18009bc5696
|
Provenance
The following attestation bundles were made for yarbo_data_sdk-0.2.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on YarboInc/YarboDataSDK
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yarbo_data_sdk-0.2.0-py3-none-any.whl -
Subject digest:
12b8b43ea30d4025a90250a1fadc0cae5ef99ec6ef97771a233b44268efd6bee - Sigstore transparency entry: 1305775351
- Sigstore integration time:
-
Permalink:
YarboInc/YarboDataSDK@9dc2f4dc0b6733245d09980ccb395cdb4e442e05 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/YarboInc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@9dc2f4dc0b6733245d09980ccb395cdb4e442e05 -
Trigger Event:
push
-
Statement type: