get_apps

toloka.client.TolokaClient.get_apps | Source code

Finds all App solutions that match certain criteria.

get_apps returns a generator. You can iterate over all found solutions using the generator. Several requests to the Toloka server are possible while iterating.

If you need to sort solutions use the find_apps method.

Parameters description

ParametersTypeDescription
after_idOptional[str]

The ID of a solution used for cursor pagination.

langOptional[str]

ISO 639 language code.

id_gtOptional[str]

Solutions with IDs greater than the specified value.

id_gteOptional[str]

Solutions with IDs greater than or equal to the specified value.

id_ltOptional[str]

Solutions with IDs less than the specified value.

id_lteOptional[str]

Solutions with IDs less than or equal to the specified value.

name_gt-

Solutions with names lexicographically greater than the specified value.

name_gte-

Solutions with names lexicographically greater than or equal to the specified value.

name_lt-

Solutions with names lexicographically less than the specified value.

name_lte-

Solutions with names lexicographically less than or equal to the specified value.

batch_sizeOptional[int]

A limit of items returned by each request to Toloka. The maximum allowed value: 1000.

  • Yields:

    The next matching solution.

  • Yield type:

    Generator[App, None, None]

Examples:

apps = toloka_client.get_apps()
for app in apps:
print(app.id, app.name)

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