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.

Files changed (61) hide show
  1. label_studio_sdk/__init__.py +2 -8
  2. label_studio_sdk/actions/__init__.py +2 -0
  3. label_studio_sdk/actions/types/__init__.py +2 -0
  4. label_studio_sdk/actions/types/actions_list_response_item.py +2 -1
  5. label_studio_sdk/actions/types/actions_list_response_item_permission.py +5 -0
  6. label_studio_sdk/core/client_wrapper.py +6 -1
  7. label_studio_sdk/export_storage/azure/client.py +14 -10
  8. label_studio_sdk/export_storage/azure_spi/client.py +14 -10
  9. label_studio_sdk/export_storage/databricks/client.py +14 -10
  10. label_studio_sdk/export_storage/gcs/client.py +14 -10
  11. label_studio_sdk/export_storage/gcswif/client.py +14 -10
  12. label_studio_sdk/export_storage/local/client.py +14 -10
  13. label_studio_sdk/export_storage/redis/client.py +14 -10
  14. label_studio_sdk/export_storage/s3/client.py +14 -10
  15. label_studio_sdk/export_storage/s3s/client.py +14 -10
  16. label_studio_sdk/import_storage/azure/client.py +14 -10
  17. label_studio_sdk/import_storage/azure_spi/client.py +14 -10
  18. label_studio_sdk/import_storage/databricks/client.py +14 -10
  19. label_studio_sdk/import_storage/gcs/client.py +14 -10
  20. label_studio_sdk/import_storage/gcswif/client.py +14 -10
  21. label_studio_sdk/import_storage/local/client.py +14 -10
  22. label_studio_sdk/import_storage/redis/client.py +14 -10
  23. label_studio_sdk/import_storage/s3/client.py +14 -10
  24. label_studio_sdk/import_storage/s3s/client.py +14 -10
  25. label_studio_sdk/label_interface/control_tags.py +2 -1
  26. label_studio_sdk/organizations/__init__.py +1 -2
  27. label_studio_sdk/organizations/client.py +0 -36
  28. label_studio_sdk/organizations/permissions/client.py +32 -0
  29. label_studio_sdk/projects/__init__.py +10 -0
  30. label_studio_sdk/projects/metrics/custom/client.py +48 -0
  31. label_studio_sdk/projects/stats/__init__.py +10 -0
  32. label_studio_sdk/projects/stats/client.py +346 -0
  33. label_studio_sdk/projects/stats/types/__init__.py +14 -0
  34. label_studio_sdk/projects/stats/types/stats_users_ground_truth_agreement_response.py +27 -0
  35. label_studio_sdk/projects/stats/types/stats_users_ground_truth_agreement_response_agreement_value.py +5 -0
  36. label_studio_sdk/projects/stats/types/stats_users_review_score_response.py +35 -0
  37. label_studio_sdk/projects/stats/types/stats_users_review_score_response_performance_score_value.py +5 -0
  38. label_studio_sdk/projects/stats/types/stats_users_review_score_response_review_score_value.py +5 -0
  39. label_studio_sdk/prompts/versions/client.py +24 -0
  40. label_studio_sdk/tasks/client.py +10 -0
  41. label_studio_sdk/types/__init__.py +0 -6
  42. label_studio_sdk/types/activity_log.py +1 -0
  43. label_studio_sdk/types/all_roles_project_list.py +1 -1
  44. label_studio_sdk/types/billing_flags.py +1 -1
  45. label_studio_sdk/types/default_role.py +0 -9
  46. label_studio_sdk/types/import_api_request.py +5 -0
  47. label_studio_sdk/types/lse_organization.py +1 -10
  48. label_studio_sdk/types/lse_project.py +1 -5
  49. label_studio_sdk/types/lse_project_counts.py +1 -1
  50. label_studio_sdk/types/lse_task.py +5 -0
  51. label_studio_sdk/types/lse_task_serializer_for_reviewers.py +5 -0
  52. label_studio_sdk/versions/client.py +0 -12
  53. {label_studio_sdk-2.0.12.dist-info → label_studio_sdk-2.0.13.dist-info}/METADATA +1 -1
  54. {label_studio_sdk-2.0.12.dist-info → label_studio_sdk-2.0.13.dist-info}/RECORD +56 -55
  55. label_studio_sdk/organizations/types/__init__.py +0 -5
  56. label_studio_sdk/organizations/types/patched_default_role_request_custom_scripts_editable_by.py +0 -7
  57. label_studio_sdk/types/custom_scripts_editable_by_enum.py +0 -5
  58. label_studio_sdk/types/default_role_custom_scripts_editable_by.py +0 -7
  59. label_studio_sdk/types/lse_organization_custom_scripts_editable_by.py +0 -7
  60. {label_studio_sdk-2.0.12.dist-info → label_studio_sdk-2.0.13.dist-info}/LICENSE +0 -0
  61. {label_studio_sdk-2.0.12.dist-info → label_studio_sdk-2.0.13.dist-info}/WHEEL +0 -0
