toloka.client.TolokaClient.get_app_projects
| Source code
Finds all App projects that match certain criteria.
get_app_projects
returns a generator. You can iterate over all found projects using the generator. Several requests to the Toloka server are possible while iterating.
If you need to sort App projects use the find_app_projects method.
Parameters | Type | Description |
---|---|---|
app_id | Optional[str] | Projects created using the solution with the specified ID. |
parent_app_project_id | Optional[str] | Projects cloned from the project with the specified ID. Projects can be cloned in the web version of Toloka. |
status | Optional[AppProject.Status] | App project status. Refer to the AppProject.Status page for more information on the available |
after_id | Optional[str] | The ID of a project used for cursor pagination. |
scope | Optional[AppProjectSearchRequest.Scope] | Values:
|
requester_ids | Union[str, List[str], None] | A list with requester IDs separated by a comma. Use the list with parameter |
id_gt | Optional[str] | Projects with IDs greater than the specified value. |
id_gte | Optional[str] | Projects with IDs greater than or equal to the specified value. |
id_lt | Optional[str] | Projects with IDs less than the specified value. |
id_lte | Optional[str] | Projects with IDs less than or equal to the specified value. |
name_gt | Optional[str] | Projects with a name lexicographically greater than the specified value. |
name_gte | Optional[str] | Projects with a name lexicographically greater than or equal to the specified value. |
name_lt | Optional[str] | Projects with a name lexicographically less than the specified value. |
name_lte | Optional[str] | Projects with a name lexicographically less than or equal to the specified value. |
created_gt | Optional[datetime] | Projects created after the specified date. |
created_gte | Optional[datetime] | Projects created after or on the specified date. |
created_lt | Optional[datetime] | Projects created before the specified date. |
created_lte | Optional[datetime] | Projects created before or on the specified date. |
batch_size | Optional[int] | A limit of items returned by each request to Toloka. The maximum allowed value: 5000. |
Yields:
The next matching App project.
Yield type:
Generator[AppProject, None, None]
Examples:
app_projects = toloka_client.get_app_projects(scope='MY')for app_project in app_projects: print(app_project.id, app_project.status, app_project.name)
Last updated: August 28, 2023