Skip to content

Impl

pipelines.extraction.xlsx.impl

Summary

Concrete xlsx-family implementations.


ImplXlsxTableReaderPort reads typed worksheet rows (via the omniread xlsx parser's workbook) and runs them through the shared TableParserMixin to emit typed records. The chain (records → balance-adjusted txn dicts → raw expenses) is the shared tabular core.

Classes

ImplXlsxExtractionPipeline

Bases: XlsxExtractionPipeline

Concrete xlsx graph root.

Attributes:

Name Type Description
ingest ImplIngestPort

Ingest stage.

table_reader ImplXlsxTableReaderPort

Xlsx table reader stage.

txn_dicts ImplTabularTxnDictsPort

Shared tabular txn-dicts stage.

raw_expense ImplRawExpensePort

Terminal raw-expense stage.

Functions
run
run(source) -> List[Any]

Run the direct-table extraction chain.

Parameters:

Name Type Description Default
source

Raw extraction source.

required

Returns:

Type Description
List[Any]

List[Any]: Raw expense records.

ImplXlsxTableReaderPort

Bases: TableParserMixin, XlsxTableReaderPort

Concrete xlsx reader — omniread xlsx parser + shared TableParserMixin.

Attributes:

Name Type Description
max_header_scan int

Max rows scanned for the header row.

Functions
read
read(content) -> List[dict]

Read typed records from xlsx content.

Parameters:

Name Type Description Default
content

Materialized content (Content, bytes, or dict).

required

Returns:

Type Description
List[dict]

List[dict]: Typed table records.