luisy.tasks package
Submodules
luisy.tasks.base module
- class luisy.tasks.base.Task(*args, **kwargs)[source]
Bases:
Task
Base task that provides interfaces for all decorators.
- get_file_name()
Find executed instances of the task class on your local machine.
- Parameters:
regex_placeholder (str) – Regex placeholder that replaces value strings with a regex to find all matching instances on filesystem.
- Returns:
list of task instances related to given class
- Return type:
list[luisy.Task]
- Raises:
Exception – If problems in finding instances on the system occur, Exceptions are caught in general and the user is informed to look at his get_file_name() method.
- get_sub_dir()[source]
Default implementation of a subdir. By overriding this method one can specify an additional subdir under the current working dir.
- read()[source]
Reads the output of the task and return is. If cloud synchronisation is activated, a file may be downloaded from the cloud
- target_cls
alias of
PickleTarget
- target_kwargs = {}
- upload(overwrite=False)[source]
Uploads the output of the task to the cloud.abs
- Parameters:
overwrite (bool) – Whether an existing file in the cloud should be overwritten. Defaults to
False
.
- visualize(ax=None, unique_children=True, parameters_to_exclude=())[source]
Visualizes the dependencies tree of the task.
- Parameters:
ax (matplotlib.axis.Axis) – A matplotlib axis to draw in
unique_children (bool) – If true, add only subset of unique types of children
parameters_to_exclude (list) – List of names of py:mod:luigi-parameters to exclude in visualization.