API Documentation¶
Here are the luigo API’s details.
luijo¶
Extensions for Spotify’s Luigi.
luijo.config¶
Say something descriptive about the ‘config’ module.
-
class
luijo.config.FileSystem(*args, **kwargs)[source]¶ Bases:
luigi.task.ConfigThese are configuration settings to which we can refer when working with the local file system.
Variables: target_home_dir – the default home directory for local targets -
target_home_dir= <luigi.parameter.Parameter object>¶
-
luijo.errors¶
Something went wrong? It did.
-
exception
luijo.errors.LuijoException(message: str, inner: Exception = None)[source]¶ Bases:
ExceptionThis is a common base class for all custom luijo exceptions.
-
__init__(message: str, inner: Exception = None)[source]¶ Parameters: - message – the exception message
- inner – the exception that caused this exception
-
args¶
-
inner¶ Get the inner exception that caused this exception. :return: the inner exception
-
message¶ Get the exception message. :return: the exception message
-
with_traceback()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
luijo.mock¶
Say something descriptive about the ‘testing’ module.
-
class
luijo.mock.MockTask(*args, **kwargs)[source]¶ Bases:
luigi.task.TaskThis is a mock task. It has no requirements, performs no actual work, and specifies a
luigi.mock.MockTargetas its output. Use it when it might be handy.
luijo.targets¶
Luigi targets, plus just a little more.
-
class
luijo.targets.LocalObjectTarget(path=None, format=None, is_tmp=False)[source]¶ Bases:
luigi.local_target.LocalTargetThis is a local target you can use to serialize a Python object to a file.