lazy_read_headers

lazy_read_headers(file_paths: Iterable[str | os.PathLike[str]], *, lines_to_read: int = 10) list[list[str]][source]

Lazy read headerlines of files.

Parameters
  • file_paths (Iterable[str | os.PathLike[str]]) – Paths to the files which should be read.

  • lines_to_read (int) – Number of lines to be read, by default 10

Returns

Headerlines of the read files.

Return type

list[list[str]]