Different pipes. One standard.

Type to search this site.

Search runs in your browser against a static index built with this site (Pagefind). Nothing you type is sent to a server.

Pipelines — say what feeds what, and nothing else

Your R script, SQL query and Python service cannot be plugged together without glue code.

The problem #

Connecting steps by hand means a shell script full of temporary files, format conversions and assumptions. It is checked by running it.

The fix #

A pipeline is a short YAML file. Each step lists its inputs, and each input names the output it reads from.

yaml
spec: openflange.org/pipeline/v0.1
nodes:
  lowercase:
    pipe: ./pipes/lowercase
    inputs:
      text: {from: inputs.email}
  mask:
    pipe: ./pipes/mask-email
    inputs:
      email: {from: lowercase.outputs.text}
    parameters:
      character: "*"
outputs:
  email: {from: mask.outputs.email}

That is the whole format. There is no separate list of connections to keep in sync.

The precise terms #

  • Each entry under nodes is a node: one use of a pipe, with its own id.
  • A source is written inputs.<name> (a pipeline input) or <node>.outputs.<port> (another node's output). Mappings are always written on the consumer side.
  • Two consumers of one output is a broadcast: the producer runs once. Two producers into one input needs an explicit std:merge node.
  • The graph must have no cycles. A pipeline can itself be the implementation of a pipe, so pipelines nest (a composite).
  • Before running, the file is compiled into an execution plan. Unknown ports, cycles, unconnected required ports and incompatible schemas are reported with a code and a location: openflange validate ./pipeline.yaml --plan.
  • Canvas coordinates live in a separate pipeline.layout.yaml that runners ignore.

Normative text: Pipeline specification