kodexa 7.0.9774637276__tar.gz → 7.0.9957978617__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.9774637276 → kodexa-7.0.9957978617}/PKG-INFO +1 -1
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/model/objects.py +12 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/platform/client.py +23 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/pyproject.toml +1 -1
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/LICENSE +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/README.md +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/model/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/model/base.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/model/entities/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/model/entities/product.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/model/entities/product_subscription.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/model/model.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/model/persistence.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/platform/kodexa.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/core.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/steps/common.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/training/__init__.py +0 -0
- {kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/kodexa/training/train_utils.py +0 -0
@@ -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.
|
3
|
+
version = "7.0.09957978617"
|
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
|
File without changes
|
File without changes
|
File without changes
|
{kodexa-7.0.9774637276 → kodexa-7.0.9957978617}/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
|