Comparison
gpiod vs lgpio vs pigpio vs RPi.GPIO
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python bindings for libgpiod
Actively maintained. Last release 4 weeks ago, commits in 11 of the last 26 weeks. A safe choice.
$
pip install gpiodLinux SBC GPIO module
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install lgpioRaspberry Pi GPIO module
Likely abandoned. No release or commit for years (last release over 6 years ago).
$
pip install pigpioA module to control Raspberry Pi GPIO channels
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install rpi-gpioIn short
- lgpio is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- pigpio looks abandoned: avoid it for new projects.
- RPi.GPIO looks abandoned: avoid it for new projects.
- gpiod is the most used: 743K downloads a month, 9.0× more than pigpio.
- gpiod also has the best Pythie’s Index (79).
- gpiod is growing fastest: downloads +35% over the last month.
- Safe default for a new project: gpiod.