aleph.util

aleph.util.checksum(filename)

Generate a hash for a given file name.

aleph.util.dict_list(data)

Get an entry as a list from a dict. Provide a fallback key.

aleph.util.ensure_list(obj)

Make the returned object a list, otherwise wrap as single item.

aleph.util.is_list(obj)
aleph.util.load_config_file(file_path)

Load a YAML (or JSON) graph model configuration file.

aleph.util.make_tempdir()
aleph.util.make_tempfile()
aleph.util.remove_tempdir(dirpath)
aleph.util.remove_tempfile(filepath)
aleph.util.resolve_includes(file_path, data)

Handle include statements in the graph configuration file.

This allows the YAML graph configuration to be broken into multiple smaller fragments that are easier to maintain.

aleph.util.unique_list(lst)

Make a list unique, retaining order of initial appearance.

SessionTask

class aleph.util.SessionTask

Imports

  • <UNKNOWN>
on_failure(self, exc, task_id, args, kwargs, einfo)