indexify 0.0.26__tar.gz → 0.0.27__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: indexify
3
- Version: 0.0.26
3
+ Version: 0.0.27
4
4
  Summary: Python Client for Indexify
5
5
  Home-page: https://github.com/tensorlakeai/indexify
6
6
  License: Apache 2.0
@@ -624,14 +624,19 @@ class IndexifyClient:
624
624
  )
625
625
  return response.json()
626
626
 
627
- def wait_for_extraction(self, content_id: str):
627
+ def wait_for_extraction(self, content_ids: Union[str, List[str]]):
628
628
  """
629
629
  Wait for extraction to complete for a given content id
630
630
 
631
631
  Args:
632
632
  - content_id (str): id of content
633
633
  """
634
- response = self.get(f"namespaces/{self.namespace}/content/{content_id}/wait")
634
+ if type(content_ids) == str:
635
+ content_ids = [content_ids]
636
+ print("Waiting for extraction to complete for content id: ", ",".join(content_ids))
637
+ for content_id in content_ids:
638
+ response = self.get(f"namespaces/{self.namespace}/content/{content_id}/wait")
639
+ print("Extraction completed for content id: ", content_id)
635
640
  response.raise_for_status()
636
641
 
637
642
  def generate_unique_hex_id(self):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "indexify"
3
- version = "0.0.26"
3
+ version = "0.0.27"
4
4
  description = "Python Client for Indexify"
5
5
  authors = ["Diptanu Gon Choudhury <diptanuc@gmail.com>", "Lucas Jackson <lucas@tensorlake.ai>", "Vijay Parthasarathy <vijay2win@gmail.com>"]
6
6
  license = "Apache 2.0"
File without changes
File without changes
File without changes
File without changes
File without changes