Structured Exports

Structured report export helpers.

updatesupport.exports.report_to_json(report, **kwargs)[source]

Serialize a report-like object to structured JSON.

Parameters:
Return type:

str

updatesupport.exports.report_tables(report)[source]

Return named list-of-dict tables for a report-like object.

Parameters:

report (Any)

Return type:

dict[str, tuple[dict[str, Any], …]]

updatesupport.exports.report_dataframes(report)[source]

Return named pandas DataFrames for a report-like object.

Pandas is optional in core. Install updatesupport[examples] or install pandas directly before calling this helper.

Parameters:

report (Any)

Return type:

dict[str, Any]

updatesupport.exports.tables_to_dataframes(tables)[source]

Convert named list-of-dict tables into pandas DataFrames.

Parameters:

tables (Mapping[str, tuple[dict[str, Any], ...]])

Return type:

dict[str, Any]