Tabular
tabular
Tabular strategy — convert homogeneous list[dict] to pipe-separated table.
TabularStrategy
Bases: SmeltStrategy
Convert JSON arrays of objects to pipe-separated tables.
Source code in packages/axm-smelt/src/axm_smelt/strategies/tabular.py
category
property
Strategy category (structural).
name
property
Strategy identifier used in the registry.
apply(ctx)
Convert homogeneous list[dict] to pipe-separated tables.
Uses ctx.parsed when available to skip
json.loads. Recurses into nested dicts to tabularize
inner arrays.
Source code in packages/axm-smelt/src/axm_smelt/strategies/tabular.py
collect_ordered_keys(items)
Collect unique keys from dicts in first-seen insertion order.
Source code in packages/axm-smelt/src/axm_smelt/strategies/tabular.py
| Python | |
|---|---|
render_rows(items, keys)
Render each dict as a pipe-separated row according to keys.
Source code in packages/axm-smelt/src/axm_smelt/strategies/tabular.py
to_table(data)
Convert a list of dicts to a pipe-separated table, or return None.