kodexa 7.0.9821365257__tar.gz → 7.0.9962385482__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 (44) hide show
  1. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/PKG-INFO +1 -1
  2. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/model/objects.py +12 -0
  3. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/platform/client.py +23 -0
  4. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/pyproject.toml +2 -2
  5. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/LICENSE +0 -0
  6. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/README.md +0 -0
  7. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/__init__.py +0 -0
  8. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/assistant/__init__.py +0 -0
  9. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/assistant/assistant.py +0 -0
  10. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/connectors/__init__.py +0 -0
  11. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/connectors/connectors.py +0 -0
  12. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/model/__init__.py +0 -0
  13. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/model/base.py +0 -0
  14. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/model/entities/__init__.py +0 -0
  15. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/model/entities/product.py +0 -0
  16. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/model/entities/product_subscription.py +0 -0
  17. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/model/model.py +0 -0
  18. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/model/persistence.py +0 -0
  19. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/pipeline/__init__.py +0 -0
  20. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/pipeline/pipeline.py +0 -0
  21. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/platform/__init__.py +0 -0
  22. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/platform/interaction.py +0 -0
  23. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/platform/kodexa.py +0 -0
  24. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/__init__.py +0 -0
  25. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/ast.py +0 -0
  26. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/core.py +0 -0
  27. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/lexrules.py +0 -0
  28. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/lextab.py +0 -0
  29. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/lextab.pyi +0 -0
  30. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/parserules.py +0 -0
  31. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/parserules.pyi +0 -0
  32. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/parsetab.py +0 -0
  33. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/selectors/parsetab.pyi +0 -0
  34. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/spatial/__init__.py +0 -0
  35. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/spatial/azure_models.py +0 -0
  36. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/spatial/bbox_common.py +0 -0
  37. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/spatial/table_form_common.py +0 -0
  38. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/steps/__init__.py +0 -0
  39. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/steps/common.py +0 -0
  40. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/testing/__init__.py +0 -0
  41. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/testing/test_components.py +0 -0
  42. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/testing/test_utils.py +0 -0
  43. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/training/__init__.py +0 -0
  44. {kodexa-7.0.9821365257 → kodexa-7.0.9962385482}/kodexa/training/train_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.9821365257
3
+ Version: 7.0.9962385482
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -3851,6 +3851,18 @@ class DocumentEmbedding(BaseModel):
3851
3851
  node_uuid: Optional[str] = Field(None, alias="nodeUuid")
3852
3852
 
3853
3853
 
3854
+ class DocumentExternalData(BaseModel):
3855
+ model_config = ConfigDict(
3856
+ populate_by_name=True,
3857
+ use_enum_values=True,
3858
+ arbitrary_types_allowed=True,
3859
+ protected_namespaces=("model_config",),
3860
+ )
3861
+
3862
+ external_data: Optional[Dict[str, Any]] = Field(None, alias="externalData")
3863
+ document_family: Optional[DocumentFamily] = Field(None, alias="documentFamily")
3864
+
3865
+
3854
3866
  class DocumentFamily(BaseModel):
3855
3867
  """
3856
3868
 
@@ -86,6 +86,7 @@ from kodexa.model.objects import (
86
86
  PageExtensionPack,
87
87
  PageOrganization,
88
88
  DocumentFamilyStatistics, MessageContext, PagePrompt, Prompt, GuidanceSet, PageGuidanceSet, DocumentEmbedding,
89
+ DocumentExternalData,
89
90
  )
90
91
 
91
92
  logger = logging.getLogger()
@@ -4456,6 +4457,28 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4456
4457
  response = self.client.get(url)
4457
4458
  process_response(response)
4458
4459
 
4460
+ def get_external_data(self) -> DocumentExternalData:
4461
+ """
4462
+ Get the external data of the document family.
4463
+
4464
+ Returns:
4465
+ DocumentExternalData: The external data of the document family.
4466
+ """
4467
+ url = f"/api/documentFamilies/{self.id}/externalData"
4468
+ response = self.client.get(url)
4469
+ return DocumentExternalData.model_validate(response.json())
4470
+
4471
+ def update_external_data(self, external_data: DocumentExternalData):
4472
+ """
4473
+ Update the external data of the document family.
4474
+
4475
+ Args:
4476
+ external_data (DocumentExternalData): The external data to update.
4477
+ """
4478
+ url = f"/api/documentFamilies/{self.id}/externalData"
4479
+ response = self.client.put(url, body=external_data.model_dump(mode="json", by_alias=True))
4480
+ process_response(response)
4481
+
4459
4482
  def export(self) -> bytes:
4460
4483
  """
4461
4484
  Export the document family as bytes.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.0.09821365257"
3
+ version = "7.0.09962385482"
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"
@@ -43,7 +43,7 @@ pytest-runner = "^6.0.0"
43
43
  mypy = "^1.10.0"
44
44
  flake8 = "^7.0.0"
45
45
  pandas = "2.2.2"
46
- setuptools = "^65.5.1"
46
+ setuptools = "^70"
47
47
  black = ">=23.7,<25.0"
48
48
  mkdocstrings = "^0.22.0"
49
49
  mkdocstrings-python = "^1.5.1"
File without changes