Armbian offers a GPIO library in Python which is called pyGPIO

Python and Java library for simplifying access to I2C, SPI and GPIO on boards supported by Armbian

https://github.com/bitbank2/ArmbianIO

https://forum.armbian.com/topic/5662-pygpio-a-more-general-python-gpio-library/#comments

  • ArmbianIO requires Armbian with a mainline (4.x) kernel.
  • Older versions don’t have the unique board identifier (/run/machine.id)
  • ow supports any Linux distribution for ARM SBCs (e.g. RPI, OrangePi, NanoPi, etc)
  • Will support all SBCs supported by Armbian (soon)
  • Includes simple functions for communicating with GPIO, I2C and SPI buses
  • References GPIO pins by physical pin number
  • Includes functions for detecting presence of and reading status of on-board key/button (not all boards have one)
  • Python bindings are generated with ctypesgen
  • Cross platform RPi.GPIO clone is in the works
  • Java bindings use a simple interface file and JNA

Copyright (c) 2017 by Larry Bank, project started 11/13/2017

Good GPIO support is one of the view arguments to choose Raspberry Pi’s. But we have GPIO support also on Armbian.