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.


- 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]

python-libusb1 is expected to work on any OS supported by libusb. It can be
expected to work on:
- Linux
- Windows
*not* libusb-win32 (this is libusb0.1, the old API)
- Cygwin
- FreeBSD
libusb reimplementation:
- OpenBSD

Bare ctype wrapper, inspired from library C header file.
Python-ish (classes, exceptions, ...) wrapper around .
See docstrings (pydoc recommended) for usage.
To package as python egg.
- stdeb.cfg
To package as Debian package. See .
Very limited regression test, only testing functions which do not require a
USB device.

python install
(you might need root access to do this)

Initial release
Massive rework of, making it more python-ish and fixing some
memory leaks.
Deprecate "transfer" constructor parameter to allow instance reuse.
Some work on isochronous "in" transfers. They don't raise exceptions anymore,
but data validity and python-induced latency impact weren't properly checked.
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.
Add FreeBSD support.
Add Cygwin support.
OpenBSD support checked (no change).


See also (other projects, different author):
pyusb: another python wrapper for (among others) libusb1

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.2
Filename, size File type Python version Upload date Hashes
Filename, size libusb1-0.2.2.tar.gz (22.8 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