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.
- {scaleapi-2.15.4 → scaleapi-2.15.6}/PKG-INFO +2 -2
- {scaleapi-2.15.4 → scaleapi-2.15.6}/README.rst +1 -1
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/__init__.py +7 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/_version.py +1 -1
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/tasks.py +1 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi.egg-info/PKG-INFO +2 -2
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/api.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/batches.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/evaluation_tasks.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/exceptions.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/files.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/projects.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/quality_tasks.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/studio.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/teams.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi/training_tasks.py +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi.egg-info/SOURCES.txt +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi.egg-info/dependency_links.txt +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi.egg-info/requires.txt +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/scaleapi.egg-info/top_level.txt +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/setup.cfg +0 -0
- {scaleapi-2.15.4 → scaleapi-2.15.6}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scaleapi
|
|
3
|
-
Version: 2.15.
|
|
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 ``
|
|
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 ``
|
|
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.
|
|
1
|
+
__version__ = "2.15.6"
|
|
2
2
|
__package_name__ = "scaleapi"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scaleapi
|
|
3
|
-
Version: 2.15.
|
|
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 ``
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|