Get skills

Get all the skills available in your Toloka account.

Steps to follow

1. Import Toloka-Kit

Connect the Toloka-Kit library to your script.

import toloka.client as toloka

2. Instantiate TolokaClient

Replace the sample API key with your own one.

toloka_client = toloka.
TolokaClient
('PlaceYourRealApiKey_Here', 'PRODUCTION');

3. Print skill IDs, names, and private comments

Iterate through all the skills calling the get_skills() method.

for skill in toloka_client.
get_skills
():

print(skill.id, skill.name, skill.private_comment)

You should get an output with the skill IDs, names, and private comments which looks like this.

12648 Programmer Got at least 5 right responses on control tasks with C++ or Python
37825 product search relevance
56673 my skill

Complete code: Get skills

import toloka.client as toloka
toloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')
for skill in toloka_client.get_skills():
print(skill.id, skill.name, skill.private_comment)
List of classes and methods used in this recipe

See also

Last updated: February 7, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming