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.5

  • Add support for int type in get_pin

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.5.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpiodevice-0.0.5.tar.gz
  • Upload date:
  • Size: 10.6 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.5.tar.gz
Algorithm Hash digest
SHA256 cca01ff4319e0ba906ff46dcb8113d8d532b3f5ee03d683d8a11037c8e89140c
MD5 858ea7389a4f6ca5a0d22580ca5bf898
BLAKE2b-256 bf4fc1b1266953cfcd0708e2a4376696e42b69bc5fe3559a66e2eb71501ac072

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpiodevice-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b808250cd1d89379b69f98cc6442b6b098aa32604c3ed7fb194a39607ee35253
MD5 be1cf3a4aeea382903eb099d50cd96cc
BLAKE2b-256 d1552ecb558c8f5a4700b2e7cc5a8d6077347543cd2c3e0c7de72b8a35d4afa4

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