indexify 0.0.14__tar.gz → 0.0.15__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.14
3
+ Version: 0.0.15
4
4
  Summary: Python Client for Indexify
5
5
  Home-page: https://github.com/tensorlakeai/indexify
6
6
  License: Apache 2.0
@@ -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
- def get_content(
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
- parent_id: str = None,
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 get_metadata(self, content_id: str) -> dict:
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,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "indexify"
3
- version = "0.0.14"
3
+ version = "0.0.15"
4
4
  description = "Python Client for Indexify"
5
5
  authors = ["Diptanu Gon Choudhury <diptanuc@gmail.com>", "Vijay Parthasarathy <vijay2win@gmail.com>"]
6
6
  license = "Apache 2.0"
File without changes
File without changes
File without changes
File without changes