label-studio-sdk 2.0.5__py3-none-any.whl → 2.0.6__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 +52 -0
- label_studio_sdk/annotation_history/__init__.py +5 -0
- label_studio_sdk/annotation_history/client.py +415 -0
- label_studio_sdk/annotation_history/types/__init__.py +5 -0
- label_studio_sdk/annotation_history/types/annotation_history_delete_response.py +22 -0
- label_studio_sdk/annotation_reviews/__init__.py +2 -0
- label_studio_sdk/annotation_reviews/client.py +713 -0
- label_studio_sdk/base_client.py +16 -0
- label_studio_sdk/blueprints/__init__.py +2 -0
- label_studio_sdk/blueprints/client.py +272 -0
- label_studio_sdk/core/client_wrapper.py +2 -1
- label_studio_sdk/export_storage/__init__.py +2 -2
- label_studio_sdk/export_storage/azure_spi/__init__.py +2 -0
- label_studio_sdk/export_storage/azure_spi/client.py +1354 -0
- label_studio_sdk/export_storage/client.py +8 -0
- label_studio_sdk/export_storage/gcswif/__init__.py +2 -0
- label_studio_sdk/export_storage/gcswif/client.py +1376 -0
- label_studio_sdk/import_storage/__init__.py +2 -2
- label_studio_sdk/import_storage/azure_spi/__init__.py +2 -0
- label_studio_sdk/import_storage/azure_spi/client.py +1378 -0
- label_studio_sdk/import_storage/client.py +8 -0
- label_studio_sdk/import_storage/gcswif/__init__.py +2 -0
- label_studio_sdk/import_storage/gcswif/client.py +1400 -0
- label_studio_sdk/jwt_settings/client.py +10 -8
- label_studio_sdk/projects/client.py +8 -0
- label_studio_sdk/projects/members/__init__.py +2 -2
- label_studio_sdk/projects/members/bulk/client.py +46 -2
- label_studio_sdk/projects/members/client.py +4 -0
- label_studio_sdk/projects/members/paginated/__init__.py +2 -0
- label_studio_sdk/projects/members/paginated/client.py +248 -0
- label_studio_sdk/session_policy/__init__.py +2 -0
- label_studio_sdk/session_policy/client.py +247 -0
- label_studio_sdk/tasks/client.py +371 -0
- label_studio_sdk/types/__init__.py +42 -0
- label_studio_sdk/types/action_enum.py +19 -0
- label_studio_sdk/types/all_roles_project_list.py +1 -1
- label_studio_sdk/types/annotation.py +7 -0
- label_studio_sdk/types/annotation_history.py +81 -0
- label_studio_sdk/types/annotation_history_action.py +7 -0
- label_studio_sdk/types/annotation_request.py +7 -0
- label_studio_sdk/types/annotation_review.py +61 -0
- label_studio_sdk/types/annotation_review_request.py +41 -0
- label_studio_sdk/types/azure_service_principal_export_storage.py +114 -0
- label_studio_sdk/types/azure_service_principal_export_storage_request.py +107 -0
- label_studio_sdk/types/azure_service_principal_import_storage.py +115 -0
- label_studio_sdk/types/azure_service_principal_import_storage_request.py +108 -0
- label_studio_sdk/types/blueprint.py +41 -0
- label_studio_sdk/types/gcswif_export_storage.py +119 -0
- label_studio_sdk/types/gcswif_export_storage_request.py +112 -0
- label_studio_sdk/types/gcswif_import_storage.py +120 -0
- label_studio_sdk/types/gcswif_import_storage_request.py +113 -0
- label_studio_sdk/types/lse_project_update.py +1 -0
- label_studio_sdk/types/lse_task.py +1 -0
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +1 -0
- label_studio_sdk/types/lsejwt_settings.py +1 -5
- label_studio_sdk/types/paginated_annotation_history_list.py +23 -0
- label_studio_sdk/types/paginated_lse_user_list.py +23 -0
- label_studio_sdk/types/paginated_paginated_project_member_list.py +23 -0
- label_studio_sdk/types/paginated_project_member.py +50 -0
- label_studio_sdk/types/project_member_bulk_assign_roles_request.py +21 -0
- label_studio_sdk/types/review_settings.py +5 -0
- label_studio_sdk/types/review_settings_request.py +5 -0
- label_studio_sdk/types/session_timeout_policy.py +31 -0
- label_studio_sdk/types/task_event.py +61 -0
- label_studio_sdk/workspaces/members/__init__.py +2 -2
- label_studio_sdk/workspaces/members/client.py +4 -0
- label_studio_sdk/workspaces/members/paginated/__init__.py +2 -0
- label_studio_sdk/workspaces/members/paginated/client.py +212 -0
- {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.6.dist-info}/METADATA +2 -2
- {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.6.dist-info}/RECORD +72 -29
- {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.6.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.6.dist-info}/WHEEL +0 -0
label_studio_sdk/base_client.py
CHANGED
|
@@ -7,8 +7,11 @@ import httpx
|
|
|
7
7
|
from .core.api_error import ApiError
|
|
8
8
|
from .core.client_wrapper import SyncClientWrapper
|
|
9
9
|
from .activity_logs.client import ActivityLogsClient
|
|
10
|
+
from .annotation_history.client import AnnotationHistoryClient
|
|
11
|
+
from .annotation_reviews.client import AnnotationReviewsClient
|
|
10
12
|
from .annotations.client import AnnotationsClient
|
|
11
13
|
from .billing.client import BillingClient
|
|
14
|
+
from .blueprints.client import BlueprintsClient
|
|
12
15
|
from .comments.client import CommentsClient
|
|
13
16
|
from .users.client import UsersClient
|
|
14
17
|
from .actions.client import ActionsClient
|
|
@@ -22,6 +25,7 @@ from .prompts.client import PromptsClient
|
|
|
22
25
|
from .predictions.client import PredictionsClient
|
|
23
26
|
from .projects.client import ProjectsClient
|
|
24
27
|
from .tasks.client import TasksClient
|
|
28
|
+
from .session_policy.client import SessionPolicyClient
|
|
25
29
|
from .import_storage.client import ImportStorageClient
|
|
26
30
|
from .export_storage.client import ExportStorageClient
|
|
27
31
|
from .tokens.client import TokensClient
|
|
@@ -31,8 +35,11 @@ from .workspaces.client import WorkspacesClient
|
|
|
31
35
|
from .sso.client import SsoClient
|
|
32
36
|
from .core.client_wrapper import AsyncClientWrapper
|
|
33
37
|
from .activity_logs.client import AsyncActivityLogsClient
|
|
38
|
+
from .annotation_history.client import AsyncAnnotationHistoryClient
|
|
39
|
+
from .annotation_reviews.client import AsyncAnnotationReviewsClient
|
|
34
40
|
from .annotations.client import AsyncAnnotationsClient
|
|
35
41
|
from .billing.client import AsyncBillingClient
|
|
42
|
+
from .blueprints.client import AsyncBlueprintsClient
|
|
36
43
|
from .comments.client import AsyncCommentsClient
|
|
37
44
|
from .users.client import AsyncUsersClient
|
|
38
45
|
from .actions.client import AsyncActionsClient
|
|
@@ -46,6 +53,7 @@ from .prompts.client import AsyncPromptsClient
|
|
|
46
53
|
from .predictions.client import AsyncPredictionsClient
|
|
47
54
|
from .projects.client import AsyncProjectsClient
|
|
48
55
|
from .tasks.client import AsyncTasksClient
|
|
56
|
+
from .session_policy.client import AsyncSessionPolicyClient
|
|
49
57
|
from .import_storage.client import AsyncImportStorageClient
|
|
50
58
|
from .export_storage.client import AsyncExportStorageClient
|
|
51
59
|
from .tokens.client import AsyncTokensClient
|
|
@@ -118,8 +126,11 @@ class LabelStudioBase:
|
|
|
118
126
|
timeout=_defaulted_timeout,
|
|
119
127
|
)
|
|
120
128
|
self.activity_logs = ActivityLogsClient(client_wrapper=self._client_wrapper)
|
|
129
|
+
self.annotation_history = AnnotationHistoryClient(client_wrapper=self._client_wrapper)
|
|
130
|
+
self.annotation_reviews = AnnotationReviewsClient(client_wrapper=self._client_wrapper)
|
|
121
131
|
self.annotations = AnnotationsClient(client_wrapper=self._client_wrapper)
|
|
122
132
|
self.billing = BillingClient(client_wrapper=self._client_wrapper)
|
|
133
|
+
self.blueprints = BlueprintsClient(client_wrapper=self._client_wrapper)
|
|
123
134
|
self.comments = CommentsClient(client_wrapper=self._client_wrapper)
|
|
124
135
|
self.users = UsersClient(client_wrapper=self._client_wrapper)
|
|
125
136
|
self.actions = ActionsClient(client_wrapper=self._client_wrapper)
|
|
@@ -133,6 +144,7 @@ class LabelStudioBase:
|
|
|
133
144
|
self.predictions = PredictionsClient(client_wrapper=self._client_wrapper)
|
|
134
145
|
self.projects = ProjectsClient(client_wrapper=self._client_wrapper)
|
|
135
146
|
self.tasks = TasksClient(client_wrapper=self._client_wrapper)
|
|
147
|
+
self.session_policy = SessionPolicyClient(client_wrapper=self._client_wrapper)
|
|
136
148
|
self.import_storage = ImportStorageClient(client_wrapper=self._client_wrapper)
|
|
137
149
|
self.export_storage = ExportStorageClient(client_wrapper=self._client_wrapper)
|
|
138
150
|
self.tokens = TokensClient(client_wrapper=self._client_wrapper)
|
|
@@ -205,8 +217,11 @@ class AsyncLabelStudioBase:
|
|
|
205
217
|
timeout=_defaulted_timeout,
|
|
206
218
|
)
|
|
207
219
|
self.activity_logs = AsyncActivityLogsClient(client_wrapper=self._client_wrapper)
|
|
220
|
+
self.annotation_history = AsyncAnnotationHistoryClient(client_wrapper=self._client_wrapper)
|
|
221
|
+
self.annotation_reviews = AsyncAnnotationReviewsClient(client_wrapper=self._client_wrapper)
|
|
208
222
|
self.annotations = AsyncAnnotationsClient(client_wrapper=self._client_wrapper)
|
|
209
223
|
self.billing = AsyncBillingClient(client_wrapper=self._client_wrapper)
|
|
224
|
+
self.blueprints = AsyncBlueprintsClient(client_wrapper=self._client_wrapper)
|
|
210
225
|
self.comments = AsyncCommentsClient(client_wrapper=self._client_wrapper)
|
|
211
226
|
self.users = AsyncUsersClient(client_wrapper=self._client_wrapper)
|
|
212
227
|
self.actions = AsyncActionsClient(client_wrapper=self._client_wrapper)
|
|
@@ -220,6 +235,7 @@ class AsyncLabelStudioBase:
|
|
|
220
235
|
self.predictions = AsyncPredictionsClient(client_wrapper=self._client_wrapper)
|
|
221
236
|
self.projects = AsyncProjectsClient(client_wrapper=self._client_wrapper)
|
|
222
237
|
self.tasks = AsyncTasksClient(client_wrapper=self._client_wrapper)
|
|
238
|
+
self.session_policy = AsyncSessionPolicyClient(client_wrapper=self._client_wrapper)
|
|
223
239
|
self.import_storage = AsyncImportStorageClient(client_wrapper=self._client_wrapper)
|
|
224
240
|
self.export_storage = AsyncExportStorageClient(client_wrapper=self._client_wrapper)
|
|
225
241
|
self.tokens = AsyncTokensClient(client_wrapper=self._client_wrapper)
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from ..core.client_wrapper import SyncClientWrapper
|
|
5
|
+
from ..core.request_options import RequestOptions
|
|
6
|
+
from ..types.blueprint import Blueprint
|
|
7
|
+
from ..core.unchecked_base_model import construct_type
|
|
8
|
+
from json.decoder import JSONDecodeError
|
|
9
|
+
from ..core.api_error import ApiError
|
|
10
|
+
from ..core.jsonable_encoder import jsonable_encoder
|
|
11
|
+
from ..core.client_wrapper import AsyncClientWrapper
|
|
12
|
+
|
|
13
|
+
# this is used as the default value for optional parameters
|
|
14
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class BlueprintsClient:
|
|
18
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
19
|
+
self._client_wrapper = client_wrapper
|
|
20
|
+
|
|
21
|
+
def create(
|
|
22
|
+
self,
|
|
23
|
+
*,
|
|
24
|
+
project: int,
|
|
25
|
+
created_by: typing.Optional[int] = OMIT,
|
|
26
|
+
description: typing.Optional[str] = OMIT,
|
|
27
|
+
label_config: typing.Optional[str] = OMIT,
|
|
28
|
+
title: typing.Optional[str] = OMIT,
|
|
29
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
30
|
+
) -> Blueprint:
|
|
31
|
+
"""
|
|
32
|
+
Create a new blueprint
|
|
33
|
+
|
|
34
|
+
Parameters
|
|
35
|
+
----------
|
|
36
|
+
project : int
|
|
37
|
+
|
|
38
|
+
created_by : typing.Optional[int]
|
|
39
|
+
|
|
40
|
+
description : typing.Optional[str]
|
|
41
|
+
Project description
|
|
42
|
+
|
|
43
|
+
label_config : typing.Optional[str]
|
|
44
|
+
Labeling configuration in XML format
|
|
45
|
+
|
|
46
|
+
title : typing.Optional[str]
|
|
47
|
+
Blueprint name. Must be between 3 and 50 characters long.
|
|
48
|
+
|
|
49
|
+
request_options : typing.Optional[RequestOptions]
|
|
50
|
+
Request-specific configuration.
|
|
51
|
+
|
|
52
|
+
Returns
|
|
53
|
+
-------
|
|
54
|
+
Blueprint
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
Examples
|
|
58
|
+
--------
|
|
59
|
+
from label_studio_sdk import LabelStudio
|
|
60
|
+
|
|
61
|
+
client = LabelStudio(
|
|
62
|
+
api_key="YOUR_API_KEY",
|
|
63
|
+
)
|
|
64
|
+
client.blueprints.create(
|
|
65
|
+
project=1,
|
|
66
|
+
)
|
|
67
|
+
"""
|
|
68
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
69
|
+
"api/blueprints/",
|
|
70
|
+
method="POST",
|
|
71
|
+
json={
|
|
72
|
+
"created_by": created_by,
|
|
73
|
+
"description": description,
|
|
74
|
+
"label_config": label_config,
|
|
75
|
+
"project": project,
|
|
76
|
+
"title": title,
|
|
77
|
+
},
|
|
78
|
+
headers={
|
|
79
|
+
"content-type": "application/json",
|
|
80
|
+
},
|
|
81
|
+
request_options=request_options,
|
|
82
|
+
omit=OMIT,
|
|
83
|
+
)
|
|
84
|
+
try:
|
|
85
|
+
if 200 <= _response.status_code < 300:
|
|
86
|
+
return typing.cast(
|
|
87
|
+
Blueprint,
|
|
88
|
+
construct_type(
|
|
89
|
+
type_=Blueprint, # type: ignore
|
|
90
|
+
object_=_response.json(),
|
|
91
|
+
),
|
|
92
|
+
)
|
|
93
|
+
_response_json = _response.json()
|
|
94
|
+
except JSONDecodeError:
|
|
95
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
96
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
97
|
+
|
|
98
|
+
def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
|
99
|
+
"""
|
|
100
|
+
Delete a blueprint by ID
|
|
101
|
+
|
|
102
|
+
Parameters
|
|
103
|
+
----------
|
|
104
|
+
id : str
|
|
105
|
+
|
|
106
|
+
request_options : typing.Optional[RequestOptions]
|
|
107
|
+
Request-specific configuration.
|
|
108
|
+
|
|
109
|
+
Returns
|
|
110
|
+
-------
|
|
111
|
+
None
|
|
112
|
+
|
|
113
|
+
Examples
|
|
114
|
+
--------
|
|
115
|
+
from label_studio_sdk import LabelStudio
|
|
116
|
+
|
|
117
|
+
client = LabelStudio(
|
|
118
|
+
api_key="YOUR_API_KEY",
|
|
119
|
+
)
|
|
120
|
+
client.blueprints.delete(
|
|
121
|
+
id="id",
|
|
122
|
+
)
|
|
123
|
+
"""
|
|
124
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
125
|
+
f"api/blueprints/{jsonable_encoder(id)}/",
|
|
126
|
+
method="DELETE",
|
|
127
|
+
request_options=request_options,
|
|
128
|
+
)
|
|
129
|
+
try:
|
|
130
|
+
if 200 <= _response.status_code < 300:
|
|
131
|
+
return
|
|
132
|
+
_response_json = _response.json()
|
|
133
|
+
except JSONDecodeError:
|
|
134
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
135
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
class AsyncBlueprintsClient:
|
|
139
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
140
|
+
self._client_wrapper = client_wrapper
|
|
141
|
+
|
|
142
|
+
async def create(
|
|
143
|
+
self,
|
|
144
|
+
*,
|
|
145
|
+
project: int,
|
|
146
|
+
created_by: typing.Optional[int] = OMIT,
|
|
147
|
+
description: typing.Optional[str] = OMIT,
|
|
148
|
+
label_config: typing.Optional[str] = OMIT,
|
|
149
|
+
title: typing.Optional[str] = OMIT,
|
|
150
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
151
|
+
) -> Blueprint:
|
|
152
|
+
"""
|
|
153
|
+
Create a new blueprint
|
|
154
|
+
|
|
155
|
+
Parameters
|
|
156
|
+
----------
|
|
157
|
+
project : int
|
|
158
|
+
|
|
159
|
+
created_by : typing.Optional[int]
|
|
160
|
+
|
|
161
|
+
description : typing.Optional[str]
|
|
162
|
+
Project description
|
|
163
|
+
|
|
164
|
+
label_config : typing.Optional[str]
|
|
165
|
+
Labeling configuration in XML format
|
|
166
|
+
|
|
167
|
+
title : typing.Optional[str]
|
|
168
|
+
Blueprint name. Must be between 3 and 50 characters long.
|
|
169
|
+
|
|
170
|
+
request_options : typing.Optional[RequestOptions]
|
|
171
|
+
Request-specific configuration.
|
|
172
|
+
|
|
173
|
+
Returns
|
|
174
|
+
-------
|
|
175
|
+
Blueprint
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
Examples
|
|
179
|
+
--------
|
|
180
|
+
import asyncio
|
|
181
|
+
|
|
182
|
+
from label_studio_sdk import AsyncLabelStudio
|
|
183
|
+
|
|
184
|
+
client = AsyncLabelStudio(
|
|
185
|
+
api_key="YOUR_API_KEY",
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
async def main() -> None:
|
|
190
|
+
await client.blueprints.create(
|
|
191
|
+
project=1,
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
asyncio.run(main())
|
|
196
|
+
"""
|
|
197
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
198
|
+
"api/blueprints/",
|
|
199
|
+
method="POST",
|
|
200
|
+
json={
|
|
201
|
+
"created_by": created_by,
|
|
202
|
+
"description": description,
|
|
203
|
+
"label_config": label_config,
|
|
204
|
+
"project": project,
|
|
205
|
+
"title": title,
|
|
206
|
+
},
|
|
207
|
+
headers={
|
|
208
|
+
"content-type": "application/json",
|
|
209
|
+
},
|
|
210
|
+
request_options=request_options,
|
|
211
|
+
omit=OMIT,
|
|
212
|
+
)
|
|
213
|
+
try:
|
|
214
|
+
if 200 <= _response.status_code < 300:
|
|
215
|
+
return typing.cast(
|
|
216
|
+
Blueprint,
|
|
217
|
+
construct_type(
|
|
218
|
+
type_=Blueprint, # type: ignore
|
|
219
|
+
object_=_response.json(),
|
|
220
|
+
),
|
|
221
|
+
)
|
|
222
|
+
_response_json = _response.json()
|
|
223
|
+
except JSONDecodeError:
|
|
224
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
225
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
226
|
+
|
|
227
|
+
async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
|
228
|
+
"""
|
|
229
|
+
Delete a blueprint by ID
|
|
230
|
+
|
|
231
|
+
Parameters
|
|
232
|
+
----------
|
|
233
|
+
id : str
|
|
234
|
+
|
|
235
|
+
request_options : typing.Optional[RequestOptions]
|
|
236
|
+
Request-specific configuration.
|
|
237
|
+
|
|
238
|
+
Returns
|
|
239
|
+
-------
|
|
240
|
+
None
|
|
241
|
+
|
|
242
|
+
Examples
|
|
243
|
+
--------
|
|
244
|
+
import asyncio
|
|
245
|
+
|
|
246
|
+
from label_studio_sdk import AsyncLabelStudio
|
|
247
|
+
|
|
248
|
+
client = AsyncLabelStudio(
|
|
249
|
+
api_key="YOUR_API_KEY",
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
async def main() -> None:
|
|
254
|
+
await client.blueprints.delete(
|
|
255
|
+
id="id",
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
asyncio.run(main())
|
|
260
|
+
"""
|
|
261
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
262
|
+
f"api/blueprints/{jsonable_encoder(id)}/",
|
|
263
|
+
method="DELETE",
|
|
264
|
+
request_options=request_options,
|
|
265
|
+
)
|
|
266
|
+
try:
|
|
267
|
+
if 200 <= _response.status_code < 300:
|
|
268
|
+
return
|
|
269
|
+
_response_json = _response.json()
|
|
270
|
+
except JSONDecodeError:
|
|
271
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
272
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
@@ -4,6 +4,7 @@ import httpx
|
|
|
4
4
|
|
|
5
5
|
from .http_client import AsyncHttpClient, HttpClient
|
|
6
6
|
|
|
7
|
+
VERSION = "2.0.6"
|
|
7
8
|
|
|
8
9
|
class BaseClientWrapper:
|
|
9
10
|
def __init__(
|
|
@@ -33,7 +34,7 @@ class BaseClientWrapper:
|
|
|
33
34
|
headers: typing.Dict[str, str] = {
|
|
34
35
|
"X-Fern-Language": "Python",
|
|
35
36
|
"X-Fern-SDK-Name": "label-studio-sdk",
|
|
36
|
-
"X-Fern-SDK-Version":
|
|
37
|
+
"X-Fern-SDK-Version": VERSION,
|
|
37
38
|
}
|
|
38
39
|
if self._tokens_client._use_legacy_token:
|
|
39
40
|
headers["Authorization"] = f"Token {self._tokens_client.api_key}"
|
|
@@ -1,6 +1,6 @@
|
|
|
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, gcs, local, redis, s3, s3s
|
|
4
|
+
from . import azure, azure_spi, gcs, gcswif, local, redis, s3, s3s
|
|
5
5
|
|
|
6
|
-
__all__ = ["ExportStorageListTypesResponseItem", "azure", "gcs", "local", "redis", "s3", "s3s"]
|
|
6
|
+
__all__ = ["ExportStorageListTypesResponseItem", "azure", "azure_spi", "gcs", "gcswif", "local", "redis", "s3", "s3s"]
|