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

mount_gradio async ¤

mount_gradio(app, gradio_app, path: str)

Mounts a Gradio app onto a Starlette/FastAPI app at the given path.

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")