Skip to main content

Robot Platform API SDK

Project description

Robot Platform SDK (Python)

Robot Platform provides a clean‑architecture, DDD‑compliant Python SDK for interacting with the robot management backend. The SDK ships with both synchronous and asynchronous clients, automatic authentication, and token‑refresh middleware.


📦 Installation

pip install robot-wrapper-sdk

🚀 Quick start

from robot_sdk import RobotPlatformModule

# Auto‑configuration via environment variables (recommended)
#   ROBOT_PLATFORM_BASE_URL
#   ROBOT_PLATFORM_APP_ID
#   ROBOT_PLATFORM_APP_SECRET
#   ROBOT_PLATFORM_PROXY_URL (optional: socks5h://..., http://...)

sdk = RobotPlatformModule()  # reads env vars automatically

# Or manual configuration with proxy support
sdk = RobotPlatformModule(
    base_url="https://api.example.com",
    app_id="...",
    app_secret="...",
    proxy_url="socks5h://192.168.3.100:1080"
)

# Synchronous call example
robot = sdk.robot_usecase.get_robot_profile("2029943774539935744")
print(robot.platform)

# Asynchronous call example
import asyncio

async def async_demo():
    async_sdk = await RobotPlatformModule.async_init()
    robot = await async_sdk.robot_usecase.get_robot_profile_async("2029943774539935744")
    print(robot.platform)

asyncio.run(async_demo())

📚 Documentation

The full API reference and usage guide live in the repository:

  • Guide: docs/guide.md – step‑by‑step walkthrough of all use‑cases.
  • API reference is generated from type‑hints and can be inspected via help(RobotPlatformModule).

💡 Examples

The examples/ directory contains ready‑to‑run scripts that demonstrate common scenarios:

Run any example directly:

python examples/robot_profile.py

🛠️ Build & publish (maintainer guide)

# Create a clean virtual environment
make venv

# Install build tools
make install

# Build source and wheel distributions
make build

# Publish to PyPI (requires twine and valid credentials)
make publish

The Makefile lives in the SDK root and abstracts the above commands.


📄 License

MIT License – see the bundled LICENSE file.


This README is rendered on PyPI, so all relative links (docs/, examples/) resolve to the files shipped in the source distribution, allowing developers to browse the documentation and example code directly from the package page.

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

robot_wrapper_sdk-0.2.4.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

robot_wrapper_sdk-0.2.4-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file robot_wrapper_sdk-0.2.4.tar.gz.

File metadata

  • Download URL: robot_wrapper_sdk-0.2.4.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.4

File hashes

Hashes for robot_wrapper_sdk-0.2.4.tar.gz
Algorithm Hash digest
SHA256 322cd256dad64789101a2cb6af4e373269a431b826267282d9270eef1f884090
MD5 bb92b12b7a647d5377ac7d04337d98c3
BLAKE2b-256 d1660450c34547e0963c4ca00f9762d3142d0a74e652a33e62d1523d853fd1e9

See more details on using hashes here.

File details

Details for the file robot_wrapper_sdk-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for robot_wrapper_sdk-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 442203a15e4329808292dce0bba10a5e779c9d795f553c74b0a88354225007ed
MD5 0237dfacf09e0908d7113aaccebab167
BLAKE2b-256 7406a57a3e857a7a0fbaa5bfa4a69a1194f4b3026d927d74885a61685a654ad4

See more details on using hashes here.

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