Skip to main content

Python wrapper around libusb-1.0

Project description

python-libusb1 is a Python wrapper for libusb-1.0

Supports all transfer types, both in synchronous and asynchronous mode.

URL:
http://github.com/vpelletier/python-libusb1

Requirements:
- Python [1] 2.4+ required, 2.6+ recommended
Untested with Python 3.x (use 2to3 to convert)
- ctypes [2] (included in Python 2.5+)
- libusb-1.0 [3]

Compatibility:
python-libusb1 is expected to work on any OS supported by libusb. It is known
to be used on:
- Linux
- Windows
- OSX
- FreeBSD
libusb reimplementation: http://svnweb.freebsd.org/base/head/lib/libusb/

Contents:
- libusb1.py
Bare ctype wrapper, inspired from library C header file.
- usb1.py
Python-ish (classes, exceptions, ...) wrapper around libusb1.py .
See docstrings (pydoc recommended) for usage.
- setup.py
To package as python egg.
- stdeb.cfg
To package as Debian package. See https://github.com/astraw/stdeb .
- testUSB1.py
Very limited regression test, only testing functions which do not require a
USB device.

Install:
python setup.py install
(you might need root access to do this)

History:
0.0.1
Initial release
0.1.1
Massive rework of usb1.py, making it more python-ish and fixing some
memory leaks.
0.1.2
Deprecate "transfer" constructor parameter to allow instance reuse.
0.1.3
Some work on isochronous "in" transfers. They don't raise exceptions anymore,
but data validity and python-induced latency impact weren't properly checked.
0.2.0
Fix asynchronous configuration transfers.
Stand-alone polling thread for multi-threaded apps.
More libusb methods exposed on objects, including ones not yet part of
released libusb versions (up to their commit 4630fc2).
2to3 friendly.
Drop deprecated USBDevice.reprConfigurations method.
0.2.1
Add FreeBSD support.

[1] http://www.python.org/
[2] http://python.net/crew/theller/ctypes/
[3] http://www.libusb.org/wiki/libusb-1.0

See also (other projects, different author):
pyusb: another python wrapper for (among others) libusb1
http://sourceforge.net/projects/pyusb/

Project details


Download files

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

Files for libusb1, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size libusb1-0.2.1.tar.gz (22.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page