Excel automation
ExcelReader
The ExcelReader class provides a convenient way to extract data from Excel worksheets, with support for fuzzy matching labels and various data types. This documentation covers the main functionality and usage patterns.
Basic Usage
First, create an ExcelReader instance by passing an openpyxl Worksheet object:
from openpyxl import load_workbook
from shared.excel.reader import ExcelReader
wb = load_workbook("my_file.xlsx")
ws = wb["Sheet1"]
reader = ExcelReader(ws)
The ExcelReader constructor accepts the following parameters:
ws: The openpyxl Worksheet objectrow: Starting row (default: 1)col: Starting column (default: 1)auto_evaluate: Whether to automatically evaluate Excel formulas (default: False)