Skip to main content

An unoffical Python wrapper for the SSI-Teledyne Next Generation class HPLC pumps.

Project description

Overview

A Python wrapper for the SSI-Teledyne Next Generation class HPLC pumps.

If you notice something weird, fragile, or otherwise encounter a bug, please open an issue.

Installation

The package is available on PyPI.

python -m pip install --user py-hplc

Using the package

gif demonstrating example usage

You can open a pump instance like this

>>> from py_hplc import NextGenPump
>>> pump = NextGenPump("COM3")  # or "/dev/ttyUSB0", etc.

Or like this

>>> from py_hplc import NextGenPump
>>> from serial import Serial
>>> device = Serial("COM3")  # or "/dev/ttyUSB0", etc.
>>> pump = NextGenPump(device)

You can inspect the pump for useful information such as its pressure units, firmware version, max flowrate, etc.

>>> pump.version
'191017 Version 2.0.8'
>>> pump.pressure_units
'psi'
>>> pump.pressure
100

The interface behaves in a typical way. Pumps can be inspected or configured without the use of getters and setters.

>>> pump.flowrate
10.0
>>> pump.flowrate = 5.5  # mL / min
>>> pump.flowrate
5.5
>>> pump.run()
'OK/'
>>> pump.is_running
True
>>> pump.stop()
'OK/'
>>> pump.is_running
False
>>> pump.leak_detected
False
Some pump commands, such as “CC” (current conditions), return many pieces of data at once.
This package makes the data available in concise, descriptive, value-typed dataclasses.
>>> pump.current_conditions()
CurrentConditions(pressure=0, flowrate=10.0, response='OK,0000,10.00/')
>>> pump.read_faults()
Faults(motor_stall_fault=False, upper_pressure_fault=False, lower_pressure_fault=False, response='OK,0,0,0/')

See the API Documentation for more usage examples.

License / Author

Released under the MIT license, (C) 2021.

Written by @teauxfu for Premier Chemical Technologies, LLC.

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

py-hplc-1.0.4.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

py_hplc-1.0.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file py-hplc-1.0.4.tar.gz.

File metadata

  • Download URL: py-hplc-1.0.4.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.6 Linux/5.11.0-1021-azure

File hashes

Hashes for py-hplc-1.0.4.tar.gz
Algorithm Hash digest
SHA256 63931f59e9dcb97b8fba1b3cf447bb5160ea04e875e1366072bd0c30c95e9585
MD5 745439a3ae7f97e032060a790ac0bb73
BLAKE2b-256 97807df7f0074a7247eeb7291efac59c0cff96290101920f623fd1f39c022aae

See more details on using hashes here.

File details

Details for the file py_hplc-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: py_hplc-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.6 Linux/5.11.0-1021-azure

File hashes

Hashes for py_hplc-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2d3482fc7a27d1ed9b515482957a1087371dcd46046878f470da9341acbb5224
MD5 8e4ef27767376481220a8a51457be489
BLAKE2b-256 88b159eea6c58d5f0a4ffca3363705b72ee3d2aa3a1ea237852e85d4a47d3334

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