Skip to main content

Module beautify

Module beautify 

Source
Expand description

Field-aware cell formatting (Python tvscreener.beauty without Jupyter HTML).

Applies catalog format hints: percent coloring, rating labels, millify groups, recommendation arrows, and ADX / AO / Bollinger computed signals.

Structs§

FormattedCell
One display cell: plain text plus optional tone.
RowTechMap
Technical field_name → raw JSON value for one row (Python uses technical columns).
TableFormatOptions
Options for aligned table rendering.

Enums§

CellTone
Semantic color for a formatted cell (map to ANSI / Ratatui later).

Constants§

DEFAULT_TABLE_MAX_COLUMNS
Default max data columns in format_rows_table (plus the Symbol column).

Functions§

format_cell
Formats one JSON value using a catalog format hint (no row companions).
format_cell_for_field
Formats a cell using FieldDef metadata and optional technical companions.
format_rows_table
Renders rows as an aligned text table using field-aware format_cell_for_field.