kodexa 7.0.8421619285__py3-none-any.whl → 7.0.8457138162__py3-none-any.whl

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/model/objects.py CHANGED
@@ -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,
kodexa/platform/kodexa.py CHANGED
@@ -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
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.8421619285
3
+ Version: 7.0.8457138162
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -6,14 +6,14 @@ kodexa/connectors/connectors.py,sha256=FpUZDkSyHld2b9eYRuVOWzaFtuGoaRuPXXicJB7TH
6
6
  kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
7
7
  kodexa/model/base.py,sha256=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
8
8
  kodexa/model/model.py,sha256=vVdz2W1LVXIZEtXFjdIZ3L4wxcGiQB--dQRUkN2VsRw,115491
9
- kodexa/model/objects.py,sha256=am56KhduVCW6XrANUawd4PULdB-qFc-s_PdelLvMXNM,173785
9
+ kodexa/model/objects.py,sha256=Y9fNxZkdgfGmnGd4k6J2V_3K09DQrpJ1c72XzkzO83Q,173964
10
10
  kodexa/model/persistence.py,sha256=XiVGKf6PnqKscO9KzZegED-xvuphrFc9IZ7rWCiUa9I,61841
11
11
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
12
12
  kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
13
13
  kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
14
14
  kodexa/platform/client.py,sha256=EHk0L9mYAJXRdMvwvc-fm4IwPqnNQKUisMQqgyTDzFE,213246
15
15
  kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
16
- kodexa/platform/kodexa.py,sha256=jvEt0AtGYqidNsZ070EkoALVx793s4dCz9fGymy4h5Q,33569
16
+ kodexa/platform/kodexa.py,sha256=oUY4aiKDIs_xdv41RN_EiQBqlQ7e7Mpq1vuu5dRcqU0,33780
17
17
  kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
18
18
  kodexa/selectors/ast.py,sha256=gG-1st841IntgBE5V7p3Cq9azaym2jV5lB_AIywQTCI,13269
19
19
  kodexa/selectors/core.py,sha256=kkt02DN20gXeaDGoGubPPeeTV7rCr4sxTyELrI0l1YU,3691
@@ -35,7 +35,7 @@ kodexa/testing/test_components.py,sha256=g5lP-GY0nTHuH5cIEw45vIejEeBaWkPKQGHL36j
35
35
  kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,14021
36
36
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
37
37
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- kodexa-7.0.8421619285.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
39
- kodexa-7.0.8421619285.dist-info/METADATA,sha256=W6oJMdf7mOUkVMqeiGNZIElwy66mFsvue-Mi9MOIFcc,3493
40
- kodexa-7.0.8421619285.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
41
- kodexa-7.0.8421619285.dist-info/RECORD,,
38
+ kodexa-7.0.8457138162.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
39
+ kodexa-7.0.8457138162.dist-info/METADATA,sha256=vExtJqqtUxCMGBEud0viu-ICZOnCWO1dJ3EYzTYWJNM,3493
40
+ kodexa-7.0.8457138162.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
41
+ kodexa-7.0.8457138162.dist-info/RECORD,,