# gpiozero/gpiozero

A simple interface to GPIO devices with Raspberry Pi

Repository: https://github.com/gpiozero/gpiozero
Canonical: https://ross.abutalabs.com/products/gpiozero
Homepage: https://gpiozero.readthedocs.io/
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: gpio, raspberry-pi, python, education, zero-boilerplate, raspberrypi, physical-computing
Last push: 2026-07-27T22:24:50+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 4006, "days_push": 37, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2136, forks 322 (observed 2026-08-28T04:06:17.592388+00:00)

## What it is
A Python library providing a simple, low-boilerplate interface to GPIO devices on the Raspberry Pi. It offers component classes for LEDs, buttons, sensors, motors, and more, with pluggable pin factories and mock pins for testing.

## Use cases
- blink an led with python on raspberry pi
- read a button press and trigger an action
- build a motion-activated light with a pir sensor
- control motors and robotics kits from python
- teach physical computing to beginners
- test gpio code without hardware using mock pins

## When to choose
- you want the simplest possible API for Raspberry Pi GPIO in Python
- you're teaching electronics or physical computing to students
- you need to swap between pin backends or test without hardware

## When to avoid
- you need direct low-level register access or maximum performance
- you're working with GPIO on non-Raspberry-Pi hardware
- you need features beyond what the supported pin factories provide

## Facets
- artifact type: library
- maturity: stable
- function: sdk, developer-tools
- domain: iot, embedded-systems, hardware, education
- platform: python, embedded, iot
- tags: gpio, raspberry-pi, physical-computing, sensors, electronics, beginner-friendly, automation, linux

## Member repositories
- gpiozero/gpiozero (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:17.592388+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:51:52.650879+00:00, confidence not recorded.
  - readme: https://github.com/gpiozero/gpiozero (fetched 2026-08-28T04:06:17.592388+00:00, sha 5be7d011206c)
  - registry_pypi: https://pypi.org/pypi/gpiozero/json (fetched 2026-08-29T10:32:20.988436+00:00, sha da44228eb99b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
