HTPIO : Remote I/O Access Library
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.
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:
- Network Controllers
- PC Cards
- Embedded Modules
- Gateways
- Industrial Internet / IoT
- Analysis and Data Acquisition
- Automation and Visualization
- Software
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
First check if pip is installed on the your computer:
pip --version
pip 19.1.1 from c:\python\3.7.3\lib\site-packages\pip (python 3.7)
If the operating system doesn't recognize the command and your operating system is Linux or Windows 8+:
curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
python get-pip.py
else visit https://bootstrap.pypa.io/get-pip.py and download the file. Then run the following command:
python get-pip.py
If pip is installed, we can proceed further to check for pipenv and eventually install it:
pipenv --version
pipenv, version 2018.11.26
If pipenv is not present on the system issue the following command :
pip install pipenv
To install htpio's 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
$ htpio -p telnet set --host 192.168.199.31 --pin 14 --val 1
$ htpio -p socket get --host 192.168.199.31 --pin 14
$ htpio lock --host 192.168.199.31 --pin 14
$ htpio unlock --host 192.168.199.31 --pin 14
Metadata
Release files for htpio 1.1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| htpio-1.1.0.4.tar.gz | 182.2 kB | Without provenance | Details for htpio-1.1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| htpio-1.1.0.4-py3-none-any.whl | Python 3 | none | any | Details for htpio-1.1.0.4-py3-none-any.whl |
Total release size: 200.8 kB
Release files / htpio-1.1.0.4.tar.gz
| Download URL | htpio-1.1.0.4.tar.gz |
|---|---|
| Size | 182.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d10ef5c97a5b2fc609032c3d97a1d79fad9e9cda6d7284dcbae95c33a92275a4
|
|
BLAKE2b-256 checksum How to use checksums |
f09c7caadb2fd1beb47844d254d6d792ea71c419ac2f6683d4b7e1a55ef5dd04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / htpio-1.1.0.4-py3-none-any.whl
| Download URL | htpio-1.1.0.4-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c8ff183a82c4b8021401d0896d8869ffb859f0f59853e4c74c453d241cbbd7c
|
|
BLAKE2b-256 checksum How to use checksums |
13e7ebaae4912aea08b9f6b8367b63d266025f652018a8d31cacb55d5185576c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for htpio 1.1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.