Binary package “python3-lgpio” in ubuntu oracular

Control GPIO pins via gpiochip devices - python3 bindings

 The lgpio library is a fully featured library for controlling the GPIO pins
 of the local board. It includes facilities for software PWM, callbacks on
 level change, I2C, SPI, and UART wrappers.
 .
 This package contains the Python 3 bindings for liblgpio.