This release is a pre-release and may not be stable for production use.
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:
Deviceand@actiondescribe 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.workeris 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.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| laborchestra-0.1.0a1.tar.gz | 51.6 kB | Without provenance | Details for laborchestra-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| laborchestra-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for laborchestra-0.1.0a1-py3-none-any.whl |
Total release size: 113.1 kB
Release files / laborchestra-0.1.0a1.tar.gz
| Download URL | laborchestra-0.1.0a1.tar.gz |
|---|---|
| Size | 51.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d9285ccdbc49ebac688beb0a5dda686d9fa2d1be35e08754299997dad63f5db
|
|
BLAKE2b-256 checksum How to use checksums |
aa9a8c4cb2a3fe30a6b40ab312f57f009615a2ba82dd8e2f0db82aaffa899183
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / laborchestra-0.1.0a1-py3-none-any.whl
| Download URL | laborchestra-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 61.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97a2618edc9b9233b0f287cc3b3db3f78268f8535546ece028051760f8619c32
|
|
BLAKE2b-256 checksum How to use checksums |
4fb85188aa077b0b8a8ab5b397737f1f4f1e70ed7778c5a67e82cadaa53f9745
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for laborchestra 0.1.0a1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.