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.
Files changed (41) hide show
  1. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/PKG-INFO +1 -1
  2. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/objects.py +8 -2
  3. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/platform/kodexa.py +8 -0
  4. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/pyproject.toml +1 -1
  5. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/LICENSE +0 -0
  6. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/README.md +0 -0
  7. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/__init__.py +0 -0
  8. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/assistant/__init__.py +0 -0
  9. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/assistant/assistant.py +0 -0
  10. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/connectors/__init__.py +0 -0
  11. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/connectors/connectors.py +0 -0
  12. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/__init__.py +0 -0
  13. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/base.py +0 -0
  14. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/model.py +0 -0
  15. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/model/persistence.py +0 -0
  16. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/pipeline/__init__.py +0 -0
  17. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/pipeline/pipeline.py +0 -0
  18. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/platform/__init__.py +0 -0
  19. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/platform/client.py +0 -0
  20. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/platform/interaction.py +0 -0
  21. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/__init__.py +0 -0
  22. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/ast.py +0 -0
  23. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/core.py +0 -0
  24. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/lexrules.py +0 -0
  25. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/lextab.py +0 -0
  26. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/lextab.pyi +0 -0
  27. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/parserules.py +0 -0
  28. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/parserules.pyi +0 -0
  29. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/parsetab.py +0 -0
  30. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/selectors/parsetab.pyi +0 -0
  31. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/spatial/__init__.py +0 -0
  32. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/spatial/azure_models.py +0 -0
  33. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/spatial/bbox_common.py +0 -0
  34. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/spatial/table_form_common.py +0 -0
  35. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/steps/__init__.py +0 -0
  36. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/steps/common.py +0 -0
  37. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/testing/__init__.py +0 -0
  38. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/testing/test_components.py +0 -0
  39. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/testing/test_utils.py +0 -0
  40. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/kodexa/training/__init__.py +0 -0
  41. {kodexa-7.0.8421619285 → kodexa-7.0.8457138162}/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.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
@@ -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.08421619285"
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