A new package has been uploaded: PyHid, which you can find over in the free stuff section. It’s a library for C++ or Python developers on the Apple Mac, that talks to USB Human Interface Devices, which is most input or output devices these days that aren’t specifically handled by some other spec (like USB Audio). Even some Bluetooth devices show up and work just the same.
Here’s a quick example that finds all the attached devices:
import PyHID
try:
PyHID.initialise()
devs = PyHID.scan_devices()
for dev in devs:
print 'Found a %s made by %s with %d gizmos' % (dev.name, dev.manufacturer, len(dev.elements))
finally:
PyHID.finalise()