Metadata-Version: 2.5
Name: benchloom
Version: 0.2.2
Summary: Open lab automation: wire up instruments visually or script them in Lua.
Project-URL: Homepage, https://github.com/criscrafter/benchloom
Project-URL: Documentation, https://criscrafter.github.io/benchloom/
Project-URL: Issues, https://github.com/criscrafter/benchloom/issues
Project-URL: Changelog, https://github.com/criscrafter/benchloom/blob/main/CHANGELOG.md
Author: Friedrich-Christer Rosenthal
License-Expression: AGPL-3.0-or-later
License-File: LICENSE
License-File: THIRD_PARTY_NOTICES.md
License-File: src/benchloom/templates/LICENSE.txt
Keywords: gpib,instrument control,lab automation,labview alternative,lua,node editor,oscilloscope,power supply,scpi,test and measurement
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Win32 (MS Windows)
Classifier: Environment :: X11 Applications :: Qt
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Manufacturing
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Lua
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
Classifier: Topic :: System :: Hardware
Requires-Python: >=3.11
Requires-Dist: lupa>=2.0
Requires-Dist: pyserial>=3.5
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs-material<10,>=9.5; extra == 'docs'
Provides-Extra: gui
Requires-Dist: pyqtgraph>=0.13; extra == 'gui'
Requires-Dist: pyside6>=6.6; extra == 'gui'
Provides-Extra: usb
Requires-Dist: libusb-package>=1.0.26; extra == 'usb'
Requires-Dist: python-usbtmc>=0.8; extra == 'usb'
Requires-Dist: pyusb>=1.2; extra == 'usb'
Provides-Extra: visa
Requires-Dist: pyvisa-py>=0.7; extra == 'visa'
Requires-Dist: pyvisa>=1.13; extra == 'visa'
Description-Content-Type: text/markdown

# Benchloom

