kodexa 7.4.413228679383__tar.gz → 7.4.413229965531__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.413228679383 → kodexa-7.4.413229965531}/PKG-INFO +1 -1
  2. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/platform/client.py +72 -6
  3. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/pyproject.toml +1 -1
  4. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/LICENSE +0 -0
  5. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/README.md +0 -0
  6. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/__init__.py +0 -0
  7. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/assistant/__init__.py +0 -0
  8. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/assistant/assistant.py +0 -0
  9. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/connectors/__init__.py +0 -0
  10. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/connectors/connectors.py +0 -0
  11. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/dataclasses/__init__.py +0 -0
  12. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
  13. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/__init__.py +0 -0
  14. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/base.py +0 -0
  15. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/entities/__init__.py +0 -0
  16. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/entities/check_response.py +0 -0
  17. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/entities/product.py +0 -0
  18. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/entities/product_group.py +0 -0
  19. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/entities/product_subscription.py +0 -0
  20. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/model.py +0 -0
  21. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/objects.py +0 -0
  22. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/persistence.py +0 -0
  23. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/model/utils.py +0 -0
  24. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/pipeline/__init__.py +0 -0
  25. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/pipeline/pipeline.py +0 -0
  26. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/platform/__init__.py +0 -0
  27. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/platform/interaction.py +0 -0
  28. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/platform/kodexa.py +0 -0
  29. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/__init__.py +0 -0
  30. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/ast.py +0 -0
  31. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/core.py +0 -0
  32. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/lexrules.py +0 -0
  33. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/lextab.py +0 -0
  34. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/lextab.pyi +0 -0
  35. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/parserules.py +0 -0
  36. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/parserules.pyi +0 -0
  37. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/parsetab.py +0 -0
  38. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/selectors/parsetab.pyi +0 -0
  39. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/spatial/__init__.py +0 -0
  40. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/spatial/azure_models.py +0 -0
  41. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/spatial/bbox_common.py +0 -0
  42. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/spatial/table_form_common.py +0 -0
  43. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/steps/__init__.py +0 -0
  44. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/steps/common.py +0 -0
  45. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/testing/__init__.py +0 -0
  46. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/testing/test_components.py +0 -0
  47. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/testing/test_utils.py +0 -0
  48. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/training/__init__.py +0 -0
  49. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/training/train_utils.py +0 -0
  50. {kodexa-7.4.413228679383 → kodexa-7.4.413229965531}/kodexa/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.4.413228679383
3
+ Version: 7.4.413229965531
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -1337,6 +1337,11 @@ class TaskTagsEndpoint(EntitiesEndpoint):
1337
1337
  return PageTaskTagEndpoint
1338
1338
 
1339
1339
 
1340
+ class PageTaskTemplateEndpoint(PageTask, PageEndpoint):
1341
+ def get_type(self) -> Optional[str]:
1342
+ return "taskTemplate"
1343
+
1344
+
1340
1345
  class PageRetainedGuidanceEndpoint(PageRetainedGuidance, PageEndpoint):
1341
1346
  """Represents a page retained guidance endpoint.
1342
1347
 
@@ -2705,6 +2710,21 @@ class WorkspaceEndpoint(EntityEndpoint, Workspace):
2705
2710
  raise ValueError("Workspace has no channel")
2706
2711
 
2707
2712
 
2713
+ class TaskTemplateEndpoint(EntityEndpoint, Task):
2714
+ """Represents a task endpoint.
2715
+
2716
+ This class is used to interact with the task endpoint of the API.
2717
+ """
2718
+
2719
+ def get_type(self) -> str:
2720
+ """Get the type of the endpoint.
2721
+
2722
+ Returns:
2723
+ str: The type of the endpoint, in this case "projects".
2724
+ """
2725
+ return "taskTemplates"
2726
+
2727
+
2708
2728
  class TaskEndpoint(EntityEndpoint, Task):
2709
2729
  """Represents a task endpoint.
2710
2730
 
@@ -3065,6 +3085,37 @@ class AssistantsEndpoint(EntitiesEndpoint):
3065
3085
  return PageAssistantEndpoint
3066
3086
 
