Process

class caliber.Process(name: str | None = None, tasks: List | None = None)[source]

A process which can be the basis for a workflow.

Parameters:
  • name (str) – The name of the process.

  • tasks (list) – The tasks of the project. Each task can be either of type Task or BranchProcess.

to_dict() Dict[source]

Return dictionary representation of the Process object.

to_json(out_file: str | TextIO) None[source]

Export to a json-file.

Parameters:

out_file (str or file-like object) – The file to write to.

static from_json(infile: str) Process | None[source]

Initiate a Process from a json file.

Parameters:

infile (str) – The name of the json file.