title: Raw access to HID devices in OS X
body: <p>What is the simplest way to get raw access to HID devices on OS X?</p>
  
  <p>I've been looking through the IOKit examples, but even opening a device seems needlessly complex, involving multiple callbacks and include things from half a dozen libraries.<br>
  libusb is available for OS X, but the kernel grabs all HID devices for exclusive access, and I have been getting strange behavior while trying to use a codeless .kext to block it from associating with my device (it prevents the kernel from grabbing the device initially, but any calls to configure the device seem to cause the kernel to grab the device away from under the little python libusb script I am testing with).</p>
  
  <p>Basically, I have a HID device that just streams data. I want to open it for (ideally exclusive) access, and just get the datastream.</p>
  
  <p>All the examples I have found in the IOKit docs are really complex, compared to the ~8 lines it would take in libusb. There must be a simpler way that isn't a 3'rd party library.</p>
  
  <p><sup>It's worth noting that I am entirely unfamiliar with programming for OS X in any capability.</sup></p>
  
  <p><sup>Python support would be a nice plus</sup></p>