epicsarchiver_mgmt.input_parsing
Parse the input csv file.
Attributes
Exceptions
Exception for when the csv file is invalid. |
Functions
|
Parse the csv file. |
|
Parse the csv file with a single column. |
|
Parse the csv file with two columns. |
Module Contents
- epicsarchiver_mgmt.input_parsing.LOG: logging.Logger[source]
- exception epicsarchiver_mgmt.input_parsing.ParseCSVRowError(row: list[str] | None = None)[source]
Bases:
epicsarchiver_mgmt.exceptions.BaseMgmtErrorException for when the csv file is invalid.
- epicsarchiver_mgmt.input_parsing.parse_csv(file: TextIO, expected_columns: int) dict[str, list[str]][source]
Parse the csv file.
- Parameters:
file (TextIOWrapper) – The file to parse.
expected_columns (int) – The expected number of columns in csv file
- Returns:
The list of tuples of PVs.
- Return type:
- Raises:
ParseCSVRowError – If the file is invalid.
- epicsarchiver_mgmt.input_parsing.single_column_csv(file: TextIO) collections.abc.Sequence[str][source]
Parse the csv file with a single column.