Skip to main content

labcode

CI PyPI

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:

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

labcode-0.1.4.tar.gz (89.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labcode-0.1.4-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file labcode-0.1.4.tar.gz.

File metadata

  • Download URL: labcode-0.1.4.tar.gz
  • Upload date:
  • Size: 89.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for labcode-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c952433a41d4d2840ef5d30acac66ba11964ef8d1f5f38d2f3b52df8075cf1ae
MD5 3cc83d65a15bc0eb9a02162793529248
BLAKE2b-256 b41d31ad713c1283b474f453f7758db0b268859e20dc6d7930e0fc97b832e818

See more details on using hashes here.

Provenance

The following attestation bundles were made for labcode-0.1.4.tar.gz:

Publisher: publish.yml on ofplang/labcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file labcode-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: labcode-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 42.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for labcode-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 84c43af5b22dcc1f11c983d6f6a3eadebf43aa99dd3c63b3fb12a9feff17537c
MD5 c10f590e1d5858669ec47e36c3b26e10
BLAKE2b-256 f5caafd28c9d2c53c3d40e996b3fa888222e3d9c66964829a1ab8e5a6329d5d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for labcode-0.1.4-py3-none-any.whl:

Publisher: publish.yml on ofplang/labcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

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