Repository navigation
Command line
Install with pip install smd-reports. Commands are available as smd-reports and
python -m smd_reports.
smd-reports validate report.json
smd-reports render report.json --format html --output report.html
smd-reports render report.json --format pdf --output report.pdf
smd-reports normalize report.json --output report.portable.json
smd-reports schema --output report.schema.jsonvalidate checks JSON and artwork. render writes HTML or PDF. normalize writes the
same JSON format with embedded images. The package version is recorded when
rendering. schema exports JSON Schema;
optionally add --preset generic, coyote3, coyote4, genexus, cll_genie, pgx or breaxpress to require a preset.
The legacy --application option remains available.
--output is required for commands that write a file. An output path cannot overwrite
the input JSON. Parent directories must already exist. Invalid JSON, assets or output
locations return exit status 2. Rendering failures, including unavailable PDF dependencies,
return 1; success returns 0. PDF generation needs the PDF extra and native dependencies
described in installation.
Errors identify the failing field or operation. JSON syntax errors include the line and column; validation errors describe the expected value without printing report data. Existing output files are replaced only after the complete output has been written.
Use --verbose before the command to send loading, validation, rendering and output events
to stderr. The normal command result remains on stdout.
smd-reports --verbose render report.json --format html --output report.htmlMessages include the operation, preset and section/image counts, without report values,
image data or file paths. Without --verbose, commands print their result or error only.
Copyright © 2026 Ram Nanduri
Getting started
User guide
Reference
Development