labcode
The lc command-line interface for the labcode dialect of the
Object-flow Programming Language. Installing this one package pulls in the
ofplang toolchain and exposes it under a single command:
lc validate ... # check a workflow is well-formed portable v0
lc schedule ... # compute a schedule for a workflow
lc run ... # execute a workflow on the labcode backend
labcode is where a site-specific dialect and a custom runner (real lab hardware)
are developed on top of the ofplang toolchain. lc validate and lc schedule
forward to the ofplang siblings unchanged; lc run is the labcode dialect's own
runner: it drives the workflow on the labcode backend, running each device
operation's script — supplied in the environment as an x-labcode.script extension
on a process mode — out-of-process on a wall clock, so a long-running real operation
never blocks the replan loop. See SPECIFICATIONS.md for the
x-labcode extension.
# in the execution environment: how a (process, mode) is carried out
processes:
measure_od:
modes:
- id: v0
duration: 45
x-labcode:
script:
language: python
code: |
return {"od": read_plate(plate)}
Install
pip install labcode
Requires Python 3.10+. This package is a thin dispatcher; it depends on the ofplang sibling packages that do the work:
ofplang-validate— the validatorofplang-schedule— the schedulerofplang-run— the runner / simulator
The language is defined in the ofplang/spec repository.
Usage
Each subcommand keeps its own options, exit codes, and --help:
lc --help # top-level help
lc <command> --help # command-specific options
lc --version
lc can also be run as a module: python -m labcode <command> ....
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file labcode-0.1.0.tar.gz.
File metadata
- Download URL: labcode-0.1.0.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
703bf6083163c038fab82e7de11a1b8aa94010d92052be53feda7214d4bcd2cf
|
|
| MD5 |
4a88a7f1a678753db5734c30604e7f5a
|
|
| BLAKE2b-256 |
afd22b5a865ad05414081093f017eb1e320536873df6726439ec207e97963249
|
Provenance
The following attestation bundles were made for labcode-0.1.0.tar.gz:
Publisher:
publish.yml on ofplang/labcode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
labcode-0.1.0.tar.gz -
Subject digest:
703bf6083163c038fab82e7de11a1b8aa94010d92052be53feda7214d4bcd2cf - Sigstore transparency entry: 2258720821
- Sigstore integration time:
-
Permalink:
ofplang/labcode@0532c7b7aecdccc1d935e956f952d7d30b0ea1a1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ofplang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0532c7b7aecdccc1d935e956f952d7d30b0ea1a1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file labcode-0.1.0-py3-none-any.whl.
File metadata
- Download URL: labcode-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
030db3b1420805a20aa6a6b7055f9445b9481408dbfcc24f48f75b43e625151e
|
|
| MD5 |
80995596bf8c0c239e303ea36b19e090
|
|
| BLAKE2b-256 |
90a94bcbe997d23190040b0db972f8b0c58e7389f50fb6415d06cc647d2650a6
|
Provenance
The following attestation bundles were made for labcode-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on ofplang/labcode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
labcode-0.1.0-py3-none-any.whl -
Subject digest:
030db3b1420805a20aa6a6b7055f9445b9481408dbfcc24f48f75b43e625151e - Sigstore transparency entry: 2258720876
- Sigstore integration time:
-
Permalink:
ofplang/labcode@0532c7b7aecdccc1d935e956f952d7d30b0ea1a1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ofplang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0532c7b7aecdccc1d935e956f952d7d30b0ea1a1 -
Trigger Event:
push
-
Statement type: