vimsheet.model.cell
Cell and CellFormat dataclasses.
- class vimsheet.model.cell.CellFormat(bold=False, italic=False, underline=False, align='right', fg_color=None, bg_color=None, num_decimals=None, num_format=None, thousands_sep=False)[source]
Bases:
objectVisual formatting applied to a single cell.
- Parameters:
- __init__(bold=False, italic=False, underline=False, align='right', fg_color=None, bg_color=None, num_decimals=None, num_format=None, thousands_sep=False)
- class vimsheet.model.cell.Cell(row, col, formula=None, value=None, display='', fmt=<factory>, locked=False, comment=None, history=<factory>)[source]
Bases:
objectA single spreadsheet cell with content, formatting, and metadata.
- Parameters:
- fmt: CellFormat
- record_history(value)[source]
Record a value change in the cell’s history.
- Parameters:
value (Any)
- Return type:
None
- format_value()[source]
Return a display string for the cell’s value, applying format rules.
- Return type:
- __init__(row, col, formula=None, value=None, display='', fmt=<factory>, locked=False, comment=None, history=<factory>)