kodexa 7.4.418571517744__tar.gz → 7.4.418822139474__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.4.418571517744 → kodexa-7.4.418822139474}/PKG-INFO +1 -1
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/dataclasses/__init__.py +2 -3
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/model.py +6 -6
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/objects.py +3 -1
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/persistence.py +3 -3
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/pyproject.toml +1 -1
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/LICENSE +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/README.md +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/base.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/entities/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/entities/check_response.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/entities/product.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/entities/product_group.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/entities/product_subscription.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/model/utils.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/platform/client.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/platform/kodexa.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/platform/manifest.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/core.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/steps/common.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/training/__init__.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/training/train_utils.py +0 -0
- {kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/kodexa/utils/__init__.py +0 -0
|
@@ -7,7 +7,7 @@ import jinja2
|
|
|
7
7
|
from kodexa import ContentNode
|
|
8
8
|
from kodexa.model.model import Tag, Document
|
|
9
9
|
from kodexa.model.objects import ContentException, Taxon, Taxonomy, Assistant
|
|
10
|
-
from pydantic import BaseModel
|
|
10
|
+
from pydantic import BaseModel, ConfigDict
|
|
11
11
|
|
|
12
12
|
from kodexa.utils import snake_to_camel, to_snake, taxon_to_property_name, taxon_to_class_name, taxon_to_group_path
|
|
13
13
|
|
|
@@ -110,8 +110,7 @@ class LLMDataObject(BaseModel):
|
|
|
110
110
|
cell_index: int = 0
|
|
111
111
|
exceptions: Optional[list[ContentException]] = None
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
arbitrary_types_allowed = True
|
|
113
|
+
model_config = ConfigDict(arbitrary_types_allowed=True)
|
|
115
114
|
|
|
116
115
|
def process_exceptions(self, document: "KodexaDocumentLLMWrapper"):
|
|
117
116
|
# Lets make sure we add all the content exceptions
|
|
@@ -12,7 +12,7 @@ from typing import Any, List, Optional
|
|
|
12
12
|
from addict import Dict
|
|
13
13
|
import deepdiff
|
|
14
14
|
import msgpack
|
|
15
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
15
|
+
from pydantic import BaseModel, ConfigDict, Field, model_serializer
|
|
16
16
|
|
|
17
17
|
from kodexa.model.objects import ContentObject, FeatureSet, DocumentTaxonValidation, KnowledgeItem
|
|
18
18
|
|
|
@@ -2435,11 +2435,11 @@ class ProcessingStep(BaseModel):
|
|
|
2435
2435
|
merged_step.parents.append(step)
|
|
2436
2436
|
return merged_step
|
|
2437
2437
|
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2438
|
+
model_config = ConfigDict(arbitrary_types_allowed=True)
|
|
2439
|
+
|
|
2440
|
+
@model_serializer(mode='plain')
|
|
2441
|
+
def _serialize(self):
|
|
2442
|
+
return self.to_dict()
|
|
2443
2443
|
|
|
2444
2444
|
def to_dict(self, seen=None):
|
|
2445
2445
|
if seen is None:
|
|
@@ -2926,7 +2926,9 @@ class ProjectOptions(BaseModel):
|
|
|
2926
2926
|
description="Taxon Type Feature Defaults"
|
|
2927
2927
|
)
|
|
2928
2928
|
|
|
2929
|
-
task_options: ProjectTaskOptions = Field(default_factory=ProjectTaskOptions, alias="taskOptions")
|
|
2929
|
+
task_options: ProjectTaskOptions = Field(default_factory=ProjectTaskOptions, alias="taskOptions")
|
|
2930
|
+
data_options: List[Option] = Field(default_factory=list, alias="dataOptions")
|
|
2931
|
+
data_properties: Dict[str, Any] = Field(default_factory=dict, alias="dataProperties")
|
|
2930
2932
|
|
|
2931
2933
|
|
|
2932
2934
|
class NodePosition(BaseModel):
|
|
@@ -626,7 +626,7 @@ class SqliteDocumentPersistence(object):
|
|
|
626
626
|
|
|
627
627
|
self.uuid = metadata.get("uuid")
|
|
628
628
|
|
|
629
|
-
import
|
|
629
|
+
from semver import Version
|
|
630
630
|
|
|
631
631
|
root_node = self.cursor.execute(
|
|
632
632
|
"select id, pid, nt, idx from cn where pid is null"
|
|
@@ -634,7 +634,7 @@ class SqliteDocumentPersistence(object):
|
|
|
634
634
|
if root_node:
|
|
635
635
|
self.document.content_node = self.__build_node(root_node)
|
|
636
636
|
|
|
637
|
-
if
|
|
637
|
+
if Version.parse(self.document.version) < Version.parse("4.0.1"):
|
|
638
638
|
# We need to migrate this to a 4.0.1 document
|
|
639
639
|
self.cursor.execute(
|
|
640
640
|
"""CREATE TABLE ft
|
|
@@ -679,7 +679,7 @@ class SqliteDocumentPersistence(object):
|
|
|
679
679
|
)"""
|
|
680
680
|
)
|
|
681
681
|
|
|
682
|
-
if
|
|
682
|
+
if Version.parse(self.document.version) < Version.parse("6.0.0"):
|
|
683
683
|
from sqlite3 import OperationalError
|
|
684
684
|
|
|
685
685
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "kodexa"
|
|
3
|
-
version = "7.4.
|
|
3
|
+
version = "7.4.418822139474"
|
|
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
|
{kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/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
|
|
File without changes
|
{kodexa-7.4.418571517744 → kodexa-7.4.418822139474}/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
|