Warning

This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

galaxy.tools.expressions package

galaxy.tools.expressions.do_eval(expression: str, jobinput: CWLObjectType, context: CWLOutputType | None = None, sandbox_command: Sequence[str] | None = None)[source]
galaxy.tools.expressions.evaluate(config, input)[source]
galaxy.tools.expressions.find_engine(config)[source]
galaxy.tools.expressions.register() None[source]

Install the sandboxed engine as the process-wide cwl_utils JS engine.

Idempotent and thread-safe. Call before any expression is evaluated so no code path falls back to the unsafe Node vm engine.

galaxy.tools.expressions.resolve_isolation_command(setting: str) tuple[str, ...] | None[source]

Resolve the expression_evaluation_isolation_command setting to a wrapper.

  • empty -> None (ordinary worker subprocess)

  • "bubblewrap"/"bwrap" -> the built-in bubblewrap command, but only on Linux with bwrap on PATH; otherwise None (ordinary worker subprocess) with a one-time warning, so a macOS dev box or a host without bubblewrap degrades cleanly

  • anything else -> the value parsed as a literal command prefix, used as-is

Cached so the PATH lookup and any warning happen once per distinct setting.

galaxy.tools.expressions.write_evalute_script(in_directory)[source]

Responsible for writing the script that evaluates expressions in Galaxy jobs.

Submodules

galaxy.tools.expressions.evaluation module

galaxy.tools.expressions.evaluation.do_eval(expression: str, jobinput: CWLObjectType, context: CWLOutputType | None = None, sandbox_command: Sequence[str] | None = None)[source]
galaxy.tools.expressions.evaluation.evaluate(config, input)[source]

galaxy.tools.expressions.script module

galaxy.tools.expressions.script.write_evalute_script(in_directory)[source]

Responsible for writing the script that evaluates expressions in Galaxy jobs.

galaxy.tools.expressions.util module

galaxy.tools.expressions.util.find_engine(config)[source]