kodexa 7.0.11275546208__tar.gz → 7.0.11294357422__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.11275546208 → kodexa-7.0.11294357422}/PKG-INFO +1 -1
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/platform/kodexa.py +7 -4
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/pyproject.toml +1 -1
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/LICENSE +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/README.md +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/dataclasses/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/model/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/model/base.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/model/entities/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/model/entities/check_response.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/model/entities/product.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/model/entities/product_subscription.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/model/model.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/model/objects.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/model/persistence.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/platform/client.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/core.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/steps/common.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/training/__init__.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/training/train_utils.py +0 -0
- {kodexa-7.0.11275546208 → kodexa-7.0.11294357422}/kodexa/utils/__init__.py +0 -0
@@ -884,7 +884,7 @@ class EventHelper:
|
|
884
884
|
ContentObject: The posted content object.
|
885
885
|
"""
|
886
886
|
files = {"content": content}
|
887
|
-
data = {"contentObjectJson": json.dumps(content_object.
|
887
|
+
data = {"contentObjectJson": json.dumps(content_object.model_dump(by_alias=True))}
|
888
888
|
logger.info("Posting back content object to execution object")
|
889
889
|
co_response = requests.post(
|
890
890
|
f"{KodexaPlatform.get_url()}/api/sessions/{self.event.session_id}/executions/{self.event.execution.id}/objects",
|
@@ -901,7 +901,7 @@ class EventHelper:
|
|
901
901
|
|
902
902
|
return ContentObject.model_validate(co_response.json())
|
903
903
|
|
904
|
-
def build_pipeline_context(self) -> PipelineContext:
|
904
|
+
def build_pipeline_context(self, event) -> PipelineContext:
|
905
905
|
"""Builds a pipeline context.
|
906
906
|
|
907
907
|
Returns:
|
@@ -911,7 +911,10 @@ class EventHelper:
|
|
911
911
|
context={}, content_provider=self, execution_id=self.event.execution.id
|
912
912
|
)
|
913
913
|
|
914
|
-
if isinstance(
|
914
|
+
if isinstance(event, dict):
|
915
|
+
event = self.get_base_event(event)
|
916
|
+
|
917
|
+
if isinstance(event, DocumentFamilyEvent):
|
915
918
|
# Can we get the document family
|
916
919
|
dfe:DocumentFamilyEvent = self.event
|
917
920
|
if dfe.document_family:
|
@@ -919,7 +922,7 @@ class EventHelper:
|
|
919
922
|
context.document_family = dfe.document_family
|
920
923
|
logger.info(f"Getting document store for family: {context.document_family.store_ref}")
|
921
924
|
context.document_store = KodexaClient().get_object_by_ref("store", context.document_family.store_ref)
|
922
|
-
if isinstance(
|
925
|
+
if isinstance(event, ContentEvent):
|
923
926
|
ce:ContentEvent = self.event
|
924
927
|
if ce.content_object:
|
925
928
|
logger.info(f"Setting content object for context: {ce.content_object}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "7.0.
|
3
|
+
version = "7.0.011294357422"
|
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.11275546208 → kodexa-7.0.11294357422}/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.11275546208 → kodexa-7.0.11294357422}/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
|