Skip to main content

Call Dependencies

class covalent._workflow.depscall.DepsCall

#

Functions, shell commands, PyPI packages, and other types of dependencies to be called in an electron’s execution environment

Deps class to encapsulate python functions to be called in the same execution environment as the electron.

func

A callable

args

args list

kwargs

kwargs list

retval keyword

An optional string referencing the return value of func.

If retval_keyword is specified, the return value of func will be passed during workflow execution as an argument to the electron corresponding to the parameter of the same name.

NOTES

Electron parameters to be injected during execution must have default parameter values.

It is the user’s responsibility to ensure that retval_keyword is actually a parameter of the electron. Unexpected behavior may occur otherwise.

Methods:

from_dict(object_dict)

Rehydrate a dictionary representation

Return a JSON-serializable dictionary representation of self

from_dict

#

Rehydrate a dictionary representation

Parameters

object_dict - a dictionary representation returned by to_dict

Return Type

Returns

self

Instance attributes will be overwritten.

to_dict

#

Return a JSON-serializable dictionary representation of self

Return Type

dict

Examples