Skip to content

Single-file pipeline

A minimal DAG-file-mode pipeline lives under examples/single-file/. One YAML, one CSV, one command.

Rime report preview showing the single-file example's DAG and output table.

Loads penguin observations, filters to the Adelie species, groups by island, and reports mean bill length, mean flipper length, and count per group.

examples/single-file/
├── pipeline.dag.yaml # the entire pipeline
└── data/
└── penguins.csv # ~340 rows of measurements
specification_version: "2.1"
nodes:
- id: penguins
kind: source
path: data/penguins.csv
- id: adelie_only
kind: filter
inputs: [penguins]
expr: '[species] == "Adelie"'
- id: by_island
kind: aggregate
inputs: [adelie_only]
groupBy: ["[island]"]
metrics:
- "[mean_bill_length] = [bill_length_mm].mean()"
- "[mean_flipper_length] = [flipper_length_mm].mean()"
- "[n] = [bill_length_mm].count()"
Terminal window
rime validate examples/single-file/pipeline.dag.yaml
rime run examples/single-file/pipeline.dag.yaml
rime build examples/single-file/pipeline.dag.yaml

Outputs land under examples/single-file/outputs/by_island/default.parquet.

The final aggregate is:

islandmean_bill_lengthmean_flipper_lengthn
Biscoe40.30195.001
Dream39.15180.002
Torgersen39.30183.502

rime build also writes examples/single-file/outputs/run_report.html.

No language nodes, no Python / R interpreters required, no companion report file. This is the smallest amount of Rime that does something interesting — useful for verifying your install or as the seed of a larger pipeline you grow into.

  • pipeline.dag.yaml to see the full DAG in one file.
  • outputs/by_island/default.parquet to inspect the final table directly.
  • outputs/run_report.html to review status, cache state, output shape, and preview rows in the browser.