kodexa 6.3.4a5856052827__tar.gz → 6.3.4a5856344862__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 (40) hide show
  1. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/PKG-INFO +1 -1
  2. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/assistant/assistant.py +3 -3
  3. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/spatial/azure_models.py +1 -4
  4. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/spatial/bbox_common.py +3 -1
  5. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/pyproject.toml +1 -1
  6. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/LICENSE +0 -0
  7. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/README.md +0 -0
  8. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/__init__.py +0 -0
  9. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/assistant/__init__.py +0 -0
  10. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/connectors/__init__.py +0 -0
  11. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/connectors/connectors.py +0 -0
  12. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/model/__init__.py +0 -0
  13. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/model/base.py +0 -0
  14. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/model/model.py +0 -0
  15. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/model/objects.py +0 -0
  16. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/model/persistence.py +0 -0
  17. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/pipeline/__init__.py +0 -0
  18. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/pipeline/pipeline.py +0 -0
  19. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/platform/__init__.py +0 -0
  20. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/platform/client.py +0 -0
  21. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/platform/kodexa.py +0 -0
  22. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/__init__.py +0 -0
  23. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/ast.py +0 -0
  24. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/core.py +0 -0
  25. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/lexrules.py +0 -0
  26. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/lextab.py +0 -0
  27. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/lextab.pyi +0 -0
  28. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/parserules.py +0 -0
  29. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/parserules.pyi +0 -0
  30. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/parsetab.py +0 -0
  31. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/selectors/parsetab.pyi +0 -0
  32. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/spatial/__init__.py +0 -0
  33. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/spatial/table_form_common.py +0 -0
  34. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/steps/__init__.py +0 -0
  35. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/steps/common.py +0 -0
  36. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/testing/__init__.py +0 -0
  37. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/testing/test_components.py +0 -0
  38. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/testing/test_utils.py +0 -0
  39. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/training/__init__.py +0 -0
  40. {kodexa-6.3.4a5856052827 → kodexa-6.3.4a5856344862}/kodexa/training/train_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 6.3.4a5856052827
3
+ Version: 6.3.4a5856344862
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -74,7 +74,7 @@ def replace_option(option_type, option_value, event_helper, cache, kodexa_client
74
74
  document = document_family.get_document()
75
75
  document.ref = full_url
76
76
  cache[cache_key] = document
77
- logger.info(f"Downloaded document")
77
+ logger.info("Downloaded document")
78
78
 
79
79
  # We keep the ref of the document so we can use it later
80
80
  return cache[cache_key]
@@ -83,7 +83,7 @@ def replace_option(option_type, option_value, event_helper, cache, kodexa_client
83
83
  logger.warning(f"Unable to access the document ({e})")
84
84
  return None
85
85
  else:
86
- logger.info(f"Document reference not available")
86
+ logger.info("Document reference not available")
87
87
  return None
88
88
 
89
89
  elif len(full_url) > 0:
@@ -151,7 +151,7 @@ def replace_options(step, event_helper, cache, kodexa_client):
151
151
  Example:
152
152
  replace_options(step, event_helper, cache, kodexa_client)
153
153
  """
154
- logger.info(f"Determine is we have any options that need replacement")
154
+ logger.info("Determine is we have any options that need replacement")
155
155
  # We need to document any documents that are part of the options
156
156
  for key in step.option_types.keys():
157
157
  logger.info(f"Check option type for key {key}")
@@ -268,7 +268,7 @@ def get_azure_next_line(
268
268
 
269
269
  ref_bbox = ref_line.get_bbox()
270
270
  possible_lines = document_lines[
271
- max(document_lines.index(ref_line) - 25, 0) : min(
271
+ max(document_lines.index(ref_line) - 25, 0): min(
272
272
  document_lines.index(ref_line) + 25, len(document_lines)
273
273
  )
274
274
  ]
@@ -413,9 +413,6 @@ def group_azure_lines_to_kodexa_lines(page):
413
413
  return []
414
414
 
415
415
  # Convert Azure lines into Kodexa lines
416
- line_heights = []
417
- char_widths = []
418
-
419
416
  for page_line in page_lines:
420
417
  page_line[KDXA_BBOX_KEY] = convert_azure_bbox(page_line, page)
421
418
  page_line["content"] = (
@@ -50,7 +50,9 @@ def width_of_overlap(node, other_node):
50
50
  return 0.0
51
51
 
52
52
 
53
- def kdxa_nodes_overlap(kdxa_node1: ContentNode, kdxa_node2: ContentNode, overlap_percentage: float):
53
+ def kdxa_nodes_overlap(
54
+ kdxa_node1: ContentNode, kdxa_node2: ContentNode, overlap_percentage: float
55
+ ):
54
56
  """
55
57
  Calculates whether the overlap between two nodes is greater than or equal to a specified percentage.
56
58
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "6.3.4a5856052827"
3
+ version = "6.3.4a5856344862"
4
4
  description = "Python SDK for the Kodexa Platform"
5
5
  authors = ["Austin Redenbaugh <austin@kodexa.com>", "Philip Dodds <philip@kodexa.com>", "Romar Cablao <rcablao@kodexa.com>", "Amadea Paula Dodds <amadeapaula@kodexa.com>"]
6
6
  readme = "README.md"