kodexa 7.0.8421619285__tar.gz → 7.0.8457138162__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.8421619285 → kodexa-7.0.8457138162}/PKG-INFO +1 -1
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/objects.py +8 -2
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/platform/kodexa.py +8 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/pyproject.toml +1 -1
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/LICENSE +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/README.md +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/base.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/model.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/persistence.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/platform/client.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/core.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/steps/common.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/training/__init__.py +0 -0
- {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/training/train_utils.py +0 -0
@@ -972,6 +972,9 @@ class MetadataValue(Enum):
|
|
972
972
|
filename = "FILENAME"
|
973
973
|
transaction_uuid = "TRANSACTION_UUID"
|
974
974
|
created_datetime = "CREATED_DATETIME"
|
975
|
+
document_labels = "DOCUMENT_LABELS"
|
976
|
+
owner_name = "OWNER_NAME"
|
977
|
+
document_status = "DOCUMENT_STATUS"
|
975
978
|
|
976
979
|
|
977
980
|
class TaxonType(Enum):
|
@@ -2779,7 +2782,7 @@ class ProjectOptions(BaseModel):
|
|
2779
2782
|
|
2780
2783
|
options: List[Option] = Field(None, description="The options for the project")
|
2781
2784
|
properties: Dict[str, Any] = Field(None, description="The properties for the project")
|
2782
|
-
|
2785
|
+
|
2783
2786
|
|
2784
2787
|
class Project(BaseModel):
|
2785
2788
|
model_config = ConfigDict(
|
@@ -3043,6 +3046,9 @@ class MessageFeedback(BaseModel):
|
|
3043
3046
|
)
|
3044
3047
|
options: Optional[List[MessageFeedbackOption]] = Field(None, alias="options")
|
3045
3048
|
|
3049
|
+
# Thumbs down is -1 and thumbs up is 1
|
3050
|
+
rating: Optional[int] = None
|
3051
|
+
|
3046
3052
|
|
3047
3053
|
class Message(BaseModel):
|
3048
3054
|
"""
|
@@ -3797,7 +3803,7 @@ class LabelStatistics(BaseModel):
|
|
3797
3803
|
|
3798
3804
|
|
3799
3805
|
class DocumentEmbedding(BaseModel):
|
3800
|
-
|
3806
|
+
|
3801
3807
|
model_config = ConfigDict(
|
3802
3808
|
populate_by_name=True,
|
3803
3809
|
use_enum_values=True,
|
@@ -57,6 +57,7 @@ def get_profile(profile=None):
|
|
57
57
|
return "default"
|
58
58
|
return profile
|
59
59
|
|
60
|
+
CURRENT_CONFIG = None
|
60
61
|
|
61
62
|
def get_config(profile=None, create=False):
|
62
63
|
"""
|
@@ -72,6 +73,10 @@ def get_config(profile=None, create=False):
|
|
72
73
|
it returns the default config. If the config file does not exist, it returns a default config or a new profile with
|
73
74
|
default values depending on whether a profile was provided or not.
|
74
75
|
"""
|
76
|
+
global CURRENT_CONFIG
|
77
|
+
if CURRENT_CONFIG:
|
78
|
+
return CURRENT_CONFIG
|
79
|
+
|
75
80
|
path = os.path.join(dirs.user_config_dir, ".kodexa.json")
|
76
81
|
if os.path.exists(path):
|
77
82
|
with open(path, "r") as outfile:
|
@@ -92,6 +97,7 @@ def get_config(profile=None, create=False):
|
|
92
97
|
}
|
93
98
|
else:
|
94
99
|
raise Exception(f"Profile {profile} does not exist")
|
100
|
+
CURRENT_CONFIG = kodexa_config
|
95
101
|
return kodexa_config
|
96
102
|
else:
|
97
103
|
profile = "default" if profile is None else profile
|
@@ -119,6 +125,8 @@ def save_config(config_obj):
|
|
119
125
|
raise
|
120
126
|
with open(path, "w") as outfile:
|
121
127
|
json.dump(config_obj, outfile)
|
128
|
+
global CURRENT_CONFIG
|
129
|
+
CURRENT_CONFIG = config_obj
|
122
130
|
|
123
131
|
|
124
132
|
class KodexaPlatform:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "7.0.
|
3
|
+
version = "7.0.08457138162"
|
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
|
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
|