Report Configuration Design

We thought of a design for embedding variables from other tools and results in your report.

automate.yml

tools:
  - uri: /t/aaa
    aka: aaa
results:
  - uri: /t/bbb/r/asdf
    aka: qqq
datasets:
  - target: datasets/yz
    source: datasets/yz-2024.csv
presets:
  - folder: presets/standard
scripts:
  - path: run.py
templates:
  - path: x.md

run.py

embed_folder = Path(getenv('EMBED_FOLDER', 'presets/standard/embed'))
print(embed_folder / tools / 'aaa' / 'input')
print(embed_folder / results / 'qqq' / 'input')

x.md

In {aaa.input.target_year}, the population of {aaa.input.place_name} was {aaa.output.population}.

Here is the current traffic around {qqq.input.place_name}:

{qqq.output.traffic_map}