A Python library for controlling GPIO on Linux single-board computers (SBCs) such as Raspberry Pi, Orange Pi, etc. Current version 0.2.2.0. Release cadence is irregular, primarily maintained by joan2937.
pip install lgpioNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Open GPIO chip 0, claim GPIO 17 as output, set high, then cleanup.
Learn the new API: use lgpio.gpiochip_open, gpio_claim_output, gpio_write, etc.
Use /dev/gpiochip* to discover correct chip number, or use lgpio.gpiochip_open_by_label() with the appropriate label.
Always call gpio_free() for each claimed line, then gpiochip_close().
Add user to the 'gpio' group: sudo usermod -a -G gpio $USER (then log out/in). Alternatively, run as root.
Install lgpio from pip; if on a SBC, ensure you have the proper liblgpio-dev or build from source. On Raspberry Pi OS, install with apt-get install liblgpio-dev.
lgpio does not use setwarnings. Remove that call.
No dependency data recorded yet.