indexify 0.0.31__tar.gz → 0.0.33__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.
- {indexify-0.0.31 → indexify-0.0.33}/PKG-INFO +1 -1
- {indexify-0.0.31 → indexify-0.0.33}/indexify/client.py +4 -4
- {indexify-0.0.31 → indexify-0.0.33}/pyproject.toml +1 -1
- {indexify-0.0.31 → indexify-0.0.33}/LICENSE.txt +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/README.md +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/indexify/__init__.py +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/indexify/data_containers.py +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/indexify/error.py +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/indexify/exceptions.py +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/indexify/extraction_policy.py +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/indexify/extractor.py +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/indexify/index.py +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/indexify/settings.py +0 -0
- {indexify-0.0.31 → indexify-0.0.33}/indexify/utils.py +0 -0
@@ -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,
|
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
|
-
-
|
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}/
|
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"] ==
|
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
|
[tool.poetry]
|
2
2
|
name = "indexify"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.33"
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|