Skip to main content

Module render

Module render 

Source
Expand description

Rendering templates and command lines: references filled in from the run’s inputs and context, values written as text the same way the Python API writes literals.

A shell command takes no references (decision 99): a value in shell source can run as code whatever the quoting, so values reach a shell program as arguments or environment variables.

Structs§

RenderContext
What references are filled in from.

Enums§

RenderError
Why a template can’t be rendered.

Constants§

SHELL
The program that runs shell commands.

Functions§

command_line
The program and arguments of a command line.
python_float
A float written like Python’s str() (1.0, 1.5, 1e+20, 1e-05).
reference_label
A reference as written in the DAG file, for messages (extract.rows[0]).
render
Renders a template, each reference written as text.
resolve
The stored value a reference stands for.
resolve_value
A value’s stored JSON, its references and templates filled in: what a connection’s parameter gets (decision 174), decoded by its type where it is used. A dict that would read as a tag is escaped, as the Python codec stores it (B66).
to_text
A stored value as text.