scale-nucleus 0.17.9__py3-none-any.whl → 0.17.10__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.
nucleus/dataset.py CHANGED
@@ -1518,6 +1518,7 @@ class Dataset:
1518
1518
  query: Optional[str] = None,
1519
1519
  use_mirrored_images: bool = False,
1520
1520
  only_most_recent_tasks: bool = True,
1521
+ page_size=10000
1521
1522
  ) -> Iterable[Dict[str, Union[DatasetItem, Dict[str, List[Annotation]]]]]:
1522
1523
  """Provides a generator of all DatasetItems and Annotations in the dataset.
1523
1524
 
@@ -1525,6 +1526,7 @@ class Dataset:
1525
1526
  query: Structured query compatible with the `Nucleus query language <https://nucleus.scale.com/docs/query-language-reference>`_.
1526
1527
  use_mirrored_images: If True, returns the location of the mirrored image hosted in Scale S3. Useful when the original image is no longer available.
1527
1528
  only_most_recent_tasks: If True, only the annotations corresponding to the most recent task for each item is returned.
1529
+ page_size: Number of items to fetch per page. Default is maximum ES page size of 10000.
1528
1530
 
1529
1531
  Returns:
1530
1532
  Generator where each element is a dict containing the DatasetItem
@@ -1548,7 +1550,7 @@ class Dataset:
1548
1550
  client=self._client,
1549
1551
  endpoint=f"dataset/{self.id}/exportForTrainingPage",
1550
1552
  result_key=EXPORT_FOR_TRAINING_KEY,
1551
- page_size=10000, # max ES page size
1553
+ page_size=page_size, # default is max ES page size of 10000
1552
1554
  query=query,
1553
1555
  chip=use_mirrored_images,
1554
1556
  onlyMostRecentTask=only_most_recent_tasks,
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: scale-nucleus
3
- Version: 0.17.9
3
+ Version: 0.17.10
4
4
  Summary: The official Python client library for Nucleus, the Data Platform for AI
5
- Home-page: https://scale.com/nucleus
6
5
  License: MIT
7
6
  Author: Scale AI Nucleus Team
8
7
  Author-email: nucleusapi@scaleapi.com
@@ -14,6 +13,8 @@ Classifier: Programming Language :: Python :: 3.8
14
13
  Classifier: Programming Language :: Python :: 3.9
15
14
  Classifier: Programming Language :: Python :: 3.10
16
15
  Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
17
18
  Provides-Extra: launch
18
19
  Provides-Extra: metrics
19
20
  Requires-Dist: Pillow (>=7.1.2)
@@ -36,6 +37,7 @@ Requires-Dist: scipy (>=1.4.1) ; extra == "metrics"
36
37
  Requires-Dist: shellingham (>=1.4.0,<2.0.0)
37
38
  Requires-Dist: tqdm (>=4.41.0,<5.0.0)
38
39
  Project-URL: Documentation, https://dashboard.scale.com/nucleus/docs/api
40
+ Project-URL: Homepage, https://scale.com/nucleus
39
41
  Project-URL: Repository, https://github.com/scaleapi/nucleus-python-client
40
42
  Description-Content-Type: text/markdown
41
43
 
@@ -26,7 +26,7 @@ nucleus/data_transfer_object/dataset_info.py,sha256=5P_gpvAyaqXxj2ZQuzLkGN2XROaN
26
26
  nucleus/data_transfer_object/dataset_size.py,sha256=oe-dXaMLpsQRDcJQRZ9Ja8JTagYz4dviZuTognEylp0,111
27
27
  nucleus/data_transfer_object/job_status.py,sha256=hxvyNdrdVdj3UpEfwvryKC_QCJQEC9ru6IPjhPFcK44,2038
28
28
  nucleus/data_transfer_object/scenes_list.py,sha256=iTHE6vA47bRB6ciyEU4LArUXEXco4ArnGvZTGTeK8xs,432
29
- nucleus/dataset.py,sha256=W-QR-RDvRk369m42osZjNNbdnMVk64CzWDjLma9T9fk,95412
29
+ nucleus/dataset.py,sha256=_YuTU2-6vHXTu-y6wKzZtPMcrgjGhYAEGEAI8n1oDPk,95560
30
30
  nucleus/dataset_item.py,sha256=y9ia47i31lX2wvw6EkVAxeHburMrrZpuyjEGlstWa2A,10166
31
31
  nucleus/dataset_item_uploader.py,sha256=BD0FTgimEFYmDbnOLIaQZS3OLDfLe5wumADDmgMX598,6684
32
32
  nucleus/deprecation_warning.py,sha256=5C9dVusR5UkUQnW2MrRkIXCfbc8ULc7xOaB134agNKk,976
@@ -85,8 +85,8 @@ nucleus/validate/scenario_test.py,sha256=pCmM157dblSciZCDTw-f47Fpy3OUZFgXmokdhIL
85
85
  nucleus/validate/scenario_test_evaluation.py,sha256=Q0WzaEE9uUbPVc4EHlCoKjhJcqMNt4QbyiiJx12VOR0,4075
86
86
  nucleus/validate/scenario_test_metric.py,sha256=AhVFOB1ULwBqlZ2X_Au1TXy4iQELljtzR4ZpeLB35So,1209
87
87
  nucleus/validate/utils.py,sha256=VjdIJj9Pii4z4L6xbvClAc7ra_J7cX0vWB_J2X6yrGE,185
88
- scale_nucleus-0.17.9.dist-info/LICENSE,sha256=jaTGyQSQIZeWMo5iyYqgbAYHR9Bdy7nOzgE-Up3m_-g,1075
89
- scale_nucleus-0.17.9.dist-info/METADATA,sha256=v7fMJK93-vcbjE68FfsV4ADjpgqRJDGB57qNeSoUhzA,7920
90
- scale_nucleus-0.17.9.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
91
- scale_nucleus-0.17.9.dist-info/entry_points.txt,sha256=fmqEzh6NZQyg9eFMILnWabKT8OWQTMSCdDzMiVq2zYs,32
92
- scale_nucleus-0.17.9.dist-info/RECORD,,
88
+ scale_nucleus-0.17.10.dist-info/LICENSE,sha256=jaTGyQSQIZeWMo5iyYqgbAYHR9Bdy7nOzgE-Up3m_-g,1075
89
+ scale_nucleus-0.17.10.dist-info/METADATA,sha256=mRaC6YQ_OI-ShDWkS0g4IYRzFx4LuKuFEUc8dXACz-c,8035
90
+ scale_nucleus-0.17.10.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
91
+ scale_nucleus-0.17.10.dist-info/entry_points.txt,sha256=fmqEzh6NZQyg9eFMILnWabKT8OWQTMSCdDzMiVq2zYs,32
92
+ scale_nucleus-0.17.10.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.6.1
2
+ Generator: poetry-core 2.1.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any