TransformHelperV1

toloka.client.project.template_builder.helpers.TransformHelperV1 | Source code

TransformHelperV1(
self,
into: Optional[Any] = None,
items: Optional[Union[BaseComponent, List[Any]]] = None,
*,
version: Optional[str] = '1.0.0'
)

Creates a new array by transforming elements of another array.

For example, you can create an array of view.image components from an array of links to images.

For more information, see helper.transform.

Parameters description

ParametersTypeDescription
intoOptional[Any]

The template of an element of the new array. To insert values from the source array use the LocalData component with the data path set to item.

itemsOptional[Union[BaseComponent, List[Any]]]

The source array.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming