Skip to main content

A Cython interface to the hidapi from https://github.com/signal11/hidapi

Project description

https://travis-ci.org/trezor/cython-hidapi.svg?branch=master

Description

A Cython interface to HIDAPI library.

This has been tested with:

  • TREZOR Hardware Wallet

  • the PIC18F4550 on the development board from CCS with their example program

  • the Fine Offset WH3081 Weather Station

It works on Linux, Windows and macOS.

Software Dependencies

License

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

Install

$ sudo apt-get install python-dev libusb-1.0-0-dev libudev-dev
$ sudo pip install --upgrade setuptools
$ sudo pip install hidapi

For other download options visit the PyPi page.

Build from source

  1. Download cython-hidapi archive:

    $ git clone https://github.com/trezor/cython-hidapi.git
    $ cd cython-hidapi
  2. Initialize hidapi submodule:

    $ git submodule update --init
  3. Build cython-hidapi extension module:

    $ python setup.py build

    To use hidraw API instead of libusb add –without-libusb option:

    $ python setup.py build --without-libusb
  4. Install cython-hidapi module into your Python distribution:

    $ sudo python setup.py install
  5. Test install:

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

    $ python try.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hidapi-0.7.99.post20.tar.gz (51.3 kB view details)

Uploaded Source

Built Distributions

hidapi-0.7.99.post20-cp35-cp35m-win_amd64.whl (25.4 kB view details)

Uploaded CPython 3.5m Windows x86-64

hidapi-0.7.99.post20-cp35-cp35m-win32.whl (21.8 kB view details)

Uploaded CPython 3.5m Windows x86

hidapi-0.7.99.post20-cp34-cp34m-win_amd64.whl (22.6 kB view details)

Uploaded CPython 3.4m Windows x86-64

hidapi-0.7.99.post20-cp34-cp34m-win32.whl (21.0 kB view details)

Uploaded CPython 3.4m Windows x86

hidapi-0.7.99.post20-cp27-cp27m-win_amd64.whl (23.1 kB view details)

Uploaded CPython 2.7m Windows x86-64

hidapi-0.7.99.post20-cp27-cp27m-win32.whl (20.2 kB view details)

Uploaded CPython 2.7m Windows x86

File details

Details for the file hidapi-0.7.99.post20.tar.gz.

File metadata

File hashes

Hashes for hidapi-0.7.99.post20.tar.gz
Algorithm Hash digest
SHA256 5f88fd3e79deeeaacd2f266e641434a342d25b779778393191c863dd4f2dffcc
MD5 a4ae16d1036511a97a9c82cab2eab231
BLAKE2b-256 5bda3389aa1a510ca7e347b1d24cd7b742365efb8e2b251deeb6ab7ba18a56ca

See more details on using hashes here.

File details

Details for the file hidapi-0.7.99.post20-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for hidapi-0.7.99.post20-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b00fa9217d167b4e68348d4262ad6404a37772a92b1a4cf71138a8c6375bbbde
MD5 cd4eb31b4c6ab254abc251e0ddb6c2b3
BLAKE2b-256 b2a2574954dfdc36d26e51ce830dc7ec0b5deb93061f3c6c606abbb79c228580

See more details on using hashes here.

File details

Details for the file hidapi-0.7.99.post20-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for hidapi-0.7.99.post20-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 7d5c5d932a6dd8ed8e98c3c7ea21e6e2f337fefeb1be5bb978abbf8db4a68fa0
MD5 b7a86e86814d92d9ca89347feb52c3ae
BLAKE2b-256 bb37c19424410a9e06227bd496304d0e4163e4249a3b31e4576828fad347f74e

See more details on using hashes here.

File details

Details for the file hidapi-0.7.99.post20-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for hidapi-0.7.99.post20-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 d8867d13939a585298c291ef9f914f12eeb6a4664fea1a3f7c6c6d3c71cd5255
MD5 d0cc62c69673f86d844a285c7a398c9b
BLAKE2b-256 01eb0f9f08dd08416c37b8761fabe182af265111bd7675d4fa38f5cf17e7c314

See more details on using hashes here.

File details

Details for the file hidapi-0.7.99.post20-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for hidapi-0.7.99.post20-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 643d8c85d20e6515ea7bbbcd4ce1430a392298382882bdf1839fa6d9ecb272e1
MD5 3666e0a3bc6f6199b77b0fb85f41951f
BLAKE2b-256 02f90950b71ae6b8e3c5989ff5622a1be976ccfd4a3c1a2047139f5e177a0264

See more details on using hashes here.

File details

Details for the file hidapi-0.7.99.post20-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for hidapi-0.7.99.post20-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 6e851c5dcf3be25368f46f06b39156e0adecc6a4be85328aad9a0a7576e0e781
MD5 ad5c6699b7a7d64ea0fb6d287a63d267
BLAKE2b-256 e9c0af84c74ee86e280e353aca3625fb9a17fffe01de97aa66d90dfb4d349aff

See more details on using hashes here.

File details

Details for the file hidapi-0.7.99.post20-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for hidapi-0.7.99.post20-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 52b49859df8389b67de090566ca9b4d19d9997fbd6069619c8583a0181a6b3d0
MD5 f547ada851c85d115388b3adc711de14
BLAKE2b-256 7280af70c922a1c76af17add720d5f01333d8574e9e56186aee4fd89664a587e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page