Part of epic: #30
Depends on: #33, #34, #35
What
Add --tearsheet-only flag to pipeline_v2.py argparse so users can skip the full 12-section HTML note and generate only the tearsheet outputs (HTML + PDF + PNG). This makes the tearsheet usable as a standalone fast-run artifact.
CLI usage
# Full pipeline (default) — generates note + tearsheet
python pipeline_v2.py --ticker AAPL
# Tearsheet only — skips valuation deep-dive, peer CCA, full commentary
# Still fetches data and runs core metrics
python pipeline_v2.py --ticker AAPL --tearsheet-only
# Tearsheet for a whole sector sweep
python pipeline_v2.py --sector technology --tearsheet-only
Implementation
# In pipeline_v2.py argparse section
parser.add_argument(
'--tearsheet-only',
action='store_true',
help='Skip full research note, generate tearsheet (HTML/PDF/PNG) only'
)
# In main pipeline logic
if args.tearsheet_only:
data = fetch_core_data(ticker) # lightweight fetch
note = build_tearsheet_inputs(data)
gen = TearsheetGenerator(note)
gen.render_pdf(f'outputs/{ticker}_tearsheet.pdf')
gen.render_png(f'outputs/{ticker}_tearsheet.png')
else:
# existing full pipeline
...
Acceptance Criteria
Part of epic: #30
Depends on: #33, #34, #35
What
Add
--tearsheet-onlyflag topipeline_v2.pyargparse so users can skip the full 12-section HTML note and generate only the tearsheet outputs (HTML + PDF + PNG). This makes the tearsheet usable as a standalone fast-run artifact.CLI usage
Implementation
Acceptance Criteria
--tearsheet-onlyflag exists in argparse with help text--tearsheet-onlyis at least 40% faster than full pipeline--sectorfor batch tearsheet generation--tearsheet-onlyusage with example command