Skip to main content

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

yarbo_data_sdk-0.1.1.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yarbo_data_sdk-0.1.1-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file yarbo_data_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: yarbo_data_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yarbo_data_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 65e5c30c94d698c5027d755e8fd22aed26d6b9119d33d6707ff840614045334e
MD5 ddbf918d58ef2fdd0bf6e697c54a6446
BLAKE2b-256 15ad1f28bece8f095bbe95f8556f44b69e1ca585a4c5b75b57630a4080b31042

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarbo_data_sdk-0.1.1.tar.gz:

Publisher: publish-pypi.yml on YarboInc/YarboDataSDK

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yarbo_data_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: yarbo_data_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yarbo_data_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9dac5fa65086b232b79492dc9c1b17d489ccbf9f13a561b3748105a92da6251e
MD5 83f25066aa0c74aafa752ea816637b9a
BLAKE2b-256 f787479474c5d7aaad716af33d98fb33565ceef6cdfc9793cab5dbbe640048b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarbo_data_sdk-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on YarboInc/YarboDataSDK

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page