Create skill

Create a skill that you can assign to Tolokers.

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. Create skill

Create a skill specifying:

  • the skill public visibility
  • the skill short name for you to distinguish it from other skills
  • the skill name visible to Tolokers in the selected languages
  • the skill description for other Tolokers in the selected languages

You can choose your own values or have your own set of the skill parameters. Refer to the Skill class page for more details.

new_skill = toloka_client.
create_skill
(

hidden=False,

name='Programmer',
public_name={'EN': 'Programmer'},
public_requester_description={
'EN': 'You are an expert in programming languages'
}
)

4. Print created skill ID

The create_skill() request will return the Skill class object. You can use its attributes to print the information you need.

print(new_skill.id)

You should get an output with the created skill ID which looks like this.

12648

Complete code: Create skill

import toloka.client as toloka
toloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')
new_skill = toloka_client.create_skill(
hidden=False,
name='Programmer',
public_name={'EN': 'Programmer'},
public_requester_description={
'EN': 'You are an expert in programming languages'
}
)
print(new_skill.id)
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