Other classes#

class dqa.connectors.csv_headers.BlockCsvHeaderProcessor#

Methods

read_headers_file(filename, delimiter)

Processes the headers given in a CSV file.

data_starts_with_line

line_is_empty

read_headers

read_headers_stream

static data_starts_with_line(line)#
static line_is_empty(line)#
read_headers(reader) -> (typing.List[typing.Dict[str, typing.Any]], typing.List[str], <class 'int'>)#
class dqa.connectors.csv_headers.CsvHeaderProcessor#

Methods

read_headers_file(filename, delimiter)

Processes the headers given in a CSV file.

read_headers

read_headers_stream

abstract read_headers(reader) -> (typing.List[typing.Dict[str, typing.Any]], typing.List[str], <class 'int'>)#
read_headers_file(filename, delimiter) -> (typing.List[typing.Dict[str, typing.Any]], typing.List[str], <class 'int'>)#

Processes the headers given in a CSV file. :param filename: Name of the input file. :param delimiter: CSV format delimiter. :return: A tuple containing - List of dictionaries of parameters for each column in the file - List containing a name for every column in the file. - The number of lines read until the actual data starts.

read_headers_stream(stream, delimiter) -> (typing.List[typing.Dict[str, typing.Any]], typing.List[str], <class 'int'>)#