supervisely 6.73.365__py3-none-any.whl → 6.73.366__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.
@@ -874,6 +874,7 @@ class ImageApi(RemoveableBulkModuleApi):
874
874
  ids: List[int],
875
875
  progress_cb: Optional[Union[tqdm, Callable]] = None,
876
876
  force_metadata_for_links=True,
877
+ fields: Optional[List[str]] = None,
877
878
  ) -> List[ImageInfo]:
878
879
  """
879
880
  Get Images information by ID.
@@ -912,13 +913,16 @@ class ImageApi(RemoveableBulkModuleApi):
912
913
  dataset_id = image_info.dataset_id
913
914
  for batch in batched(ids):
914
915
  filters = [{"field": ApiField.ID, "operator": "in", "value": batch}]
916
+ data = {
917
+ ApiField.DATASET_ID: dataset_id,
918
+ ApiField.FILTER: filters,
919
+ ApiField.FORCE_METADATA_FOR_LINKS: force_metadata_for_links,
920
+ }
921
+ if fields is not None:
922
+ data[ApiField.FIELDS] = fields
915
923
  temp_results = self.get_list_all_pages(
916
924
  "images.list",
917
- {
918
- ApiField.DATASET_ID: dataset_id,
919
- ApiField.FILTER: filters,
920
- ApiField.FORCE_METADATA_FOR_LINKS: force_metadata_for_links,
921
- },
925
+ data,
922
926
  )
923
927
  results.extend(temp_results)
924
928
  if progress_cb is not None and len(temp_results) > 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.365
3
+ Version: 6.73.366
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -30,7 +30,7 @@ supervisely/api/entities_collection_api.py,sha256=lIF10PVgdUOEjcG7dJuxgpN30cnmxw
30
30
  supervisely/api/file_api.py,sha256=EX_Cam93QkR5SOOIkIznkzERIr0u7N7GHVGK27iOm20,92952
31
31
  supervisely/api/github_api.py,sha256=NIexNjEer9H5rf5sw2LEZd7C1WR-tK4t6IZzsgeAAwQ,623
32
32
  supervisely/api/image_annotation_tool_api.py,sha256=YcUo78jRDBJYvIjrd-Y6FJAasLta54nnxhyaGyanovA,5237
33
- supervisely/api/image_api.py,sha256=8qs1AD8h1gyoibp9nZQ3b_A1Vid44Q103tmwRC-2hwQ,224419
33
+ supervisely/api/image_api.py,sha256=XeIhj_-PKO-78DcnbwLDRb68zR84oeA18ZmAUk536Zg,224565
34
34
  supervisely/api/import_storage_api.py,sha256=BDCgmR0Hv6OoiRHLCVPKt3iDxSVlQp1WrnKhAK_Zl84,460
35
35
  supervisely/api/issues_api.py,sha256=BqDJXmNoTzwc3xe6_-mA7FDFC5QQ-ahGbXk_HmpkSeQ,17925
36
36
  supervisely/api/labeling_job_api.py,sha256=5xorizIYJlyBi-XtPiMyFz-COKR0V_KR5zVhd1kutSM,55187
@@ -1097,9 +1097,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1097
1097
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1098
1098
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1099
1099
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1100
- supervisely-6.73.365.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1101
- supervisely-6.73.365.dist-info/METADATA,sha256=JVOqVl5aEICaNoXfqW7HguaHBUEuZZEXfc2uoWr6N0c,35151
1102
- supervisely-6.73.365.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1103
- supervisely-6.73.365.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1104
- supervisely-6.73.365.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1105
- supervisely-6.73.365.dist-info/RECORD,,
1100
+ supervisely-6.73.366.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1101
+ supervisely-6.73.366.dist-info/METADATA,sha256=D0oFVWgu9m_evVu6gv36pV16j2PwflyxVF5AeAXjVnc,35151
1102
+ supervisely-6.73.366.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1103
+ supervisely-6.73.366.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1104
+ supervisely-6.73.366.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1105
+ supervisely-6.73.366.dist-info/RECORD,,