Registry / serialization / hid
library1.0.9pypypiunverified

A Python wrapper for hidapi using ctypes bindings. It provides low-level access to HID (Human Interface Device) devices on Linux, macOS, and Windows. Current version: 1.0.9. Release cadence: infrequent.

pip install hid
INSTALL
IMPORT
SIG · HID
H
hid
serializationpythonv1.0.9
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.9 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hid
import hid
import hid; hid.enumerate()

Lists all HID devices on the system.

import hid for device in hid.enumerate(0, 0): print(f"0x{device['vendor_id']:04x}:0x{device['product_id']:04x} {device['product_string']}")
Debug
Known issues
gotchahid.enumerate(0, 0) returns all devices; passing (vendor_id, product_id) filters. Many users call it incorrectly.
fix
Use hid.enumerate(vendor_id=0, product_id=0) for all devices.
affects: all
deprecatedThe library is not actively maintained; last release 2020. May lack support for newer hidapi features.
fix
Consider using cython-hidapi or hidapi package if issues arise.
affects: 1.0.9
gotchaOn Windows, hidapi DLL must be in PATH or alongside the script. Missing DLL causes ImportError.
fix
Install hidapi via vcpkg or download prebuilt DLL and place in working directory.
affects: all
Upgrade
Version history
1.0.9latest on PyPI · released Feb 5, 2026
Audit
Dependencies
hidapirequiredSystem-level library; on Linux install via package manager (e.g., libhidapi-dev), on macOS via brew (hidapi), on Windows preinstalled or via vcpkg.
Agent activity
14 hits · last 30 days
node
14
Resources
hid — pip install hid · libregistry