Skip to main content

Remote GPIO access library

Project description

HTPIO : Remote I/O Access Library

PyPI PyPI - License PyPI - Python Version PyPI - Status

HTPIO allows users to use Raspberry Pi's GPIOs or similiar hardware remotely using various telecommunication protocols. The library also offers a simple locking mechanism in order to implement advanced testing scenarios using shared hardware.

image

HTPIO is a subset of the Hilscher Test Framework for products of the netX family. A brief overview of some netX products is given in the links below:

Requirements

  • Python >=2.7
  • Python >=3.4

Features

  • Remote GPIO access using various protocols
  • Pin locking to ensure shared use of hardware resources
  • Command line interface for shell scripting

Installation

To install latest stable release from PyPi use pipenv (or pip):

pipenv install htpio

or install the latest stable version from BitBucket:

pipenv install https://bitbucket.org/hilscherdtc/htpio/get/stable.tar.gz

Library interface

>>> from htpio import bridge, socketio, telnetio
>>> device = telnetio.RaspberryPi('192.168.199.31')
>>> gpio = bridge.RemoteAccess(device)
>>> gpio.lock(14)
>>> gpio.unlock(14)
>>> gpio.islocked(14)
>>> gpio.configure(14, gpio.OUTPUT)
>>> gpio.set(14, 1)
>>> gpio.get(14)
>>> gpio.deconfigure(14)
>>> gpio.logout()

Command line interface

$ netxio -p telnet set --host 192.168.199.31 --pin 14 --val 1
$ netxio -p socket get --host 192.168.199.31 --pin 14
$ netxio lock --host 192.168.199.31 --pin 14
$ netxio unlock --host 192.168.199.31 --pin 14

Project details


Download files

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

Files for htpio, version 1.0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size htpio-1.0.0.2-py3-none-any.whl (17.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size htpio-1.0.0.2.tar.gz (16.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page