Impl
pipelines.extraction.csv.impl
Summary
Concrete csv-family implementations.
ImplCsvTableReaderPort reads csv rows with the omniread csv parser and runs
them through the shared TableParserMixin (header location / aliases / typed
conversion) to emit typed records. The chain (records → balance-adjusted txn
dicts → raw expenses) is the shared tabular core.
Classes
ImplCsvExtractionPipeline
Bases: CsvExtractionPipeline
Concrete csv graph root.
Attributes:
| Name | Type | Description |
|---|---|---|
ingest |
ImplIngestPort
|
Ingest stage. |
table_reader |
ImplCsvTableReaderPort
|
Csv table reader stage. |
txn_dicts |
ImplTabularTxnDictsPort
|
Shared tabular txn-dicts stage. |
raw_expense |
ImplRawExpensePort
|
Terminal raw-expense stage. |
Functions
run
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. |
ImplCsvTableReaderPort
Bases: TableParserMixin, CsvTableReaderPort
Concrete csv reader — omniread csv parser + shared TableParserMixin.
Functions
read
Read typed records from csv content.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
content |
Materialized content (Content, bytes, or dict). |
required |
Returns:
| Type | Description |
|---|---|
List[dict]
|
List[dict]: Typed table records. |