Package: wnpp
Severity: wishlist
Owner: Hans-Christoph Steiner <[email protected]>
* Package name : pylibftdi
Version : 0.23.0
Upstream Author : Ben Bass <[email protected]>
* URL : https://github.com/codedstructure/pylibftdi
* License : MIT
Programming Lang: Python
Package source : https://salsa.debian.org/python-team/packages/pylibftdi
Description : minimal Pythonic interface to FTDI devices using libftdi
pylibftdi is a minimal Pythonic interface to FTDI devices using libftdi.
Features:
* No dependencies beyond standard library and a libftdi install.
* Supports parallel and serial devices
* Support for multiple devices
* File-like interface wherever appropriate
* Cross-platform
The primary interface is the Device class in the pylibftdi package; this gives
serial access on relevant FTDI devices (e.g. the UM232R), providing a file-like
interface (read, write). Baudrate is controlled with the baudrate property.
If a Device instance is created with mode='t' (text mode) then read() and
write() can use the given encoding (defaulting to latin-1). This allows easier
integration with passing unicode strings between devices.
Multiple devices are supported by passing the desired device serial number (as a
string) in the device_id parameter - this is the first parameter in both
Device() and BitBangDevice() constructors. Alternatively the device
'description' can be given, and an attempt will be made to match this if
matching by serial number fails.