Skip to main content

DaedalusLink

PyPI version License Python Version


DaedalusLink is a lightweight Python library for building robot control GUIs over WebSockets.
Robots can expose a JSON-based interface, and DaedalusLink automatically maps it into GUI elements (buttons, sliders, joysticks, etc.).

Features

  • Simple WebSocket-based protocol (no heavy dependencies)
  • JSON → GUI auto-generation
  • Supports buttons, sliders and joysticks
  • Heartbeat signal to detect connection issues

Installation

pip install daedaluslink

Quick example

from daedaluslink import DaedalusLink

gui = DaedalusLink(name="R2D2", link_id=1)

gui.add_button("forward", command="MOVE_FORWARD", position=[0, 2], size=[4, 1])
gui.add_button("backward", command="MOVE_BACKWARD", position=[4, 2], size=[4, 1])
gui.add_joystick("move", axes=["X", "Y"], command="move", position=[2, 7], size=[6, 6])
gui.add_slider("Joint 1", command="j1", position=[0, 3], size=[1, 9])
gui.add_slider("Joint 2", command="j2", position=[1, 3], size=[1, 9])

gui.enable_discovery_broadcast(
    udp_port=7777,
    interval=1.0
)

@gui.on("MOVE_FORWARD")
def forward(pressed: bool):
    if pressed:
        print("forward pressed")
    else:
        print("forward released")

@gui.on("MOVE_BACKWARD")
def backward(pressed: bool):
    if pressed:
        print("backward pressed")
    else:
        print("backward released")

@gui.on("move")
def on_move(x: int, y: int):
    print(f"Joystick moved → x={x}, y={y}")

@gui.on("j1")
def sliderj1(x: int):
    print(f"slider j1 moved → {x}")

@gui.on("j2")
def sliderj2(x: int):
    print(f"slider j2 moved → {x}")

gui.run(port=8081)

Message Protocol

  • Button press → "MOVE_FORWARD" -> handler gets true
  • Button release → "!MOVE_FORWARD" -> handler gets false
  • Joystick → "move 120,-30" → handler gets (120, -30)
  • Slider → "slider 42" → handler gets 42
  • Heartbeat → Client sends {"type":"ack"}, server responds with ack

Metadata

Release files for daedaluslink 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for daedaluslink 0.1.3
File Size Uploaded Provenance Actions
daedaluslink-0.1.3.tar.gz 17.1 kB With provenance Details for daedaluslink-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for daedaluslink 0.1.3
File Interpreter ABI Platform Actions
daedaluslink-0.1.3-py3-none-any.whl Python 3 none any Details for daedaluslink-0.1.3-py3-none-any.whl

Total release size: 34.5 kB

Security for daedaluslink 0.1.3

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page