label-studio-sdk 2.0.8__py3-none-any.whl → 2.0.10__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/organizations/invites/client.py +31 -6
- 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/workspaces/client.py +60 -0
- label_studio_sdk/workspaces/members/bulk/client.py +24 -0
- label_studio_sdk/workspaces/members/client.py +36 -0
- label_studio_sdk/workspaces/members/paginated/client.py +12 -0
- {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.10.dist-info}/METADATA +41 -90
- {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.10.dist-info}/RECORD +70 -57
- 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.10.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.10.dist-info}/WHEEL +0 -0
|
@@ -97,6 +97,7 @@ class GcswifClient:
|
|
|
97
97
|
prefix: typing.Optional[str] = OMIT,
|
|
98
98
|
presign: typing.Optional[bool] = OMIT,
|
|
99
99
|
presign_ttl: typing.Optional[int] = OMIT,
|
|
100
|
+
recursive_scan: typing.Optional[bool] = OMIT,
|
|
100
101
|
regex_filter: typing.Optional[str] = OMIT,
|
|
101
102
|
status: typing.Optional[StatusC5AEnum] = OMIT,
|
|
102
103
|
synchronizable: typing.Optional[bool] = OMIT,
|
|
@@ -156,6 +157,9 @@ class GcswifClient:
|
|
|
156
157
|
presign_ttl : typing.Optional[int]
|
|
157
158
|
Presigned URLs TTL (in minutes)
|
|
158
159
|
|
|
160
|
+
recursive_scan : typing.Optional[bool]
|
|
161
|
+
Perform recursive scan over the bucket content
|
|
162
|
+
|
|
159
163
|
regex_filter : typing.Optional[str]
|
|
160
164
|
Cloud storage regex for filtering objects
|
|
161
165
|
|
|
@@ -211,6 +215,7 @@ class GcswifClient:
|
|
|
211
215
|
"presign": presign,
|
|
212
216
|
"presign_ttl": presign_ttl,
|
|
213
217
|
"project": project,
|
|
218
|
+
"recursive_scan": recursive_scan,
|
|
214
219
|
"regex_filter": regex_filter,
|
|
215
220
|
"status": status,
|
|
216
221
|
"synchronizable": synchronizable,
|
|
@@ -254,6 +259,7 @@ class GcswifClient:
|
|
|
254
259
|
prefix: typing.Optional[str] = OMIT,
|
|
255
260
|
presign: typing.Optional[bool] = OMIT,
|
|
256
261
|
presign_ttl: typing.Optional[int] = OMIT,
|
|
262
|
+
recursive_scan: typing.Optional[bool] = OMIT,
|
|
257
263
|
regex_filter: typing.Optional[str] = OMIT,
|
|
258
264
|
status: typing.Optional[StatusC5AEnum] = OMIT,
|
|
259
265
|
synchronizable: typing.Optional[bool] = OMIT,
|
|
@@ -313,6 +319,9 @@ class GcswifClient:
|
|
|
313
319
|
presign_ttl : typing.Optional[int]
|
|
314
320
|
Presigned URLs TTL (in minutes)
|
|
315
321
|
|
|
322
|
+
recursive_scan : typing.Optional[bool]
|
|
323
|
+
Perform recursive scan over the bucket content
|
|
324
|
+
|
|
316
325
|
regex_filter : typing.Optional[str]
|
|
317
326
|
Cloud storage regex for filtering objects
|
|
318
327
|
|
|
@@ -367,6 +376,7 @@ class GcswifClient:
|
|
|
367
376
|
"presign": presign,
|
|
368
377
|
"presign_ttl": presign_ttl,
|
|
369
378
|
"project": project,
|
|
379
|
+
"recursive_scan": recursive_scan,
|
|
370
380
|
"regex_filter": regex_filter,
|
|
371
381
|
"status": status,
|
|
372
382
|
"synchronizable": synchronizable,
|
|
@@ -490,6 +500,7 @@ class GcswifClient:
|
|
|
490
500
|
presign: typing.Optional[bool] = OMIT,
|
|
491
501
|
presign_ttl: typing.Optional[int] = OMIT,
|
|
492
502
|
project: typing.Optional[int] = OMIT,
|
|
503
|
+
recursive_scan: typing.Optional[bool] = OMIT,
|
|
493
504
|
regex_filter: typing.Optional[str] = OMIT,
|
|
494
505
|
status: typing.Optional[StatusC5AEnum] = OMIT,
|
|
495
506
|
synchronizable: typing.Optional[bool] = OMIT,
|
|
@@ -551,6 +562,9 @@ class GcswifClient:
|
|
|
551
562
|
project : typing.Optional[int]
|
|
552
563
|
A unique integer value identifying this project.
|
|
553
564
|
|
|
565
|
+
recursive_scan : typing.Optional[bool]
|
|
566
|
+
Perform recursive scan over the bucket content
|
|
567
|
+
|
|
554
568
|
regex_filter : typing.Optional[str]
|
|
555
569
|
Cloud storage regex for filtering objects
|
|
556
570
|
|
|
@@ -606,6 +620,7 @@ class GcswifClient:
|
|
|
606
620
|
"presign": presign,
|
|
607
621
|
"presign_ttl": presign_ttl,
|
|
608
622
|
"project": project,
|
|
623
|
+
"recursive_scan": recursive_scan,
|
|
609
624
|
"regex_filter": regex_filter,
|
|
610
625
|
"status": status,
|
|
611
626
|
"synchronizable": synchronizable,
|
|
@@ -769,6 +784,7 @@ class AsyncGcswifClient:
|
|
|
769
784
|
prefix: typing.Optional[str] = OMIT,
|
|
770
785
|
presign: typing.Optional[bool] = OMIT,
|
|
771
786
|
presign_ttl: typing.Optional[int] = OMIT,
|
|
787
|
+
recursive_scan: typing.Optional[bool] = OMIT,
|
|
772
788
|
regex_filter: typing.Optional[str] = OMIT,
|
|
773
789
|
status: typing.Optional[StatusC5AEnum] = OMIT,
|
|
774
790
|
synchronizable: typing.Optional[bool] = OMIT,
|
|
@@ -828,6 +844,9 @@ class AsyncGcswifClient:
|
|
|
828
844
|
presign_ttl : typing.Optional[int]
|
|
829
845
|
Presigned URLs TTL (in minutes)
|
|
830
846
|
|
|
847
|
+
recursive_scan : typing.Optional[bool]
|
|
848
|
+
Perform recursive scan over the bucket content
|
|
849
|
+
|
|
831
850
|
regex_filter : typing.Optional[str]
|
|
832
851
|
Cloud storage regex for filtering objects
|
|
833
852
|
|
|
@@ -891,6 +910,7 @@ class AsyncGcswifClient:
|
|
|
891
910
|
"presign": presign,
|
|
892
911
|
"presign_ttl": presign_ttl,
|
|
893
912
|
"project": project,
|
|
913
|
+
"recursive_scan": recursive_scan,
|
|
894
914
|
"regex_filter": regex_filter,
|
|
895
915
|
"status": status,
|
|
896
916
|
"synchronizable": synchronizable,
|
|
@@ -934,6 +954,7 @@ class AsyncGcswifClient:
|
|
|
934
954
|
prefix: typing.Optional[str] = OMIT,
|
|
935
955
|
presign: typing.Optional[bool] = OMIT,
|
|
936
956
|
presign_ttl: typing.Optional[int] = OMIT,
|
|
957
|
+
recursive_scan: typing.Optional[bool] = OMIT,
|
|
937
958
|
regex_filter: typing.Optional[str] = OMIT,
|
|
938
959
|
status: typing.Optional[StatusC5AEnum] = OMIT,
|
|
939
960
|
synchronizable: typing.Optional[bool] = OMIT,
|
|
@@ -993,6 +1014,9 @@ class AsyncGcswifClient:
|
|
|
993
1014
|
presign_ttl : typing.Optional[int]
|
|
994
1015
|
Presigned URLs TTL (in minutes)
|
|
995
1016
|
|
|
1017
|
+
recursive_scan : typing.Optional[bool]
|
|
1018
|
+
Perform recursive scan over the bucket content
|
|
1019
|
+
|
|
996
1020
|
regex_filter : typing.Optional[str]
|
|
997
1021
|
Cloud storage regex for filtering objects
|
|
998
1022
|
|
|
@@ -1055,6 +1079,7 @@ class AsyncGcswifClient:
|
|
|
1055
1079
|
"presign": presign,
|
|
1056
1080
|
"presign_ttl": presign_ttl,
|
|
1057
1081
|
"project": project,
|
|
1082
|
+
"recursive_scan": recursive_scan,
|
|
1058
1083
|
"regex_filter": regex_filter,
|
|
1059
1084
|
"status": status,
|
|
1060
1085
|
"synchronizable": synchronizable,
|
|
@@ -1194,6 +1219,7 @@ class AsyncGcswifClient:
|
|
|
1194
1219
|
presign: typing.Optional[bool] = OMIT,
|
|
1195
1220
|
presign_ttl: typing.Optional[int] = OMIT,
|
|
1196
1221
|
project: typing.Optional[int] = OMIT,
|
|
1222
|
+
recursive_scan: typing.Optional[bool] = OMIT,
|
|
1197
1223
|
regex_filter: typing.Optional[str] = OMIT,
|
|
1198
1224
|
status: typing.Optional[StatusC5AEnum] = OMIT,
|
|
1199
1225
|
synchronizable: typing.Optional[bool] = OMIT,
|
|
@@ -1255,6 +1281,9 @@ class AsyncGcswifClient:
|
|
|
1255
1281
|
project : typing.Optional[int]
|
|
1256
1282
|
A unique integer value identifying this project.
|
|
1257
1283
|
|
|
1284
|
+
recursive_scan : typing.Optional[bool]
|
|
1285
|
+
Perform recursive scan over the bucket content
|
|
1286
|
+
|
|
1258
1287
|
regex_filter : typing.Optional[str]
|
|
1259
1288
|
Cloud storage regex for filtering objects
|
|
1260
1289
|
|
|
@@ -1318,6 +1347,7 @@ class AsyncGcswifClient:
|
|
|
1318
1347
|
"presign": presign,
|
|
1319
1348
|
"presign_ttl": presign_ttl,
|
|
1320
1349
|
"project": project,
|
|
1350
|
+
"recursive_scan": recursive_scan,
|
|
1321
1351
|
"regex_filter": regex_filter,
|
|
1322
1352
|
"status": status,
|
|
1323
1353
|
"synchronizable": synchronizable,
|
|
@@ -8,6 +8,7 @@ from ...core.unchecked_base_model import construct_type
|
|
|
8
8
|
from ...errors.forbidden_error import ForbiddenError
|
|
9
9
|
from json.decoder import JSONDecodeError
|
|
10
10
|
from ...core.api_error import ApiError
|
|
11
|
+
from ...types.role9e7enum import Role9E7Enum
|
|
11
12
|
from ...core.client_wrapper import AsyncClientWrapper
|
|
12
13
|
|
|
13
14
|
# this is used as the default value for optional parameters
|
|
@@ -117,7 +118,13 @@ class InvitesClient:
|
|
|
117
118
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
118
119
|
|
|
119
120
|
def send_email(
|
|
120
|
-
self,
|
|
121
|
+
self,
|
|
122
|
+
*,
|
|
123
|
+
emails: typing.Sequence[str],
|
|
124
|
+
role: Role9E7Enum,
|
|
125
|
+
projects: typing.Optional[typing.Sequence[int]] = OMIT,
|
|
126
|
+
workspaces: typing.Optional[typing.Sequence[int]] = OMIT,
|
|
127
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
121
128
|
) -> None:
|
|
122
129
|
"""
|
|
123
130
|
Send email with invite to organization
|
|
@@ -126,7 +133,11 @@ class InvitesClient:
|
|
|
126
133
|
----------
|
|
127
134
|
emails : typing.Sequence[str]
|
|
128
135
|
|
|
129
|
-
role :
|
|
136
|
+
role : Role9E7Enum
|
|
137
|
+
|
|
138
|
+
projects : typing.Optional[typing.Sequence[int]]
|
|
139
|
+
|
|
140
|
+
workspaces : typing.Optional[typing.Sequence[int]]
|
|
130
141
|
|
|
131
142
|
request_options : typing.Optional[RequestOptions]
|
|
132
143
|
Request-specific configuration.
|
|
@@ -144,7 +155,7 @@ class InvitesClient:
|
|
|
144
155
|
)
|
|
145
156
|
client.organizations.invites.send_email(
|
|
146
157
|
emails=["emails"],
|
|
147
|
-
role="
|
|
158
|
+
role="OW",
|
|
148
159
|
)
|
|
149
160
|
"""
|
|
150
161
|
_response = self._client_wrapper.httpx_client.request(
|
|
@@ -152,7 +163,9 @@ class InvitesClient:
|
|
|
152
163
|
method="POST",
|
|
153
164
|
json={
|
|
154
165
|
"emails": emails,
|
|
166
|
+
"projects": projects,
|
|
155
167
|
"role": role,
|
|
168
|
+
"workspaces": workspaces,
|
|
156
169
|
},
|
|
157
170
|
headers={
|
|
158
171
|
"content-type": "application/json",
|
|
@@ -298,7 +311,13 @@ class AsyncInvitesClient:
|
|
|
298
311
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
299
312
|
|
|
300
313
|
async def send_email(
|
|
301
|
-
self,
|
|
314
|
+
self,
|
|
315
|
+
*,
|
|
316
|
+
emails: typing.Sequence[str],
|
|
317
|
+
role: Role9E7Enum,
|
|
318
|
+
projects: typing.Optional[typing.Sequence[int]] = OMIT,
|
|
319
|
+
workspaces: typing.Optional[typing.Sequence[int]] = OMIT,
|
|
320
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
302
321
|
) -> None:
|
|
303
322
|
"""
|
|
304
323
|
Send email with invite to organization
|
|
@@ -307,7 +326,11 @@ class AsyncInvitesClient:
|
|
|
307
326
|
----------
|
|
308
327
|
emails : typing.Sequence[str]
|
|
309
328
|
|
|
310
|
-
role :
|
|
329
|
+
role : Role9E7Enum
|
|
330
|
+
|
|
331
|
+
projects : typing.Optional[typing.Sequence[int]]
|
|
332
|
+
|
|
333
|
+
workspaces : typing.Optional[typing.Sequence[int]]
|
|
311
334
|
|
|
312
335
|
request_options : typing.Optional[RequestOptions]
|
|
313
336
|
Request-specific configuration.
|
|
@@ -330,7 +353,7 @@ class AsyncInvitesClient:
|
|
|
330
353
|
async def main() -> None:
|
|
331
354
|
await client.organizations.invites.send_email(
|
|
332
355
|
emails=["emails"],
|
|
333
|
-
role="
|
|
356
|
+
role="OW",
|
|
334
357
|
)
|
|
335
358
|
|
|
336
359
|
|
|
@@ -341,7 +364,9 @@ class AsyncInvitesClient:
|
|
|
341
364
|
method="POST",
|
|
342
365
|
json={
|
|
343
366
|
"emails": emails,
|
|
367
|
+
"projects": projects,
|
|
344
368
|
"role": role,
|
|
369
|
+
"workspaces": workspaces,
|
|
345
370
|
},
|
|
346
371
|
headers={
|
|
347
372
|
"content-type": "application/json",
|
|
@@ -8,7 +8,6 @@ from .types import (
|
|
|
8
8
|
ProjectsDuplicateResponse,
|
|
9
9
|
ProjectsImportPredictionsResponse,
|
|
10
10
|
ProjectsImportTasksResponse,
|
|
11
|
-
ProjectsListRequestFilter,
|
|
12
11
|
)
|
|
13
12
|
from . import assignments, exports, members, metrics, pauses, stats
|
|
14
13
|
from .assignments import (
|
|
@@ -75,7 +74,6 @@ __all__ = [
|
|
|
75
74
|
"ProjectsDuplicateResponse",
|
|
76
75
|
"ProjectsImportPredictionsResponse",
|
|
77
76
|
"ProjectsImportTasksResponse",
|
|
78
|
-
"ProjectsListRequestFilter",
|
|
79
77
|
"StatsAgreementAnnotatorResponse",
|
|
80
78
|
"StatsDataFiltersResponse",
|
|
81
79
|
"StatsDataFiltersResponseUserFilters",
|