Skip to main content

Module table

Module table 

Source
Expand description

Tables.

Port of upstream rich/table.py (core subset). A Table lays out columns and rows inside a box, sizing each column to its widest cell.

Scope: headers, rows, box choice (with legacy/ASCII substitution), per-cell padding, pad_edge + show_edge + collapse_padding, header styling (incl. a per-column header-content span and a per-column header-cell fill), a table-level style + border style, multi-line/wrapped cells (with ellipsis overflow), shrink-to-fit + expand column widths, per-column justify, explicit width, per-column ratio/min_width/max_width, per-column style, no_wrap, title, caption, and show_lines. Deferred (tracked in the Table issue): the rare width-0 column padding edge.

Structsยง

Table
A grid of cells rendered inside a box. Mirrors rich.table.Table.