This library provides Python utilities to communicate with the *original* Ledger Nano hardware wallet over USB HID. It is specific to the first generation of Ledger devices and is largely superseded by `ledger-python` and `ledgerblue` for modern Ledger Nano S, X, and Stax devices. The current version is 0.1.32, with no active development since 2017, indicating an abandoned status.
pip install btchip-pythonVerified import paths — ran on the pinned version, not inferred.
Demonstrates connecting to an original Ledger Nano and retrieving its firmware version. This example highlights the specific hardware compatibility and common setup requirements.
For Ledger Nano S/X/Stax, use the actively maintained `ledger-python` library (PyPI: `ledger-app-builder`) or `ledgerblue` for device communication.
Migrate to `ledger-python` or `ledgerblue` for any new development or maintenance involving Ledger hardware, especially for modern devices.
Install `hidapi`'s system dependencies (e.g., `libusb-1.0-0-dev` on Debian/Ubuntu, `hidapi-devel` on Fedora, `libusb` on macOS) before `pip install hidapi`. On Linux, add udev rules for Ledger devices (e.g., `SUBSYSTEM=="usb", ATTR{idVendor}=="2c97", MODE="0660", GROUP="plugdev", TAG+="uaccess"`).Access the string representation and parse it, e.g., `str(firmware_object).split(' ')[0]` to get just the version number.