useHID Python Bindings
Cross-platform virtual HID device library for Python.
Installation
pip install usehid
Quick Start
from usehid import Mouse, Keyboard, AgentHID
# Basic Mouse
mouse = Mouse()
mouse.move_by(100, 50)
mouse.click()
mouse.double_click("left")
mouse.scroll(-3) # Scroll down
# Basic Keyboard
keyboard = Keyboard()
keyboard.type_text("Hello, World!")
keyboard.press("enter")
keyboard.combo(["ctrl"], "c") # Copy
# For AI Agents
agent = AgentHID()
# Execute actions from dict
result = agent.execute({
"action": "mouse_move",
"x": 100,
"y": 200
})
result = agent.execute({
"action": "type",
"text": "Hello from AI!"
})
result = agent.execute({
"action": "key_combo",
"modifiers": ["ctrl", "shift"],
"key": "s"
})
Available Actions
Mouse Actions
mouse_move- Move mouse by offset (x,y)mouse_click- Click button (button: "left"/"right"/"middle")mouse_double_click- Double clickmouse_down- Press buttonmouse_up- Release buttonmouse_scroll- Scroll wheel (delta: positive=up, negative=down)
Keyboard Actions
type- Type text (text)key_press- Press and release key (key)key_down- Press keykey_up- Release keykey_combo- Key combination (modifiers: list,key)
Gamepad Actions
gamepad_press- Press buttongamepad_release- Release buttongamepad_left_stick- Set left stick (x,y: 0-255)gamepad_right_stick- Set right stickgamepad_triggers- Set triggers (left,right: 0-255)
Building
cd usehid-python
maturin develop
License
MIT
Metadata
Release files for usehid 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| usehid-0.1.0-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details |
| usehid-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.34+ x86-64 | Details |
| usehid-0.1.0-cp311-cp311-macosx_11_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 11.0+ ARM64 | Details |
Total release size: 1.0 MB
Release files / usehid-0.1.0-cp311-cp311-win_amd64.whl
| Download URL | usehid-0.1.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 253.7 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
dec824b894839460f1b833fefb3896364912e5b87bcc50358d3940b2a298a05f
|
|
BLAKE2b-256 checksum How to use checksums |
26ab6dd5c42c1afa4348308e6d8c3368a4032a5b85cb73fea47fbb76322b1583
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.
Transparency logRelease files / usehid-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | usehid-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 407.5 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
7fb1ddfaafb6b13a584778eedd4c86aebdeb7265c220b373f6c5a34c26dbcc9b
|
|
BLAKE2b-256 checksum How to use checksums |
dca4a7632abf3314de74f4cab7519d549197fb403c900d31d8a8945470b29f36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.
Transparency logRelease files / usehid-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | usehid-0.1.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 370.9 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9fb4c471a57bf847e8b753682152b7080b797845975e8f0af5fb82620ae03da2
|
|
BLAKE2b-256 checksum How to use checksums |
7506f7503586386c5e5dddb84a41c4446ce99c5216cb4760348b7f1728732367
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.
Transparency log