Skip to main content

devantech_eth

A python3 library for controlling the Devantech ETHxxx range of modules.

This library works with:

Install

You can install the module with pip.

pip -m install devantech-eth

Getting started

This example shows creating an instance of the ETH002 class, connecting to the module and toggling relay one.

# import the eth002 module from devantech-eth
from devantech_eth import eth002

# Create an instance of the ETH002 class and try connecting to the module
module = eth002.ETH002(ip = "192.168.0.100", port = 17494, password = "password")
module.connect()

# Toggle digital output 1
module.toggleDO1()

# Close the connection to the module
module.close()

This example shows creating an instance of the ETH484 class, connecting to the module and reading the value of an analogue input.

# import the eth484 module
from devantech_eth import eth484

# create an instance of the ETH484 class and connect to the module
module = eth484.ETH484(ip = "192.168.0.100", port = 17494, password = "password")
module.connect()

# Get and print the value of analogue input 1
value = module.getAI1Value()
print(value)

# Close the connection to the module.
module.close()

Source

The source for this library is available on github Documentation can be read here

Metadata

Release files for devantech-eth 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for devantech-eth 0.1.2
File Interpreter ABI Platform
devantech_eth-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / devantech_eth-0.1.2-py3-none-any.whl

Download URL devantech_eth-0.1.2-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd60acafd4d6ac8bb66a2283168468d78cc4c81ae58242da8873dcddebddd116
BLAKE2b-256 checksum
How to use checksums
9c05c5416ad723815d2c66f3554e3ac7d212562212f2c3c7efcd8332742e1db0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page