tsv2dict¶
Provides a reader and writer for TSV files, similar to the CSV implementation.
-
class
tsv2dict.DictConverter(type_dict: Dict[str, Callable[[str], Any]])[source]¶ An object that parses a dict of strings into the types specified in type_dict
-
class
tsv2dict.DictReader(f: Iterable[str], fieldnames: Optional[List[str]] = None)[source]¶ Allows reading of tsv files in the form of dicts.
-
class
tsv2dict.DictWriter(f: TextIO, write_header: bool, fieldnames: Optional[Sequence[str]] = None, missing_values_placeholder: Optional[str] = None, allow_excess_values: bool = False)[source]¶ Allows writing of dict values to a new or existing tsv file.
-
class
tsv2dict.ListConverter(type_list: List[Callable[[str], Any]])[source]¶ An object that parses a list of strings into the types specified in type_list