label-studio-sdk 2.0.8__py3-none-any.whl → 2.0.9__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 +36 -16
- label_studio_sdk/base_client.py +0 -4
- label_studio_sdk/core/client_wrapper.py +1 -1
- label_studio_sdk/export_storage/__init__.py +13 -2
- label_studio_sdk/export_storage/client.py +4 -0
- label_studio_sdk/export_storage/databricks/client.py +1406 -0
- label_studio_sdk/import_storage/__init__.py +13 -2
- label_studio_sdk/import_storage/client.py +4 -0
- label_studio_sdk/import_storage/databricks/__init__.py +2 -0
- label_studio_sdk/import_storage/databricks/client.py +1466 -0
- label_studio_sdk/import_storage/gcswif/client.py +30 -0
- label_studio_sdk/projects/__init__.py +0 -2
- label_studio_sdk/projects/client.py +186 -32
- label_studio_sdk/projects/client_ext.py +20 -8
- label_studio_sdk/projects/types/__init__.py +0 -2
- label_studio_sdk/projects/types/lse_project_create_request_sampling.py +2 -2
- label_studio_sdk/projects/types/patched_lse_project_update_request_sampling.py +2 -2
- label_studio_sdk/prompts/client.py +340 -1
- label_studio_sdk/prompts/runs/client.py +127 -0
- label_studio_sdk/tasks/client.py +7 -2
- label_studio_sdk/types/__init__.py +36 -12
- label_studio_sdk/types/all_roles_project_list.py +10 -10
- label_studio_sdk/types/all_roles_project_list_sampling.py +2 -2
- label_studio_sdk/types/azure_blob_import_storage.py +5 -0
- label_studio_sdk/types/cancel_model_run_response.py +19 -0
- label_studio_sdk/types/configurable_permission_option.py +2 -2
- label_studio_sdk/types/databricks_export_storage.py +113 -0
- label_studio_sdk/types/databricks_export_storage_request.py +107 -0
- label_studio_sdk/types/databricks_import_storage.py +123 -0
- label_studio_sdk/types/databricks_import_storage_request.py +117 -0
- label_studio_sdk/types/default165enum.py +5 -0
- label_studio_sdk/types/gcs_import_storage.py +5 -0
- label_studio_sdk/types/gcswif_import_storage.py +5 -0
- label_studio_sdk/types/gcswif_import_storage_request.py +5 -0
- label_studio_sdk/types/local_files_import_storage.py +5 -0
- label_studio_sdk/types/lse_project_counts.py +8 -8
- label_studio_sdk/types/lse_project_create_sampling.py +2 -2
- label_studio_sdk/types/{project.py → lse_project_response.py} +44 -31
- label_studio_sdk/types/lse_project_response_sampling.py +7 -0
- label_studio_sdk/types/{project_skip_queue.py → lse_project_response_skip_queue.py} +1 -1
- label_studio_sdk/types/lse_project_sampling.py +2 -2
- label_studio_sdk/types/lse_project_update_sampling.py +2 -2
- label_studio_sdk/types/lse_task.py +6 -0
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +6 -0
- label_studio_sdk/types/lse_user.py +1 -0
- label_studio_sdk/types/lse_user_api.py +1 -0
- label_studio_sdk/types/options165enum.py +5 -0
- label_studio_sdk/types/organization_permission.py +7 -4
- label_studio_sdk/types/paginated_project_member.py +1 -0
- label_studio_sdk/types/paginated_project_subset_tasks_response_list.py +23 -0
- label_studio_sdk/types/project_subset_item.py +21 -0
- label_studio_sdk/types/project_subset_task_item.py +24 -0
- label_studio_sdk/types/project_subset_tasks_response.py +27 -0
- label_studio_sdk/types/review_settings.py +14 -0
- label_studio_sdk/types/review_settings_request.py +14 -0
- label_studio_sdk/types/review_settings_request_sampling.py +8 -0
- label_studio_sdk/types/review_settings_sampling.py +8 -0
- label_studio_sdk/types/review_settings_sampling_enum.py +5 -0
- label_studio_sdk/types/{sampling_enum.py → sampling_de5enum.py} +1 -1
- label_studio_sdk/types/who_am_i_user.py +1 -0
- {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.9.dist-info}/METADATA +41 -90
- {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.9.dist-info}/RECORD +65 -52
- label_studio_sdk/blueprints/client.py +0 -272
- label_studio_sdk/projects/types/projects_list_request_filter.py +0 -5
- label_studio_sdk/types/blueprint.py +0 -41
- label_studio_sdk/types/configurable_permission_option_default.py +0 -7
- label_studio_sdk/types/project_sampling.py +0 -7
- /label_studio_sdk/{blueprints → export_storage/databricks}/__init__.py +0 -0
- {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.9.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.9.dist-info}/WHEEL +0 -0
label_studio_sdk/__init__.py
CHANGED
|
@@ -35,19 +35,23 @@ from .types import (
|
|
|
35
35
|
BillingFlags,
|
|
36
36
|
BillingInfoResponse,
|
|
37
37
|
BlankEnum,
|
|
38
|
-
Blueprint,
|
|
39
38
|
BlueprintList,
|
|
40
39
|
BudgetResetPeriodEnum,
|
|
40
|
+
CancelModelRunResponse,
|
|
41
41
|
ChildFilter,
|
|
42
42
|
Comment,
|
|
43
43
|
CommentRequest,
|
|
44
44
|
CommentSerializerWithExpandedUser,
|
|
45
45
|
ConfigurablePermissionOption,
|
|
46
|
-
ConfigurablePermissionOptionDefault,
|
|
47
46
|
ConvertedFormat,
|
|
48
47
|
ConvertedFormatRequest,
|
|
49
48
|
CountLimit,
|
|
50
49
|
CustomScriptsEditableByEnum,
|
|
50
|
+
DatabricksExportStorage,
|
|
51
|
+
DatabricksExportStorageRequest,
|
|
52
|
+
DatabricksImportStorage,
|
|
53
|
+
DatabricksImportStorageRequest,
|
|
54
|
+
Default165Enum,
|
|
51
55
|
DefaultRole,
|
|
52
56
|
DefaultRoleCustomScriptsEditableBy,
|
|
53
57
|
EditionEnum,
|
|
@@ -86,6 +90,9 @@ from .types import (
|
|
|
86
90
|
LseProjectCreate,
|
|
87
91
|
LseProjectCreateSampling,
|
|
88
92
|
LseProjectCreateSkipQueue,
|
|
93
|
+
LseProjectResponse,
|
|
94
|
+
LseProjectResponseSampling,
|
|
95
|
+
LseProjectResponseSkipQueue,
|
|
89
96
|
LseProjectSampling,
|
|
90
97
|
LseProjectSkipQueue,
|
|
91
98
|
LseProjectUpdate,
|
|
@@ -134,6 +141,7 @@ from .types import (
|
|
|
134
141
|
ModelRunStatusEnum,
|
|
135
142
|
NullEnum,
|
|
136
143
|
OnboardingStateEnum,
|
|
144
|
+
Options165Enum,
|
|
137
145
|
OrganizationBilling,
|
|
138
146
|
OrganizationId,
|
|
139
147
|
OrganizationInvite,
|
|
@@ -148,12 +156,12 @@ from .types import (
|
|
|
148
156
|
PaginatedLseUserList,
|
|
149
157
|
PaginatedPaginatedProjectMemberList,
|
|
150
158
|
PaginatedProjectMember,
|
|
159
|
+
PaginatedProjectSubsetTasksResponseList,
|
|
151
160
|
PaginatedRoleBasedTaskList,
|
|
152
161
|
Pause,
|
|
153
162
|
PauseRequest,
|
|
154
163
|
Prediction,
|
|
155
164
|
PredictionRequest,
|
|
156
|
-
Project,
|
|
157
165
|
ProjectGroup,
|
|
158
166
|
ProjectGroupRequest,
|
|
159
167
|
ProjectGroupRoleEnum,
|
|
@@ -161,9 +169,10 @@ from .types import (
|
|
|
161
169
|
ProjectLabelConfig,
|
|
162
170
|
ProjectLabelConfigRequest,
|
|
163
171
|
ProjectMemberBulkAssignRolesRequest,
|
|
164
|
-
ProjectSampling,
|
|
165
|
-
ProjectSkipQueue,
|
|
166
172
|
ProjectSubsetEnum,
|
|
173
|
+
ProjectSubsetItem,
|
|
174
|
+
ProjectSubsetTaskItem,
|
|
175
|
+
ProjectSubsetTasksResponse,
|
|
167
176
|
ProjectTemplate,
|
|
168
177
|
ProjectTemplateRequest,
|
|
169
178
|
PromptsStatusEnum,
|
|
@@ -178,8 +187,11 @@ from .types import (
|
|
|
178
187
|
ReviewSettingsRequest,
|
|
179
188
|
ReviewSettingsRequestRequeueRejectedTasksMode,
|
|
180
189
|
ReviewSettingsRequestReviewCriteria,
|
|
190
|
+
ReviewSettingsRequestSampling,
|
|
181
191
|
ReviewSettingsRequeueRejectedTasksMode,
|
|
182
192
|
ReviewSettingsReviewCriteria,
|
|
193
|
+
ReviewSettingsSampling,
|
|
194
|
+
ReviewSettingsSamplingEnum,
|
|
183
195
|
ReviewedEnum,
|
|
184
196
|
Role9E7Enum,
|
|
185
197
|
RoleBasedTask,
|
|
@@ -187,7 +199,7 @@ from .types import (
|
|
|
187
199
|
S3ImportStorage,
|
|
188
200
|
SamlSettings,
|
|
189
201
|
SamlSettingsUpdate,
|
|
190
|
-
|
|
202
|
+
SamplingDe5Enum,
|
|
191
203
|
ScimSettings,
|
|
192
204
|
ScimSettingsUpdate,
|
|
193
205
|
ScopeEnum,
|
|
@@ -240,7 +252,6 @@ from . import (
|
|
|
240
252
|
annotation_reviews,
|
|
241
253
|
annotations,
|
|
242
254
|
billing,
|
|
243
|
-
blueprints,
|
|
244
255
|
comments,
|
|
245
256
|
export_storage,
|
|
246
257
|
files,
|
|
@@ -297,7 +308,6 @@ from .projects import (
|
|
|
297
308
|
ProjectsDuplicateResponse,
|
|
298
309
|
ProjectsImportPredictionsResponse,
|
|
299
310
|
ProjectsImportTasksResponse,
|
|
300
|
-
ProjectsListRequestFilter,
|
|
301
311
|
)
|
|
302
312
|
from .prompts import PromptsCompatibleProjectsRequestProjectType
|
|
303
313
|
from .tasks import TasksListRequestFields
|
|
@@ -394,20 +404,24 @@ __all__ = [
|
|
|
394
404
|
"BillingFlags",
|
|
395
405
|
"BillingInfoResponse",
|
|
396
406
|
"BlankEnum",
|
|
397
|
-
"Blueprint",
|
|
398
407
|
"BlueprintList",
|
|
399
408
|
"BudgetResetPeriodEnum",
|
|
409
|
+
"CancelModelRunResponse",
|
|
400
410
|
"ChildFilter",
|
|
401
411
|
"Client",
|
|
402
412
|
"Comment",
|
|
403
413
|
"CommentRequest",
|
|
404
414
|
"CommentSerializerWithExpandedUser",
|
|
405
415
|
"ConfigurablePermissionOption",
|
|
406
|
-
"ConfigurablePermissionOptionDefault",
|
|
407
416
|
"ConvertedFormat",
|
|
408
417
|
"ConvertedFormatRequest",
|
|
409
418
|
"CountLimit",
|
|
410
419
|
"CustomScriptsEditableByEnum",
|
|
420
|
+
"DatabricksExportStorage",
|
|
421
|
+
"DatabricksExportStorageRequest",
|
|
422
|
+
"DatabricksImportStorage",
|
|
423
|
+
"DatabricksImportStorageRequest",
|
|
424
|
+
"Default165Enum",
|
|
411
425
|
"DefaultRole",
|
|
412
426
|
"DefaultRoleCustomScriptsEditableBy",
|
|
413
427
|
"EditionEnum",
|
|
@@ -454,6 +468,9 @@ __all__ = [
|
|
|
454
468
|
"LseProjectCreateRequestSkipQueue",
|
|
455
469
|
"LseProjectCreateSampling",
|
|
456
470
|
"LseProjectCreateSkipQueue",
|
|
471
|
+
"LseProjectResponse",
|
|
472
|
+
"LseProjectResponseSampling",
|
|
473
|
+
"LseProjectResponseSkipQueue",
|
|
457
474
|
"LseProjectSampling",
|
|
458
475
|
"LseProjectSkipQueue",
|
|
459
476
|
"LseProjectUpdate",
|
|
@@ -508,6 +525,7 @@ __all__ = [
|
|
|
508
525
|
"NotFoundError",
|
|
509
526
|
"NullEnum",
|
|
510
527
|
"OnboardingStateEnum",
|
|
528
|
+
"Options165Enum",
|
|
511
529
|
"OrganizationBilling",
|
|
512
530
|
"OrganizationId",
|
|
513
531
|
"OrganizationInvite",
|
|
@@ -522,6 +540,7 @@ __all__ = [
|
|
|
522
540
|
"PaginatedLseUserList",
|
|
523
541
|
"PaginatedPaginatedProjectMemberList",
|
|
524
542
|
"PaginatedProjectMember",
|
|
543
|
+
"PaginatedProjectSubsetTasksResponseList",
|
|
525
544
|
"PaginatedRoleBasedTaskList",
|
|
526
545
|
"PatchedDefaultRoleRequestCustomScriptsEditableBy",
|
|
527
546
|
"PatchedLseProjectUpdateRequestSampling",
|
|
@@ -530,7 +549,6 @@ __all__ = [
|
|
|
530
549
|
"PauseRequest",
|
|
531
550
|
"Prediction",
|
|
532
551
|
"PredictionRequest",
|
|
533
|
-
"Project",
|
|
534
552
|
"ProjectGroup",
|
|
535
553
|
"ProjectGroupRequest",
|
|
536
554
|
"ProjectGroupRoleEnum",
|
|
@@ -538,15 +556,15 @@ __all__ = [
|
|
|
538
556
|
"ProjectLabelConfig",
|
|
539
557
|
"ProjectLabelConfigRequest",
|
|
540
558
|
"ProjectMemberBulkAssignRolesRequest",
|
|
541
|
-
"ProjectSampling",
|
|
542
|
-
"ProjectSkipQueue",
|
|
543
559
|
"ProjectSubsetEnum",
|
|
560
|
+
"ProjectSubsetItem",
|
|
561
|
+
"ProjectSubsetTaskItem",
|
|
562
|
+
"ProjectSubsetTasksResponse",
|
|
544
563
|
"ProjectTemplate",
|
|
545
564
|
"ProjectTemplateRequest",
|
|
546
565
|
"ProjectsDuplicateResponse",
|
|
547
566
|
"ProjectsImportPredictionsResponse",
|
|
548
567
|
"ProjectsImportTasksResponse",
|
|
549
|
-
"ProjectsListRequestFilter",
|
|
550
568
|
"PromptsCompatibleProjectsRequestProjectType",
|
|
551
569
|
"PromptsStatusEnum",
|
|
552
570
|
"ProviderEnum",
|
|
@@ -560,8 +578,11 @@ __all__ = [
|
|
|
560
578
|
"ReviewSettingsRequest",
|
|
561
579
|
"ReviewSettingsRequestRequeueRejectedTasksMode",
|
|
562
580
|
"ReviewSettingsRequestReviewCriteria",
|
|
581
|
+
"ReviewSettingsRequestSampling",
|
|
563
582
|
"ReviewSettingsRequeueRejectedTasksMode",
|
|
564
583
|
"ReviewSettingsReviewCriteria",
|
|
584
|
+
"ReviewSettingsSampling",
|
|
585
|
+
"ReviewSettingsSamplingEnum",
|
|
565
586
|
"ReviewedEnum",
|
|
566
587
|
"Role9E7Enum",
|
|
567
588
|
"RoleBasedTask",
|
|
@@ -569,7 +590,7 @@ __all__ = [
|
|
|
569
590
|
"S3ImportStorage",
|
|
570
591
|
"SamlSettings",
|
|
571
592
|
"SamlSettingsUpdate",
|
|
572
|
-
"
|
|
593
|
+
"SamplingDe5Enum",
|
|
573
594
|
"ScimSettings",
|
|
574
595
|
"ScimSettingsUpdate",
|
|
575
596
|
"ScopeEnum",
|
|
@@ -649,7 +670,6 @@ __all__ = [
|
|
|
649
670
|
"annotation_reviews",
|
|
650
671
|
"annotations",
|
|
651
672
|
"billing",
|
|
652
|
-
"blueprints",
|
|
653
673
|
"comments",
|
|
654
674
|
"export_storage",
|
|
655
675
|
"files",
|
label_studio_sdk/base_client.py
CHANGED
|
@@ -11,7 +11,6 @@ from .annotation_history.client import AnnotationHistoryClient
|
|
|
11
11
|
from .annotation_reviews.client import AnnotationReviewsClient
|
|
12
12
|
from .annotations.client import AnnotationsClient
|
|
13
13
|
from .billing.client import BillingClient
|
|
14
|
-
from .blueprints.client import BlueprintsClient
|
|
15
14
|
from .comments.client import CommentsClient
|
|
16
15
|
from .users.client import UsersClient
|
|
17
16
|
from .actions.client import ActionsClient
|
|
@@ -40,7 +39,6 @@ from .annotation_history.client import AsyncAnnotationHistoryClient
|
|
|
40
39
|
from .annotation_reviews.client import AsyncAnnotationReviewsClient
|
|
41
40
|
from .annotations.client import AsyncAnnotationsClient
|
|
42
41
|
from .billing.client import AsyncBillingClient
|
|
43
|
-
from .blueprints.client import AsyncBlueprintsClient
|
|
44
42
|
from .comments.client import AsyncCommentsClient
|
|
45
43
|
from .users.client import AsyncUsersClient
|
|
46
44
|
from .actions.client import AsyncActionsClient
|
|
@@ -132,7 +130,6 @@ class LabelStudioBase:
|
|
|
132
130
|
self.annotation_reviews = AnnotationReviewsClient(client_wrapper=self._client_wrapper)
|
|
133
131
|
self.annotations = AnnotationsClient(client_wrapper=self._client_wrapper)
|
|
134
132
|
self.billing = BillingClient(client_wrapper=self._client_wrapper)
|
|
135
|
-
self.blueprints = BlueprintsClient(client_wrapper=self._client_wrapper)
|
|
136
133
|
self.comments = CommentsClient(client_wrapper=self._client_wrapper)
|
|
137
134
|
self.users = UsersClient(client_wrapper=self._client_wrapper)
|
|
138
135
|
self.actions = ActionsClient(client_wrapper=self._client_wrapper)
|
|
@@ -224,7 +221,6 @@ class AsyncLabelStudioBase:
|
|
|
224
221
|
self.annotation_reviews = AsyncAnnotationReviewsClient(client_wrapper=self._client_wrapper)
|
|
225
222
|
self.annotations = AsyncAnnotationsClient(client_wrapper=self._client_wrapper)
|
|
226
223
|
self.billing = AsyncBillingClient(client_wrapper=self._client_wrapper)
|
|
227
|
-
self.blueprints = AsyncBlueprintsClient(client_wrapper=self._client_wrapper)
|
|
228
224
|
self.comments = AsyncCommentsClient(client_wrapper=self._client_wrapper)
|
|
229
225
|
self.users = AsyncUsersClient(client_wrapper=self._client_wrapper)
|
|
230
226
|
self.actions = AsyncActionsClient(client_wrapper=self._client_wrapper)
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from .types import ExportStorageListTypesResponseItem
|
|
4
|
-
from . import azure, azure_spi, gcs, gcswif, local, redis, s3, s3s
|
|
4
|
+
from . import azure, azure_spi, databricks, gcs, gcswif, local, redis, s3, s3s
|
|
5
5
|
|
|
6
|
-
__all__ = [
|
|
6
|
+
__all__ = [
|
|
7
|
+
"ExportStorageListTypesResponseItem",
|
|
8
|
+
"azure",
|
|
9
|
+
"azure_spi",
|
|
10
|
+
"databricks",
|
|
11
|
+
"gcs",
|
|
12
|
+
"gcswif",
|
|
13
|
+
"local",
|
|
14
|
+
"redis",
|
|
15
|
+
"s3",
|
|
16
|
+
"s3s",
|
|
17
|
+
]
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from ..core.client_wrapper import SyncClientWrapper
|
|
4
4
|
from .azure.client import AzureClient
|
|
5
5
|
from .azure_spi.client import AzureSpiClient
|
|
6
|
+
from .databricks.client import DatabricksClient
|
|
6
7
|
from .gcs.client import GcsClient
|
|
7
8
|
from .gcswif.client import GcswifClient
|
|
8
9
|
from .local.client import LocalClient
|
|
@@ -18,6 +19,7 @@ from ..core.api_error import ApiError
|
|
|
18
19
|
from ..core.client_wrapper import AsyncClientWrapper
|
|
19
20
|
from .azure.client import AsyncAzureClient
|
|
20
21
|
from .azure_spi.client import AsyncAzureSpiClient
|
|
22
|
+
from .databricks.client import AsyncDatabricksClient
|
|
21
23
|
from .gcs.client import AsyncGcsClient
|
|
22
24
|
from .gcswif.client import AsyncGcswifClient
|
|
23
25
|
from .local.client import AsyncLocalClient
|
|
@@ -31,6 +33,7 @@ class ExportStorageClient:
|
|
|
31
33
|
self._client_wrapper = client_wrapper
|
|
32
34
|
self.azure = AzureClient(client_wrapper=self._client_wrapper)
|
|
33
35
|
self.azure_spi = AzureSpiClient(client_wrapper=self._client_wrapper)
|
|
36
|
+
self.databricks = DatabricksClient(client_wrapper=self._client_wrapper)
|
|
34
37
|
self.gcs = GcsClient(client_wrapper=self._client_wrapper)
|
|
35
38
|
self.gcswif = GcswifClient(client_wrapper=self._client_wrapper)
|
|
36
39
|
self.local = LocalClient(client_wrapper=self._client_wrapper)
|
|
@@ -88,6 +91,7 @@ class AsyncExportStorageClient:
|
|
|
88
91
|
self._client_wrapper = client_wrapper
|
|
89
92
|
self.azure = AsyncAzureClient(client_wrapper=self._client_wrapper)
|
|
90
93
|
self.azure_spi = AsyncAzureSpiClient(client_wrapper=self._client_wrapper)
|
|
94
|
+
self.databricks = AsyncDatabricksClient(client_wrapper=self._client_wrapper)
|
|
91
95
|
self.gcs = AsyncGcsClient(client_wrapper=self._client_wrapper)
|
|
92
96
|
self.gcswif = AsyncGcswifClient(client_wrapper=self._client_wrapper)
|
|
93
97
|
self.local = AsyncLocalClient(client_wrapper=self._client_wrapper)
|