label-studio-sdk 2.0.12__py3-none-any.whl → 2.0.13__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 +2 -8
- label_studio_sdk/actions/__init__.py +2 -0
- label_studio_sdk/actions/types/__init__.py +2 -0
- label_studio_sdk/actions/types/actions_list_response_item.py +2 -1
- label_studio_sdk/actions/types/actions_list_response_item_permission.py +5 -0
- label_studio_sdk/core/client_wrapper.py +6 -1
- label_studio_sdk/export_storage/azure/client.py +14 -10
- label_studio_sdk/export_storage/azure_spi/client.py +14 -10
- label_studio_sdk/export_storage/databricks/client.py +14 -10
- label_studio_sdk/export_storage/gcs/client.py +14 -10
- label_studio_sdk/export_storage/gcswif/client.py +14 -10
- label_studio_sdk/export_storage/local/client.py +14 -10
- label_studio_sdk/export_storage/redis/client.py +14 -10
- label_studio_sdk/export_storage/s3/client.py +14 -10
- label_studio_sdk/export_storage/s3s/client.py +14 -10
- label_studio_sdk/import_storage/azure/client.py +14 -10
- label_studio_sdk/import_storage/azure_spi/client.py +14 -10
- label_studio_sdk/import_storage/databricks/client.py +14 -10
- label_studio_sdk/import_storage/gcs/client.py +14 -10
- label_studio_sdk/import_storage/gcswif/client.py +14 -10
- label_studio_sdk/import_storage/local/client.py +14 -10
- label_studio_sdk/import_storage/redis/client.py +14 -10
- label_studio_sdk/import_storage/s3/client.py +14 -10
- label_studio_sdk/import_storage/s3s/client.py +14 -10
- label_studio_sdk/label_interface/control_tags.py +2 -1
- label_studio_sdk/organizations/__init__.py +1 -2
- label_studio_sdk/organizations/client.py +0 -36
- label_studio_sdk/organizations/permissions/client.py +32 -0
- label_studio_sdk/projects/__init__.py +10 -0
- label_studio_sdk/projects/metrics/custom/client.py +48 -0
- label_studio_sdk/projects/stats/__init__.py +10 -0
- label_studio_sdk/projects/stats/client.py +346 -0
- label_studio_sdk/projects/stats/types/__init__.py +14 -0
- label_studio_sdk/projects/stats/types/stats_users_ground_truth_agreement_response.py +27 -0
- label_studio_sdk/projects/stats/types/stats_users_ground_truth_agreement_response_agreement_value.py +5 -0
- label_studio_sdk/projects/stats/types/stats_users_review_score_response.py +35 -0
- label_studio_sdk/projects/stats/types/stats_users_review_score_response_performance_score_value.py +5 -0
- label_studio_sdk/projects/stats/types/stats_users_review_score_response_review_score_value.py +5 -0
- label_studio_sdk/prompts/versions/client.py +24 -0
- label_studio_sdk/tasks/client.py +10 -0
- label_studio_sdk/types/__init__.py +0 -6
- label_studio_sdk/types/activity_log.py +1 -0
- label_studio_sdk/types/all_roles_project_list.py +1 -1
- label_studio_sdk/types/billing_flags.py +1 -1
- label_studio_sdk/types/default_role.py +0 -9
- label_studio_sdk/types/import_api_request.py +5 -0
- label_studio_sdk/types/lse_organization.py +1 -10
- label_studio_sdk/types/lse_project.py +1 -5
- label_studio_sdk/types/lse_project_counts.py +1 -1
- label_studio_sdk/types/lse_task.py +5 -0
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +5 -0
- label_studio_sdk/versions/client.py +0 -12
- {label_studio_sdk-2.0.12.dist-info → label_studio_sdk-2.0.13.dist-info}/METADATA +1 -1
- {label_studio_sdk-2.0.12.dist-info → label_studio_sdk-2.0.13.dist-info}/RECORD +56 -55
- label_studio_sdk/organizations/types/__init__.py +0 -5
- label_studio_sdk/organizations/types/patched_default_role_request_custom_scripts_editable_by.py +0 -7
- label_studio_sdk/types/custom_scripts_editable_by_enum.py +0 -5
- label_studio_sdk/types/default_role_custom_scripts_editable_by.py +0 -7
- label_studio_sdk/types/lse_organization_custom_scripts_editable_by.py +0 -7
- {label_studio_sdk-2.0.12.dist-info → label_studio_sdk-2.0.13.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.12.dist-info → label_studio_sdk-2.0.13.dist-info}/WHEEL +0 -0
label_studio_sdk/__init__.py
CHANGED
|
@@ -46,14 +46,12 @@ from .types import (
|
|
|
46
46
|
ConvertedFormat,
|
|
47
47
|
ConvertedFormatRequest,
|
|
48
48
|
CountLimit,
|
|
49
|
-
CustomScriptsEditableByEnum,
|
|
50
49
|
DatabricksExportStorage,
|
|
51
50
|
DatabricksExportStorageRequest,
|
|
52
51
|
DatabricksImportStorage,
|
|
53
52
|
DatabricksImportStorageRequest,
|
|
54
53
|
Default165Enum,
|
|
55
54
|
DefaultRole,
|
|
56
|
-
DefaultRoleCustomScriptsEditableBy,
|
|
57
55
|
EditionEnum,
|
|
58
56
|
Export,
|
|
59
57
|
FileUpload,
|
|
@@ -83,7 +81,6 @@ from .types import (
|
|
|
83
81
|
LseFieldsTrialRole,
|
|
84
82
|
LseKeyIndicatorValue,
|
|
85
83
|
LseOrganization,
|
|
86
|
-
LseOrganizationCustomScriptsEditableBy,
|
|
87
84
|
LseOrganizationMemberList,
|
|
88
85
|
LseProject,
|
|
89
86
|
LseProjectCounts,
|
|
@@ -294,6 +291,7 @@ from .actions import (
|
|
|
294
291
|
ActionsCreateRequestSelectedItemsIncluded,
|
|
295
292
|
ActionsListResponseItem,
|
|
296
293
|
ActionsListResponseItemDialog,
|
|
294
|
+
ActionsListResponseItemPermission,
|
|
297
295
|
)
|
|
298
296
|
from .activity_logs import ActivityLogsListRequestMethod
|
|
299
297
|
from .annotation_history import AnnotationHistoryDeleteResponse
|
|
@@ -304,7 +302,6 @@ from .export_storage import ExportStorageListTypesResponseItem
|
|
|
304
302
|
from .import_storage import ImportStorageListTypesResponseItem
|
|
305
303
|
from .ml import MlCreateRequestAuthMethod, MlListModelVersionsResponse, MlUpdateRequestAuthMethod
|
|
306
304
|
from .model_providers import ModelProvidersListModelProviderChoicesResponse
|
|
307
|
-
from .organizations import PatchedDefaultRoleRequestCustomScriptsEditableBy
|
|
308
305
|
from .projects import (
|
|
309
306
|
LseProjectCreateRequestSampling,
|
|
310
307
|
LseProjectCreateRequestSkipQueue,
|
|
@@ -371,6 +368,7 @@ __all__ = [
|
|
|
371
368
|
"ActionsEnum",
|
|
372
369
|
"ActionsListResponseItem",
|
|
373
370
|
"ActionsListResponseItemDialog",
|
|
371
|
+
"ActionsListResponseItemPermission",
|
|
374
372
|
"ActivityLog",
|
|
375
373
|
"ActivityLogResponse",
|
|
376
374
|
"ActivityLogsListRequestMethod",
|
|
@@ -421,14 +419,12 @@ __all__ = [
|
|
|
421
419
|
"ConvertedFormat",
|
|
422
420
|
"ConvertedFormatRequest",
|
|
423
421
|
"CountLimit",
|
|
424
|
-
"CustomScriptsEditableByEnum",
|
|
425
422
|
"DatabricksExportStorage",
|
|
426
423
|
"DatabricksExportStorageRequest",
|
|
427
424
|
"DatabricksImportStorage",
|
|
428
425
|
"DatabricksImportStorageRequest",
|
|
429
426
|
"Default165Enum",
|
|
430
427
|
"DefaultRole",
|
|
431
|
-
"DefaultRoleCustomScriptsEditableBy",
|
|
432
428
|
"EditionEnum",
|
|
433
429
|
"Export",
|
|
434
430
|
"ExportStorageListTypesResponseItem",
|
|
@@ -464,7 +460,6 @@ __all__ = [
|
|
|
464
460
|
"LseFieldsTrialRole",
|
|
465
461
|
"LseKeyIndicatorValue",
|
|
466
462
|
"LseOrganization",
|
|
467
|
-
"LseOrganizationCustomScriptsEditableBy",
|
|
468
463
|
"LseOrganizationMemberList",
|
|
469
464
|
"LseProject",
|
|
470
465
|
"LseProjectCounts",
|
|
@@ -547,7 +542,6 @@ __all__ = [
|
|
|
547
542
|
"PaginatedProjectMember",
|
|
548
543
|
"PaginatedProjectSubsetTasksResponseList",
|
|
549
544
|
"PaginatedRoleBasedTaskList",
|
|
550
|
-
"PatchedDefaultRoleRequestCustomScriptsEditableBy",
|
|
551
545
|
"PatchedLseProjectUpdateRequestSampling",
|
|
552
546
|
"PatchedLseProjectUpdateRequestSkipQueue",
|
|
553
547
|
"Pause",
|
|
@@ -14,6 +14,7 @@ from .types import (
|
|
|
14
14
|
ActionsCreateRequestSelectedItemsIncluded,
|
|
15
15
|
ActionsListResponseItem,
|
|
16
16
|
ActionsListResponseItemDialog,
|
|
17
|
+
ActionsListResponseItemPermission,
|
|
17
18
|
)
|
|
18
19
|
|
|
19
20
|
__all__ = [
|
|
@@ -30,4 +31,5 @@ __all__ = [
|
|
|
30
31
|
"ActionsCreateRequestSelectedItemsIncluded",
|
|
31
32
|
"ActionsListResponseItem",
|
|
32
33
|
"ActionsListResponseItemDialog",
|
|
34
|
+
"ActionsListResponseItemPermission",
|
|
33
35
|
]
|
|
@@ -13,6 +13,7 @@ from .actions_create_request_selected_items_excluded import ActionsCreateRequest
|
|
|
13
13
|
from .actions_create_request_selected_items_included import ActionsCreateRequestSelectedItemsIncluded
|
|
14
14
|
from .actions_list_response_item import ActionsListResponseItem
|
|
15
15
|
from .actions_list_response_item_dialog import ActionsListResponseItemDialog
|
|
16
|
+
from .actions_list_response_item_permission import ActionsListResponseItemPermission
|
|
16
17
|
|
|
17
18
|
__all__ = [
|
|
18
19
|
"ActionsCreateRequestFilters",
|
|
@@ -28,4 +29,5 @@ __all__ = [
|
|
|
28
29
|
"ActionsCreateRequestSelectedItemsIncluded",
|
|
29
30
|
"ActionsListResponseItem",
|
|
30
31
|
"ActionsListResponseItemDialog",
|
|
32
|
+
"ActionsListResponseItemPermission",
|
|
31
33
|
]
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from .actions_list_response_item_dialog import ActionsListResponseItemDialog
|
|
6
|
+
from .actions_list_response_item_permission import ActionsListResponseItemPermission
|
|
6
7
|
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
8
|
import pydantic
|
|
8
9
|
|
|
@@ -12,7 +13,7 @@ class ActionsListResponseItem(UncheckedBaseModel):
|
|
|
12
13
|
experimental: typing.Optional[bool] = None
|
|
13
14
|
id: typing.Optional[str] = None
|
|
14
15
|
order: typing.Optional[int] = None
|
|
15
|
-
permission: typing.Optional[
|
|
16
|
+
permission: typing.Optional[ActionsListResponseItemPermission] = None
|
|
16
17
|
title: typing.Optional[str] = None
|
|
17
18
|
|
|
18
19
|
if IS_PYDANTIC_V2:
|
|
@@ -4,7 +4,12 @@ import httpx
|
|
|
4
4
|
|
|
5
5
|
from .http_client import AsyncHttpClient, HttpClient
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import importlib.metadata
|
|
8
|
+
|
|
9
|
+
try:
|
|
10
|
+
VERSION = importlib.metadata.version("label-studio-sdk")
|
|
11
|
+
except importlib.metadata.PackageNotFoundError:
|
|
12
|
+
VERSION = "unknown"
|
|
8
13
|
|
|
9
14
|
class BaseClientWrapper:
|
|
10
15
|
def __init__(
|
|
@@ -21,8 +21,8 @@ class AzureClient:
|
|
|
21
21
|
def list(
|
|
22
22
|
self,
|
|
23
23
|
*,
|
|
24
|
+
project: int,
|
|
24
25
|
ordering: typing.Optional[str] = None,
|
|
25
|
-
project: typing.Optional[int] = None,
|
|
26
26
|
request_options: typing.Optional[RequestOptions] = None,
|
|
27
27
|
) -> typing.List[AzureBlobExportStorage]:
|
|
28
28
|
"""
|
|
@@ -30,12 +30,12 @@ class AzureClient:
|
|
|
30
30
|
|
|
31
31
|
Parameters
|
|
32
32
|
----------
|
|
33
|
+
project : int
|
|
34
|
+
Project ID
|
|
35
|
+
|
|
33
36
|
ordering : typing.Optional[str]
|
|
34
37
|
Which field to use when ordering the results.
|
|
35
38
|
|
|
36
|
-
project : typing.Optional[int]
|
|
37
|
-
Project ID
|
|
38
|
-
|
|
39
39
|
request_options : typing.Optional[RequestOptions]
|
|
40
40
|
Request-specific configuration.
|
|
41
41
|
|
|
@@ -51,7 +51,9 @@ class AzureClient:
|
|
|
51
51
|
client = LabelStudio(
|
|
52
52
|
api_key="YOUR_API_KEY",
|
|
53
53
|
)
|
|
54
|
-
client.export_storage.azure.list(
|
|
54
|
+
client.export_storage.azure.list(
|
|
55
|
+
project=1,
|
|
56
|
+
)
|
|
55
57
|
"""
|
|
56
58
|
_response = self._client_wrapper.httpx_client.request(
|
|
57
59
|
"api/storages/export/azure",
|
|
@@ -494,8 +496,8 @@ class AsyncAzureClient:
|
|
|
494
496
|
async def list(
|
|
495
497
|
self,
|
|
496
498
|
*,
|
|
499
|
+
project: int,
|
|
497
500
|
ordering: typing.Optional[str] = None,
|
|
498
|
-
project: typing.Optional[int] = None,
|
|
499
501
|
request_options: typing.Optional[RequestOptions] = None,
|
|
500
502
|
) -> typing.List[AzureBlobExportStorage]:
|
|
501
503
|
"""
|
|
@@ -503,12 +505,12 @@ class AsyncAzureClient:
|
|
|
503
505
|
|
|
504
506
|
Parameters
|
|
505
507
|
----------
|
|
508
|
+
project : int
|
|
509
|
+
Project ID
|
|
510
|
+
|
|
506
511
|
ordering : typing.Optional[str]
|
|
507
512
|
Which field to use when ordering the results.
|
|
508
513
|
|
|
509
|
-
project : typing.Optional[int]
|
|
510
|
-
Project ID
|
|
511
|
-
|
|
512
514
|
request_options : typing.Optional[RequestOptions]
|
|
513
515
|
Request-specific configuration.
|
|
514
516
|
|
|
@@ -529,7 +531,9 @@ class AsyncAzureClient:
|
|
|
529
531
|
|
|
530
532
|
|
|
531
533
|
async def main() -> None:
|
|
532
|
-
await client.export_storage.azure.list(
|
|
534
|
+
await client.export_storage.azure.list(
|
|
535
|
+
project=1,
|
|
536
|
+
)
|
|
533
537
|
|
|
534
538
|
|
|
535
539
|
asyncio.run(main())
|
|
@@ -23,8 +23,8 @@ class AzureSpiClient:
|
|
|
23
23
|
def list(
|
|
24
24
|
self,
|
|
25
25
|
*,
|
|
26
|
+
project: int,
|
|
26
27
|
ordering: typing.Optional[str] = None,
|
|
27
|
-
project: typing.Optional[int] = None,
|
|
28
28
|
request_options: typing.Optional[RequestOptions] = None,
|
|
29
29
|
) -> typing.List[AzureServicePrincipalExportStorage]:
|
|
30
30
|
"""
|
|
@@ -38,12 +38,12 @@ class AzureSpiClient:
|
|
|
38
38
|
|
|
39
39
|
Parameters
|
|
40
40
|
----------
|
|
41
|
+
project : int
|
|
42
|
+
Project ID
|
|
43
|
+
|
|
41
44
|
ordering : typing.Optional[str]
|
|
42
45
|
Which field to use when ordering the results.
|
|
43
46
|
|
|
44
|
-
project : typing.Optional[int]
|
|
45
|
-
Project ID
|
|
46
|
-
|
|
47
47
|
request_options : typing.Optional[RequestOptions]
|
|
48
48
|
Request-specific configuration.
|
|
49
49
|
|
|
@@ -59,7 +59,9 @@ class AzureSpiClient:
|
|
|
59
59
|
client = LabelStudio(
|
|
60
60
|
api_key="YOUR_API_KEY",
|
|
61
61
|
)
|
|
62
|
-
client.export_storage.azure_spi.list(
|
|
62
|
+
client.export_storage.azure_spi.list(
|
|
63
|
+
project=1,
|
|
64
|
+
)
|
|
63
65
|
"""
|
|
64
66
|
_response = self._client_wrapper.httpx_client.request(
|
|
65
67
|
"api/storages/export/azure_spi",
|
|
@@ -706,8 +708,8 @@ class AsyncAzureSpiClient:
|
|
|
706
708
|
async def list(
|
|
707
709
|
self,
|
|
708
710
|
*,
|
|
711
|
+
project: int,
|
|
709
712
|
ordering: typing.Optional[str] = None,
|
|
710
|
-
project: typing.Optional[int] = None,
|
|
711
713
|
request_options: typing.Optional[RequestOptions] = None,
|
|
712
714
|
) -> typing.List[AzureServicePrincipalExportStorage]:
|
|
713
715
|
"""
|
|
@@ -721,12 +723,12 @@ class AsyncAzureSpiClient:
|
|
|
721
723
|
|
|
722
724
|
Parameters
|
|
723
725
|
----------
|
|
726
|
+
project : int
|
|
727
|
+
Project ID
|
|
728
|
+
|
|
724
729
|
ordering : typing.Optional[str]
|
|
725
730
|
Which field to use when ordering the results.
|
|
726
731
|
|
|
727
|
-
project : typing.Optional[int]
|
|
728
|
-
Project ID
|
|
729
|
-
|
|
730
732
|
request_options : typing.Optional[RequestOptions]
|
|
731
733
|
Request-specific configuration.
|
|
732
734
|
|
|
@@ -747,7 +749,9 @@ class AsyncAzureSpiClient:
|
|
|
747
749
|
|
|
748
750
|
|
|
749
751
|
async def main() -> None:
|
|
750
|
-
await client.export_storage.azure_spi.list(
|
|
752
|
+
await client.export_storage.azure_spi.list(
|
|
753
|
+
project=1,
|
|
754
|
+
)
|
|
751
755
|
|
|
752
756
|
|
|
753
757
|
asyncio.run(main())
|
|
@@ -23,8 +23,8 @@ class DatabricksClient:
|
|
|
23
23
|
def list(
|
|
24
24
|
self,
|
|
25
25
|
*,
|
|
26
|
+
project: int,
|
|
26
27
|
ordering: typing.Optional[str] = None,
|
|
27
|
-
project: typing.Optional[int] = None,
|
|
28
28
|
request_options: typing.Optional[RequestOptions] = None,
|
|
29
29
|
) -> typing.List[DatabricksExportStorage]:
|
|
30
30
|
"""
|
|
@@ -38,12 +38,12 @@ class DatabricksClient:
|
|
|
38
38
|
|
|
39
39
|
Parameters
|
|
40
40
|
----------
|
|
41
|
+
project : int
|
|
42
|
+
Project ID
|
|
43
|
+
|
|
41
44
|
ordering : typing.Optional[str]
|
|
42
45
|
Which field to use when ordering the results.
|
|
43
46
|
|
|
44
|
-
project : typing.Optional[int]
|
|
45
|
-
Project ID
|
|
46
|
-
|
|
47
47
|
request_options : typing.Optional[RequestOptions]
|
|
48
48
|
Request-specific configuration.
|
|
49
49
|
|
|
@@ -59,7 +59,9 @@ class DatabricksClient:
|
|
|
59
59
|
client = LabelStudio(
|
|
60
60
|
api_key="YOUR_API_KEY",
|
|
61
61
|
)
|
|
62
|
-
client.export_storage.databricks.list(
|
|
62
|
+
client.export_storage.databricks.list(
|
|
63
|
+
project=1,
|
|
64
|
+
)
|
|
63
65
|
"""
|
|
64
66
|
_response = self._client_wrapper.httpx_client.request(
|
|
65
67
|
"api/storages/export/databricks",
|
|
@@ -731,8 +733,8 @@ class AsyncDatabricksClient:
|
|
|
731
733
|
async def list(
|
|
732
734
|
self,
|
|
733
735
|
*,
|
|
736
|
+
project: int,
|
|
734
737
|
ordering: typing.Optional[str] = None,
|
|
735
|
-
project: typing.Optional[int] = None,
|
|
736
738
|
request_options: typing.Optional[RequestOptions] = None,
|
|
737
739
|
) -> typing.List[DatabricksExportStorage]:
|
|
738
740
|
"""
|
|
@@ -746,12 +748,12 @@ class AsyncDatabricksClient:
|
|
|
746
748
|
|
|
747
749
|
Parameters
|
|
748
750
|
----------
|
|
751
|
+
project : int
|
|
752
|
+
Project ID
|
|
753
|
+
|
|
749
754
|
ordering : typing.Optional[str]
|
|
750
755
|
Which field to use when ordering the results.
|
|
751
756
|
|
|
752
|
-
project : typing.Optional[int]
|
|
753
|
-
Project ID
|
|
754
|
-
|
|
755
757
|
request_options : typing.Optional[RequestOptions]
|
|
756
758
|
Request-specific configuration.
|
|
757
759
|
|
|
@@ -772,7 +774,9 @@ class AsyncDatabricksClient:
|
|
|
772
774
|
|
|
773
775
|
|
|
774
776
|
async def main() -> None:
|
|
775
|
-
await client.export_storage.databricks.list(
|
|
777
|
+
await client.export_storage.databricks.list(
|
|
778
|
+
project=1,
|
|
779
|
+
)
|
|
776
780
|
|
|
777
781
|
|
|
778
782
|
asyncio.run(main())
|
|
@@ -21,8 +21,8 @@ class GcsClient:
|
|
|
21
21
|
def list(
|
|
22
22
|
self,
|
|
23
23
|
*,
|
|
24
|
+
project: int,
|
|
24
25
|
ordering: typing.Optional[str] = None,
|
|
25
|
-
project: typing.Optional[int] = None,
|
|
26
26
|
request_options: typing.Optional[RequestOptions] = None,
|
|
27
27
|
) -> typing.List[GcsExportStorage]:
|
|
28
28
|
"""
|
|
@@ -30,12 +30,12 @@ class GcsClient:
|
|
|
30
30
|
|
|
31
31
|
Parameters
|
|
32
32
|
----------
|
|
33
|
+
project : int
|
|
34
|
+
Project ID
|
|
35
|
+
|
|
33
36
|
ordering : typing.Optional[str]
|
|
34
37
|
Which field to use when ordering the results.
|
|
35
38
|
|
|
36
|
-
project : typing.Optional[int]
|
|
37
|
-
Project ID
|
|
38
|
-
|
|
39
39
|
request_options : typing.Optional[RequestOptions]
|
|
40
40
|
Request-specific configuration.
|
|
41
41
|
|
|
@@ -51,7 +51,9 @@ class GcsClient:
|
|
|
51
51
|
client = LabelStudio(
|
|
52
52
|
api_key="YOUR_API_KEY",
|
|
53
53
|
)
|
|
54
|
-
client.export_storage.gcs.list(
|
|
54
|
+
client.export_storage.gcs.list(
|
|
55
|
+
project=1,
|
|
56
|
+
)
|
|
55
57
|
"""
|
|
56
58
|
_response = self._client_wrapper.httpx_client.request(
|
|
57
59
|
"api/storages/export/gcs",
|
|
@@ -494,8 +496,8 @@ class AsyncGcsClient:
|
|
|
494
496
|
async def list(
|
|
495
497
|
self,
|
|
496
498
|
*,
|
|
499
|
+
project: int,
|
|
497
500
|
ordering: typing.Optional[str] = None,
|
|
498
|
-
project: typing.Optional[int] = None,
|
|
499
501
|
request_options: typing.Optional[RequestOptions] = None,
|
|
500
502
|
) -> typing.List[GcsExportStorage]:
|
|
501
503
|
"""
|
|
@@ -503,12 +505,12 @@ class AsyncGcsClient:
|
|
|
503
505
|
|
|
504
506
|
Parameters
|
|
505
507
|
----------
|
|
508
|
+
project : int
|
|
509
|
+
Project ID
|
|
510
|
+
|
|
506
511
|
ordering : typing.Optional[str]
|
|
507
512
|
Which field to use when ordering the results.
|
|
508
513
|
|
|
509
|
-
project : typing.Optional[int]
|
|
510
|
-
Project ID
|
|
511
|
-
|
|
512
514
|
request_options : typing.Optional[RequestOptions]
|
|
513
515
|
Request-specific configuration.
|
|
514
516
|
|
|
@@ -529,7 +531,9 @@ class AsyncGcsClient:
|
|
|
529
531
|
|
|
530
532
|
|
|
531
533
|
async def main() -> None:
|
|
532
|
-
await client.export_storage.gcs.list(
|
|
534
|
+
await client.export_storage.gcs.list(
|
|
535
|
+
project=1,
|
|
536
|
+
)
|
|
533
537
|
|
|
534
538
|
|
|
535
539
|
asyncio.run(main())
|
|
@@ -23,8 +23,8 @@ class GcswifClient:
|
|
|
23
23
|
def list(
|
|
24
24
|
self,
|
|
25
25
|
*,
|
|
26
|
+
project: int,
|
|
26
27
|
ordering: typing.Optional[str] = None,
|
|
27
|
-
project: typing.Optional[int] = None,
|
|
28
28
|
request_options: typing.Optional[RequestOptions] = None,
|
|
29
29
|
) -> typing.List[GcswifExportStorage]:
|
|
30
30
|
"""
|
|
@@ -38,12 +38,12 @@ class GcswifClient:
|
|
|
38
38
|
|
|
39
39
|
Parameters
|
|
40
40
|
----------
|
|
41
|
+
project : int
|
|
42
|
+
Project ID
|
|
43
|
+
|
|
41
44
|
ordering : typing.Optional[str]
|
|
42
45
|
Which field to use when ordering the results.
|
|
43
46
|
|
|
44
|
-
project : typing.Optional[int]
|
|
45
|
-
Project ID
|
|
46
|
-
|
|
47
47
|
request_options : typing.Optional[RequestOptions]
|
|
48
48
|
Request-specific configuration.
|
|
49
49
|
|
|
@@ -59,7 +59,9 @@ class GcswifClient:
|
|
|
59
59
|
client = LabelStudio(
|
|
60
60
|
api_key="YOUR_API_KEY",
|
|
61
61
|
)
|
|
62
|
-
client.export_storage.gcswif.list(
|
|
62
|
+
client.export_storage.gcswif.list(
|
|
63
|
+
project=1,
|
|
64
|
+
)
|
|
63
65
|
"""
|
|
64
66
|
_response = self._client_wrapper.httpx_client.request(
|
|
65
67
|
"api/storages/export/gcswif",
|
|
@@ -717,8 +719,8 @@ class AsyncGcswifClient:
|
|
|
717
719
|
async def list(
|
|
718
720
|
self,
|
|
719
721
|
*,
|
|
722
|
+
project: int,
|
|
720
723
|
ordering: typing.Optional[str] = None,
|
|
721
|
-
project: typing.Optional[int] = None,
|
|
722
724
|
request_options: typing.Optional[RequestOptions] = None,
|
|
723
725
|
) -> typing.List[GcswifExportStorage]:
|
|
724
726
|
"""
|
|
@@ -732,12 +734,12 @@ class AsyncGcswifClient:
|
|
|
732
734
|
|
|
733
735
|
Parameters
|
|
734
736
|
----------
|
|
737
|
+
project : int
|
|
738
|
+
Project ID
|
|
739
|
+
|
|
735
740
|
ordering : typing.Optional[str]
|
|
736
741
|
Which field to use when ordering the results.
|
|
737
742
|
|
|
738
|
-
project : typing.Optional[int]
|
|
739
|
-
Project ID
|
|
740
|
-
|
|
741
743
|
request_options : typing.Optional[RequestOptions]
|
|
742
744
|
Request-specific configuration.
|
|
743
745
|
|
|
@@ -758,7 +760,9 @@ class AsyncGcswifClient:
|
|
|
758
760
|
|
|
759
761
|
|
|
760
762
|
async def main() -> None:
|
|
761
|
-
await client.export_storage.gcswif.list(
|
|
763
|
+
await client.export_storage.gcswif.list(
|
|
764
|
+
project=1,
|
|
765
|
+
)
|
|
762
766
|
|
|
763
767
|
|
|
764
768
|
asyncio.run(main())
|
|
@@ -21,8 +21,8 @@ class LocalClient:
|
|
|
21
21
|
def list(
|
|
22
22
|
self,
|
|
23
23
|
*,
|
|
24
|
+
project: int,
|
|
24
25
|
ordering: typing.Optional[str] = None,
|
|
25
|
-
project: typing.Optional[int] = None,
|
|
26
26
|
request_options: typing.Optional[RequestOptions] = None,
|
|
27
27
|
) -> typing.List[LocalFilesExportStorage]:
|
|
28
28
|
"""
|
|
@@ -30,12 +30,12 @@ class LocalClient:
|
|
|
30
30
|
|
|
31
31
|
Parameters
|
|
32
32
|
----------
|
|
33
|
+
project : int
|
|
34
|
+
Project ID
|
|
35
|
+
|
|
33
36
|
ordering : typing.Optional[str]
|
|
34
37
|
Which field to use when ordering the results.
|
|
35
38
|
|
|
36
|
-
project : typing.Optional[int]
|
|
37
|
-
Project ID
|
|
38
|
-
|
|
39
39
|
request_options : typing.Optional[RequestOptions]
|
|
40
40
|
Request-specific configuration.
|
|
41
41
|
|
|
@@ -51,7 +51,9 @@ class LocalClient:
|
|
|
51
51
|
client = LabelStudio(
|
|
52
52
|
api_key="YOUR_API_KEY",
|
|
53
53
|
)
|
|
54
|
-
client.export_storage.local.list(
|
|
54
|
+
client.export_storage.local.list(
|
|
55
|
+
project=1,
|
|
56
|
+
)
|
|
55
57
|
"""
|
|
56
58
|
_response = self._client_wrapper.httpx_client.request(
|
|
57
59
|
"api/storages/export/localfiles",
|
|
@@ -464,8 +466,8 @@ class AsyncLocalClient:
|
|
|
464
466
|
async def list(
|
|
465
467
|
self,
|
|
466
468
|
*,
|
|
469
|
+
project: int,
|
|
467
470
|
ordering: typing.Optional[str] = None,
|
|
468
|
-
project: typing.Optional[int] = None,
|
|
469
471
|
request_options: typing.Optional[RequestOptions] = None,
|
|
470
472
|
) -> typing.List[LocalFilesExportStorage]:
|
|
471
473
|
"""
|
|
@@ -473,12 +475,12 @@ class AsyncLocalClient:
|
|
|
473
475
|
|
|
474
476
|
Parameters
|
|
475
477
|
----------
|
|
478
|
+
project : int
|
|
479
|
+
Project ID
|
|
480
|
+
|
|
476
481
|
ordering : typing.Optional[str]
|
|
477
482
|
Which field to use when ordering the results.
|
|
478
483
|
|
|
479
|
-
project : typing.Optional[int]
|
|
480
|
-
Project ID
|
|
481
|
-
|
|
482
484
|
request_options : typing.Optional[RequestOptions]
|
|
483
485
|
Request-specific configuration.
|
|
484
486
|
|
|
@@ -499,7 +501,9 @@ class AsyncLocalClient:
|
|
|
499
501
|
|
|
500
502
|
|
|
501
503
|
async def main() -> None:
|
|
502
|
-
await client.export_storage.local.list(
|
|
504
|
+
await client.export_storage.local.list(
|
|
505
|
+
project=1,
|
|
506
|
+
)
|
|
503
507
|
|
|
504
508
|
|
|
505
509
|
asyncio.run(main())
|
|
@@ -21,8 +21,8 @@ class RedisClient:
|
|
|
21
21
|
def list(
|
|
22
22
|
self,
|
|
23
23
|
*,
|
|
24
|
+
project: int,
|
|
24
25
|
ordering: typing.Optional[str] = None,
|
|
25
|
-
project: typing.Optional[int] = None,
|
|
26
26
|
request_options: typing.Optional[RequestOptions] = None,
|
|
27
27
|
) -> typing.List[RedisExportStorage]:
|
|
28
28
|
"""
|
|
@@ -30,12 +30,12 @@ class RedisClient:
|
|
|
30
30
|
|
|
31
31
|
Parameters
|
|
32
32
|
----------
|
|
33
|
+
project : int
|
|
34
|
+
Project ID
|
|
35
|
+
|
|
33
36
|
ordering : typing.Optional[str]
|
|
34
37
|
Which field to use when ordering the results.
|
|
35
38
|
|
|
36
|
-
project : typing.Optional[int]
|
|
37
|
-
Project ID
|
|
38
|
-
|
|
39
39
|
request_options : typing.Optional[RequestOptions]
|
|
40
40
|
Request-specific configuration.
|
|
41
41
|
|
|
@@ -51,7 +51,9 @@ class RedisClient:
|
|
|
51
51
|
client = LabelStudio(
|
|
52
52
|
api_key="YOUR_API_KEY",
|
|
53
53
|
)
|
|
54
|
-
client.export_storage.redis.list(
|
|
54
|
+
client.export_storage.redis.list(
|
|
55
|
+
project=1,
|
|
56
|
+
)
|
|
55
57
|
"""
|
|
56
58
|
_response = self._client_wrapper.httpx_client.request(
|
|
57
59
|
"api/storages/export/redis",
|
|
@@ -509,8 +511,8 @@ class AsyncRedisClient:
|
|
|
509
511
|
async def list(
|
|
510
512
|
self,
|
|
511
513
|
*,
|
|
514
|
+
project: int,
|
|
512
515
|
ordering: typing.Optional[str] = None,
|
|
513
|
-
project: typing.Optional[int] = None,
|
|
514
516
|
request_options: typing.Optional[RequestOptions] = None,
|
|
515
517
|
) -> typing.List[RedisExportStorage]:
|
|
516
518
|
"""
|
|
@@ -518,12 +520,12 @@ class AsyncRedisClient:
|
|
|
518
520
|
|
|
519
521
|
Parameters
|
|
520
522
|
----------
|
|
523
|
+
project : int
|
|
524
|
+
Project ID
|
|
525
|
+
|
|
521
526
|
ordering : typing.Optional[str]
|
|
522
527
|
Which field to use when ordering the results.
|
|
523
528
|
|
|
524
|
-
project : typing.Optional[int]
|
|
525
|
-
Project ID
|
|
526
|
-
|
|
527
529
|
request_options : typing.Optional[RequestOptions]
|
|
528
530
|
Request-specific configuration.
|
|
529
531
|
|
|
@@ -544,7 +546,9 @@ class AsyncRedisClient:
|
|
|
544
546
|
|
|
545
547
|
|
|
546
548
|
async def main() -> None:
|
|
547
|
-
await client.export_storage.redis.list(
|
|
549
|
+
await client.export_storage.redis.list(
|
|
550
|
+
project=1,
|
|
551
|
+
)
|
|
548
552
|
|
|
549
553
|
|
|
550
554
|
asyncio.run(main())
|