kodexa 7.0.12260797471__tar.gz → 7.0.12396164812__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.
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/PKG-INFO +1 -1
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/model.py +9 -2
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/pyproject.toml +1 -1
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/LICENSE +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/README.md +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/dataclasses/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/base.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/entities/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/entities/check_response.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/entities/product.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/entities/product_subscription.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/objects.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/persistence.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/utils.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/platform/client.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/platform/kodexa.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/core.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/steps/common.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/training/__init__.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/training/train_utils.py +0 -0
- {kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/utils/__init__.py +0 -0
@@ -293,6 +293,8 @@ class ContentNode(object):
|
|
293
293
|
if content is not None and len(self.get_content_parts()) == 0:
|
294
294
|
self.set_content_parts([content])
|
295
295
|
|
296
|
+
self.cached_all_content = None
|
297
|
+
|
296
298
|
def get_content_parts(self):
|
297
299
|
return self.document.get_persistence().get_content_parts(self)
|
298
300
|
|
@@ -818,12 +820,13 @@ class ContentNode(object):
|
|
818
820
|
self.document.get_persistence().flush_cache()
|
819
821
|
return parsed_selector.resolve(self, variables, context)
|
820
822
|
|
821
|
-
def get_all_content(self, separator=" ", strip=True):
|
823
|
+
def get_all_content(self, separator=" ", strip=True, use_cache=False):
|
822
824
|
"""Get this node's content, concatenated with all of its children's content.
|
823
825
|
|
824
826
|
Args:
|
825
827
|
separator(str, optional): The separator to use in joining content together; defaults to " ".
|
826
828
|
strip(boolean, optional): Strip the result
|
829
|
+
use_cache(boolean, optional): Use the cache
|
827
830
|
|
828
831
|
Returns:
|
829
832
|
str: The complete content for this node concatenated with the content of all child nodes.
|
@@ -833,6 +836,9 @@ class ContentNode(object):
|
|
833
836
|
"This string is made up of multiple nodes"
|
834
837
|
"""
|
835
838
|
s = ""
|
839
|
+
if self.cached_all_content is not None and use_cache:
|
840
|
+
return self.cached_all_content
|
841
|
+
|
836
842
|
children = self.get_content_parts()
|
837
843
|
for part in children:
|
838
844
|
if isinstance(part, str):
|
@@ -855,7 +861,8 @@ class ContentNode(object):
|
|
855
861
|
s += separator
|
856
862
|
s += child.get_all_content(separator, strip=strip)
|
857
863
|
|
858
|
-
|
864
|
+
self.cached_all_content = s.strip() if strip else s
|
865
|
+
return self.cached_all_content
|
859
866
|
|
860
867
|
def adopt_children(self, nodes_to_adopt, replace=False):
|
861
868
|
"""This will take a list of content nodes and adopt them under this node, ensuring they are re-parented.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "7.0.
|
3
|
+
version = "7.0.012396164812"
|
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"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/dataclasses/templates/llm_data_class.j2
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{kodexa-7.0.12260797471 → kodexa-7.0.12396164812}/kodexa/model/entities/product_subscription.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|