3067
3087
 
3088
+ class TaskTemplatesEndpoint(EntitiesEndpoint):
3089
+ """Represents a projects endpoint"""
3090
+
3091
+ def get_type(self) -> str:
3092
+ """
3093
+ Get the type of the endpoint.
3094
+
3095
+ Returns:
3096
+ str: The type of the endpoint.
3097
+ """
3098
+ return "taskTemplates"
3099
+
3100
+ def get_instance_class(self, object_dict=None):
3101
+ """
3102
+ Get the instance class of the endpoint.
3103
+
3104
+ Returns:
3105
+ ProjectEndpoint: The instance class of the endpoint.
3106
+ """
3107
+ return TaskTemplateEndpoint
3108
+
3109
+ def get_page_class(self, object_dict=None):
3110
+ """
3111
+ Get the page class of the endpoint.
3112
+
3113
+ Returns:
3114
+ PageProjectEndpoint: The page class of the endpoint.
3115
+ """
3116
+ return PageTaskTemplateEndpoint
3117
+
3118
+
3068
3119
  class TasksEndpoint(EntitiesEndpoint):
3069
3120
  """Represents a projects endpoint"""
3070
3121
 
@@ -4775,11 +4826,11 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4775
4826
  url = f"/api/documentFamilies/{self.id}/externalData"
4776
4827
  response = self.client.put(url, body=external_data)
4777
4828
  return response.json()
4778
-
4829
+
4779
4830
  def get_json(
4780
4831
  self,
4781
4832
  project_id: str,
4782
- friendly_names=False,
4833
+ friendly_names=False,
4783
4834
  ) -> str:
4784
4835
  """Get the JSON export for the document family
4785
4836
 
@@ -4794,7 +4845,7 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4794
4845
  raise Exception(
4795
4846
  f"Project ID is required"
4796
4847
  )
4797
-
4848
+
4798
4849
  url = f"/api/stores/{self.store_ref.replace(':', '/')}/families/{self.id}/dataObjects"
4799
4850
  params = {
4800
4851
  "format": "json",
@@ -4857,9 +4908,9 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4857
4908
  "Waiting for mixin and/or label to be available on document family %s",
4858
4909
  self.id,
4859
4910
  )
4860
- if polling_delay_in_seconds < 5:
4911
+ if polling_delay_in_seconds < 5:
4861
4912
  polling_delay_in_seconds = 5
4862
-
4913
+
4863
4914
  start = time.time()
4864
4915
  while time.time() - start < timeout:
4865
4916
  url = f"/api/stores/{self.store_ref.replace(':', '/')}/families/{self.id}"
@@ -5015,6 +5066,7 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
5015
5066
  params=params,
5016
5067
  files={"file": document.to_kddb()},
5017
5068
  )
5069
+
5018
5070
  def export_as_zip(self) -> bytes:
5019
5071
  """
5020
5072
  Export the document family as bytes.
@@ -5331,7 +5383,7 @@ class DataStoreEndpoint(StoreEndpoint):
5331
5383
 
5332
5384
  response = self.client.get(url, params=params)
5333
5385
  return response.text
5334
-
5386
+
5335
5387
  def get_taxonomies(self) -> List[Taxonomy]:
5336
5388
  """Get the taxonomies of the store
5337
5389
 
@@ -6545,6 +6597,20 @@ OBJECT_TYPES = {
6545
6597
  "global": True,
6546
6598
  "endpoint": MembershipsEndpoint,
6547
6599
  },
6600
+ "tasks": {
6601
+ "name": "task",
6602
+ "plural": "tasks",
6603
+ "type": TaskEndpoint,
6604
+ "global": True,
6605
+ "endpoint": TasksEndpoint,
6606
+ },
6607
+ "taskTemplates": {
6608
+ "name": "taskTemplate",
6609
+ "plural": "taskTemplates",
6610
+ "type": TaskTemplateEndpoint,
6611
+ "global": True,
6612
+ "endpoint": TaskTemplatesEndpoint,
6613
+ }
6548
6614
  }
6549
6615
 
6550
6616
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.4.413228679383"
3
+ version = "7.4.413229965531"
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"