kodexa 6.3.4a5856052827__py3-none-any.whl → 6.3.4a5856344862__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.
@@ -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
  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
@@ -1,6 +1,6 @@
1
1
  kodexa/__init__.py,sha256=nH7p-Rk5QXXeEBj-DSewxr1iGx8B82RNyWH7TITSBPI,957
2
2
  kodexa/assistant/__init__.py,sha256=nlXm_YnV_50hgn0TIT2Fkc2fQ-86OjmctY_j8My9nc4,171
3
- kodexa/assistant/assistant.py,sha256=NuSEEnpq-id8zaHRH08i7IkRp5YZGinwGC6SesGSOJE,14666
3
+ kodexa/assistant/assistant.py,sha256=5KFdbqFSLIZJyDRyZdpcfr448fT-CW4JhYu9A6B9DGY,14663
4
4
  kodexa/connectors/__init__.py,sha256=WF6G_MUeU32TlKSUKkpNoNX7dq8iBPliFMep4E8BmZc,328
5
5
  kodexa/connectors/connectors.py,sha256=FpUZDkSyHld2b9eYRuVOWzaFtuGoaRuPXXicJB7THbc,10413
6
6
  kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
@@ -24,8 +24,8 @@ kodexa/selectors/parserules.pyi,sha256=x39HNceESZYCouVS3wiNazxeNjhmYV2hP1iO4QWnq
24
24
  kodexa/selectors/parsetab.py,sha256=tALLxKc3VS2b6kCKiznBUreCVl4aS_3-BgSlJkLGV4s,71452
25
25
  kodexa/selectors/parsetab.pyi,sha256=x39HNceESZYCouVS3wiNazxeNjhmYV2hP1iO4QWnqcw,61
26
26
  kodexa/spatial/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
- kodexa/spatial/azure_models.py,sha256=Oz-vAX9D0aUh6yOTauO9XTsbaaI-fIowUQDajolsDro,30609
28
- kodexa/spatial/bbox_common.py,sha256=uwQblY5_LmAzM192OybdmPlNC85G-7fj6dEiu9DLNGc,5969
27
+ kodexa/spatial/azure_models.py,sha256=Jw4abHIWl4dVScxC-a9QAsnFa8V3HisTmh0b0MFHCXQ,30564
28
+ kodexa/spatial/bbox_common.py,sha256=mbylO-s8KsK9p6nAwjq6DTaxEHhLZ0Nx4d3US82f5ZE,5975
29
29
  kodexa/spatial/table_form_common.py,sha256=qJIqr6INNFTe8EPrXchZ9a1ZgS9dZnhx_wgvd6A41XQ,44214
30
30
  kodexa/steps/__init__.py,sha256=qpmAtYePTv7G-HzUBx087bA3kq-PPGcFJf4_Z5P--0k,179
31
31
  kodexa/steps/common.py,sha256=fGEuKxcztcqrYFpXbu_OYkxh42yR9s5mkszmtkJhnQ8,10428
@@ -34,7 +34,7 @@ kodexa/testing/test_components.py,sha256=4BnzCCOA5v__82mB1TIBPHfNIGJbkZz9PiTZiNK
34
34
  kodexa/testing/test_utils.py,sha256=IWLKBvMHATzrsoO9PQFGcwoGcuZykhAS3QRddfzb_XE,14043
35
35
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
36
36
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
- kodexa-6.3.4a5856052827.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
38
- kodexa-6.3.4a5856052827.dist-info/METADATA,sha256=bRV2hTgp06WgJPNeYOuAmZcmxWWzOgElNAJj1jd3P60,4069
39
- kodexa-6.3.4a5856052827.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
40
- kodexa-6.3.4a5856052827.dist-info/RECORD,,
37
+ kodexa-6.3.4a5856344862.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
38
+ kodexa-6.3.4a5856344862.dist-info/METADATA,sha256=1N7ePM4nowCRcvKFj_KocJ3RcCv_3iO1VoYW-g3iX1k,4069
39
+ kodexa-6.3.4a5856344862.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
40
+ kodexa-6.3.4a5856344862.dist-info/RECORD,,