datakiln.io module

Helpers to read multiple data file extensions.

class datakiln.io.NullStripper(target)[source]

Bases: IOBase

Remove NULL characters

read(size=-1)[source]

Read

readable()[source]

Return whether object was opened for reading.

If False, read() will raise OSError.

datakiln.io.open_excel(path, encoding)[source]

Excel file reader.

Parameters:
  • data_path (str) – Path to file.

  • encoding (str) – encoding of the data file.

Returns:

File buffer.

Return type:

TextIOWrapper