scaleapi 2.15.4__tar.gz → 2.15.6__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scaleapi
3
- Version: 2.15.4
3
+ Version: 2.15.6
4
4
  Summary: The official Python client library for Scale AI, the Data Platform for AI
5
5
  Home-page: https://github.com/scaleapi/scaleapi-python-client
6
6
  Author: Scale AI
@@ -186,7 +186,7 @@ Description: *********************
186
186
 
187
187
  Retrieve a list of `Task` objects, with filters for: ``project_name``, ``batch_name``, ``type``, ``status``,
188
188
  ``review_status``, ``unique_id``, ``completed_after``, ``completed_before``, ``updated_after``, ``updated_before``,
189
- ``created_after``, ``created_before``, ``tags`` and ``limited_response``.
189
+ ``created_after``, ``created_before``, ``tags``, ``limited_response`` and ``limit``.
190
190
 
191
191
  ``get_tasks()`` is a **generator** method and yields ``Task`` objects.
192
192
 
@@ -178,7 +178,7 @@ Retrieve List of Tasks
178
178
 
179
179
  Retrieve a list of `Task` objects, with filters for: ``project_name``, ``batch_name``, ``type``, ``status``,
180
180
  ``review_status``, ``unique_id``, ``completed_after``, ``completed_before``, ``updated_after``, ``updated_before``,
181
- ``created_after``, ``created_before``, ``tags`` and ``limited_response``.
181
+ ``created_after``, ``created_before``, ``tags``, ``limited_response`` and ``limit``.
182
182
 
183
183
  ``get_tasks()`` is a **generator** method and yields ``Task`` objects.
184
184
 
@@ -335,6 +335,7 @@ class ScaleClient:
335
335
  tags: Union[List[str], str] = None,
336
336
  include_attachment_url: bool = True,
337
337
  limited_response: bool = None,
338
+ limit: int = None,
338
339
  ) -> Generator[Task, None, None]:
339
340
  """Retrieve all tasks as a `generator` method, with the
340
341
  given parameters. This methods handles pagination of
@@ -402,6 +403,9 @@ class ScaleClient:
402
403
  If true, returns task response of the following fields:
403
404
  task_id, status, metadata, project, otherVersion.
404
405
 
406
+ limit (int):
407
+ Determines the task count per request (1-100)
408
+ For large sized tasks, use a smaller limit
405
409
 
406
410
  Yields:
407
411
  Generator[Task]:
@@ -429,6 +433,9 @@ class ScaleClient:
429
433
  limited_response,
430
434
  )
431
435
 
436
+ if limit:
437
+ tasks_args["limit"] = limit
438
+
432
439
  while has_more:
433
440
  tasks_args["next_token"] = next_token
434
441
 
@@ -1,2 +1,2 @@
1
- __version__ = "2.15.4"
1
+ __version__ = "2.15.6"
2
2
  __package_name__ = "scaleapi"
@@ -31,6 +31,7 @@ class TaskType(Enum):
31
31
  VideoCuboidAnnotation = "videocuboidannotation"
32
32
  SensorFusion = "sensorfusion"
33
33
  Chat = "chat"
34
+ ChatExperimental = "chatexperimental"
34
35
 
35
36
 
36
37
  class TaskReviewStatus(Enum):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scaleapi
3
- Version: 2.15.4
3
+ Version: 2.15.6
4
4
  Summary: The official Python client library for Scale AI, the Data Platform for AI
5
5
  Home-page: https://github.com/scaleapi/scaleapi-python-client
6
6
  Author: Scale AI
@@ -186,7 +186,7 @@ Description: *********************
186
186
 
187
187
  Retrieve a list of `Task` objects, with filters for: ``project_name``, ``batch_name``, ``type``, ``status``,
188
188
  ``review_status``, ``unique_id``, ``completed_after``, ``completed_before``, ``updated_after``, ``updated_before``,
189
- ``created_after``, ``created_before``, ``tags`` and ``limited_response``.
189
+ ``created_after``, ``created_before``, ``tags``, ``limited_response`` and ``limit``.
190
190
 
191
191
  ``get_tasks()`` is a **generator** method and yields ``Task`` objects.
192
192
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes