GPIO Programming on the Raspberry Pi: Python Libraries

This page summarizes the projects mentioned and recommended in the original post on dev.to

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. WiringPi

    Discontinued Gordon's Arduino wiring-like WiringPi Library for the Raspberry Pi (Unofficial Mirror for WiringPi bindings)

    The WiringPi library is an often used, functional rich library that supports I2C and SPI connections. It is written in C and provides Python bindings. The library is unfortunately deprecated as the original author stated. Decide yourself if you want to use the library: On one hand, you find several examples on the internet, on the other hand, members from the Raspberry Pi community start to move to new libraries.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. WiringPi-Python

    Discontinued Unofficial Python-wrapped version of Gordon Henderson's WiringPi version 2.

    The libraries latest version can be accessed on Github: See the WiringPi C and WiringPi Python.

  4. pigpio

    pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).

    The pigpio is an actively developed library with an impressive set of features: All GPIO pins of the Raspberry Pi can be read, written to, attached to interrupt handlers, and output PWM signals at the same time. Also, UART, I2C and SPI protocols are implemented. It is written in C and also provides Python bindings. Go to the official Github repository and build the newest version on your Raspberry Pi, or install it with apt install pigpio python-pigpio python3-pigpio.

  5. gpiozero

    A simple interface to GPIO devices with Raspberry Pi

    Gpiozero is already installed in the current Raspberry Pi OS - if not, just run python3 -m pip gpiozero. The source code files can be accessed on Github. The official documentation on readthedocs.io provides rich information and plenty example code.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Raspberry Pi, InfluxDB, Grafana, Docker

    2 projects | dev.to | 15 Jun 2023
  • What can we do with python, exactly?

    3 projects | /r/learnpython | 10 Jul 2022
  • Build your SO their own "attention button" this Valentine's Day

    1 project | dev.to | 31 Jan 2021
  • Arduino/ESP32 project --> Raspberry Pi 4 programming/conversion/capability?

    2 projects | /r/raspberryDIY | 15 Jun 2023
  • mqtt-gpio: A service which connects MQTT topics to Raspberry Pi GPIO pins

    3 projects | /r/raspberry_pi | 22 Jan 2022

Did you know that C is
the 6th most popular programming language
based on number of references?