Skip to content

One by one

A LynxKite executor that assumes most operations operate on their input one by one.

Context ¤

Bases: BaseConfig

Passed to operation functions as "_ctx" if they have such a parameter.

ATTRIBUTE DESCRIPTION
node

The workspace node that this context is associated with.

TYPE: WorkspaceNode

last_result

The last result produced by the operation. This can be used to incrementally build a result, when the operation is executed for multiple items.

TYPE: Any

register ¤

register(env: str, cache: bool = True)

Registers the one-by-one executor.

Usage:

from lynxkite.core.executors import one_by_one
one_by_one.register("My Environment")