ProjectSortItems

toloka.client.search_requests.ProjectSortItems

ProjectSortItems(self, items=None)

Keys for sorting projects in search results.

Parameters description

ParametersTypeDescription
itemsOptional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — A project ID.
  • 'created' — A project creation date.
  • 'public_name' — A project name.
  • 'private_comment' — A project private comment.

Examples:

The example shows how to find active projects sorted by names in the descending order. Projects with equal names are sorted by IDs in the ascending order.

sort = toloka.client.search_requests.ProjectSortItems(['-public_name', 'id'])
result = toloka_client.find_projects(status='ACTIVE', sort=sort, limit=50)

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