[![Tests](https://github.com/criscrafter/benchloom/actions/workflows/tests.yml/badge.svg)](https://github.com/criscrafter/benchloom/actions/workflows/tests.yml)
[![Licence: AGPL-3.0](https://img.shields.io/badge/licence-AGPL--3.0-blue)](https://github.com/criscrafter/benchloom/blob/main/LICENSE)

Open-source lab automation: an alternative to LabVIEW for small labs, makers
and test benches. Connect your instruments (power supplies, loads, scopes,
generators, meters) and build a test either by wiring nodes together or by
writing a Lua script. Each run leaves its data, waveform images and a
PASS/FAIL report behind. No licence fees, no accounts, no vendor runtime.

**Documentation: <https://criscrafter.github.io/benchloom/>**

![Benchloom running a Bode plot of an RC filter](https://raw.githubusercontent.com/criscrafter/benchloom/main/docs/images/app.png)

> **Status: early (0.2).** Benchloom works and is used on a real bench, but it
> is young: it is used on Windows 10, the Linux build is new, and interfaces
> may still change. See the [roadmap](https://github.com/criscrafter/benchloom/blob/main/docs/PLAN.md).

> **Safety:** Benchloom switches real power supplies, loads and generators. A
> wrong script can apply a wrong voltage or current to your circuit. Set limits
> on the instruments themselves, try new tests on the simulators first, and stay
> near the bench the first time a test runs. Drivers switch outputs off when a
> test ends or is stopped, but that cannot replace a hardware limit. See
> [Safety and security](https://github.com/criscrafter/benchloom/blob/main/docs/safety.md).

## Try it

**Windows:** download `Benchloom-…-windows-x64.zip` from the
[latest release](https://github.com/criscrafter/benchloom/releases/latest),
unzip it and start `Benchloom.exe`. No installation and no Python needed.

**Linux:** download `Benchloom-…-linux-x86_64.tar.gz` from the same page,
unpack it and start `Benchloom/Benchloom`; `Benchloom/benchloom-cli
desktop-entry` adds it to the app menu. See
[Getting started](https://github.com/criscrafter/benchloom/blob/main/docs/getting-started.md) for USB and serial access.

**With pip** (Python 3.11 or newer):

```
pip install "benchloom[gui,usb]"
benchloom gui
```

Choose **New project** and press **Run** (F5): the example sweeps a simulated
power supply, so it runs without hardware.
[Getting started](https://github.com/criscrafter/benchloom/blob/main/docs/getting-started.md) goes on from there.

## What it does

- **Tests as [Lua scripts](https://github.com/criscrafter/benchloom/blob/main/docs/lua.md) or [visual graphs](https://github.com/criscrafter/benchloom/blob/main/docs/visual-tests.md)**,
  both run by the same sandboxed engine, with pass/fail checks and saved
  waveforms.
- **A [front panel](https://github.com/criscrafter/benchloom/blob/main/docs/front-panel.md)** with inputs, switches, gauges, charts
  and tables for a running test.
- **A run folder per run**: `data.csv`, console log, checks, waveforms and an
  HTML report, plus a run history to compare runs.
- **A [command line](https://github.com/criscrafter/benchloom/blob/main/docs/command-line.md)** for test PCs, scripts and CI.
- **[Instruments](https://github.com/criscrafter/benchloom/blob/main/docs/INSTRUMENTS.md)** over serial, network, GPIB (Prologix,
  AR488, xyphro UsbGpib, VISA) and USB, each with a simulator: Kunkin KP184,
  Chroma 6404, Hantek DSO5102P, Feeltech FY6900, HP/Agilent/Keysight 6655A,
  3478A, 3458A, 34420A, 34970A, 53131A, 5384A and 5334A, Fluke 8508A, Wavetek
  1281 and 4950, Digitek DT-4000ZC, and any SCPI or line-based serial
  instrument. The instruments page says which were tried on real hardware.
- **[Plugins](https://github.com/criscrafter/benchloom/blob/main/docs/writing-plugins.md)** in Python for your own instruments,
  and a [plugin registry](https://github.com/criscrafter/benchloom/blob/main/registry/README.md) to share them.

## Development

```
git clone https://github.com/criscrafter/benchloom
cd benchloom
python -m venv .venv
.venv\Scripts\pip install -e ".[gui,usb,dev]"    # Linux/Mac: .venv/bin/pip
.venv\Scripts\pytest
```

The tests use the instruments' simulators, so they need no hardware.
Contributions are welcome; see [CONTRIBUTING.md](https://github.com/criscrafter/benchloom/blob/main/CONTRIBUTING.md). Pull
requests need agreement to the [Contributor License Agreement](https://github.com/criscrafter/benchloom/blob/main/CLA.md).
Security problems: see [SECURITY.md](https://github.com/criscrafter/benchloom/blob/main/SECURITY.md).

Benchloom is developed with substantial assistance from AI tools. Every change
is reviewed by the maintainer and checked by the test suite; where the
documentation says a driver was tried on real hardware, the maintainer ran it
on that instrument.

## Licence

Benchloom is free software under the **GNU Affero General Public License 3.0**
or later ([LICENSE](https://github.com/criscrafter/benchloom/blob/main/LICENSE)), provided without warranty; see
[Licence](https://github.com/criscrafter/benchloom/blob/main/docs/licence.md) for the full disclaimer. Your own tests and projects
are yours: the project templates are under MIT-0. Commercial licences are
available for building Benchloom into a closed product; contact the maintainer
through [GitHub](https://github.com/criscrafter). Third-party code is listed in
[THIRD_PARTY_NOTICES.md](https://github.com/criscrafter/benchloom/blob/main/THIRD_PARTY_NOTICES.md).

Instrument names and trademarks belong to their owners. Benchloom is not
affiliated with or endorsed by any instrument maker. It was called "Patchbay"
during its development; projects and settings from that time keep working.