@@ -21,8 +21,8 @@ class S3Client:
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[S3ExportStorage]:
28
28
  """
@@ -30,12 +30,12 @@ class S3Client:
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 S3Client:
51
51
  client = LabelStudio(
52
52
  api_key="YOUR_API_KEY",
53
53
  )
54
- client.export_storage.s3.list()
54
+ client.export_storage.s3.list(
55
+ project=1,
56
+ )
55
57
  """
56
58
  _response = self._client_wrapper.httpx_client.request(
57
59
  "api/storages/export/s3",
@@ -554,8 +556,8 @@ class AsyncS3Client:
554
556
  async def list(
555
557
  self,
556
558
  *,
559
+ project: int,
557
560
  ordering: typing.Optional[str] = None,
558
- project: typing.Optional[int] = None,
559
561
  request_options: typing.Optional[RequestOptions] = None,
560
562
  ) -> typing.List[S3ExportStorage]:
561
563
  """
@@ -563,12 +565,12 @@ class AsyncS3Client:
563
565
 
564
566
  Parameters
565
567
  ----------
568
+ project : int
569
+ Project ID
570
+
566
571
  ordering : typing.Optional[str]
567
572
  Which field to use when ordering the results.
568
573
 
569
- project : typing.Optional[int]
570
- Project ID
571
-
572
574
  request_options : typing.Optional[RequestOptions]
573
575
  Request-specific configuration.
574
576
 
@@ -589,7 +591,9 @@ class AsyncS3Client:
589
591
 
590
592
 
591
593
  async def main() -> None:
592
- await client.export_storage.s3.list()
594
+ await client.export_storage.s3.list(
595
+ project=1,
596
+ )
593
597
 
594
598
 
595
599
  asyncio.run(main())
@@ -23,8 +23,8 @@ class S3SClient:
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[LseS3ExportStorage]:
30
30
  """
@@ -38,12 +38,12 @@ class S3SClient:
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 S3SClient:
59
59
  client = LabelStudio(
60
60
  api_key="YOUR_API_KEY",
61
61
  )
62
- client.export_storage.s3s.list()
62
+ client.export_storage.s3s.list(
63
+ project=1,
64
+ )
63
65
  """
64
66
  _response = self._client_wrapper.httpx_client.request(
65
67
  "api/storages/export/s3s",
@@ -761,8 +763,8 @@ class AsyncS3SClient:
761
763
  async def list(
762
764
  self,
763
765
  *,
766
+ project: int,
764
767
  ordering: typing.Optional[str] = None,
765
- project: typing.Optional[int] = None,
766
768
  request_options: typing.Optional[RequestOptions] = None,
767
769
  ) -> typing.List[LseS3ExportStorage]:
768
770
  """
@@ -776,12 +778,12 @@ class AsyncS3SClient:
776
778
 
777
779
  Parameters
778
780
  ----------
781
+ project : int
782
+ Project ID
783
+
779
784
  ordering : typing.Optional[str]
780
785
  Which field to use when ordering the results.
781
786
 
782
- project : typing.Optional[int]
783
- Project ID
784
-
785
787
  request_options : typing.Optional[RequestOptions]
786
788
  Request-specific configuration.
787
789
 
@@ -802,7 +804,9 @@ class AsyncS3SClient:
802
804
 
803
805
 
804
806
  async def main() -> None:
805
- await client.export_storage.s3s.list()
807
+ await client.export_storage.s3s.list(
808
+ project=1,
809
+ )
806
810
 
807
811
 
808
812
  asyncio.run(main())
@@ -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[AzureBlobImportStorage]:
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.import_storage.azure.list()
54
+ client.import_storage.azure.list(
55
+ project=1,
56
+ )
55
57
  """
56
58
  _response = self._client_wrapper.httpx_client.request(
57
59
  "api/storages/azure/",
@@ -540,8 +542,8 @@ class AsyncAzureClient:
540
542
  async def list(
541
543
  self,
542
544
  *,
545
+ project: int,
543
546
  ordering: typing.Optional[str] = None,
544
- project: typing.Optional[int] = None,
545
547
  request_options: typing.Optional[RequestOptions] = None,
546
548
  ) -> typing.List[AzureBlobImportStorage]:
547
549
  """
@@ -549,12 +551,12 @@ class AsyncAzureClient:
549
551
 
550
552
  Parameters
551
553
  ----------
554
+ project : int
555
+ Project ID
556
+
552
557
  ordering : typing.Optional[str]
553
558
  Which field to use when ordering the results.
554
559
 
555
- project : typing.Optional[int]
556
- Project ID
557
-
558
560
  request_options : typing.Optional[RequestOptions]
559
561
  Request-specific configuration.
560
562
 
@@ -575,7 +577,9 @@ class AsyncAzureClient:
575
577
 
576
578
 
577
579
  async def main() -> None:
578
- await client.import_storage.azure.list()
580
+ await client.import_storage.azure.list(
581
+ project=1,
582
+ )
579
583
 
580
584
 
581
585
  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[AzureServicePrincipalImportStorage]:
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.import_storage.azure_spi.list()
62
+ client.import_storage.azure_spi.list(
63
+ project=1,
64
+ )
63
65
  """
64
66
  _response = self._client_wrapper.httpx_client.request(
65
67
  "api/storages/azure_spi/",
@@ -733,8 +735,8 @@ class AsyncAzureSpiClient:
733
735
  async def list(
734
736
  self,
735
737
  *,
738
+ project: int,
736
739
  ordering: typing.Optional[str] = None,
737
- project: typing.Optional[int] = None,
738
740
  request_options: typing.Optional[RequestOptions] = None,
739
741
  ) -> typing.List[AzureServicePrincipalImportStorage]:
740
742
  """
@@ -748,12 +750,12 @@ class AsyncAzureSpiClient:
748
750
 
749
751
  Parameters
750
752
  ----------
753
+ project : int
754
+ Project ID
755
+
751
756
  ordering : typing.Optional[str]
752
757
  Which field to use when ordering the results.
753
758
 
754
- project : typing.Optional[int]
755
- Project ID
756
-
757
759
  request_options : typing.Optional[RequestOptions]
758
760
  Request-specific configuration.
759
761
 
@@ -774,7 +776,9 @@ class AsyncAzureSpiClient:
774
776
 
775
777
 
776
778
  async def main() -> None:
777
- await client.import_storage.azure_spi.list()
779
+ await client.import_storage.azure_spi.list(
780
+ project=1,
781
+ )
778
782
 
779
783
 
780
784
  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[DatabricksImportStorage]:
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.import_storage.databricks.list()
62
+ client.import_storage.databricks.list(
63
+ project=1,
64
+ )
63
65
  """
64
66
  _response = self._client_wrapper.httpx_client.request(
65
67
  "api/storages/databricks/",
@@ -761,8 +763,8 @@ class AsyncDatabricksClient:
761
763
  async def list(
762
764
  self,
763
765
  *,
766
+ project: int,
764
767
  ordering: typing.Optional[str] = None,
765
- project: typing.Optional[int] = None,
766
768
  request_options: typing.Optional[RequestOptions] = None,
767
769
  ) -> typing.List[DatabricksImportStorage]:
768
770
  """
@@ -776,12 +778,12 @@ class AsyncDatabricksClient:
776
778
 
777
779
  Parameters
778
780
  ----------
781
+ project : int
782
+ Project ID
783
+
779
784
  ordering : typing.Optional[str]
780
785
  Which field to use when ordering the results.
781
786
 
782
- project : typing.Optional[int]
783
- Project ID
784
-
785
787
  request_options : typing.Optional[RequestOptions]
786
788
  Request-specific configuration.
787
789
 
@@ -802,7 +804,9 @@ class AsyncDatabricksClient:
802
804
 
803
805
 
804
806
  async def main() -> None:
805
- await client.import_storage.databricks.list()
807
+ await client.import_storage.databricks.list(
808
+ project=1,
809
+ )
806
810
 
807
811
 
808
812
  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[GcsImportStorage]:
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.import_storage.gcs.list()
54
+ client.import_storage.gcs.list(
55
+ project=1,
56
+ )
55
57
  """
56
58
  _response = self._client_wrapper.httpx_client.request(
57
59
  "api/storages/gcs/",
@@ -540,8 +542,8 @@ class AsyncGcsClient:
540
542
  async def list(
541
543
  self,
542
544
  *,
545
+ project: int,
543
546
  ordering: typing.Optional[str] = None,
544
- project: typing.Optional[int] = None,
545
547
  request_options: typing.Optional[RequestOptions] = None,
546
548
  ) -> typing.List[GcsImportStorage]:
547
549
  """
@@ -549,12 +551,12 @@ class AsyncGcsClient:
549
551
 
550
552
  Parameters
551
553
  ----------
554
+ project : int
555
+ Project ID
556
+
552
557
  ordering : typing.Optional[str]
553
558
  Which field to use when ordering the results.
554
559
 
555
- project : typing.Optional[int]
556
- Project ID
557
-
558
560
  request_options : typing.Optional[RequestOptions]
559
561
  Request-specific configuration.
560
562
 
@@ -575,7 +577,9 @@ class AsyncGcsClient:
575
577
 
576
578
 
577
579
  async def main() -> None:
578
- await client.import_storage.gcs.list()
580
+ await client.import_storage.gcs.list(
581
+ project=1,
582
+ )
579
583
 
580
584
 
581
585
  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[GcswifImportStorage]:
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.import_storage.gcswif.list()
62
+ client.import_storage.gcswif.list(
63
+ project=1,
64
+ )
63
65
  """
64
66
  _response = self._client_wrapper.httpx_client.request(
65
67
  "api/storages/gcswif/",
@@ -744,8 +746,8 @@ class AsyncGcswifClient:
744
746
  async def list(
745
747
  self,
746
748
  *,
749
+ project: int,
747
750
  ordering: typing.Optional[str] = None,
748
- project: typing.Optional[int] = None,
749
751
  request_options: typing.Optional[RequestOptions] = None,
750
752
  ) -> typing.List[GcswifImportStorage]:
751
753
  """
@@ -759,12 +761,12 @@ class AsyncGcswifClient:
759
761
 
760
762
  Parameters
761
763
  ----------
764
+ project : int
765
+ Project ID
766
+
762
767
  ordering : typing.Optional[str]
763
768
  Which field to use when ordering the results.
764
769
 
765
- project : typing.Optional[int]
766
- Project ID
767
-
768
770
  request_options : typing.Optional[RequestOptions]
769
771
  Request-specific configuration.
770
772
 
@@ -785,7 +787,9 @@ class AsyncGcswifClient:
785
787
 
786
788
 
787
789
  async def main() -> None:
788
- await client.import_storage.gcswif.list()
790
+ await client.import_storage.gcswif.list(
791
+ project=1,
792
+ )
789
793
 
790
794
 
791
795
  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[LocalFilesImportStorage]:
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.import_storage.local.list()
54
+ client.import_storage.local.list(
55
+ project=1,
56
+ )
55
57
  """
56
58
  _response = self._client_wrapper.httpx_client.request(
57
59
  "api/storages/localfiles/",
@@ -465,8 +467,8 @@ class AsyncLocalClient:
465
467
  async def list(
466
468
  self,
467
469
  *,
470
+ project: int,
468
471
  ordering: typing.Optional[str] = None,
469
- project: typing.Optional[int] = None,
470
472
  request_options: typing.Optional[RequestOptions] = None,
471
473
  ) -> typing.List[LocalFilesImportStorage]:
472
474
  """
@@ -474,12 +476,12 @@ class AsyncLocalClient:
474
476
 
475
477
  Parameters
476
478
  ----------
479
+ project : int
480
+ Project ID
481
+
477
482
  ordering : typing.Optional[str]
478
483
  Which field to use when ordering the results.
479
484
 
480
- project : typing.Optional[int]
481
- Project ID
482
-
483
485
  request_options : typing.Optional[RequestOptions]
484
486
  Request-specific configuration.
485
487
 
@@ -500,7 +502,9 @@ class AsyncLocalClient:
500
502
 
501
503
 
502
504
  async def main() -> None:
503
- await client.import_storage.local.list()
505
+ await client.import_storage.local.list(
506
+ project=1,
507
+ )
504
508
 
505
509
 
506
510
  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[RedisImportStorage]:
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.import_storage.redis.list()
54
+ client.import_storage.redis.list(
55
+ project=1,
56
+ )
55
57
  """
56
58
  _response = self._client_wrapper.httpx_client.request(
57
59
  "api/storages/redis/",
@@ -510,8 +512,8 @@ class AsyncRedisClient:
510
512
  async def list(
511
513
  self,
512
514
  *,
515
+ project: int,
513
516
  ordering: typing.Optional[str] = None,
514
- project: typing.Optional[int] = None,
515
517
  request_options: typing.Optional[RequestOptions] = None,
516
518
  ) -> typing.List[RedisImportStorage]:
517
519
  """
@@ -519,12 +521,12 @@ class AsyncRedisClient:
519
521
 
520
522
  Parameters
521
523
  ----------
524
+ project : int
525
+ Project ID
526
+
522
527
  ordering : typing.Optional[str]
523
528
  Which field to use when ordering the results.
524
529
 
525
- project : typing.Optional[int]
526
- Project ID
527
-
528
530
  request_options : typing.Optional[RequestOptions]
529
531
  Request-specific configuration.
530
532
 
@@ -545,7 +547,9 @@ class AsyncRedisClient:
545
547
 
546
548
 
547
549
  async def main() -> None:
548
- await client.import_storage.redis.list()
550
+ await client.import_storage.redis.list(
551
+ project=1,
552
+ )
549
553
 
550
554
 
551
555
  asyncio.run(main())