indexify 0.0.41__tar.gz → 0.0.43__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.
Files changed (25) hide show
  1. {indexify-0.0.41 → indexify-0.0.43}/PKG-INFO +1 -1
  2. {indexify-0.0.41 → indexify-0.0.43}/indexify/extractor_sdk/extractor.py +2 -0
  3. {indexify-0.0.41 → indexify-0.0.43}/indexify/extractors/pdf_parser.py +1 -3
  4. {indexify-0.0.41 → indexify-0.0.43}/pyproject.toml +1 -1
  5. {indexify-0.0.41 → indexify-0.0.43}/LICENSE.txt +0 -0
  6. {indexify-0.0.41 → indexify-0.0.43}/README.md +0 -0
  7. {indexify-0.0.41 → indexify-0.0.43}/indexify/__init__.py +0 -0
  8. {indexify-0.0.41 → indexify-0.0.43}/indexify/base_client.py +0 -0
  9. {indexify-0.0.41 → indexify-0.0.43}/indexify/client.py +0 -0
  10. {indexify-0.0.41 → indexify-0.0.43}/indexify/data_loaders/__init__.py +0 -0
  11. {indexify-0.0.41 → indexify-0.0.43}/indexify/data_loaders/local_directory_loader.py +0 -0
  12. {indexify-0.0.41 → indexify-0.0.43}/indexify/data_loaders/url_loader.py +0 -0
  13. {indexify-0.0.41 → indexify-0.0.43}/indexify/error.py +0 -0
  14. {indexify-0.0.41 → indexify-0.0.43}/indexify/exceptions.py +0 -0
  15. {indexify-0.0.41 → indexify-0.0.43}/indexify/extraction_policy.py +0 -0
  16. {indexify-0.0.41 → indexify-0.0.43}/indexify/extractor_sdk/__init__.py +0 -0
  17. {indexify-0.0.41 → indexify-0.0.43}/indexify/extractor_sdk/data.py +0 -0
  18. {indexify-0.0.41 → indexify-0.0.43}/indexify/extractor_sdk/utils.py +0 -0
  19. {indexify-0.0.41 → indexify-0.0.43}/indexify/extractors/__init__.py +0 -0
  20. {indexify-0.0.41 → indexify-0.0.43}/indexify/extractors/embedding.py +0 -0
  21. {indexify-0.0.41 → indexify-0.0.43}/indexify/graph.py +0 -0
  22. {indexify-0.0.41 → indexify-0.0.43}/indexify/local_runner.py +0 -0
  23. {indexify-0.0.41 → indexify-0.0.43}/indexify/runner.py +0 -0
  24. {indexify-0.0.41 → indexify-0.0.43}/indexify/settings.py +0 -0
  25. {indexify-0.0.41 → indexify-0.0.43}/indexify/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: indexify
3
- Version: 0.0.41
3
+ Version: 0.0.43
4
4
  Summary: Python Client for Indexify
5
5
  Home-page: https://github.com/tensorlakeai/indexify
6
6
  License: Apache 2.0
@@ -45,6 +45,8 @@ class Extractor(ABC):
45
45
 
46
46
  version: str = "0.0.0"
47
47
 
48
+ base_image: Optional[str] = None
49
+
48
50
  system_dependencies: List[str] = []
49
51
 
50
52
  python_dependencies: List[str] = []
@@ -2,7 +2,6 @@ import tempfile
2
2
  from enum import Enum
3
3
  from typing import List, Optional
4
4
 
5
- import deepdoctection as dd
6
5
  from pydantic import BaseModel
7
6
 
8
7
 
@@ -45,6 +44,7 @@ class PDFParser:
45
44
  self._data = data
46
45
 
47
46
  def parse(self) -> List[Page]:
47
+ import deepdoctection as dd
48
48
  analyzer = dd.get_dd_analyzer()
49
49
  parsed_pages = []
50
50
  with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as f:
@@ -68,7 +68,6 @@ class PDFParser:
68
68
  )
69
69
  )
70
70
  figures = parsed_page.get_annotation(category_names=dd.LayoutType.FIGURE)
71
- print(len(figures))
72
71
  for figure in figures:
73
72
  image_bytes = dd.viz_handler.encode(figure.viz())
74
73
  fragments.append(
@@ -80,7 +79,6 @@ class PDFParser:
80
79
  )
81
80
 
82
81
  tables = parsed_page.get_annotation(category_names=dd.LayoutType.TABLE)
83
- print(len(tables))
84
82
  for table in tables:
85
83
  fragments.append(
86
84
  PageFragment(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "indexify"
3
- version = "0.0.41"
3
+ version = "0.0.43"
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