indexify 0.0.32__py3-none-any.whl → 0.0.33__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.
indexify/client.py CHANGED
@@ -610,7 +610,7 @@ class IndexifyClient:
610
610
  return response.json()
611
611
 
612
612
  def get_extracted_content(
613
- self, ingested_content_id: str, graph_name: str, extractor_name: str, blocking=False
613
+ self, ingested_content_id: str, graph_name: str, policy_name: str, blocking=False
614
614
  ):
615
615
  """
616
616
  Get list of child for a given content id and their content up to the specified level.
@@ -618,20 +618,20 @@ class IndexifyClient:
618
618
  Args:
619
619
  - ingested_content_id (str): id of content
620
620
  - graph_name (str): name of extraction graph
621
- - extractor_name (str): name of extractor
621
+ - policy_name(str): name of extraction policy in the graph
622
622
  - blocking (bool): wait for extraction to complete before returning (default: False)
623
623
  """
624
624
  if blocking:
625
625
  self.wait_for_extraction(ingested_content_id)
626
626
  response = self.get(
627
- f"namespaces/{self.namespace}/extraction_graphs/{graph_name}/extraction_policies/{extractor_name}/content/{ingested_content_id}"
627
+ f"namespaces/{self.namespace}/extraction_graphs/{graph_name}/content/{ingested_content_id}/extraction_policies/{policy_name}"
628
628
  )
629
629
  content_tree = response.json()
630
630
  child_list = []
631
631
  for item in content_tree["content_tree_metadata"]:
632
632
  if (
633
633
  graph_name in item["extraction_graph_names"]
634
- and item["source"] == extractor_name
634
+ and item["source"] == policy_name
635
635
  ):
636
636
  content = self.download_content(item["id"])
637
637
  child_list.append({"id": item["id"], "mime_type": item["mime_type"], "content": content})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: indexify
3
- Version: 0.0.32
3
+ Version: 0.0.33
4
4
  Summary: Python Client for Indexify
5
5
  Home-page: https://github.com/tensorlakeai/indexify
6
6
  License: Apache 2.0
@@ -1,5 +1,5 @@
1
1
  indexify/__init__.py,sha256=xqymbwqaiHiWXFpm7Cll2j-_V1lNQH2EEGlevtCTZK4,525
2
- indexify/client.py,sha256=YkNhM1xDe0VcPx9Z3yLdl3y_msoOrGAj3ykefcItVhE,24653
2
+ indexify/client.py,sha256=J6ATvToclPPFW7B5ajhLNpUbNnJAc3elV7AjP3D1-4k,24662
3
3
  indexify/data_containers.py,sha256=fIX_rghpojrCUtmZ0grywoq_HWniDgN1mnR7yXDej-Y,874
4
4
  indexify/error.py,sha256=3umTeYb0ugtUyehV1ibfvaeACxAONPyWPc-1HRN4d1M,856
5
5
  indexify/exceptions.py,sha256=vjd5SPPNFIEW35GorSIodsqvm9RKHQm9kdp8t9gv-WM,111
@@ -8,7 +8,7 @@ indexify/extractor.py,sha256=sWFLlXHgEfWlmiKAXN6ytUt_uG7th-XGNHqz-TG39gs,1216
8
8
  indexify/index.py,sha256=RvxYhJXEth-GKvqzlMiz5PuN1eIbZk84pt20piA1Gsw,504
9
9
  indexify/settings.py,sha256=LSaWZ0ADIVmUv6o6dHWRC3-Ry5uLbCw2sBSg1e_U7UM,99
10
10
  indexify/utils.py,sha256=rDN2lrsAs9noJEIjfx6ukmC2SAIyrlUt7QU-kaBjujM,125
11
- indexify-0.0.32.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12
- indexify-0.0.32.dist-info/METADATA,sha256=Rj5F0dH8Ll6fRbwhiY0niW7JfcwWU-4F28pDRLp4w2s,1854
13
- indexify-0.0.32.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
14
- indexify-0.0.32.dist-info/RECORD,,
11
+ indexify-0.0.33.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12
+ indexify-0.0.33.dist-info/METADATA,sha256=e255wnhg1DSGcyj8XrX9N8JLeKv093XDYQRMaC3xpZU,1854
13
+ indexify-0.0.33.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
14
+ indexify-0.0.33.dist-info/RECORD,,