Menu

Tree [560d56] master /
 History

HTTPS access


File Date Author Commit
 .github 2020-12-04 Jonas Malaco Jonas Malaco [eaf690] ci: add Python 3.9, drop Python 2.7/3.5
 docs 2021-01-20 Jonas Malaco Jonas Malaco [52d878] docs: update minimum supported Python version
 etc 2014-01-29 Wander Lairson Costa Wander Lairson Costa [610a23] Add the udev rule file for pyusb test firmware.
 tests 2021-01-20 Jonas Malaco Jonas Malaco [3c19ad] tree: update copyright notice
 tools 2015-08-26 Richard Bryan Richard Bryan [3a422e] adds a virtual com port utility to tools
 usb 2021-01-20 Tormod Volden Tormod Volden [a54ebc] core: raise ValueError if no matching interface...
 .gitignore 2020-06-09 ap-- ap-- [25315d] Use setuptools_scm for versioning
 ACKNOWLEDGEMENTS 2019-12-07 Robert Wlodarczyk Robert Wlodarczyk [59e367] back to bsd 3 clause (#281)
 LICENSE 2021-01-20 Jonas Malaco Jonas Malaco [3c19ad] tree: update copyright notice
 MANIFEST.in 2019-12-10 Jonas Malaco Jonas Malaco [1559ff] Remove ReleaseNotes.txt from the manifest
 README.rst 2021-01-20 Jonas Malaco Jonas Malaco [52d878] docs: update minimum supported Python version
 deploy.sh 2020-12-05 Jonas Malaco Jonas Malaco [0334ff] deploy: generate, sign and upload a Python whee...
 gencl.sh 2012-09-09 Wander Lairson Costa Wander Lairson Costa [4955b6] Show ChangeLog since last tag.
 pyproject.toml 2020-06-09 ap-- ap-- [25315d] Use setuptools_scm for versioning
 setup.cfg 2020-10-04 Andreas Poehlmann Andreas Poehlmann [b57aa4] tests: minimal changeset for pytest support
 setup.py 2021-01-20 Jonas Malaco Jonas Malaco [560d56] setup: update author/contact metadata
 tox.ini 2021-01-20 Jonas Malaco Jonas Malaco [d96753] tox: enable Python 3.9 testing with tox

Read Me

PyUSB 1.0 - Easy USB access from Python

Introduction

The PyUSB module provides for Python easy access to the host machine's Universal Serial Bus (USB) system.

Until 0.4 version, PyUSB used to be a thin wrapper over libusb. With the 1.0 version, things changed considerably: now PyUSB is an API rich, backend neutral Python USB module easy to use.

As with most Python modules, PyUSB's documentation is based on Python doc strings and can therefore be manipulated by tools such as pydoc.

You can also find a tutorial at docs/tutorial.rst.

PyUSB is being developed and tested on Linux and Windows, but it should work fine on any platform running Python >= 3.6, ctypes and at least one of the builtin backends.

PyUSB supports libusb 1.0, libusb 0.1 and OpenUSB, but the user does not need to worry about that, unless in some corner cases.

If you have any question about PyUSB, consult the FAQ at docs/faq.rst or the PyUSB mailing list hosted in the SourceForge. In the PyUSB website you can find instructions on how to subscribe to the mailing list.

Installing

PyUSB is installed through pip:

pip install pyusb

Remember that you need libusb (1.0 or 0.1) or OpenUSB running on your system. For Windows users, libusb 1.0 DLLs are provided in the releases (see 7z archives). Check the libusb website for updates (http://www.libusb.info). For MacOS users, brew install libusb satisfies the requirement for running correctly.