Python client for the Rebind remote access WebSocket protocol. Blocking and asyncio APIs. Pure Python, works on Windows, macOS, and Linux.
pip install rebindfrom rebind import RebindRemote
with RebindRemote("ws://127.0.0.1:19561") as r:
r.hid_move(30, -5)
r.hid_press("Mouse1", hold_ms=20)
x, y = r.system_mouse()
pixel = r.screen_pixel(x, y)
for pos in r.mouse_events():
print(pos.x, pos.y)
if pos.x > 500:
breakfrom rebind import AsyncRebindRemote
async def main():
async with AsyncRebindRemote("ws://127.0.0.1:19561") as r:
x, y = await r.system_mouse()
async for pos in r.mouse_events():
print(pos.x, pos.y)- GitHub: usinput/rebind-client-py
- Docs: docs.rebind.gg