Binary package “python3-gpiozero” in ubuntu bionic

simple interface to everyday GPIO components used with Raspberry Pi (Python 3)

 gpiozero is an object-oriented wrapper around using various elelctronic
 components with the GPIO interface on the Raspoberry Pi. It allows
 interacting with components like LEDs and buttons by defining them as
 object instances which provide callback hooks to react to changes, e.g.
 a button being pressed.
 .
 This package contains the Python 3 module.