Skip to main content

scripting tools for streamlined laboratory automation

Project description

The labbench module provides tools for instrument automation and data management in scripted lab experiments.

A device driver implemented with labbench is a light wrapper around another instrument control library. This means another library (like pyvisa, pyserial, libtelnet, or even a C or .NET DLL) provides low-level routines. The labbench abstraction provides several benefits:

  • automatic acquisition logging into an SQLite database,
  • automatically-generated jupyter notebook monitoring widgets,
  • interact with settings and data on remote devices with native python data types (instead of strings),
  • python exceptions on invalid device state settings (instead of silent failure),
  • drivers provide consistent style and API conventions for easy scripting (hello, tab completion!),
  • ensure devices disconnect properly when acquisition completes (even on exceptions), and
  • conversion of vector or tabular data to pandas Series or DataFrame objects for rapid exploration of data.

Together, these features help to minimize the amount of "copy-and-paste" code that can make your lab automation scripts error-prone and difficult to maintain. The python code that results can be clear, concise, reusable and maintainable, and provide consistent formatting for stored data. The result helps researchers to meet NIST's open data obligations, even for complicated, large, and heterogeneous datasets.

Project details


Download files

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

Files for labbench, version 0.20
Filename, size File type Python version Upload date Hashes
Filename, size labbench-0.20-py3-none-any.whl (65.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size labbench-0.20.tar.gz (59.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page