简体   繁体   中英

Is there a simple cross platform HID module for python?

I'm trying to write some code that will fetch receive data from usb HID devices like scales. I've used pywinusb for windows but I need it to be cross platform. pyhid says it's just for Mac OS X. The only cross-platform module I've found so far is libhid which is written in C but still python accessible. However, I haven't found any helpful internet sources on how to use it in python.

All I need to do is read the weight from usb scales.

Are there any other cross-platform python HID modules>?

Have you tried cython-hidapi ? It is a cython wrapper around the excellent hidapi C library .

The PyPi page report that it works on POSIX, Mac OS X, and Windows operating systems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM