Skip to main content

Lotus 1-2-3 Format

Read Lotus 1-2-3 / WK1 spreadsheet rows as flat dictionaries (experimental minimal BIFF parser).

Overview​

PropertyValue
Format id123 (aliases wk1, wks)
ClassLotus123Iterable
Extensions.123, .wk1, .wks
ReadYes
WriteNo
Extranone (optional pylotus if installed)
Maturityexperimental

Record shape​

One dict per spreadsheet row. When header=True (default) and row 0 contains string labels, those become column keys:

{"name": "alpha", "value": 42}

Parameters​

ParameterDefaultDescription
headerTrueUse first-row labels as keys when detected

Loads the workbook into memory. Supports LABEL / INTEGER / NUMBER cells in the minimal WK1 subset.

Usage​

from iterable import open_iterable

with open_iterable("sheet.wk1", format="123") as source:
for row in source:
print(row)

Error Handling​

  • Missing dependency: optional libraries raise ImportError with an install hint (pip install 'iterabledata[<extra>]' when an extra exists).
  • Read-only: opening with mode="w" raises WriteNotSupportedError or ValueError.
  • Bad or unsupported input: may raise ValueError, OSError, or library-specific errors.
  • See Troubleshooting for decoding, detection, and engine issues.

See also​