lasagnastack.io¶
lasagnastack.io
¶
Shared output-path conventions and JSON helpers for all pipeline stages.
Each stage writes its output to a predictable location under output_dir so that intermediate results can be inspected, replayed, and debugged independently.
Layout¶
output_dir/ .cache/ Gemini response cache (keyed by clip hash + model) normalised/ Stage 1 — 480×854 H.264 clips for analysis inventories/ Stage 2 — ClipInventory JSON per source clip cut_list.json Stage 3 — CutList JSON critique/ Stage 4 — CritiqueResult JSON per iteration iteration_0.json ... draft/ Stage 5 — CapCut draft folder (written by pyCapCut)
read_json
¶
write_json
¶
Write a Pydantic model or list of models to a JSON file, creating parents.
Source code in src/lasagnastack/io.py
write_post_caption
¶
Write the Instagram post caption as a plain-text file.