indexify 0.0.14__py3-none-any.whl → 0.0.15__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 +15 -9
- {indexify-0.0.14.dist-info → indexify-0.0.15.dist-info}/METADATA +1 -1
- {indexify-0.0.14.dist-info → indexify-0.0.15.dist-info}/RECORD +5 -5
- {indexify-0.0.14.dist-info → indexify-0.0.15.dist-info}/LICENSE.txt +0 -0
- {indexify-0.0.14.dist-info → indexify-0.0.15.dist-info}/WHEEL +0 -0
indexify/client.py
CHANGED
@@ -349,11 +349,21 @@ class IndexifyClient:
|
|
349
349
|
except httpx.HTTPStatusError as exc:
|
350
350
|
raise ApiException(exc.response.text)
|
351
351
|
return
|
352
|
+
|
353
|
+
def get_content_metadata(self, content_id: str) -> dict:
|
354
|
+
"""
|
355
|
+
Get metadata for a specific content ID in a given index.
|
352
356
|
|
353
|
-
|
357
|
+
Args:
|
358
|
+
- content_id (str): content id to query
|
359
|
+
"""
|
360
|
+
response = self.get(f"namespaces/{self.namespace}/content/{content_id}")
|
361
|
+
response.raise_for_status()
|
362
|
+
return response.json()
|
363
|
+
|
364
|
+
def get_extracted_content(
|
354
365
|
self,
|
355
|
-
|
356
|
-
labels_eq: str = None,
|
366
|
+
content_id: str = None,
|
357
367
|
):
|
358
368
|
"""
|
359
369
|
Get list of content from current namespace.
|
@@ -362,11 +372,7 @@ class IndexifyClient:
|
|
362
372
|
- parent_id (str): Optional filter for parent id
|
363
373
|
- labels_eq (str): Optional filter for labels
|
364
374
|
"""
|
365
|
-
params = {}
|
366
|
-
if parent_id:
|
367
|
-
params.update({"parent_id": parent_id})
|
368
|
-
if labels_eq:
|
369
|
-
params.update({"labels_eq": labels_eq})
|
375
|
+
params = {"parent_id": content_id}
|
370
376
|
|
371
377
|
response = self.get(f"namespaces/{self.namespace}/content", params=params)
|
372
378
|
response.raise_for_status()
|
@@ -453,7 +459,7 @@ class IndexifyClient:
|
|
453
459
|
response = self.put(f"namespaces/{self.namespace}/content/{document_id}", files={"file": f}, timeout=None)
|
454
460
|
response.raise_for_status()
|
455
461
|
|
456
|
-
def
|
462
|
+
def get_structured_data(self, content_id: str) -> dict:
|
457
463
|
"""
|
458
464
|
Query metadata for a specific content ID in a given index.
|
459
465
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
indexify/__init__.py,sha256=Sz6zkAIHsPOi0rG5RM7dVkXGDa0fO2uurD6vS4Qo15E,312
|
2
|
-
indexify/client.py,sha256=
|
2
|
+
indexify/client.py,sha256=VtEqSE7hO4CWRweaCBBiA3KmS3Q8XGpkvfOqDc5xhAw,17176
|
3
3
|
indexify/data_containers.py,sha256=r1wxJPtsmXbyKvb17fqxm-dPjKz51oZ62f8A8Zxls1c,361
|
4
4
|
indexify/exceptions.py,sha256=vjd5SPPNFIEW35GorSIodsqvm9RKHQm9kdp8t9gv-WM,111
|
5
5
|
indexify/extraction_policy.py,sha256=vKVHT8jSjzhUaKqWpewOGkYojMBplvGdSm9zoSN9Pcg,750
|
@@ -7,7 +7,7 @@ indexify/extractor.py,sha256=KMcP9xopHJRBzeSxalztGGTBvOzVKRFEsJynV-hLRSc,1175
|
|
7
7
|
indexify/index.py,sha256=RvxYhJXEth-GKvqzlMiz5PuN1eIbZk84pt20piA1Gsw,504
|
8
8
|
indexify/settings.py,sha256=yzWAEZkrTjykSMj3hrFU7l_jUoUCOUsgPVW1nU-qzJQ,46
|
9
9
|
indexify/utils.py,sha256=rDN2lrsAs9noJEIjfx6ukmC2SAIyrlUt7QU-kaBjujM,125
|
10
|
-
indexify-0.0.
|
11
|
-
indexify-0.0.
|
12
|
-
indexify-0.0.
|
13
|
-
indexify-0.0.
|
10
|
+
indexify-0.0.15.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
11
|
+
indexify-0.0.15.dist-info/METADATA,sha256=jsXSt36fuQ_oWPv5j9S_EC3TI6IEKEs0wIxxlH0YgwY,1714
|
12
|
+
indexify-0.0.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
13
|
+
indexify-0.0.15.dist-info/RECORD,,
|
File without changes
|
File without changes
|