label-studio-sdk 2.0.1__py3-none-any.whl → 2.0.3__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 +20 -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/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 +8 -8
- label_studio_sdk/predictions/client.py +60 -60
- label_studio_sdk/projects/__init__.py +33 -1
- label_studio_sdk/projects/assignments/__init__.py +35 -0
- label_studio_sdk/projects/assignments/client.py +801 -0
- label_studio_sdk/projects/assignments/types/__init__.py +37 -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_delete_request_type.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_update_request_type.py +5 -0
- label_studio_sdk/projects/client.py +445 -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/members/__init__.py +2 -0
- label_studio_sdk/projects/members/client.py +137 -0
- 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/sso/__init__.py +5 -0
- label_studio_sdk/sso/client.py +22 -0
- label_studio_sdk/sso/saml/__init__.py +2 -0
- label_studio_sdk/sso/saml/client.py +278 -0
- label_studio_sdk/sso/scim/__init__.py +2 -0
- label_studio_sdk/sso/scim/client.py +278 -0
- label_studio_sdk/tasks/client.py +174 -174
- label_studio_sdk/types/__init__.py +18 -0
- label_studio_sdk/types/all_roles_project_list.py +94 -94
- 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 +14 -14
- label_studio_sdk/types/billing_flags.py +16 -16
- 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/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 +1 -1
- 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 +13 -13
- 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/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_group.py +22 -0
- label_studio_sdk/types/project_group_request.py +22 -0
- label_studio_sdk/types/project_group_role_enum.py +5 -0
- label_studio_sdk/types/project_import.py +21 -21
- 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/s3export_storage.py +45 -45
- label_studio_sdk/types/s3import_storage.py +44 -44
- label_studio_sdk/types/saml_settings.py +21 -0
- label_studio_sdk/types/saml_settings_update.py +22 -0
- label_studio_sdk/types/scim_settings.py +21 -0
- label_studio_sdk/types/scim_settings_update.py +22 -0
- 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.1.dist-info → label_studio_sdk-2.0.3.dist-info}/METADATA +1 -1
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.3.dist-info}/RECORD +184 -150
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.3.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.3.dist-info}/WHEEL +0 -0
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
+
from .assignment_settings import AssignmentSettings
|
|
6
|
+
from .blueprint_list import BlueprintList
|
|
5
7
|
import pydantic
|
|
8
|
+
import datetime as dt
|
|
6
9
|
from .user_simple import UserSimple
|
|
7
|
-
from .
|
|
10
|
+
from .review_settings import ReviewSettings
|
|
8
11
|
from .all_roles_project_list_sampling import AllRolesProjectListSampling
|
|
9
|
-
import datetime as dt
|
|
10
12
|
from .all_roles_project_list_skip_queue import AllRolesProjectListSkipQueue
|
|
11
|
-
from .blueprint_list import BlueprintList
|
|
12
|
-
from .review_settings import ReviewSettings
|
|
13
13
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
14
14
|
|
|
15
15
|
|
|
@@ -19,134 +19,132 @@ class AllRolesProjectList(UncheckedBaseModel):
|
|
|
19
19
|
make sure, that you use correct one(Project.objects.with_counts())
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
allow_stream: str
|
|
23
|
+
annotation_limit_count: typing.Optional[int] = None
|
|
24
|
+
annotation_limit_percent: typing.Optional[str] = None
|
|
25
|
+
annotator_evaluation_minimum_score: typing.Optional[str] = None
|
|
26
|
+
annotator_evaluation_minimum_tasks: typing.Optional[int] = None
|
|
27
|
+
assignment_settings: AssignmentSettings
|
|
28
|
+
blueprints: typing.List[BlueprintList]
|
|
29
|
+
color: typing.Optional[str] = None
|
|
30
|
+
comment_classification_config: typing.Optional[str] = None
|
|
31
|
+
config_has_control_tags: bool = pydantic.Field()
|
|
25
32
|
"""
|
|
26
|
-
|
|
33
|
+
Flag to detect is project ready for labeling
|
|
27
34
|
"""
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
config_suitable_for_bulk_annotation: bool = pydantic.Field()
|
|
30
37
|
"""
|
|
31
|
-
|
|
38
|
+
Flag to detect is project ready for bulk annotation
|
|
32
39
|
"""
|
|
33
40
|
|
|
34
|
-
duplication_status: typing.Optional[str] = None
|
|
35
41
|
control_weights: typing.Optional[typing.Optional[typing.Any]] = None
|
|
36
|
-
|
|
37
|
-
finished_task_number: int
|
|
38
|
-
show_skip_button: typing.Optional[bool] = pydantic.Field(default=None)
|
|
39
|
-
"""
|
|
40
|
-
Show a skip button in interface and allow annotators to skip the task
|
|
41
|
-
"""
|
|
42
|
-
|
|
42
|
+
created_at: dt.datetime
|
|
43
43
|
created_by: typing.Optional[UserSimple] = pydantic.Field(default=None)
|
|
44
44
|
"""
|
|
45
45
|
Project owner
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
model_version: typing.Optional[str] = pydantic.Field(default=None)
|
|
48
|
+
custom_script: typing.Optional[str] = None
|
|
49
|
+
custom_task_lock_ttl: typing.Optional[int] = pydantic.Field(default=None)
|
|
51
50
|
"""
|
|
52
|
-
|
|
51
|
+
TTL in seconds for task reservations, on new and existing tasks
|
|
53
52
|
"""
|
|
54
53
|
|
|
55
54
|
data_types: typing.Optional[typing.Any] = None
|
|
55
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
56
|
+
"""
|
|
57
|
+
Project description
|
|
58
|
+
"""
|
|
59
|
+
|
|
56
60
|
description_short: str
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
duplication_done: typing.Optional[bool] = None
|
|
62
|
+
duplication_status: typing.Optional[str] = None
|
|
63
|
+
enable_empty_annotation: typing.Optional[bool] = pydantic.Field(default=None)
|
|
60
64
|
"""
|
|
61
|
-
|
|
65
|
+
Allow annotators to submit empty annotations
|
|
62
66
|
"""
|
|
63
67
|
|
|
64
|
-
|
|
65
|
-
useful_annotation_number: str
|
|
66
|
-
custom_script: typing.Optional[str] = None
|
|
67
|
-
reviewer_queue_total: str
|
|
68
|
-
start_training_on_annotation_update: bool = pydantic.Field()
|
|
68
|
+
evaluate_predictions_automatically: typing.Optional[bool] = pydantic.Field(default=None)
|
|
69
69
|
"""
|
|
70
|
-
|
|
70
|
+
Retrieve and display predictions when loading a task
|
|
71
71
|
"""
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
custom_task_lock_ttl: typing.Optional[int] = pydantic.Field(default=None)
|
|
73
|
+
expert_instruction: typing.Optional[str] = pydantic.Field(default=None)
|
|
75
74
|
"""
|
|
76
|
-
|
|
75
|
+
Labeling instructions in HTML format
|
|
77
76
|
"""
|
|
78
77
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
reveal_preannotations_interactively: typing.Optional[bool] = pydantic.Field(default=None)
|
|
78
|
+
finished_task_number: int
|
|
79
|
+
ground_truth_number: int = pydantic.Field()
|
|
82
80
|
"""
|
|
83
|
-
|
|
81
|
+
Honeypot annotation number in project
|
|
84
82
|
"""
|
|
85
83
|
|
|
86
|
-
id: int
|
|
87
84
|
has_blueprints: str
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
members_count: str
|
|
91
|
-
maximum_annotations: typing.Optional[int] = pydantic.Field(default=None)
|
|
85
|
+
id: int
|
|
86
|
+
is_draft: typing.Optional[bool] = pydantic.Field(default=None)
|
|
92
87
|
"""
|
|
93
|
-
|
|
88
|
+
Whether or not the project is in the middle of being created
|
|
94
89
|
"""
|
|
95
90
|
|
|
96
|
-
|
|
97
|
-
prompts: str
|
|
98
|
-
created_at: dt.datetime
|
|
99
|
-
ready: str
|
|
100
|
-
annotator_evaluation_minimum_tasks: typing.Optional[int] = None
|
|
101
|
-
config_suitable_for_bulk_annotation: bool = pydantic.Field()
|
|
91
|
+
is_published: typing.Optional[bool] = pydantic.Field(default=None)
|
|
102
92
|
"""
|
|
103
|
-
|
|
93
|
+
Whether or not the project is published to annotators
|
|
104
94
|
"""
|
|
105
95
|
|
|
106
|
-
|
|
107
|
-
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
96
|
+
label_config: typing.Optional[str] = pydantic.Field(default=None)
|
|
108
97
|
"""
|
|
109
|
-
|
|
98
|
+
Label config in XML format. See more about it in documentation
|
|
110
99
|
"""
|
|
111
100
|
|
|
112
|
-
|
|
113
|
-
queue_total: str
|
|
114
|
-
organization: typing.Optional[int] = None
|
|
115
|
-
duplication_done: typing.Optional[bool] = None
|
|
116
|
-
ground_truth_number: int = pydantic.Field()
|
|
101
|
+
maximum_annotations: typing.Optional[int] = pydantic.Field(default=None)
|
|
117
102
|
"""
|
|
118
|
-
|
|
103
|
+
Maximum number of annotations for one task. If the number of annotations per task is equal or greater to this value, the task is completed (is_labeled=True)
|
|
119
104
|
"""
|
|
120
105
|
|
|
121
|
-
|
|
122
|
-
|
|
106
|
+
members: str
|
|
107
|
+
members_count: int
|
|
108
|
+
min_annotations_to_start_training: typing.Optional[int] = pydantic.Field(default=None)
|
|
123
109
|
"""
|
|
124
|
-
|
|
110
|
+
Minimum number of completed tasks after which model training is started
|
|
125
111
|
"""
|
|
126
112
|
|
|
127
|
-
|
|
128
|
-
color: typing.Optional[str] = None
|
|
129
|
-
review_settings: ReviewSettings
|
|
130
|
-
pinned_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
113
|
+
model_version: typing.Optional[str] = pydantic.Field(default=None)
|
|
131
114
|
"""
|
|
132
|
-
|
|
115
|
+
Machine learning model version
|
|
133
116
|
"""
|
|
134
117
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
118
|
+
num_tasks_with_annotations: str
|
|
119
|
+
organization: typing.Optional[int] = None
|
|
120
|
+
overlap_cohort_percentage: typing.Optional[int] = None
|
|
121
|
+
parsed_label_config: typing.Optional[typing.Any] = None
|
|
122
|
+
pause_on_failed_annotator_evaluation: typing.Optional[bool] = None
|
|
123
|
+
pinned_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
138
124
|
"""
|
|
139
|
-
|
|
125
|
+
Pinned date and time
|
|
140
126
|
"""
|
|
141
127
|
|
|
142
|
-
|
|
128
|
+
prompts: str
|
|
129
|
+
queue_done: str
|
|
130
|
+
queue_left: str
|
|
131
|
+
queue_total: str
|
|
132
|
+
ready: str
|
|
133
|
+
rejected: str
|
|
134
|
+
require_comment_on_skip: typing.Optional[bool] = None
|
|
135
|
+
reveal_preannotations_interactively: typing.Optional[bool] = pydantic.Field(default=None)
|
|
143
136
|
"""
|
|
144
|
-
|
|
137
|
+
Reveal pre-annotations interactively
|
|
145
138
|
"""
|
|
146
139
|
|
|
147
|
-
|
|
140
|
+
review_settings: ReviewSettings
|
|
141
|
+
review_total_tasks: str
|
|
142
|
+
reviewed_number: str
|
|
143
|
+
reviewer_queue_total: str
|
|
144
|
+
sampling: typing.Optional[AllRolesProjectListSampling] = None
|
|
145
|
+
show_annotation_history: typing.Optional[bool] = pydantic.Field(default=None)
|
|
148
146
|
"""
|
|
149
|
-
|
|
147
|
+
Show annotation history to annotator
|
|
150
148
|
"""
|
|
151
149
|
|
|
152
150
|
show_collab_predictions: typing.Optional[bool] = pydantic.Field(default=None)
|
|
@@ -154,38 +152,40 @@ class AllRolesProjectList(UncheckedBaseModel):
|
|
|
154
152
|
If set, the annotator can view model predictions
|
|
155
153
|
"""
|
|
156
154
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
expert_instruction: typing.Optional[str] = pydantic.Field(default=None)
|
|
155
|
+
show_ground_truth_first: typing.Optional[bool] = None
|
|
156
|
+
show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
|
|
160
157
|
"""
|
|
161
|
-
|
|
158
|
+
Show instructions to the annotator before they start
|
|
162
159
|
"""
|
|
163
160
|
|
|
164
|
-
|
|
165
|
-
|
|
161
|
+
show_overlap_first: typing.Optional[bool] = None
|
|
162
|
+
show_skip_button: typing.Optional[bool] = pydantic.Field(default=None)
|
|
166
163
|
"""
|
|
167
|
-
|
|
164
|
+
Show a skip button in interface and allow annotators to skip the task
|
|
168
165
|
"""
|
|
169
166
|
|
|
170
|
-
|
|
167
|
+
skip_queue: typing.Optional[AllRolesProjectListSkipQueue] = None
|
|
168
|
+
skipped_annotations_number: str
|
|
169
|
+
start_training_on_annotation_update: bool = pydantic.Field()
|
|
171
170
|
"""
|
|
172
|
-
|
|
171
|
+
Start model training after any annotations are submitted or updated
|
|
173
172
|
"""
|
|
174
173
|
|
|
175
|
-
|
|
174
|
+
task_number: int = pydantic.Field()
|
|
176
175
|
"""
|
|
177
|
-
|
|
176
|
+
Total task number in project
|
|
178
177
|
"""
|
|
179
178
|
|
|
180
|
-
|
|
181
|
-
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
179
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
182
180
|
"""
|
|
183
|
-
Project
|
|
181
|
+
Project name. Must be between 3 and 50 characters long.
|
|
184
182
|
"""
|
|
185
183
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
184
|
+
total_annotations_number: str
|
|
185
|
+
total_predictions_number: int
|
|
186
|
+
useful_annotation_number: str
|
|
187
|
+
workspace: str
|
|
188
|
+
workspace_title: str
|
|
189
189
|
|
|
190
190
|
if IS_PYDANTIC_V2:
|
|
191
191
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -9,41 +9,25 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class Annotation(UncheckedBaseModel):
|
|
12
|
-
|
|
13
|
-
result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = pydantic.Field(default=None)
|
|
14
|
-
"""
|
|
15
|
-
List of annotation results for the task
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
created_username: str = pydantic.Field()
|
|
12
|
+
bulk_created: typing.Optional[bool] = pydantic.Field(default=None)
|
|
19
13
|
"""
|
|
20
|
-
|
|
14
|
+
Annotation was created in bulk mode
|
|
21
15
|
"""
|
|
22
16
|
|
|
17
|
+
completed_by: typing.Optional[int] = None
|
|
23
18
|
created_ago: str = pydantic.Field()
|
|
24
19
|
"""
|
|
25
20
|
Time delta from creation time
|
|
26
21
|
"""
|
|
27
22
|
|
|
28
|
-
completed_by: typing.Optional[int] = None
|
|
29
|
-
was_cancelled: typing.Optional[bool] = pydantic.Field(default=None)
|
|
30
|
-
"""
|
|
31
|
-
User skipped the task
|
|
32
|
-
"""
|
|
33
|
-
|
|
34
|
-
ground_truth: typing.Optional[bool] = pydantic.Field(default=None)
|
|
35
|
-
"""
|
|
36
|
-
This annotation is a Ground Truth (ground_truth)
|
|
37
|
-
"""
|
|
38
|
-
|
|
39
23
|
created_at: dt.datetime = pydantic.Field()
|
|
40
24
|
"""
|
|
41
25
|
Creation time
|
|
42
26
|
"""
|
|
43
27
|
|
|
44
|
-
|
|
28
|
+
created_username: str = pydantic.Field()
|
|
45
29
|
"""
|
|
46
|
-
|
|
30
|
+
Username string
|
|
47
31
|
"""
|
|
48
32
|
|
|
49
33
|
draft_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
@@ -51,11 +35,12 @@ class Annotation(UncheckedBaseModel):
|
|
|
51
35
|
Draft creation time
|
|
52
36
|
"""
|
|
53
37
|
|
|
54
|
-
|
|
38
|
+
ground_truth: typing.Optional[bool] = pydantic.Field(default=None)
|
|
55
39
|
"""
|
|
56
|
-
|
|
40
|
+
This annotation is a Ground Truth (ground_truth)
|
|
57
41
|
"""
|
|
58
42
|
|
|
43
|
+
id: int
|
|
59
44
|
import_id: typing.Optional[int] = pydantic.Field(default=None)
|
|
60
45
|
"""
|
|
61
46
|
Original annotation ID that was at the import step or NULL if this annotation wasn't imported
|
|
@@ -77,14 +62,24 @@ class Annotation(UncheckedBaseModel):
|
|
|
77
62
|
* `deleted_review` - Deleted review
|
|
78
63
|
"""
|
|
79
64
|
|
|
80
|
-
|
|
65
|
+
last_created_by: typing.Optional[int] = pydantic.Field(default=None)
|
|
81
66
|
"""
|
|
82
|
-
|
|
67
|
+
User who created the last annotation history item
|
|
83
68
|
"""
|
|
84
69
|
|
|
85
|
-
|
|
70
|
+
lead_time: typing.Optional[float] = pydantic.Field(default=None)
|
|
86
71
|
"""
|
|
87
|
-
|
|
72
|
+
How much time it took to annotate the task
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
parent_annotation: typing.Optional[int] = pydantic.Field(default=None)
|
|
76
|
+
"""
|
|
77
|
+
Points to the parent annotation from which this annotation was created
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
parent_prediction: typing.Optional[int] = pydantic.Field(default=None)
|
|
81
|
+
"""
|
|
82
|
+
Points to the prediction from which this annotation was created
|
|
88
83
|
"""
|
|
89
84
|
|
|
90
85
|
project: typing.Optional[int] = pydantic.Field(default=None)
|
|
@@ -92,24 +87,29 @@ class Annotation(UncheckedBaseModel):
|
|
|
92
87
|
Project ID for this annotation
|
|
93
88
|
"""
|
|
94
89
|
|
|
95
|
-
|
|
90
|
+
result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = pydantic.Field(default=None)
|
|
96
91
|
"""
|
|
97
|
-
|
|
92
|
+
List of annotation results for the task
|
|
98
93
|
"""
|
|
99
94
|
|
|
100
|
-
|
|
95
|
+
task: typing.Optional[int] = pydantic.Field(default=None)
|
|
101
96
|
"""
|
|
102
|
-
|
|
97
|
+
Corresponding task for this annotation
|
|
103
98
|
"""
|
|
104
99
|
|
|
105
|
-
|
|
100
|
+
updated_at: dt.datetime = pydantic.Field()
|
|
106
101
|
"""
|
|
107
|
-
|
|
102
|
+
Last updated time
|
|
108
103
|
"""
|
|
109
104
|
|
|
110
|
-
|
|
105
|
+
updated_by: typing.Optional[int] = pydantic.Field(default=None)
|
|
111
106
|
"""
|
|
112
|
-
|
|
107
|
+
Last user who updated this annotation
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
was_cancelled: typing.Optional[bool] = pydantic.Field(default=None)
|
|
111
|
+
"""
|
|
112
|
+
User skipped the task
|
|
113
113
|
"""
|
|
114
114
|
|
|
115
115
|
if IS_PYDANTIC_V2:
|
|
@@ -9,31 +9,20 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class AnnotationRequest(UncheckedBaseModel):
|
|
12
|
-
|
|
12
|
+
bulk_created: typing.Optional[bool] = pydantic.Field(default=None)
|
|
13
13
|
"""
|
|
14
|
-
|
|
14
|
+
Annotation was created in bulk mode
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
completed_by: typing.Optional[int] = None
|
|
18
|
-
unique_id: typing.Optional[str] = None
|
|
19
|
-
was_cancelled: typing.Optional[bool] = pydantic.Field(default=None)
|
|
20
|
-
"""
|
|
21
|
-
User skipped the task
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
ground_truth: typing.Optional[bool] = pydantic.Field(default=None)
|
|
25
|
-
"""
|
|
26
|
-
This annotation is a Ground Truth (ground_truth)
|
|
27
|
-
"""
|
|
28
|
-
|
|
29
18
|
draft_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
30
19
|
"""
|
|
31
20
|
Draft creation time
|
|
32
21
|
"""
|
|
33
22
|
|
|
34
|
-
|
|
23
|
+
ground_truth: typing.Optional[bool] = pydantic.Field(default=None)
|
|
35
24
|
"""
|
|
36
|
-
|
|
25
|
+
This annotation is a Ground Truth (ground_truth)
|
|
37
26
|
"""
|
|
38
27
|
|
|
39
28
|
import_id: typing.Optional[int] = pydantic.Field(default=None)
|
|
@@ -57,14 +46,24 @@ class AnnotationRequest(UncheckedBaseModel):
|
|
|
57
46
|
* `deleted_review` - Deleted review
|
|
58
47
|
"""
|
|
59
48
|
|
|
60
|
-
|
|
49
|
+
last_created_by: typing.Optional[int] = pydantic.Field(default=None)
|
|
61
50
|
"""
|
|
62
|
-
|
|
51
|
+
User who created the last annotation history item
|
|
63
52
|
"""
|
|
64
53
|
|
|
65
|
-
|
|
54
|
+
lead_time: typing.Optional[float] = pydantic.Field(default=None)
|
|
66
55
|
"""
|
|
67
|
-
|
|
56
|
+
How much time it took to annotate the task
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
parent_annotation: typing.Optional[int] = pydantic.Field(default=None)
|
|
60
|
+
"""
|
|
61
|
+
Points to the parent annotation from which this annotation was created
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
parent_prediction: typing.Optional[int] = pydantic.Field(default=None)
|
|
65
|
+
"""
|
|
66
|
+
Points to the prediction from which this annotation was created
|
|
68
67
|
"""
|
|
69
68
|
|
|
70
69
|
project: typing.Optional[int] = pydantic.Field(default=None)
|
|
@@ -72,24 +71,25 @@ class AnnotationRequest(UncheckedBaseModel):
|
|
|
72
71
|
Project ID for this annotation
|
|
73
72
|
"""
|
|
74
73
|
|
|
75
|
-
|
|
74
|
+
result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = pydantic.Field(default=None)
|
|
76
75
|
"""
|
|
77
|
-
|
|
76
|
+
List of annotation results for the task
|
|
78
77
|
"""
|
|
79
78
|
|
|
80
|
-
|
|
79
|
+
task: typing.Optional[int] = pydantic.Field(default=None)
|
|
81
80
|
"""
|
|
82
|
-
|
|
81
|
+
Corresponding task for this annotation
|
|
83
82
|
"""
|
|
84
83
|
|
|
85
|
-
|
|
84
|
+
unique_id: typing.Optional[str] = None
|
|
85
|
+
updated_by: typing.Optional[int] = pydantic.Field(default=None)
|
|
86
86
|
"""
|
|
87
|
-
|
|
87
|
+
Last user who updated this annotation
|
|
88
88
|
"""
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
was_cancelled: typing.Optional[bool] = pydantic.Field(default=None)
|
|
91
91
|
"""
|
|
92
|
-
User
|
|
92
|
+
User skipped the task
|
|
93
93
|
"""
|
|
94
94
|
|
|
95
95
|
if IS_PYDANTIC_V2:
|
|
@@ -9,39 +9,37 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class AzureBlobExportStorage(UncheckedBaseModel):
|
|
12
|
-
|
|
13
|
-
type: str
|
|
14
|
-
synchronizable: typing.Optional[bool] = None
|
|
15
|
-
container: typing.Optional[str] = pydantic.Field(default=None)
|
|
12
|
+
account_key: typing.Optional[str] = pydantic.Field(default=None)
|
|
16
13
|
"""
|
|
17
|
-
Azure
|
|
14
|
+
Azure Blob account key
|
|
18
15
|
"""
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
account_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
18
|
"""
|
|
22
|
-
Azure
|
|
19
|
+
Azure Blob account name
|
|
23
20
|
"""
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
|
|
26
23
|
"""
|
|
27
|
-
|
|
24
|
+
Deletion from storage enabled
|
|
28
25
|
"""
|
|
29
26
|
|
|
30
|
-
|
|
27
|
+
container: typing.Optional[str] = pydantic.Field(default=None)
|
|
31
28
|
"""
|
|
32
|
-
|
|
29
|
+
Azure blob container
|
|
33
30
|
"""
|
|
34
31
|
|
|
35
|
-
|
|
32
|
+
created_at: dt.datetime = pydantic.Field()
|
|
36
33
|
"""
|
|
37
|
-
|
|
34
|
+
Creation time
|
|
38
35
|
"""
|
|
39
36
|
|
|
40
|
-
|
|
37
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
41
38
|
"""
|
|
42
|
-
|
|
39
|
+
Cloud storage description
|
|
43
40
|
"""
|
|
44
41
|
|
|
42
|
+
id: int
|
|
45
43
|
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
46
44
|
"""
|
|
47
45
|
Last sync finished time
|
|
@@ -57,36 +55,38 @@ class AzureBlobExportStorage(UncheckedBaseModel):
|
|
|
57
55
|
Last sync job ID
|
|
58
56
|
"""
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
59
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
62
60
|
"""
|
|
63
|
-
|
|
61
|
+
Azure blob prefix name
|
|
64
62
|
"""
|
|
65
63
|
|
|
66
|
-
|
|
67
|
-
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
64
|
+
project: int = pydantic.Field()
|
|
68
65
|
"""
|
|
69
|
-
|
|
66
|
+
A unique integer value identifying this project.
|
|
70
67
|
"""
|
|
71
68
|
|
|
72
|
-
|
|
69
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
73
70
|
"""
|
|
74
|
-
Cloud storage
|
|
71
|
+
Cloud storage regex for filtering objects
|
|
75
72
|
"""
|
|
76
73
|
|
|
77
|
-
|
|
74
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
75
|
+
synchronizable: typing.Optional[bool] = None
|
|
76
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
78
77
|
"""
|
|
79
|
-
|
|
78
|
+
Cloud storage title
|
|
80
79
|
"""
|
|
81
80
|
|
|
82
|
-
|
|
81
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
83
82
|
"""
|
|
84
|
-
|
|
83
|
+
Traceback report for the last failed sync
|
|
85
84
|
"""
|
|
86
85
|
|
|
87
|
-
|
|
86
|
+
type: str
|
|
87
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
88
88
|
"""
|
|
89
|
-
|
|
89
|
+
Interpret objects as BLOBs and generate URLs
|
|
90
90
|
"""
|
|
91
91
|
|
|
92
92
|
if IS_PYDANTIC_V2:
|