__init__

FileHandler.__init__(reader=None, info=None, writer=None, **kwargs)[source]

Initialize a filer handler object.

Parameters
  • reader – Reference to a function that defines how to read a given file and returns an object with the read data. The function must accept a FileInfo object as first parameter.

  • info – Reference to a function that returns a FileInfo object with information about the given file. You cannot use the get_info() without setting this parameter. The function must accept a filename as string as first parameter.

  • writer – Reference to a function that defines how to write the data to a file. The function must accept the data object as first and a FileInfo object as second parameter.