kodexa 7.0.11275546208__tar.gz → 7.0.11276748448__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 (48) hide show
  1. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/PKG-INFO +1 -1
  2. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/platform/kodexa.py +8 -4
  3. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/pyproject.toml +1 -1
  4. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/LICENSE +0 -0
  5. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/README.md +0 -0
  6. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/__init__.py +0 -0
  7. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/assistant/__init__.py +0 -0
  8. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/assistant/assistant.py +0 -0
  9. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/connectors/__init__.py +0 -0
  10. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/connectors/connectors.py +0 -0
  11. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/dataclasses/__init__.py +0 -0
  12. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
  13. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/model/__init__.py +0 -0
  14. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/model/base.py +0 -0
  15. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/model/entities/__init__.py +0 -0
  16. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/model/entities/check_response.py +0 -0
  17. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/model/entities/product.py +0 -0
  18. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/model/entities/product_subscription.py +0 -0
  19. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/model/model.py +0 -0
  20. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/model/objects.py +0 -0
  21. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/model/persistence.py +0 -0
  22. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/pipeline/__init__.py +0 -0
  23. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/pipeline/pipeline.py +0 -0
  24. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/platform/__init__.py +0 -0
  25. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/platform/client.py +0 -0
  26. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/platform/interaction.py +0 -0
  27. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/__init__.py +0 -0
  28. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/ast.py +0 -0
  29. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/core.py +0 -0
  30. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/lexrules.py +0 -0
  31. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/lextab.py +0 -0
  32. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/lextab.pyi +0 -0
  33. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/parserules.py +0 -0
  34. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/parserules.pyi +0 -0
  35. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/parsetab.py +0 -0
  36. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/selectors/parsetab.pyi +0 -0
  37. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/spatial/__init__.py +0 -0
  38. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/spatial/azure_models.py +0 -0
  39. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/spatial/bbox_common.py +0 -0
  40. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/spatial/table_form_common.py +0 -0
  41. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/steps/__init__.py +0 -0
  42. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/steps/common.py +0 -0
  43. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/testing/__init__.py +0 -0
  44. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/testing/test_components.py +0 -0
  45. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/testing/test_utils.py +0 -0
  46. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/training/__init__.py +0 -0
  47. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/training/train_utils.py +0 -0
  48. {kodexa-7.0.11275546208 → kodexa-7.0.11276748448}/kodexa/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.11275546208
3
+ Version: 7.0.11276748448
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -16,6 +16,7 @@ from typing import Dict
16
16
 
17
17
  import requests
18
18
  from appdirs import AppDirs
19
+ from mistune.plugins.formatting import insert
19
20
 
20
21
  from kodexa.connectors import get_source
21
22
  from kodexa.connectors.connectors import get_caller_dir, FolderConnector
@@ -884,7 +885,7 @@ class EventHelper:
884
885
  ContentObject: The posted content object.
885
886
  """
886
887
  files = {"content": content}
887
- data = {"contentObjectJson": json.dumps(content_object.dict(by_alias=True))}
888
+ data = {"contentObjectJson": json.dumps(content_object.model_dump(by_alias=True))}
888
889
  logger.info("Posting back content object to execution object")
889
890
  co_response = requests.post(
890
891
  f"{KodexaPlatform.get_url()}/api/sessions/{self.event.session_id}/executions/{self.event.execution.id}/objects",
@@ -901,7 +902,7 @@ class EventHelper:
901
902
 
902
903
  return ContentObject.model_validate(co_response.json())
903
904
 
904
- def build_pipeline_context(self) -> PipelineContext:
905
+ def build_pipeline_context(self, event) -> PipelineContext:
905
906
  """Builds a pipeline context.
906
907
 
907
908
  Returns:
@@ -911,7 +912,10 @@ class EventHelper:
911
912
  context={}, content_provider=self, execution_id=self.event.execution.id
912
913
  )
913
914
 
914
- if isinstance(self.event, DocumentFamilyEvent):
915
+ if isinstance(event, dict):
916
+ event = self.get_base_event(event)
917
+
918
+ if isinstance(event, DocumentFamilyEvent):
915
919
  # Can we get the document family
916
920
  dfe:DocumentFamilyEvent = self.event
917
921
  if dfe.document_family:
@@ -919,7 +923,7 @@ class EventHelper:
919
923
  context.document_family = dfe.document_family
920
924
  logger.info(f"Getting document store for family: {context.document_family.store_ref}")
921
925
  context.document_store = KodexaClient().get_object_by_ref("store", context.document_family.store_ref)
922
- if isinstance(self.event, ContentEvent):
926
+ if isinstance(event, ContentEvent):
923
927
  ce:ContentEvent = self.event
924
928
  if ce.content_object:
925
929
  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.011275546208"
3
+ version = "7.0.011276748448"
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"