Reader classes

To provide alternative ways of importing data from various sources, several Reader classes are available to choose or extend from.

A base Reader class provides a base class that has to be inherited for all reader implementations.

Reader Base reader class.
LocalFileSystemReader Read a file from the local filesystem.
class Reader(**options)[source]

Base reader class.

Read raw data from a file or other data source.

begin(context=None)[source]

Hook to be triggered before reading starts.

read()[source]

Read in raw data from our source.

Returns:a lazy iterable that yields the file’s contents
end(context=None)[source]

Hook to be triggered after reading finished.

class LocalFileSystemReader(**options)[source]

Read a file from the local filesystem.

Key filename:Path to a local file either inside the STATIC_ROOT directory or an absolute path on the local system.