A Python package that provides control of AMF rotary valves
Project description
amf-rotary-valve
This Python package provides control of AMF rotary valves.
Installation
$ pip install amf-rotary-valve
# List available devices
$ python -m amf_rotary_valve
Usage
from amf_rotary_valve import AMFDevice
device = AMFDevice(address="COM3")
device = AMFDevice(address="/dev/tty.usbmodem1101")
async with device:
await device.home()
valve_count = await device.get_valve_count()
current_valve = await device.get_valve()
# Rotate to the next valve
await device.rotate(current_valve % valve_count + 1)
for info in AMFDevice.list():
async with info.create() as device:
print(await device.get_unique_id())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file amf-rotary-valve-0.2.0.tar.gz
.
File metadata
- Download URL: amf-rotary-valve-0.2.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e19460ca8b7322a17862845ac8fe6d83fd7b38f92e208fafb4908df1c93d099 |
|
MD5 | 398eead5c7df4bd40fcef7164da6b7db |
|
BLAKE2b-256 | 3040376ac23076ce76bebcd1ece778b6abd78fca873d21cf1fd36b528697ab35 |
File details
Details for the file amf_rotary_valve-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: amf_rotary_valve-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bce22270ed6117062676e463692fd465d7ccc461427a3d2e54fd7d5a078db512 |
|
MD5 | 90baef3b1ba80e8e3cb60e676c098d7f |
|
BLAKE2b-256 | c37cdfba498a08f82f0bc70e3c5ea444d3afcb557a20ae0919f14ad7e4e3e92a |