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 | Type | Description |
---|---|---|
after_id | Optional[str] | The ID of a solution used for cursor pagination. |
lang | Optional[str] | ISO 639 language code. |
id_gt | Optional[str] | Solutions with IDs greater than the specified value. |
id_gte | Optional[str] | Solutions with IDs greater than or equal to the specified value. |
id_lt | Optional[str] | Solutions with IDs less than the specified value. |
id_lte | Optional[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_size | Optional[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