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.2.0.tar.gz (35.8 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.2.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

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

Hashes for yarbo_data_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3c9889f4ab85dd6daee551ce44e98dd03fca14c699c095a4d1241d6540c79574
MD5 2cc06a39c4fd572e59f9aaa05b8ac6f2
BLAKE2b-256 de19eb51c8400420bf46aaa19f5d559bbbcba1e771e0c7a8a996fff01d73faf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarbo_data_sdk-0.2.0.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.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

Hashes for yarbo_data_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12b8b43ea30d4025a90250a1fadc0cae5ef99ec6ef97771a233b44268efd6bee
MD5 acd63595eb83c4e8d0cd1dcc51377478
BLAKE2b-256 f45ccf20d5400903f7c857d634124477b5de454a47d31bf257d5b18009bc5696

See more details on using hashes here.

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

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