Skip to main content

laborchestra

The Python package of LabOrchestra: one control layer for the instruments of an experiment, with a shared dashboard in the browser and Python access.

Pre-release. LabOrchestra is under heavy development and is being rewritten. Expect breaking changes, and do not rely on this for anything that matters yet. Documentation is still to come.

This package is three things in one:

  • For people who write devices: Device and @action describe an instrument in plain Python. LabOrchestra runs it in its own process and shows it in the dashboard.
  • For scripts and notebooks: laborchestra.connect() talks to a running LabOrchestra server.
  • For the machine that runs a device: python -m laborchestra.worker is what the server starts for each Python device (also on another computer).

It needs a LabOrchestra server to talk to (the server, the dashboard and the desktop app are separate: see laborchestra.com).

Install

pip install --pre laborchestra      # while only pre-releases exist

Python 3.11 or newer. The only dependencies are websockets and msgpack.

A device

import random
from laborchestra import Device, action


class Gauge(Device):
    simulate = True  # an option: it can be set per device in the dashboard

    state = {"pressure": 0.0}  # everything in here is shown live and recorded

    @action
    def set_pressure(self, value: float):
        """Callable from the dashboard, scripts and other devices."""
        self.state["pressure"] = value

    def run(self):
        while self.running:
            self.state["pressure"] += random.gauss(0, 1e-9)
            self.sleep(1.0)

A script

import laborchestra

with laborchestra.connect("http://127.0.0.1:5095", "<passphrase or token>") as lab:
    lab.gauge.set_pressure(2e-6)     # returns when the device has done it
    print(lab.gauge.state)

    with lab.recording("run_1", tags={"sample": "A"}):
        ...                          # everything that changes is recorded

Command line

laborchestra --version
laborchestra trust --url https://lab-pc:5443 --fingerprint AB:CD:…   # trust a lab computer's certificate
laborchestra mcp install --url https://lab-pc:5443 --token …         # connect an AI client over MCP

License

Apache License 2.0 (see LICENSE). The LabOrchestra server and dashboard are licensed separately.

Metadata

Release files for laborchestra 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for laborchestra 0.1.0
File Size Uploaded Provenance Actions
laborchestra-0.1.0.tar.gz 61.6 kB With provenance Details for laborchestra-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for laborchestra 0.1.0
File Interpreter ABI Platform Actions
laborchestra-0.1.0-py3-none-any.whl Python 3 none any Details for laborchestra-0.1.0-py3-none-any.whl

Total release size: 135.6 kB

Release files / laborchestra-0.1.0.tar.gz

Download URL laborchestra-0.1.0.tar.gz
Size 61.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e52f7df04c8f7f401c46d94e59351ef19749b444d61f4d1eda7e1e40b162fee2
BLAKE2b-256 checksum
How to use checksums
9a1bc3873226ca5f3bf7cd1d296a3b7db9e5fc9f64b30fc43f9953cc92c41832
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / laborchestra-0.1.0-py3-none-any.whl

Download URL laborchestra-0.1.0-py3-none-any.whl
Size 74.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6716a765846ab2480983cb760c017800e633d309cb955c1fe66f9d2b7942d1fa
BLAKE2b-256 checksum
How to use checksums
b6e81c6850de9072d8b16afb965d699deffb4c04b7e0d71d3c7e31726f2c38ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for laborchestra 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for laborchestra-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page