Skip to content

File

domain.fetcher.ports.file

Summary

File fetchers: read spreadsheet statements (XLSX, CSV) into omniread content.

Classes

CsvFetcher

CsvFetcher()

Fetch a statement from a CSV file through a filesystem scraper.

Functions
fetch async
fetch(csv_path: Path) -> Content

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

XlsxFetcher()

Fetch a statement from an XLSX file through a filesystem scraper.

Functions
fetch async
fetch(xlsx_path: Path) -> Content

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.