AsyncTolokaClient

toloka.async_client.client.AsyncTolokaClient | Source code

AsyncTolokaClient(
self,
token: str,
environment: Union[TolokaClient.Environment, str, None] = None,
retries: Union[int, Retry] = 3,
timeout: Union[float, Tuple[float, float]] = 10.0,
url: Optional[str] = None,
retry_quotas: Union[List[str], str, None] = 'MIN',
retryer_factory: Optional[Callable[[], Retry]] = None,
act_under_account_id: Optional[str] = None,
verify: Union[str, bool, SSLContext] = True
)

Class that implements interaction with Toloka API, in an asynchronous way.

All methods are wrapped as async. So all methods calls must be awaited. All arguments, same as in TolokaClient.

Methods Summary

MethodDescription
accept_assignmentAccepts an assignment.
add_message_thread_to_foldersAdds a message chain to one or more folders ("unread", "important" etc.)
aggregate_solutions_by_poolStarts aggregation of responses in all completed tasks in a pool.
aggregate_solutions_by_taskAggregates responses to a single task on the Toloka server.
archive_app_projectArchives an App project.
archive_poolArchives a pool.
archive_pool_asyncArchives a pool. Sends an asynchronous request to Toloka.
archive_projectArchives a project.
archive_project_asyncArchives a project. Sends an asynchronous request to Toloka.
archive_trainingArchives a training.
archive_training_asyncArchives a training. Sends an asynchronous request to Toloka.
clone_poolClones an existing pool.
clone_pool_asyncClones an existing pool. Sends an asynchronous request to Toloka.
clone_projectClones a project and all pools and trainings inside it.
clone_trainingClones an existing training.
clone_training_asyncClones an existing training. Sends an asynchronous request to Toloka.
close_poolCloses a pool.
close_pool_asyncCloses a pool. Sends an asynchronous request to Toloka.
close_pool_for_updateCloses a pool that is to be updated.
close_pool_for_update_asyncCloses a pool that is to be updated. Sends an asynchronous request to Toloka.
close_trainingCloses a training.
close_training_asyncCloses a training. Sends an asynchronous request to Toloka.
compose_message_threadSends a message to a Toloker.
create_app_batchCreates a batch with task items in an App project in Toloka.
create_app_itemCreates an App task item in Toloka.
create_app_itemsCreates task items in an App project in Toloka and adds them to an existing batch.
create_app_projectCreates an App project in Toloka.
create_poolCreates a new pool in Toloka.
create_projectCreates a new project in Toloka.
create_skillCreates a new Skill
create_taskCreates a new task in Toloka.
create_task_suiteCreates a task suite in Toloka.
create_task_suitesCreates several task suites in Toloka.
create_task_suites_asyncCreates several task suites in Toloka asynchronously.
create_tasksCreates several tasks in Toloka.
create_tasks_asyncCreates tasks in Toloka asynchronously.
create_trainingCreates a new training in Toloka.
create_user_bonusIssues payments directly to a Toloker.
create_user_bonusesCreates rewards for Tolokers.
create_user_bonuses_asyncIssues payments directly to Tolokers, asynchronously creates many UserBonus instances.
delete_user_restrictionUnlocks existing restriction
delete_user_skillDrop specific UserSkill
delete_webhook_subscriptionDrop specific webhook-subscription
download_attachmentDownloads specific attachment
find_aggregated_solutionsFinds aggregated responses that match certain criteria.
find_app_batchesFinds batches that match certain criteria in an App project.
find_app_itemsFinds task items that match certain criteria in an App project.
find_app_projectsFinds App projects that match certain criteria.
find_appsFinds App solutions that match certain criteria.
find_assignmentsFinds assignments that match certain criteria.
find_attachmentsFinds attachments that match certain criteria and returns their metadata.
find_message_threadsFinds message threads that match certain criteria.
find_operationsFinds operations that match certain criteria.
find_poolsFinds pools that match certain criteria.
find_projectsFinds projects that match certain criteria.
find_skillsFinds skills that match certain criteria.
find_task_suitesFinds task suites that match certain criteria.
find_tasksFinds tasks that match certain criteria.
find_trainingsFinds trainings that match certain criteria.
find_user_bonusesFinds Tolokers' rewards that match certain criteria.
find_user_restrictionsFinds Toloker restrictions that match certain criteria.
find_user_skillsFinds Toloker's skills that match certain criteria.
find_webhook_subscriptionsFinds webhook subscriptions that match certain criteria.
from_sync_clientNone
get_aggregated_solutionsFinds all aggregated responses that match certain criteria.
get_analyticsSends analytics queries, for example, to estimate the percentage of completed tasks in the pool
get_appGets information from Toloka about an App solution.
get_app_batchGets information from Toloka about a batch in an App project.
get_app_batchesFinds all batches that match certain criteria in an App project.
get_app_itemGets information from Toloka about an App task item.
get_app_itemsFinds all App task items that match certain criteria in an App project.
get_app_projectGets information from Toloka about an App project.
get_app_projectsFinds all App projects that match certain criteria.
get_appsFinds all App solutions that match certain criteria.
get_assignmentGets an assignment from Toloka.
get_assignmentsFinds all assignments that match certain criteria.
get_assignments_dfDownloads assignments as pandas.DataFrame.
get_attachmentGets attachment metadata without downloading it
get_attachmentsFinds all attachments that match certain criteria and returns their metadata.
get_message_threadsFinds all message threads that match certain criteria.
get_operationReads information about operation
get_operation_logReads information about validation errors and which task (or task suites) were created
get_operationsFinds all operations that match certain rules and returns them in an iterable object
get_poolGets pool data from Toloka.
get_poolsFinds all pools that match certain criteria.
get_projectGets project data from Toloka.
get_projectsFinds all projects that match certain criteria.
get_requesterReads information about the customer and the account balance
get_skillReads one specific skill
get_skillsFinds all skills that match certain criteria.
get_taskGets a task with specified ID from Toloka.
get_task_suiteReads one task suite.
get_task_suitesFinds all task suites that match certain criteria.
get_tasksFinds all tasks that match certain criteria.
get_trainingGets information about a training from Toloka.
get_trainingsFinds all trainings that match certain criteria.
get_userGets Toloker metadata by user_id.
get_user_bonusGets information about a Toloker's reward.
get_user_bonusesFinds all Tolokers' rewards that match certain rules and returns them in an iterable object
get_user_restrictionGets information about a Toloker restriction.
get_user_restrictionsFinds all Toloker restrictions that match certain criteria.
get_user_skillGets the value of a Toloker's skill
get_user_skillsFinds all Toloker's skills that match certain criteria.
get_webhook_subscriptionGet one specific webhook-subscription
get_webhook_subscriptionsFinds all webhook subscriptions that match certain criteria.
open_poolOpens a pool.
open_pool_asyncOpens a pool. Sends an asynchronous request to Toloka.
open_trainingOpens a training.
open_training_asyncOpens a training. Sends an asynchronous request to Toloka.
patch_app_batchUpdates an App batch name.
patch_assignmentChanges an assignment status and associated public comment.
patch_poolChanges pool parameters in Toloka.
patch_taskChanges a task overlap value.
patch_task_overlap_or_minStops assigning a task to Tolokers.
patch_task_suiteChanges task suite parameter values in Toloka.
patch_task_suite_overlap_or_minStops issuing the task suites
reject_assignmentRejects an assignment.
remove_message_thread_from_foldersDeletes a message chain from one or more folders ("unread", "important" etc.)
reply_message_threadReplies to a message in thread
resume_app_batchResumes annotation of a batch of task items in an App project.
set_user_restrictionRestricts access to projects or pools for a Toloker.
set_user_skillAssigns a skill to a Toloker.
start_app_batchLaunches annotation of a batch of task items in an App project.
stop_app_batchStops annotation of a batch of task items in an App project.
unarchive_app_projectUnarchives an App project.
update_poolUpdates all pool parameters in Toloka.
update_projectUpdates all project parameters in Toloka.
update_skillMakes changes to the skill
update_trainingUpdates parameters of a training in Toloka.
upsert_webhook_subscriptionsCreates (upsert) many webhook-subscriptions.
wait_operationAsynchronous version of wait_operation
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming