{"id":13495093,"url":"https://github.com/gpiozero/gpiozero","last_synced_at":"2026-02-12T16:01:00.443Z","repository":{"id":1365050,"uuid":"42439862","full_name":"gpiozero/gpiozero","owner":"gpiozero","description":"A simple interface to GPIO devices with Raspberry Pi","archived":false,"fork":false,"pushed_at":"2025-11-06T11:51:55.000Z","size":29218,"stargazers_count":2080,"open_issues_count":189,"forks_count":317,"subscribers_count":81,"default_branch":"master","last_synced_at":"2025-12-13T03:15:56.036Z","etag":null,"topics":["education","gpio","physical-computing","python","raspberry-pi","raspberrypi","zero-boilerplate"],"latest_commit_sha":null,"homepage":"https://gpiozero.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gpiozero.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-09-14T09:36:03.000Z","updated_at":"2025-12-12T21:32:06.000Z","dependencies_parsed_at":"2023-07-05T18:48:12.841Z","dependency_job_id":"bebde5fc-8727-4de5-af83-814266110f77","html_url":"https://github.com/gpiozero/gpiozero","commit_stats":{"total_commits":1175,"total_committers":57,"mean_commits":"20.614035087719298","dds":0.5676595744680851,"last_synced_commit":"f3a338e56c28dd2d904016b3a8594f82c47da291"},"previous_names":["rpi-distro/python-gpiozero"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/gpiozero/gpiozero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpiozero%2Fgpiozero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpiozero%2Fgpiozero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpiozero%2Fgpiozero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpiozero%2Fgpiozero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gpiozero","download_url":"https://codeload.github.com/gpiozero/gpiozero/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpiozero%2Fgpiozero/sbom","scorecard":{"id":442682,"data":{"date":"2025-08-11","repo":{"name":"github.com/gpiozero/gpiozero","commit":"298e5cc05d307fda9c5b244f356b81b0afc04df2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.9,"checks":[{"name":"Code-Review","score":6,"reason":"Found 9/15 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"16 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.rst:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/gpiozero/gpiozero/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/gpiozero/gpiozero/test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T05:54:29.032Z","repository_id":1365050,"created_at":"2025-08-19T05:54:29.032Z","updated_at":"2025-08-19T05:54:29.032Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29371381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["education","gpio","physical-computing","python","raspberry-pi","raspberrypi","zero-boilerplate"],"created_at":"2024-07-31T19:01:31.132Z","updated_at":"2026-02-12T16:01:00.427Z","avatar_url":"https://github.com/gpiozero.png","language":"Python","readme":"========\ngpiozero\n========\n\nA simple interface to GPIO devices with `Raspberry Pi`_, developed and\nmaintained by `Ben Nuttall`_ and `Dave Jones`_.\n\n.. _Raspberry Pi: https://www.raspberrypi.com/\n.. _Ben Nuttall: https://github.com/bennuttall\n.. _Dave Jones: https://github.com/waveform80\n\nAbout\n=====\n\nComponent interfaces are provided to allow a frictionless way to get started\nwith physical computing:\n\n.. code:: python\n\n    from gpiozero import LED\n    from time import sleep\n\n    led = LED(17)\n\n    while True:\n        led.on()\n        sleep(1)\n        led.off()\n        sleep(1)\n\nWith very little code, you can quickly get going connecting your components\ntogether:\n\n.. code:: python\n\n    from gpiozero import LED, Button\n    from signal import pause\n\n    led = LED(17)\n    button = Button(3)\n\n    button.when_pressed = led.on\n    button.when_released = led.off\n\n    pause()\n\nYou can advance to using the declarative paradigm along with provided\nto describe the behaviour of devices and their interactions:\n\n.. code:: python\n\n    from gpiozero import OutputDevice, MotionSensor, LightSensor\n    from gpiozero.tools import booleanized, all_values\n    from signal import pause\n\n    garden = OutputDevice(17)\n    motion = MotionSensor(4)\n    light = LightSensor(5)\n\n    garden.source = all_values(booleanized(light, 0, 0.1), motion)\n\n    pause()\n\nSee the chapter on `Source/Values`_ for more information.\n\n.. _Source/Values: https://gpiozero.readthedocs.io/en/stable/source_values.html\n\nThe library includes interfaces to many simple everyday components, as well as\nsome more complex things like sensors, analogue-to-digital converters, full\ncolour LEDs, robotics kits and more. See the `Recipes`_ chapter of the\ndocumentation for ideas on how to get started.\n\n.. _Recipes: https://gpiozero.readthedocs.io/en/stable/recipes.html\n\nPin factories\n=============\n\nGPIO Zero builds on a number of underlying pin libraries, including `RPi.GPIO`_\nand `pigpio`_, each with their own benefits. You can select a particular pin\nlibrary to be used, either for the whole script or per-device, according to your\nneeds. See the section on `changing the pin factory`_.\n\n.. _RPi.GPIO: https://pypi.org/project/RPi.GPIO\n.. _pigpio: https://pypi.org/project/pigpio\n.. _changing the pin factory: https://gpiozero.readthedocs.io/en/stable/api_pins.html#changing-the-pin-factory\n\nA \"mock pin\" interface is also provided for testing purposes. Read more about\nthis in the section on `mock pins`_.\n\n.. _mock pins: https://gpiozero.readthedocs.io/en/stable/api_pins.html#mock-pins\n\nInstallation\n============\n\nGPIO Zero is installed by default in the Raspberry Pi OS desktop image,\navailable from `raspberrypi.com`_. To install on Raspberry Pi OS Lite or other\noperating systems, including for PCs using remote GPIO, see the `Installing`_\nchapter.\n\n.. _raspberrypi.com: https://www.raspberrypi.com/software/\n.. _Installing: https://gpiozero.readthedocs.io/en/stable/installing.html\n\nDocumentation\n=============\n\nComprehensive documentation is available at https://gpiozero.readthedocs.io/.\nPlease refer to the `Contributing`_ and `Development`_ chapters in the\ndocumentation for information on contributing to the project.\n\n.. _Contributing: https://gpiozero.readthedocs.io/en/stable/contributing.html\n.. _Development: https://gpiozero.readthedocs.io/en/stable/development.html\n\nIssues and questions\n====================\n\nIf you have a feature request or bug report, please open an `issue on GitHub`_.\nIf you have a question or need help, this may be better suited to our `GitHub\ndiscussion board`_, the `Raspberry Pi Stack Exchange`_ or the `Raspberry Pi\nForums`_.\n\n.. _issue on GitHub: https://github.com/gpiozero/gpiozero/issues/new\n.. _GitHub discussion board: https://github.com/gpiozero/gpiozero/discussions\n.. _Raspberry Pi Stack Exchange: https://raspberrypi.stackexchange.com/\n.. _Raspberry Pi Forums: https://forums.raspberrypi.com/\n\nContributors\n============\n\n- `Alex Chan`_\n- `Alex Eames`_\n- `Andrew Scheller`_\n- `Barry Byford`_\n- `Cameron Davidson-Pilon`_\n- `Carl Monk`_\n- `Claire Pollard`_\n- `Clare Macrae`_\n- `Dan Jackson`_\n- `Daniele Procida`_\n- `damosurfer`_\n- `David Glaude`_\n- `Delcio Torres`_\n- `Edward Betts`_\n- `Fatih Sarhan`_\n- `Fangchen Li`_\n- `G.S.`_\n- `gnicki`_\n- `Ian Harcombe`_\n- `Jack Wearden`_\n- `Jeevan M R`_\n- `Josh Thorpe`_\n- `Kyle Morgan`_\n- `Linus Groh`_\n- `Mahallon`_\n- `Maksim Levental`_\n- `Martchus`_\n- `Martin O'Hanlon`_\n- `Mike Kazantsev`_\n- `Paulo Mateus`_\n- `Phil Howard`_\n- `Philippe Muller`_\n- `Rick Ansell`_\n- `Rimas Misevičius`_\n- `Robert Erdin`_\n- `Russel Winder`_\n- `Ryan Walmsley`_\n- `Schelto van Doorn`_\n- `Sofiia Kosovan`_\n- `Steve Amor`_\n- `Stewart Adcock`_\n- `Thijs Triemstra`_\n- `Tim Golden`_\n- `Yisrael Dov Lebow`_\n\nSee the `contributors page`_ on GitHub for more info.\n\n.. _Alex Chan: https://github.com/gpiozero/gpiozero/commits?author=alexwlchan\n.. _Alex Eames: https://github.com/gpiozero/gpiozero/commits?author=raspitv\n.. _Andrew Scheller: https://github.com/gpiozero/gpiozero/commits?author=lurch\n.. _Barry Byford: https://github.com/gpiozero/gpiozero/commits?author=ukBaz\n.. _Cameron Davidson-Pilon: https://github.com/gpiozero/gpiozero/commits?author=CamDavidsonPilon\n.. _Carl Monk: https://github.com/gpiozero/gpiozero/commits?author=ForToffee\n.. _Chris R: https://github.com/gpiozero/gpiozero/commits?author=chrisruk\n.. _Claire Pollard: https://github.com/gpiozero/gpiozero/commits?author=tuftii\n.. _Clare Macrae: https://github.com/gpiozero/gpiozero/commits?author=claremacrae\n.. _Dan Jackson: https://github.com/gpiozero/gpiozero/commits?author=e28eta\n.. _Daniele Procida: https://github.com/evildmp\n.. _Dariusz Kowalczyk: https://github.com/gpiozero/gpiozero/commits?author=darton\n.. _damosurfer: https://github.com/gpiozero/gpiozero/commits?author=damosurfer\n.. _David Glaude: https://github.com/gpiozero/gpiozero/commits?author=dglaude\n.. _Delcio Torres: https://github.com/gpiozero/gpiozero/commits?author=delciotorres\n.. _Edward Betts: https://github.com/gpiozero/gpiozero/commits?author=edwardbetts\n.. _Fatih Sarhan: https://github.com/gpiozero/gpiozero/commits?author=f9n\n.. _Fangchen Li: https://github.com/gpiozero/gpiozero/commits?author=fangchenli\n.. _G.S.: https://github.com/gpiozero/gpiozero/commits?author=gszy\n.. _gnicki: https://github.com/gpiozero/gpiozero/commits?author=gnicki2000\n.. _Ian Harcombe: https://github.com/gpiozero/gpiozero/commits?author=MrHarcombe\n.. _Jack Wearden: https://github.com/gpiozero/gpiozero/commits?author=NotBobTheBuilder\n.. _Jeevan M R: https://github.com/gpiozero/gpiozero/commits?author=jee1mr\n.. _Josh Thorpe: https://github.com/gpiozero/gpiozero/commits?author=ThorpeJosh\n.. _Kyle Morgan: https://github.com/gpiozero/gpiozero/commits?author=knmorgan\n.. _Linus Groh: https://github.com/gpiozero/gpiozero/commits?author=linusg\n.. _Mahallon: https://github.com/gpiozero/gpiozero/commits?author=Mahallon\n.. _Maksim Levental: https://github.com/gpiozero/gpiozero/commits?author=makslevental\n.. _Martchus: https://github.com/gpiozero/gpiozero/commits?author=Martchus\n.. _Martin O'Hanlon: https://github.com/martinohanlon/commits?author=martinohanlon\n.. _Mike Kazantsev: https://github.com/gpiozero/gpiozero/commits?author=mk-fg\n.. _Paulo Mateus: https://github.com/gpiozero/gpiozero/commits?author=SrMouraSilva\n.. _Phil Howard: https://github.com/gpiozero/gpiozero/commits?author=Gadgetoid\n.. _Philippe Muller: https://github.com/gpiozero/gpiozero/commits?author=pmuller\n.. _Rick Ansell: https://github.com/gpiozero/gpiozero/commits?author=ricksbt\n.. _Rimas Misevičius: https://github.com/gpiozero/gpiozero/commits?author=rmisev\n.. _Robert Erdin: https://github.com/gpiozero/gpiozero/commits?author=roberterdin\n.. _Russel Winder: https://github.com/russel\n.. _Ryan Walmsley: https://github.com/gpiozero/gpiozero/commits?author=ryanteck\n.. _Schelto van Doorn: https://github.com/gpiozero/gpiozero/commits?author=goloplo\n.. _Sofiia Kosovan: https://github.com/gpiozero/gpiozero/commits?author=SofiiaKosovan\n.. _Steve Amor: https://github.com/gpiozero/gpiozero/commits?author=SteveAmor\n.. _Stewart Adcock: https://github.com/gpiozero/gpiozero/commits?author=stewartadcock\n.. _Thijs Triemstra: https://github.com/gpiozero/gpiozero/commits?author=thijstriemstra\n.. _Tim Golden: https://github.com/gpiozero/gpiozero/commits?author=tjguk\n.. _Yisrael Dov Lebow: https://github.com/gpiozero/gpiozero/commits?author=yisraeldov\n\n.. _contributors page: https://github.com/gpiozero/gpiozero/graphs/contributors\n","funding_links":[],"categories":["Python","Raspberry Pi Tools","Tools"],"sub_categories":["Setting up WireGuard on Home Assistant","Enable Proton in Steam","Mesh networks"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpiozero%2Fgpiozero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpiozero%2Fgpiozero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpiozero%2Fgpiozero/lists"}