__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 - FileInfoobject as first parameter.
- info – Reference to a function that returns a - FileInfoobject 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 - FileInfoobject as second parameter.