Skip to main content

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


Download files

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

Source Distribution

amf-rotary-valve-0.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amf_rotary_valve-0.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

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

Hashes for amf-rotary-valve-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2e19460ca8b7322a17862845ac8fe6d83fd7b38f92e208fafb4908df1c93d099
MD5 398eead5c7df4bd40fcef7164da6b7db
BLAKE2b-256 3040376ac23076ce76bebcd1ece778b6abd78fca873d21cf1fd36b528697ab35

See more details on using hashes here.

File details

Details for the file amf_rotary_valve-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for amf_rotary_valve-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bce22270ed6117062676e463692fd465d7ccc461427a3d2e54fd7d5a078db512
MD5 90baef3b1ba80e8e3cb60e676c098d7f
BLAKE2b-256 c37cdfba498a08f82f0bc70e3c5ea444d3afcb557a20ae0919f14ad7e4e3e92a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page