Xilu012 Parsed Csv
src.xil_pipeline.XILU012_parsed_csv
Export parsed_
Produces the same column layout as XILP001 --debug minus the two
markdown-source columns (md_line_num, md_raw) that are only available
during a live parse run. Use this to inspect, diff, or spreadsheet-import an
already-parsed episode without re-running the parser.
Output columns:: file, tag, show, season, episode, seq, type, section, scene, speaker, direction, direction_type, text
Text is truncated at 200 characters to match the XILP001 debug output. stdout is clean CSV (no banner) when no --output file is specified, so the output is safe to pipe directly to csvkit, jq (via --json), etc.
Usage:
xil parsed-csv # all parsed JSONs in workspace
xil parsed-csv parsed/the413/parsed_S04E02.json # single episode
xil parsed-csv parsed/the413/ # all in a show directory
xil parsed-csv --output debug.csv # write to file (with banner)
xil parsed-csv --json | jq '[.[] | select(.type=="direction")]'
get_parser
Source code in src/xil_pipeline/XILU012_parsed_csv.py
main
CLI entry point for parsed JSON → CSV export.