File
domain.fetcher.ports.file
Summary
File fetchers: read spreadsheet statements (XLSX, CSV) into omniread content.
Classes
CsvFetcher
Fetch a statement from a CSV file through a filesystem scraper.
Functions
fetch
async
Read the statement content of csv_path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
csv_path |
Path
|
Filesystem path to the CSV file. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Content |
Content
|
Extracted statement content. |
XlsxFetcher
Fetch a statement from an XLSX file through a filesystem scraper.
Functions
fetch
async
Read the statement content of xlsx_path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xlsx_path |
Path
|
Filesystem path to the XLSX file. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Content |
Content
|
Extracted statement content. |