get_skills

toloka.client.TolokaClient.get_skills | Source code

Finds all skills that match certain criteria.

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

If you need to sort skills use the find_skills method.

Parameters Description

ParametersTypeDescription
nameOptional[str]

The name of the skill.

id_ltOptional[str]

Skills with IDs less than the specified value.

id_lteOptional[str]

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

id_gtOptional[str]

Skills with IDs greater than the specified value.

id_gteOptional[str]

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

created_ltOptional[datetime]

Skills created before the specified date.

created_lteOptional[datetime]

Skills created before or on the specified date.

created_gtOptional[datetime]

Skills created after the specified date.

created_gteOptional[datetime]

Skills created on or after the specified date.

batch_sizeOptional[int]

Returned skills limit for each request. The maximum allowed batch_size is 100.

  • Yields:

    The next matching skill.

  • Yield type:

    Generator[Skill, None, None]

Examples:

How to check that a skill exists.

segmentation_skill = next(toloka_client.get_skills(name='Area selection of road signs'), None)
if segmentation_skill:
print(f'Segmentation skill already exists, with id {segmentation_skill.id}')
else:
print('Create new segmentation skill here')
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming