Registry / serialization / ftd2xx

ftd2xx

JSON →
library1.3.8pypypiunverified

A Python interface to FTDI's D2XX driver (ftd2xx.dll on Windows, libftd2xx on Linux/macOS) using ctypes. Currently at v1.3.8, with a relatively stable release cadence. Compatible with Python >=3.8.

pip install ftd2xx
INSTALL
IMPORT
SIG · FTD2XX
F
ftd2xx
serializationpythonv1.3.8
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.3.8 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ftd2xx
import ftd2xx
import ftd2xx

Basic usage: list, open, reset, read/write, and close a device.

import ftd2xx # List connected devices device_count = ftd2xx.createDeviceInfoList() print(f"Found {device_count} device(s)") # Open first device by serial number (or index) try: dev = ftd2xx.open(0) print(f"Opened device: {dev.description}") # Reset and set bit mode to reset default dev.reset() dev.setBitMode(0, 0) # Write data dev.write(b"Hello FTDI") # Read data data = dev.read(100) print(f"Read: {data}") dev.close() except ftd2xx.DeviceError as e: print(f"Error: {e}")
Debug
Known issues
gotchaopen() and openEx() by default call createDeviceInfoList which can be slow on some systems. Use update=False to avoid this when you don't need device info.
fix
dev = ftd2xx.open(0, update=False)
affects: >=1.3.0
gotchaOn Linux, you may need to install libftd2xx separately and configure udev rules for non-root access. Otherwise you'll get a 'Failed to open device' error.
fix
Install libftd2xx from FTDI's website and add udev rule: SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", MODE="0666"
affects: all
deprecatedThe older d2xx library (by Pablo Bleyer) was renamed to ftd2xx. Importing from d2xx is deprecated and will break.
fix
Use 'import ftd2xx' instead of 'import d2xx'
affects: >=1.0.0
Upgrade
Version history
1.3.8latest on PyPI · released Jun 25, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
ftd2xx — pip install ftd2xx · libregistry