Skip to main content

labcode -- a dialect wrapper over the Object-Flow Programming Language toolchain

Project description

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 (rolling-horizon runner / simulator)

labcode is where a site-specific dialect and a custom runner (real lab hardware) are developed on top of the ofplang toolchain. At this version lc is a thin dispatcher that forwards each subcommand to the ofplang siblings unchanged; the dialect and custom-runner behavior will land in later versions, replacing individual subcommands behind the same interface.

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

Project details


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.0.1.tar.gz (7.8 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.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for labcode-0.0.1.tar.gz
Algorithm Hash digest
SHA256 df774f39b723e5d25ead3f7cb6c8057fa3c01e6a80ef8d45d8e672ac41a1b01a
MD5 d9355e32eaa94aba2592c9b28629fb7c
BLAKE2b-256 90eb07b7c0eef0b1a04492928d95a4b6d2a4a1873b5fc8b83a5116d9942385a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for labcode-0.0.1.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.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for labcode-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 902bb5c2bb2d524bc84d8b5e363f0cf1e6d83a8a875f2c6a2f4847cb70e4322f
MD5 cc5c4ff449f167d46bc5844bcb293c58
BLAKE2b-256 eca9cf64f0a04a91d95990585dd00d3fd6b0d99363181aed492b8778d73e4fb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for labcode-0.0.1-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page