README 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. =======================================
  2. PyUSB 1.0 - Easy USB access from Python
  3. =======================================
  4. Introduction
  5. ============
  6. The PyUSB module provides Python with easy access to the host
  7. machine's Universal Serial Bus (USB) system.
  8. Until 0.4 version, PyUSB used to be a thin wrapper aroung libusb.
  9. With 1.0 version, things changed considerably. Now PyUSB is an
  10. API rich, backend neutral Python USB module easy to use.
  11. As with most Python modules, PyUSB's documentation is based on Python
  12. doc strings and can therefore be manipulated by tools such as pydoc.
  13. You can also find a tutorial at: http://pyusb.sourceforge.net/docs/1.0/tutorial.html.
  14. PyUSB is being developed and tested in Linux and Windows, but it should work
  15. fine in any platform running Python >= 2.4, ctypes and at least one of the
  16. builtin backends.
  17. PyUSB supports libusb 0.1, libusb 1.0 and OpenUSB, but the user does not need
  18. to worry about that, unless in some corner cases.
  19. If you have any question about PyUSB, you can use the PyUSB mailing list
  20. hosted in the SourceForge. In the PyUSB website (http://pyusb.sourceforge.net)
  21. you can find instructions on how to subscribe to the mailing list.
  22. Installing PyUSB on GNU/Linux Systems
  23. =====================================
  24. These instructions are for Debian-based systems. Instructions for
  25. other flavors of GNU/Linux should be similar.
  26. You will first need to install the following packages:
  27. 1) python (PyUSB is useless without it), version >= 2.4
  28. 2) At least one of the supported libraries (libusb 1.0, libusb 0.1 or OpenUSB)
  29. 3) If your Python version is < 2.5, you have to install ctypes as a separate package,
  30. because these versions of Python does not ship it.
  31. For example, the command
  32. sudo apt-get install python libusb
  33. should install all these packages on most Debian-based systems with
  34. access to the proper package repositories.
  35. Once the above packages are installed, you can install PyUSB
  36. with the command
  37. python setup.py install
  38. run as root from within the same directory as this README file.
  39. Installing PyUSB on Windows
  40. ===========================
  41. Now that PyUSB is 100% written in Python, you install it on Windows
  42. in the same way you do on Linux:
  43. python setup.py install
  44. Remember that you need libusb (1.0 or 0.1) or OpenUSB running on your
  45. system. For Windows users, libusb 1.0 is still experimental, so it is
  46. recommended libusb-win32 package. Check the libusb website for updates
  47. (http://www.libusb.org).
  48. Reporting bugs/Submitting patches
  49. =================================
  50. Some people have been sending me patches and reporting bugs directly
  51. in my email. Please, do it through SourceForge tracker, I had
  52. a hardtime tracking their names to put them in the acknowledgments file. ;-)
  53. PS: this README file was based on the great Josh Lifton's one... ^_^