label-studio-sdk 2.0.0__py3-none-any.whl → 2.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of label-studio-sdk might be problematic. Click here for more details.
- label_studio_sdk/__init__.py +24 -0
- label_studio_sdk/actions/client.py +13 -13
- label_studio_sdk/actions/types/actions_list_response_item.py +3 -3
- label_studio_sdk/actions/types/actions_list_response_item_dialog.py +2 -2
- label_studio_sdk/annotations/client.py +441 -441
- label_studio_sdk/base_client.py +4 -0
- label_studio_sdk/billing/__init__.py +2 -0
- label_studio_sdk/billing/client.py +112 -0
- label_studio_sdk/comments/client.py +176 -176
- label_studio_sdk/export_storage/azure/client.py +274 -274
- label_studio_sdk/export_storage/gcs/client.py +263 -263
- label_studio_sdk/export_storage/local/client.py +206 -206
- label_studio_sdk/export_storage/redis/client.py +287 -287
- label_studio_sdk/export_storage/s3/client.py +347 -347
- label_studio_sdk/export_storage/s3s/client.py +678 -678
- label_studio_sdk/import_storage/azure/client.py +357 -357
- label_studio_sdk/import_storage/gcs/client.py +357 -357
- label_studio_sdk/import_storage/local/client.py +206 -206
- label_studio_sdk/import_storage/redis/client.py +309 -309
- label_studio_sdk/import_storage/s3/client.py +452 -452
- label_studio_sdk/import_storage/s3s/client.py +735 -735
- label_studio_sdk/jwt_settings/client.py +10 -10
- label_studio_sdk/ml/client.py +118 -118
- label_studio_sdk/ml/types/ml_list_model_versions_response.py +1 -1
- label_studio_sdk/model_providers/client.py +181 -181
- label_studio_sdk/organizations/members/client.py +348 -2
- label_studio_sdk/predictions/client.py +60 -60
- label_studio_sdk/projects/__init__.py +30 -1
- label_studio_sdk/projects/assignments/__init__.py +33 -0
- label_studio_sdk/projects/assignments/client.py +764 -0
- label_studio_sdk/projects/assignments/types/__init__.py +35 -0
- label_studio_sdk/projects/assignments/types/assignments_assign_request_type.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters.py +33 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_conjunction.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item.py +44 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_filter.py +31 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_operator.py +23 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_value.py +7 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items.py +9 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_excluded.py +29 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_included.py +29 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_type.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_response.py +22 -0
- label_studio_sdk/projects/assignments/types/assignments_update_request_type.py +5 -0
- label_studio_sdk/projects/client.py +441 -425
- label_studio_sdk/projects/exports/client.py +55 -55
- label_studio_sdk/projects/exports/types/exports_convert_response.py +1 -1
- label_studio_sdk/projects/stats/types/stats_iaa_response.py +5 -5
- label_studio_sdk/projects/types/projects_import_tasks_response.py +12 -12
- label_studio_sdk/prompts/client.py +211 -211
- label_studio_sdk/prompts/runs/client.py +33 -33
- label_studio_sdk/prompts/versions/client.py +72 -72
- label_studio_sdk/tasks/client.py +174 -174
- label_studio_sdk/types/__init__.py +22 -0
- label_studio_sdk/types/all_roles_project_list.py +98 -98
- label_studio_sdk/types/annotation.py +35 -35
- label_studio_sdk/types/annotation_request.py +27 -27
- label_studio_sdk/types/azure_blob_export_storage.py +29 -29
- label_studio_sdk/types/azure_blob_import_storage.py +33 -33
- label_studio_sdk/types/batch_failed_predictions.py +1 -1
- label_studio_sdk/types/billing_checks.py +39 -0
- label_studio_sdk/types/billing_flags.py +44 -0
- label_studio_sdk/types/billing_info_response.py +22 -0
- label_studio_sdk/types/blueprint_list.py +7 -8
- label_studio_sdk/types/child_filter.py +11 -10
- label_studio_sdk/types/comment.py +15 -15
- label_studio_sdk/types/comment_request.py +7 -8
- label_studio_sdk/types/comment_serializer_with_expanded_user.py +17 -18
- label_studio_sdk/types/converted_format.py +1 -1
- label_studio_sdk/types/converted_format_request.py +1 -1
- label_studio_sdk/types/count_limit.py +22 -0
- label_studio_sdk/types/export.py +8 -8
- label_studio_sdk/types/file_upload.py +3 -2
- label_studio_sdk/types/filter.py +10 -9
- label_studio_sdk/types/filter_group.py +4 -3
- label_studio_sdk/types/gcs_export_storage.py +23 -23
- label_studio_sdk/types/gcs_import_storage.py +27 -27
- label_studio_sdk/types/import_api_request.py +26 -26
- label_studio_sdk/types/inference_run_cost_estimate.py +10 -10
- label_studio_sdk/types/local_files_export_storage.py +23 -23
- label_studio_sdk/types/local_files_import_storage.py +26 -26
- label_studio_sdk/types/lse_annotation_filter_options.py +10 -10
- label_studio_sdk/types/lse_annotation_filter_options_request.py +10 -10
- label_studio_sdk/types/lse_export_create.py +12 -12
- label_studio_sdk/types/lse_fields.py +14 -14
- label_studio_sdk/types/lse_organization.py +17 -17
- label_studio_sdk/types/lse_organization_member_list.py +32 -0
- label_studio_sdk/types/lse_project_create.py +72 -72
- label_studio_sdk/types/lse_project_update.py +89 -89
- label_studio_sdk/types/lse_s3export_storage.py +46 -46
- label_studio_sdk/types/lse_s3export_storage_request.py +43 -43
- label_studio_sdk/types/lse_s3import_storage.py +53 -53
- label_studio_sdk/types/lse_s3import_storage_request.py +49 -49
- label_studio_sdk/types/lse_task.py +49 -49
- label_studio_sdk/types/lse_task_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_filter_options.py +14 -14
- label_studio_sdk/types/lse_task_filter_options_request.py +14 -14
- label_studio_sdk/types/lse_task_predictions_item.py +5 -5
- label_studio_sdk/types/lse_task_serializer_for_annotators.py +12 -12
- label_studio_sdk/types/lse_task_serializer_for_annotators_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_serializer_for_annotators_predictions_item.py +5 -5
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +49 -49
- label_studio_sdk/types/lse_task_serializer_for_reviewers_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_serializer_for_reviewers_predictions_item.py +5 -5
- label_studio_sdk/types/lse_user.py +13 -13
- label_studio_sdk/types/lse_user_api.py +11 -11
- label_studio_sdk/types/lse_user_organization_member_list.py +48 -0
- label_studio_sdk/types/lseapi_token_create.py +1 -1
- label_studio_sdk/types/lseapi_token_list.py +1 -1
- label_studio_sdk/types/lsejwt_settings.py +5 -5
- label_studio_sdk/types/ml_backend.py +27 -28
- label_studio_sdk/types/model_interface.py +12 -12
- label_studio_sdk/types/model_interface_request.py +7 -8
- label_studio_sdk/types/model_interface_serializer_get.py +13 -13
- label_studio_sdk/types/model_provider_connection.py +34 -34
- label_studio_sdk/types/model_provider_connection_request.py +15 -14
- label_studio_sdk/types/model_run.py +12 -12
- label_studio_sdk/types/organization_billing.py +1 -1
- label_studio_sdk/types/organization_id.py +2 -2
- label_studio_sdk/types/organization_invite.py +1 -1
- label_studio_sdk/types/organization_member.py +8 -9
- label_studio_sdk/types/organization_membership.py +2 -1
- label_studio_sdk/types/paginated_lse_organization_member_list_list.py +23 -0
- label_studio_sdk/types/pause.py +23 -23
- label_studio_sdk/types/prediction.py +21 -21
- label_studio_sdk/types/prediction_request.py +16 -16
- label_studio_sdk/types/project.py +72 -72
- label_studio_sdk/types/project_import.py +21 -21
- label_studio_sdk/types/prompts_status_enum.py +16 -0
- label_studio_sdk/types/redis_export_storage.py +34 -34
- label_studio_sdk/types/redis_import_storage.py +37 -37
- label_studio_sdk/types/refined_prompt_response.py +11 -11
- label_studio_sdk/types/review_settings.py +29 -30
- label_studio_sdk/types/review_settings_request.py +29 -30
- label_studio_sdk/types/role9e7enum.py +5 -0
- label_studio_sdk/types/s3export_storage.py +45 -45
- label_studio_sdk/types/s3import_storage.py +44 -44
- label_studio_sdk/types/selected_items_request.py +1 -1
- label_studio_sdk/types/serialization_options.py +10 -10
- label_studio_sdk/types/serialization_options_request.py +10 -10
- label_studio_sdk/types/task_assignment.py +43 -0
- label_studio_sdk/types/third_party_model_version.py +11 -11
- label_studio_sdk/types/third_party_model_version_request.py +6 -7
- label_studio_sdk/types/type_enum.py +5 -0
- label_studio_sdk/types/user_simple.py +3 -3
- label_studio_sdk/types/user_simple_request.py +1 -1
- label_studio_sdk/types/version_response.py +19 -20
- label_studio_sdk/types/view.py +8 -8
- label_studio_sdk/types/webhook.py +16 -16
- label_studio_sdk/types/webhook_serializer_for_update.py +16 -16
- label_studio_sdk/types/workspace.py +10 -11
- label_studio_sdk/users/client.py +160 -160
- label_studio_sdk/views/client.py +164 -164
- label_studio_sdk/webhooks/client.py +183 -183
- label_studio_sdk/webhooks/types/webhooks_info_response.py +32 -32
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_review_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_review_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_reviews_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_deleted.py +1 -1
- label_studio_sdk/workspaces/client.py +40 -40
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/METADATA +73 -25
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/RECORD +175 -146
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/WHEEL +0 -0
label_studio_sdk/tasks/client.py
CHANGED
|
@@ -289,21 +289,21 @@ class TasksClient:
|
|
|
289
289
|
def create(
|
|
290
290
|
self,
|
|
291
291
|
*,
|
|
292
|
+
cancelled_annotations: typing.Optional[int] = OMIT,
|
|
293
|
+
comment_authors: typing.Optional[typing.Sequence[int]] = OMIT,
|
|
294
|
+
comment_count: typing.Optional[int] = OMIT,
|
|
292
295
|
data: typing.Optional[typing.Any] = OMIT,
|
|
293
|
-
|
|
296
|
+
file_upload: typing.Optional[int] = OMIT,
|
|
297
|
+
inner_id: typing.Optional[int] = OMIT,
|
|
294
298
|
is_labeled: typing.Optional[bool] = OMIT,
|
|
299
|
+
last_comment_updated_at: typing.Optional[dt.datetime] = OMIT,
|
|
300
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
295
301
|
overlap: typing.Optional[int] = OMIT,
|
|
296
|
-
|
|
302
|
+
project: typing.Optional[int] = OMIT,
|
|
297
303
|
total_annotations: typing.Optional[int] = OMIT,
|
|
298
|
-
cancelled_annotations: typing.Optional[int] = OMIT,
|
|
299
304
|
total_predictions: typing.Optional[int] = OMIT,
|
|
300
|
-
comment_count: typing.Optional[int] = OMIT,
|
|
301
305
|
unresolved_comment_count: typing.Optional[int] = OMIT,
|
|
302
|
-
last_comment_updated_at: typing.Optional[dt.datetime] = OMIT,
|
|
303
|
-
project: typing.Optional[int] = OMIT,
|
|
304
306
|
updated_by: typing.Optional[int] = OMIT,
|
|
305
|
-
file_upload: typing.Optional[int] = OMIT,
|
|
306
|
-
comment_authors: typing.Optional[typing.Sequence[int]] = OMIT,
|
|
307
307
|
request_options: typing.Optional[RequestOptions] = None,
|
|
308
308
|
) -> LseTask:
|
|
309
309
|
"""
|
|
@@ -311,49 +311,49 @@ class TasksClient:
|
|
|
311
311
|
|
|
312
312
|
Parameters
|
|
313
313
|
----------
|
|
314
|
+
cancelled_annotations : typing.Optional[int]
|
|
315
|
+
Number of total cancelled annotations for the current task
|
|
316
|
+
|
|
317
|
+
comment_authors : typing.Optional[typing.Sequence[int]]
|
|
318
|
+
Users who wrote comments
|
|
319
|
+
|
|
320
|
+
comment_count : typing.Optional[int]
|
|
321
|
+
Number of comments in the task including all annotations
|
|
322
|
+
|
|
314
323
|
data : typing.Optional[typing.Any]
|
|
315
324
|
|
|
316
|
-
|
|
325
|
+
file_upload : typing.Optional[int]
|
|
326
|
+
Uploaded file used as data source for this task
|
|
327
|
+
|
|
328
|
+
inner_id : typing.Optional[int]
|
|
329
|
+
Internal task ID in the project, starts with 1
|
|
317
330
|
|
|
318
331
|
is_labeled : typing.Optional[bool]
|
|
319
332
|
True if the number of annotations for this task is greater than or equal to the number of maximum_completions for the project
|
|
320
333
|
|
|
334
|
+
last_comment_updated_at : typing.Optional[dt.datetime]
|
|
335
|
+
When the last comment was updated
|
|
336
|
+
|
|
337
|
+
meta : typing.Optional[typing.Optional[typing.Any]]
|
|
338
|
+
|
|
321
339
|
overlap : typing.Optional[int]
|
|
322
340
|
Number of distinct annotators that processed the current task
|
|
323
341
|
|
|
324
|
-
|
|
325
|
-
|
|
342
|
+
project : typing.Optional[int]
|
|
343
|
+
Project ID for this task
|
|
326
344
|
|
|
327
345
|
total_annotations : typing.Optional[int]
|
|
328
346
|
Number of total annotations for the current task except cancelled annotations
|
|
329
347
|
|
|
330
|
-
cancelled_annotations : typing.Optional[int]
|
|
331
|
-
Number of total cancelled annotations for the current task
|
|
332
|
-
|
|
333
348
|
total_predictions : typing.Optional[int]
|
|
334
349
|
Number of total predictions for the current task
|
|
335
350
|
|
|
336
|
-
comment_count : typing.Optional[int]
|
|
337
|
-
Number of comments in the task including all annotations
|
|
338
|
-
|
|
339
351
|
unresolved_comment_count : typing.Optional[int]
|
|
340
352
|
Number of unresolved comments in the task including all annotations
|
|
341
353
|
|
|
342
|
-
last_comment_updated_at : typing.Optional[dt.datetime]
|
|
343
|
-
When the last comment was updated
|
|
344
|
-
|
|
345
|
-
project : typing.Optional[int]
|
|
346
|
-
Project ID for this task
|
|
347
|
-
|
|
348
354
|
updated_by : typing.Optional[int]
|
|
349
355
|
Last annotator or reviewer who updated this task
|
|
350
356
|
|
|
351
|
-
file_upload : typing.Optional[int]
|
|
352
|
-
Uploaded file used as data source for this task
|
|
353
|
-
|
|
354
|
-
comment_authors : typing.Optional[typing.Sequence[int]]
|
|
355
|
-
Users who wrote comments
|
|
356
|
-
|
|
357
357
|
request_options : typing.Optional[RequestOptions]
|
|
358
358
|
Request-specific configuration.
|
|
359
359
|
|
|
@@ -377,21 +377,21 @@ class TasksClient:
|
|
|
377
377
|
"api/tasks/",
|
|
378
378
|
method="POST",
|
|
379
379
|
json={
|
|
380
|
+
"cancelled_annotations": cancelled_annotations,
|
|
381
|
+
"comment_authors": comment_authors,
|
|
382
|
+
"comment_count": comment_count,
|
|
380
383
|
"data": data,
|
|
381
|
-
"
|
|
384
|
+
"file_upload": file_upload,
|
|
385
|
+
"inner_id": inner_id,
|
|
382
386
|
"is_labeled": is_labeled,
|
|
387
|
+
"last_comment_updated_at": last_comment_updated_at,
|
|
388
|
+
"meta": meta,
|
|
383
389
|
"overlap": overlap,
|
|
384
|
-
"
|
|
390
|
+
"project": project,
|
|
385
391
|
"total_annotations": total_annotations,
|
|
386
|
-
"cancelled_annotations": cancelled_annotations,
|
|
387
392
|
"total_predictions": total_predictions,
|
|
388
|
-
"comment_count": comment_count,
|
|
389
393
|
"unresolved_comment_count": unresolved_comment_count,
|
|
390
|
-
"last_comment_updated_at": last_comment_updated_at,
|
|
391
|
-
"project": project,
|
|
392
394
|
"updated_by": updated_by,
|
|
393
|
-
"file_upload": file_upload,
|
|
394
|
-
"comment_authors": comment_authors,
|
|
395
395
|
},
|
|
396
396
|
headers={
|
|
397
397
|
"content-type": "application/json",
|
|
@@ -504,26 +504,26 @@ class TasksClient:
|
|
|
504
504
|
self,
|
|
505
505
|
id: str,
|
|
506
506
|
*,
|
|
507
|
-
|
|
507
|
+
avg_lead_time: typing.Optional[float] = OMIT,
|
|
508
508
|
cancelled_annotations: typing.Optional[int] = OMIT,
|
|
509
|
-
|
|
510
|
-
total_predictions: typing.Optional[int] = OMIT,
|
|
509
|
+
comment_count: typing.Optional[int] = OMIT,
|
|
511
510
|
completed_at: typing.Optional[dt.datetime] = OMIT,
|
|
512
|
-
|
|
513
|
-
avg_lead_time: typing.Optional[float] = OMIT,
|
|
511
|
+
data: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
514
512
|
draft_exists: typing.Optional[bool] = OMIT,
|
|
515
|
-
reviewed: typing.Optional[bool] = OMIT,
|
|
516
|
-
reviews_accepted: typing.Optional[int] = OMIT,
|
|
517
|
-
reviews_rejected: typing.Optional[int] = OMIT,
|
|
518
513
|
ground_truth: typing.Optional[bool] = OMIT,
|
|
519
|
-
|
|
520
|
-
meta: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
514
|
+
inner_id: typing.Optional[int] = OMIT,
|
|
521
515
|
is_labeled: typing.Optional[bool] = OMIT,
|
|
522
|
-
overlap: typing.Optional[int] = OMIT,
|
|
523
|
-
comment_count: typing.Optional[int] = OMIT,
|
|
524
|
-
unresolved_comment_count: typing.Optional[int] = OMIT,
|
|
525
516
|
last_comment_updated_at: typing.Optional[dt.datetime] = OMIT,
|
|
517
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
518
|
+
overlap: typing.Optional[int] = OMIT,
|
|
519
|
+
predictions_score: typing.Optional[float] = OMIT,
|
|
526
520
|
project: typing.Optional[int] = OMIT,
|
|
521
|
+
reviewed: typing.Optional[bool] = OMIT,
|
|
522
|
+
reviews_accepted: typing.Optional[int] = OMIT,
|
|
523
|
+
reviews_rejected: typing.Optional[int] = OMIT,
|
|
524
|
+
total_annotations: typing.Optional[int] = OMIT,
|
|
525
|
+
total_predictions: typing.Optional[int] = OMIT,
|
|
526
|
+
unresolved_comment_count: typing.Optional[int] = OMIT,
|
|
527
527
|
request_options: typing.Optional[RequestOptions] = None,
|
|
528
528
|
) -> RoleBasedTask:
|
|
529
529
|
"""
|
|
@@ -534,52 +534,52 @@ class TasksClient:
|
|
|
534
534
|
id : str
|
|
535
535
|
Task ID
|
|
536
536
|
|
|
537
|
-
|
|
537
|
+
avg_lead_time : typing.Optional[float]
|
|
538
538
|
|
|
539
539
|
cancelled_annotations : typing.Optional[int]
|
|
540
540
|
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
total_predictions : typing.Optional[int]
|
|
541
|
+
comment_count : typing.Optional[int]
|
|
542
|
+
Number of comments in the task including all annotations
|
|
544
543
|
|
|
545
544
|
completed_at : typing.Optional[dt.datetime]
|
|
546
545
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
avg_lead_time : typing.Optional[float]
|
|
546
|
+
data : typing.Optional[typing.Optional[typing.Any]]
|
|
550
547
|
|
|
551
548
|
draft_exists : typing.Optional[bool]
|
|
552
549
|
|
|
553
|
-
reviewed : typing.Optional[bool]
|
|
554
|
-
|
|
555
|
-
reviews_accepted : typing.Optional[int]
|
|
556
|
-
|
|
557
|
-
reviews_rejected : typing.Optional[int]
|
|
558
|
-
|
|
559
550
|
ground_truth : typing.Optional[bool]
|
|
560
551
|
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
meta : typing.Optional[typing.Optional[typing.Any]]
|
|
552
|
+
inner_id : typing.Optional[int]
|
|
564
553
|
|
|
565
554
|
is_labeled : typing.Optional[bool]
|
|
566
555
|
True if the number of annotations for this task is greater than or equal to the number of maximum_completions for the project
|
|
567
556
|
|
|
568
|
-
|
|
569
|
-
|
|
557
|
+
last_comment_updated_at : typing.Optional[dt.datetime]
|
|
558
|
+
When the last comment was updated
|
|
570
559
|
|
|
571
|
-
|
|
572
|
-
Number of comments in the task including all annotations
|
|
560
|
+
meta : typing.Optional[typing.Optional[typing.Any]]
|
|
573
561
|
|
|
574
|
-
|
|
575
|
-
Number of
|
|
562
|
+
overlap : typing.Optional[int]
|
|
563
|
+
Number of distinct annotators that processed the current task
|
|
576
564
|
|
|
577
|
-
|
|
578
|
-
When the last comment was updated
|
|
565
|
+
predictions_score : typing.Optional[float]
|
|
579
566
|
|
|
580
567
|
project : typing.Optional[int]
|
|
581
568
|
Project ID for this task
|
|
582
569
|
|
|
570
|
+
reviewed : typing.Optional[bool]
|
|
571
|
+
|
|
572
|
+
reviews_accepted : typing.Optional[int]
|
|
573
|
+
|
|
574
|
+
reviews_rejected : typing.Optional[int]
|
|
575
|
+
|
|
576
|
+
total_annotations : typing.Optional[int]
|
|
577
|
+
|
|
578
|
+
total_predictions : typing.Optional[int]
|
|
579
|
+
|
|
580
|
+
unresolved_comment_count : typing.Optional[int]
|
|
581
|
+
Number of unresolved comments in the task including all annotations
|
|
582
|
+
|
|
583
583
|
request_options : typing.Optional[RequestOptions]
|
|
584
584
|
Request-specific configuration.
|
|
585
585
|
|
|
@@ -603,26 +603,26 @@ class TasksClient:
|
|
|
603
603
|
f"api/tasks/{jsonable_encoder(id)}/",
|
|
604
604
|
method="PATCH",
|
|
605
605
|
json={
|
|
606
|
-
"
|
|
606
|
+
"avg_lead_time": avg_lead_time,
|
|
607
607
|
"cancelled_annotations": cancelled_annotations,
|
|
608
|
-
"
|
|
609
|
-
"total_predictions": total_predictions,
|
|
608
|
+
"comment_count": comment_count,
|
|
610
609
|
"completed_at": completed_at,
|
|
611
|
-
"
|
|
612
|
-
"avg_lead_time": avg_lead_time,
|
|
610
|
+
"data": data,
|
|
613
611
|
"draft_exists": draft_exists,
|
|
614
|
-
"reviewed": reviewed,
|
|
615
|
-
"reviews_accepted": reviews_accepted,
|
|
616
|
-
"reviews_rejected": reviews_rejected,
|
|
617
612
|
"ground_truth": ground_truth,
|
|
618
|
-
"
|
|
619
|
-
"meta": meta,
|
|
613
|
+
"inner_id": inner_id,
|
|
620
614
|
"is_labeled": is_labeled,
|
|
621
|
-
"overlap": overlap,
|
|
622
|
-
"comment_count": comment_count,
|
|
623
|
-
"unresolved_comment_count": unresolved_comment_count,
|
|
624
615
|
"last_comment_updated_at": last_comment_updated_at,
|
|
616
|
+
"meta": meta,
|
|
617
|
+
"overlap": overlap,
|
|
618
|
+
"predictions_score": predictions_score,
|
|
625
619
|
"project": project,
|
|
620
|
+
"reviewed": reviewed,
|
|
621
|
+
"reviews_accepted": reviews_accepted,
|
|
622
|
+
"reviews_rejected": reviews_rejected,
|
|
623
|
+
"total_annotations": total_annotations,
|
|
624
|
+
"total_predictions": total_predictions,
|
|
625
|
+
"unresolved_comment_count": unresolved_comment_count,
|
|
626
626
|
},
|
|
627
627
|
headers={
|
|
628
628
|
"content-type": "application/json",
|
|
@@ -934,21 +934,21 @@ class AsyncTasksClient:
|
|
|
934
934
|
async def create(
|
|
935
935
|
self,
|
|
936
936
|
*,
|
|
937
|
+
cancelled_annotations: typing.Optional[int] = OMIT,
|
|
938
|
+
comment_authors: typing.Optional[typing.Sequence[int]] = OMIT,
|
|
939
|
+
comment_count: typing.Optional[int] = OMIT,
|
|
937
940
|
data: typing.Optional[typing.Any] = OMIT,
|
|
938
|
-
|
|
941
|
+
file_upload: typing.Optional[int] = OMIT,
|
|
942
|
+
inner_id: typing.Optional[int] = OMIT,
|
|
939
943
|
is_labeled: typing.Optional[bool] = OMIT,
|
|
944
|
+
last_comment_updated_at: typing.Optional[dt.datetime] = OMIT,
|
|
945
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
940
946
|
overlap: typing.Optional[int] = OMIT,
|
|
941
|
-
|
|
947
|
+
project: typing.Optional[int] = OMIT,
|
|
942
948
|
total_annotations: typing.Optional[int] = OMIT,
|
|
943
|
-
cancelled_annotations: typing.Optional[int] = OMIT,
|
|
944
949
|
total_predictions: typing.Optional[int] = OMIT,
|
|
945
|
-
comment_count: typing.Optional[int] = OMIT,
|
|
946
950
|
unresolved_comment_count: typing.Optional[int] = OMIT,
|
|
947
|
-
last_comment_updated_at: typing.Optional[dt.datetime] = OMIT,
|
|
948
|
-
project: typing.Optional[int] = OMIT,
|
|
949
951
|
updated_by: typing.Optional[int] = OMIT,
|
|
950
|
-
file_upload: typing.Optional[int] = OMIT,
|
|
951
|
-
comment_authors: typing.Optional[typing.Sequence[int]] = OMIT,
|
|
952
952
|
request_options: typing.Optional[RequestOptions] = None,
|
|
953
953
|
) -> LseTask:
|
|
954
954
|
"""
|
|
@@ -956,49 +956,49 @@ class AsyncTasksClient:
|
|
|
956
956
|
|
|
957
957
|
Parameters
|
|
958
958
|
----------
|
|
959
|
+
cancelled_annotations : typing.Optional[int]
|
|
960
|
+
Number of total cancelled annotations for the current task
|
|
961
|
+
|
|
962
|
+
comment_authors : typing.Optional[typing.Sequence[int]]
|
|
963
|
+
Users who wrote comments
|
|
964
|
+
|
|
965
|
+
comment_count : typing.Optional[int]
|
|
966
|
+
Number of comments in the task including all annotations
|
|
967
|
+
|
|
959
968
|
data : typing.Optional[typing.Any]
|
|
960
969
|
|
|
961
|
-
|
|
970
|
+
file_upload : typing.Optional[int]
|
|
971
|
+
Uploaded file used as data source for this task
|
|
972
|
+
|
|
973
|
+
inner_id : typing.Optional[int]
|
|
974
|
+
Internal task ID in the project, starts with 1
|
|
962
975
|
|
|
963
976
|
is_labeled : typing.Optional[bool]
|
|
964
977
|
True if the number of annotations for this task is greater than or equal to the number of maximum_completions for the project
|
|
965
978
|
|
|
979
|
+
last_comment_updated_at : typing.Optional[dt.datetime]
|
|
980
|
+
When the last comment was updated
|
|
981
|
+
|
|
982
|
+
meta : typing.Optional[typing.Optional[typing.Any]]
|
|
983
|
+
|
|
966
984
|
overlap : typing.Optional[int]
|
|
967
985
|
Number of distinct annotators that processed the current task
|
|
968
986
|
|
|
969
|
-
|
|
970
|
-
|
|
987
|
+
project : typing.Optional[int]
|
|
988
|
+
Project ID for this task
|
|
971
989
|
|
|
972
990
|
total_annotations : typing.Optional[int]
|
|
973
991
|
Number of total annotations for the current task except cancelled annotations
|
|
974
992
|
|
|
975
|
-
cancelled_annotations : typing.Optional[int]
|
|
976
|
-
Number of total cancelled annotations for the current task
|
|
977
|
-
|
|
978
993
|
total_predictions : typing.Optional[int]
|
|
979
994
|
Number of total predictions for the current task
|
|
980
995
|
|
|
981
|
-
comment_count : typing.Optional[int]
|
|
982
|
-
Number of comments in the task including all annotations
|
|
983
|
-
|
|
984
996
|
unresolved_comment_count : typing.Optional[int]
|
|
985
997
|
Number of unresolved comments in the task including all annotations
|
|
986
998
|
|
|
987
|
-
last_comment_updated_at : typing.Optional[dt.datetime]
|
|
988
|
-
When the last comment was updated
|
|
989
|
-
|
|
990
|
-
project : typing.Optional[int]
|
|
991
|
-
Project ID for this task
|
|
992
|
-
|
|
993
999
|
updated_by : typing.Optional[int]
|
|
994
1000
|
Last annotator or reviewer who updated this task
|
|
995
1001
|
|
|
996
|
-
file_upload : typing.Optional[int]
|
|
997
|
-
Uploaded file used as data source for this task
|
|
998
|
-
|
|
999
|
-
comment_authors : typing.Optional[typing.Sequence[int]]
|
|
1000
|
-
Users who wrote comments
|
|
1001
|
-
|
|
1002
1002
|
request_options : typing.Optional[RequestOptions]
|
|
1003
1003
|
Request-specific configuration.
|
|
1004
1004
|
|
|
@@ -1030,21 +1030,21 @@ class AsyncTasksClient:
|
|
|
1030
1030
|
"api/tasks/",
|
|
1031
1031
|
method="POST",
|
|
1032
1032
|
json={
|
|
1033
|
+
"cancelled_annotations": cancelled_annotations,
|
|
1034
|
+
"comment_authors": comment_authors,
|
|
1035
|
+
"comment_count": comment_count,
|
|
1033
1036
|
"data": data,
|
|
1034
|
-
"
|
|
1037
|
+
"file_upload": file_upload,
|
|
1038
|
+
"inner_id": inner_id,
|
|
1035
1039
|
"is_labeled": is_labeled,
|
|
1040
|
+
"last_comment_updated_at": last_comment_updated_at,
|
|
1041
|
+
"meta": meta,
|
|
1036
1042
|
"overlap": overlap,
|
|
1037
|
-
"
|
|
1043
|
+
"project": project,
|
|
1038
1044
|
"total_annotations": total_annotations,
|
|
1039
|
-
"cancelled_annotations": cancelled_annotations,
|
|
1040
1045
|
"total_predictions": total_predictions,
|
|
1041
|
-
"comment_count": comment_count,
|
|
1042
1046
|
"unresolved_comment_count": unresolved_comment_count,
|
|
1043
|
-
"last_comment_updated_at": last_comment_updated_at,
|
|
1044
|
-
"project": project,
|
|
1045
1047
|
"updated_by": updated_by,
|
|
1046
|
-
"file_upload": file_upload,
|
|
1047
|
-
"comment_authors": comment_authors,
|
|
1048
1048
|
},
|
|
1049
1049
|
headers={
|
|
1050
1050
|
"content-type": "application/json",
|
|
@@ -1173,26 +1173,26 @@ class AsyncTasksClient:
|
|
|
1173
1173
|
self,
|
|
1174
1174
|
id: str,
|
|
1175
1175
|
*,
|
|
1176
|
-
|
|
1176
|
+
avg_lead_time: typing.Optional[float] = OMIT,
|
|
1177
1177
|
cancelled_annotations: typing.Optional[int] = OMIT,
|
|
1178
|
-
|
|
1179
|
-
total_predictions: typing.Optional[int] = OMIT,
|
|
1178
|
+
comment_count: typing.Optional[int] = OMIT,
|
|
1180
1179
|
completed_at: typing.Optional[dt.datetime] = OMIT,
|
|
1181
|
-
|
|
1182
|
-
avg_lead_time: typing.Optional[float] = OMIT,
|
|
1180
|
+
data: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
1183
1181
|
draft_exists: typing.Optional[bool] = OMIT,
|
|
1184
|
-
reviewed: typing.Optional[bool] = OMIT,
|
|
1185
|
-
reviews_accepted: typing.Optional[int] = OMIT,
|
|
1186
|
-
reviews_rejected: typing.Optional[int] = OMIT,
|
|
1187
1182
|
ground_truth: typing.Optional[bool] = OMIT,
|
|
1188
|
-
|
|
1189
|
-
meta: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
1183
|
+
inner_id: typing.Optional[int] = OMIT,
|
|
1190
1184
|
is_labeled: typing.Optional[bool] = OMIT,
|
|
1191
|
-
overlap: typing.Optional[int] = OMIT,
|
|
1192
|
-
comment_count: typing.Optional[int] = OMIT,
|
|
1193
|
-
unresolved_comment_count: typing.Optional[int] = OMIT,
|
|
1194
1185
|
last_comment_updated_at: typing.Optional[dt.datetime] = OMIT,
|
|
1186
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
1187
|
+
overlap: typing.Optional[int] = OMIT,
|
|
1188
|
+
predictions_score: typing.Optional[float] = OMIT,
|
|
1195
1189
|
project: typing.Optional[int] = OMIT,
|
|
1190
|
+
reviewed: typing.Optional[bool] = OMIT,
|
|
1191
|
+
reviews_accepted: typing.Optional[int] = OMIT,
|
|
1192
|
+
reviews_rejected: typing.Optional[int] = OMIT,
|
|
1193
|
+
total_annotations: typing.Optional[int] = OMIT,
|
|
1194
|
+
total_predictions: typing.Optional[int] = OMIT,
|
|
1195
|
+
unresolved_comment_count: typing.Optional[int] = OMIT,
|
|
1196
1196
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1197
1197
|
) -> RoleBasedTask:
|
|
1198
1198
|
"""
|
|
@@ -1203,52 +1203,52 @@ class AsyncTasksClient:
|
|
|
1203
1203
|
id : str
|
|
1204
1204
|
Task ID
|
|
1205
1205
|
|
|
1206
|
-
|
|
1206
|
+
avg_lead_time : typing.Optional[float]
|
|
1207
1207
|
|
|
1208
1208
|
cancelled_annotations : typing.Optional[int]
|
|
1209
1209
|
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
total_predictions : typing.Optional[int]
|
|
1210
|
+
comment_count : typing.Optional[int]
|
|
1211
|
+
Number of comments in the task including all annotations
|
|
1213
1212
|
|
|
1214
1213
|
completed_at : typing.Optional[dt.datetime]
|
|
1215
1214
|
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
avg_lead_time : typing.Optional[float]
|
|
1215
|
+
data : typing.Optional[typing.Optional[typing.Any]]
|
|
1219
1216
|
|
|
1220
1217
|
draft_exists : typing.Optional[bool]
|
|
1221
1218
|
|
|
1222
|
-
reviewed : typing.Optional[bool]
|
|
1223
|
-
|
|
1224
|
-
reviews_accepted : typing.Optional[int]
|
|
1225
|
-
|
|
1226
|
-
reviews_rejected : typing.Optional[int]
|
|
1227
|
-
|
|
1228
1219
|
ground_truth : typing.Optional[bool]
|
|
1229
1220
|
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
meta : typing.Optional[typing.Optional[typing.Any]]
|
|
1221
|
+
inner_id : typing.Optional[int]
|
|
1233
1222
|
|
|
1234
1223
|
is_labeled : typing.Optional[bool]
|
|
1235
1224
|
True if the number of annotations for this task is greater than or equal to the number of maximum_completions for the project
|
|
1236
1225
|
|
|
1237
|
-
|
|
1238
|
-
|
|
1226
|
+
last_comment_updated_at : typing.Optional[dt.datetime]
|
|
1227
|
+
When the last comment was updated
|
|
1239
1228
|
|
|
1240
|
-
|
|
1241
|
-
Number of comments in the task including all annotations
|
|
1229
|
+
meta : typing.Optional[typing.Optional[typing.Any]]
|
|
1242
1230
|
|
|
1243
|
-
|
|
1244
|
-
Number of
|
|
1231
|
+
overlap : typing.Optional[int]
|
|
1232
|
+
Number of distinct annotators that processed the current task
|
|
1245
1233
|
|
|
1246
|
-
|
|
1247
|
-
When the last comment was updated
|
|
1234
|
+
predictions_score : typing.Optional[float]
|
|
1248
1235
|
|
|
1249
1236
|
project : typing.Optional[int]
|
|
1250
1237
|
Project ID for this task
|
|
1251
1238
|
|
|
1239
|
+
reviewed : typing.Optional[bool]
|
|
1240
|
+
|
|
1241
|
+
reviews_accepted : typing.Optional[int]
|
|
1242
|
+
|
|
1243
|
+
reviews_rejected : typing.Optional[int]
|
|
1244
|
+
|
|
1245
|
+
total_annotations : typing.Optional[int]
|
|
1246
|
+
|
|
1247
|
+
total_predictions : typing.Optional[int]
|
|
1248
|
+
|
|
1249
|
+
unresolved_comment_count : typing.Optional[int]
|
|
1250
|
+
Number of unresolved comments in the task including all annotations
|
|
1251
|
+
|
|
1252
1252
|
request_options : typing.Optional[RequestOptions]
|
|
1253
1253
|
Request-specific configuration.
|
|
1254
1254
|
|
|
@@ -1280,26 +1280,26 @@ class AsyncTasksClient:
|
|
|
1280
1280
|
f"api/tasks/{jsonable_encoder(id)}/",
|
|
1281
1281
|
method="PATCH",
|
|
1282
1282
|
json={
|
|
1283
|
-
"
|
|
1283
|
+
"avg_lead_time": avg_lead_time,
|
|
1284
1284
|
"cancelled_annotations": cancelled_annotations,
|
|
1285
|
-
"
|
|
1286
|
-
"total_predictions": total_predictions,
|
|
1285
|
+
"comment_count": comment_count,
|
|
1287
1286
|
"completed_at": completed_at,
|
|
1288
|
-
"
|
|
1289
|
-
"avg_lead_time": avg_lead_time,
|
|
1287
|
+
"data": data,
|
|
1290
1288
|
"draft_exists": draft_exists,
|
|
1291
|
-
"reviewed": reviewed,
|
|
1292
|
-
"reviews_accepted": reviews_accepted,
|
|
1293
|
-
"reviews_rejected": reviews_rejected,
|
|
1294
1289
|
"ground_truth": ground_truth,
|
|
1295
|
-
"
|
|
1296
|
-
"meta": meta,
|
|
1290
|
+
"inner_id": inner_id,
|
|
1297
1291
|
"is_labeled": is_labeled,
|
|
1298
|
-
"overlap": overlap,
|
|
1299
|
-
"comment_count": comment_count,
|
|
1300
|
-
"unresolved_comment_count": unresolved_comment_count,
|
|
1301
1292
|
"last_comment_updated_at": last_comment_updated_at,
|
|
1293
|
+
"meta": meta,
|
|
1294
|
+
"overlap": overlap,
|
|
1295
|
+
"predictions_score": predictions_score,
|
|
1302
1296
|
"project": project,
|
|
1297
|
+
"reviewed": reviewed,
|
|
1298
|
+
"reviews_accepted": reviews_accepted,
|
|
1299
|
+
"reviews_rejected": reviews_rejected,
|
|
1300
|
+
"total_annotations": total_annotations,
|
|
1301
|
+
"total_predictions": total_predictions,
|
|
1302
|
+
"unresolved_comment_count": unresolved_comment_count,
|
|
1303
1303
|
},
|
|
1304
1304
|
headers={
|
|
1305
1305
|
"content-type": "application/json",
|