kodexa 7.4.413041559723__tar.gz → 7.4.413041815779__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/PKG-INFO +1 -1
  2. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/dataclasses/__init__.py +9 -3
  3. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/pyproject.toml +1 -1
  4. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/LICENSE +0 -0
  5. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/README.md +0 -0
  6. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/__init__.py +0 -0
  7. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/assistant/__init__.py +0 -0
  8. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/assistant/assistant.py +0 -0
  9. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/connectors/__init__.py +0 -0
  10. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/connectors/connectors.py +0 -0
  11. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
  12. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/__init__.py +0 -0
  13. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/base.py +0 -0
  14. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/entities/__init__.py +0 -0
  15. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/entities/check_response.py +0 -0
  16. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/entities/product.py +0 -0
  17. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/entities/product_group.py +0 -0
  18. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/entities/product_subscription.py +0 -0
  19. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/model.py +0 -0
  20. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/objects.py +0 -0
  21. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/persistence.py +0 -0
  22. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/model/utils.py +0 -0
  23. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/pipeline/__init__.py +0 -0
  24. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/pipeline/pipeline.py +0 -0
  25. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/platform/__init__.py +0 -0
  26. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/platform/client.py +0 -0
  27. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/platform/interaction.py +0 -0
  28. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/platform/kodexa.py +0 -0
  29. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/__init__.py +0 -0
  30. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/ast.py +0 -0
  31. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/core.py +0 -0
  32. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/lexrules.py +0 -0
  33. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/lextab.py +0 -0
  34. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/lextab.pyi +0 -0
  35. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/parserules.py +0 -0
  36. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/parserules.pyi +0 -0
  37. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/parsetab.py +0 -0
  38. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/selectors/parsetab.pyi +0 -0
  39. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/spatial/__init__.py +0 -0
  40. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/spatial/azure_models.py +0 -0
  41. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/spatial/bbox_common.py +0 -0
  42. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/spatial/table_form_common.py +0 -0
  43. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/steps/__init__.py +0 -0
  44. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/steps/common.py +0 -0
  45. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/testing/__init__.py +0 -0
  46. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/testing/test_components.py +0 -0
  47. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/testing/test_utils.py +0 -0
  48. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/training/__init__.py +0 -0
  49. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/training/train_utils.py +0 -0
  50. {kodexa-7.4.413041559723 → kodexa-7.4.413041815779}/kodexa/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.4.413041559723
3
+ Version: 7.4.413041815779
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -171,12 +171,18 @@ class LLMDataObject(BaseModel):
171
171
  result = {}
172
172
  for field in self.__fields__:
173
173
  value = getattr(self, field)
174
- if isinstance(value, list):
175
- result[field] = [item.to_dict(taxonomy) for item in value if isinstance(item, (LLMDataObject, LLMDataAttribute))]
174
+
175
+ if isinstance(value, list) and len(value) > 0:
176
+
177
+ target_taxon = taxonomy.get_taxon_by_path(value[0].taxon_path)
178
+ if target_taxon is not None:
179
+ result[target_taxon.external_name] = [item.to_dict(taxonomy) for item in value if isinstance(item, (LLMDataObject, LLMDataAttribute))]
176
180
  elif isinstance(value, LLMDataAttribute):
177
181
  result.update(value.to_dict(taxonomy))
178
182
  elif isinstance(value, LLMDataObject):
179
- result[field] = value.to_dict(taxonomy)
183
+ target_taxon = taxonomy.get_taxon_by_path(value.taxon_path)
184
+ if target_taxon is not None:
185
+ result[target_taxon.external_name] = value.to_dict(taxonomy)
180
186
  return result
181
187
 
182
188
  def to_review(self, page_number=None):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.4.413041559723"
3
+ version = "7.4.413041815779"
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"