Skip to content

rs_rich.table

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rich.table: tables.

Table

row_count property

row_count: int

title instance-attribute

title: Optional[Union[str, Text]]

caption instance-attribute

caption: Optional[Union[str, Text]]

width instance-attribute

width: Optional[int]

min_width instance-attribute

min_width: Optional[int]

box instance-attribute

box: Optional[Box]

safe_box instance-attribute

safe_box: Optional[bool]

padding instance-attribute

padding: Tuple[int, int, int, int]

collapse_padding instance-attribute

collapse_padding: bool

pad_edge instance-attribute

pad_edge: bool

expand instance-attribute

expand: bool

show_header instance-attribute

show_header: bool
show_footer: bool

show_edge instance-attribute

show_edge: bool

show_lines instance-attribute

show_lines: bool

leading instance-attribute

leading: int

style instance-attribute

style: StyleType

row_styles instance-attribute

row_styles: List[StyleType]

header_style instance-attribute

header_style: StyleType

footer_style instance-attribute

footer_style: StyleType

border_style instance-attribute

border_style: Optional[StyleType]

title_style instance-attribute

title_style: Optional[StyleType]

caption_style instance-attribute

caption_style: Optional[StyleType]

title_justify instance-attribute

title_justify: JustifyMethod

caption_justify instance-attribute

caption_justify: JustifyMethod

highlight instance-attribute

highlight: bool

grid classmethod

grid(*headers: RenderableType, padding: Optional[PaddingDimensions] = None, collapse_padding: bool = True, pad_edge: bool = False, expand: bool = False) -> Table

add_column

add_column(header: Optional[RenderableType] = None, footer: Optional[RenderableType] = None, *, header_style: Optional[StyleType] = None, highlight: Optional[bool] = None, footer_style: Optional[StyleType] = None, style: Optional[StyleType] = None, justify: JustifyMethod = 'left', vertical: Literal['top', 'middle', 'bottom'] = 'top', overflow: OverflowMethod = 'ellipsis', width: Optional[int] = None, min_width: Optional[int] = None, max_width: Optional[int] = None, ratio: Optional[int] = None, no_wrap: bool = False) -> None

add_row

add_row(*renderables: Optional[RenderableType], style: Optional[StyleType] = None, end_section: bool = False) -> None

add_section

add_section() -> None