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 library (like pyvisa, pyserial, libtelnet, or even a C or .NET DLL) provides low-level to access instrument. The labbench driver gives a declarative-style abstraction provides several benefits:

  • automatic acquisition logging into an SQLite database,
  • automatically-generated jupyter notebook monitoring widgets,
  • interact with value traits and data on remote devices with native python data types (instead of strings),
  • python exceptions on invalid device property trait value traits (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.

Source Distribution

labbench-0.22.tar.gz (109.3 kB view details)

Uploaded Source

File details

Details for the file labbench-0.22.tar.gz.

File metadata

  • Download URL: labbench-0.22.tar.gz
  • Upload date:
  • Size: 109.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for labbench-0.22.tar.gz
Algorithm Hash digest
SHA256 332c6697c7485d5ae143a5c4f8bc4da2cd2d03a8a568b9eb0a215dcf097bdf35
MD5 1acd730f9859d55e1c0d2cbd97809178
BLAKE2b-256 509e10733eac994b05e45ab40170013579b690ba4bdbf19d2b368554f8b31874

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