Skip to main content

Helper library for working with Linux gpiochip devices.

Project description

gpiodevice

Build Status Coverage Status PyPi Package Python Versions

A GPIO counterpart to i2cdevice, generated from the Pimoroni Python Boilerplate.

What is gpiodevice?

gpiodevice is a simple middleware library intended to make some user-facing aspects of interfacing with Linux's GPIO character device ABI (via gpiod) simpler and friendlier.

gpiodevice is not intended to replace gpiod, but collects some common patterns into a reusable library for GPIO-based Python projects.

Changelog

0.0.4

  • Gracefully handle a tuple being passed to get_pin
  • Match all pinctrl- gpiodevices for RPi in get_gpiochip_labels

0.0.3

  • Deprecate the friendly_errors flag in favour of a new fatal flag on methods
  • Catch use of int pin numbers from unported code and raise a friendly error

0.0.2

  • Add platform detection
  • ROCK 5B support
  • Bug fixes

0.0.1

  • Initial Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpiodevice-0.0.4.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

gpiodevice-0.0.4-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file gpiodevice-0.0.4.tar.gz.

File metadata

  • Download URL: gpiodevice-0.0.4.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for gpiodevice-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3f5d6ed89b030845fba41a7f3705594139bd68b07421a2b3ca0d9bcc7c4b0c4c
MD5 050e3a76500d518f61b1f4b4bbfd38d7
BLAKE2b-256 8fae9bc893556b422bea5286b59aa2bbf028f8b0bc1d36e4159d7debea9d9618

See more details on using hashes here.

File details

Details for the file gpiodevice-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: gpiodevice-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for gpiodevice-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 89ad7ff0c746053e5babf27177e2d5670159b1b680602e29fc8755714d7dfb89
MD5 e8aa71b084937a8d43347fcef2bd9a9b
BLAKE2b-256 8175e6846b47a78c5dd37334a361fdf101bd096c8197e590855f7d342d961b31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page