Skip to content
Roboto
Esc
↑↓navigate↵open⌘Jpreview
On this page

roboto.action_runtime.action_input.file_resolver

Module Contents

InputFileResolver

class roboto.action_runtime.action_input.file_resolver.InputFileResolver(roboto_client=None, roboto_search=None)#View Source

Looks up the files an action invocation runs on, from the file selectors declared as its inputs.

A selector names files by ID, by name, by path within a dataset, or with a RoboQL query; every field it populates is looked up and the matches are returned together. resolve_all returns each file once, while resolve repeats a file that matches on more than one field.

A query, names or paths goes through file search, which does not return links yet, so it never selects a link. A link named in ids is returned, and ActionInputResolver downloads the version of its target that the link pins.

Parameters

roboto_client Optional[roboto.http.RobotoClient]
roboto_search Optional[roboto.roboto_search.RobotoSearch]

InputFileResolver.resolve()

resolve(selector)#View Source

Looks up the files one selector names.

A dataset_id narrows the lookup only alongside paths; every other field ignores it, with a warning.

InputFileResolver.resolve_all()

resolve_all(file_selectors)#View Source

Parameters

file_selectors collections.abc.Sequence[roboto.domain.actions.FileSelector]

Return type

Attributes

InputFileResolver.roboto_client

roboto_client = None #
roboto_search #

log

roboto.action_runtime.action_input.file_resolver.log#View Source

Was this page helpful?