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 = OkolabDevice(address="COM3")
device = OkolabDevice(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 OkolabDevice.list():
  async with (device := info.create())
    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.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

amf_rotary_valve-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file amf-rotary-valve-0.1.0.tar.gz.

File metadata

  • Download URL: amf-rotary-valve-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 89cabe17ed4ee1ed0a6eddd9ff3fe5ebf7daee7b7ef2ec4ee0103dd822ed9ed7
MD5 875320fe1bd0e4678ce445cc5d17264b
BLAKE2b-256 d1713b727f87850202f326c7df3df1c4e9fe046d6f3639c5fe90e0b1b2044c60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amf_rotary_valve-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3999c01677768f65b855b028fd0c480e650104372b2cd9834c1dcb169e2208ac
MD5 49dca84aa51ccc7ccb8a9d1badadf712
BLAKE2b-256 b199e5c7cc7e5a647fc912803b4a9462c75c29bd3bd684ec870acb3930dfe6e8

See more details on using hashes here.

Supported by

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