5.3.1.9.2.4.2. cli.cmd_etl.etl.convert.Converter

class cli.cmd_etl.etl.convert.Converter(data_path: Path, recursive: bool, conversion_settings: ConversionSettings)

High-level converter that discovers files and transforms them.

The converter accepts either a single file path or a directory. When a directory is provided, it can optionally traverse subdirectories to find files that match the configured input format. Each discovered file is read and written in the configured output format. Errors (e.g., missing paths, permission issues) are reported and cause the process to exit with a non-zero status.

__init__(data_path: Path, recursive: bool, conversion_settings: ConversionSettings) None

Initialize a new Converter.

Parameters:
  • data_path – Path to a single file to convert or a directory to scan.

  • recursive – If True and data_path is a directory, search subdirectories for matching files.

  • conversion_settings – Configuration specifying input/output formats and reader-specific options.

Methods

__init__(data_path, recursive, ...)

Initialize a new Converter.

convert()

Discover and convert all matching files.

read_gamry(file_path)

Read a Gamry .DTA file and return its content as a DataFrame.

read_graphtec(file_path)

Read a Graphtec CSV export and return a cleaned DataFrame.