Skip to content
Python wrapper for the hidapi (not active, use one of the forks)
Branch: master
Clone or download
Latest commit 3530c94 Jun 19, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore gitignore added, exclude build directory Dec 28, 2011
LICENSE-bsd.txt changing the license according to #19 Jun 1, 2015
LICENSE-gpl3.txt changing the license according to #19 Jun 1, 2015
LICENSE-orig.txt changing the license according to #19 Jun 1, 2015
LICENSE.txt changing the license according to #19 Jun 1, 2015
Readme.rst changing the license according to #19 Jun 1, 2015
chid.pxd Added hid_open_path to chid.pxd Jan 8, 2014
hid-libusb.c Initial commit. Sep 17, 2011
hid-mac.c Added support for mac OS X Dec 28, 2011
hid-windows.c Initial commit. Sep 17, 2011
hid.pyx bug fix Jan 8, 2014
hidapi.h Initial commit. Sep 17, 2011
setup-arm.py
setup-mac.py
setup-windows.py
setup.py
try.py

Readme.rst

cython-hidapi

Description

A cython interface to the hidapi from https://github.com/signal11/hidapi with the C modification for windows from http://code.google.com/p/picusb/downloads/detail?name=hidapi_git_mingw_7e93a4e068825d227807.zip&can=2&q= so I could build it with mingw on windows.

This has been tested with:

  • the PIC18F4550 on the development board from CCS with their example program.
  • the Fine Offset WH3081 Weather Station.

It works on Linux, Windows XP and OS X.

Software Dependencies

License

cython-hidapi may be used by one of three licenses as outlined in LICENSE.txt.

Install

  1. Download cython-hidapi archive:

    $ git clone https://github.com/gbishop/cython-hidapi.git
    $ cd cython-hidapi
    

For other download options (zip, tarball) visit the github web page of cython-hidapi

  1. Build cython-hidapi extension module for your platform:

    $ python setup[-mac|-windows].py build
    
  2. Install cython-hidapi module into your Python distribution:

    $ [sudo] python setup[-mac|-windows].py install
    
  1. Test install:

    $ python
    >>> import hid
    >>>
    
  1. Try example script:

    $ python try.py
    
You can’t perform that action at this time.