create_project

toloka.async_client.client.AsyncTolokaClient.create_project | Source code

async create_project(self, project: Project)

Creates a new project in Toloka.

You can send a maximum of 20 requests of this kind per minute and a maximum of 100 requests per day.

Parameters Description

ParametersTypeDescription
projectProject

The project to be created.

  • Returns:

    The project with updated read-only fields.

  • Return type:

    Project

Examples:

Creating a new project.

new_project = toloka.client.project.Project(
assignments_issuing_type=toloka.client.project.Project.AssignmentsIssuingType.AUTOMATED,
public_name='My best project',
public_description='Describe the picture',
public_instructions='Describe in a few words what is happening in the image.',
task_spec=toloka.client.project.task_spec.TaskSpec(
input_spec={'image': toloka.client.project.field_spec.UrlSpec()},
output_spec={'result': toloka.client.project.field_spec.StringSpec()},
view_spec=project_interface,
),
)
new_project = toloka_client.create_project(new_project)
print(new_project.id)
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming