DeviceProxy
dobot.server_fastapi.__init__ registers "DobotCtrl" through register_device_proxy(), with alias "dobot", object_name="dobot", and api_spec=None. Its default_async_mode is True.
from dobot.server_fastapi import DeviceProxy
client = DeviceProxy(
"DobotCtrl",
server_ip="127.0.0.1",
server_port=8000,
async_mode=False,
)
print(client.get_current_position())
The registered concrete clients are SyncDobotClient and AsyncDobotClient. make_pyi.py generates their .pyi files and __init__.pyi from the control class’s public API.
python -m dobot.server_fastapi.make_pyi