kodexa 7.0.11121143338__tar.gz → 7.0.11124021784__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 (48) hide show
  1. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/PKG-INFO +1 -1
  2. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/model/objects.py +24 -0
  3. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/platform/client.py +54 -4
  4. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/pyproject.toml +1 -1
  5. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/LICENSE +0 -0
  6. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/README.md +0 -0
  7. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/__init__.py +0 -0
  8. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/assistant/__init__.py +0 -0
  9. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/assistant/assistant.py +0 -0
  10. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/connectors/__init__.py +0 -0
  11. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/connectors/connectors.py +0 -0
  12. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/dataclasses/__init__.py +0 -0
  13. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
  14. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/model/__init__.py +0 -0
  15. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/model/base.py +0 -0
  16. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/model/entities/__init__.py +0 -0
  17. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/model/entities/check_response.py +0 -0
  18. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/model/entities/product.py +0 -0
  19. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/model/entities/product_subscription.py +0 -0
  20. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/model/model.py +0 -0
  21. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/model/persistence.py +0 -0
  22. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/pipeline/__init__.py +0 -0
  23. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/pipeline/pipeline.py +0 -0
  24. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/platform/__init__.py +0 -0
  25. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/platform/interaction.py +0 -0
  26. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/platform/kodexa.py +0 -0
  27. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/__init__.py +0 -0
  28. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/ast.py +0 -0
  29. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/core.py +0 -0
  30. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/lexrules.py +0 -0
  31. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/lextab.py +0 -0
  32. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/lextab.pyi +0 -0
  33. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/parserules.py +0 -0
  34. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/parserules.pyi +0 -0
  35. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/parsetab.py +0 -0
  36. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/selectors/parsetab.pyi +0 -0
  37. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/spatial/__init__.py +0 -0
  38. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/spatial/azure_models.py +0 -0
  39. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/spatial/bbox_common.py +0 -0
  40. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/spatial/table_form_common.py +0 -0
  41. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/steps/__init__.py +0 -0
  42. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/steps/common.py +0 -0
  43. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/testing/__init__.py +0 -0
  44. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/testing/test_components.py +0 -0
  45. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/testing/test_utils.py +0 -0
  46. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/training/__init__.py +0 -0
  47. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/training/train_utils.py +0 -0
  48. {kodexa-7.0.11121143338 → kodexa-7.0.11124021784}/kodexa/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.11121143338
3
+ Version: 7.0.11124021784
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -2564,6 +2564,8 @@ class TaxonAdditionContext(BaseModel):
2564
2564
 
2565
2565
  class TaxonGuideProperties(BaseModel):
2566
2566
  guidance_key: Optional[bool] = Field(None, alias="guidanceKey")
2567
+ guidance_key_expression: Optional[str] = Field(None, alias="guidanceKeyExpression")
2568
+ use_guidance_for_classification: Optional[bool] = Field(None, alias="useGuidanceForClassification")
2567
2569
 
2568
2570
 
2569
2571
  class TaxonConditionalFormat(BaseModel):
@@ -3488,6 +3490,28 @@ class PageMessage(BaseModel):
3488
3490
  empty: Optional[bool] = None
3489
3491
 
3490
3492
 
3493
+ class PageTask(BaseModel):
3494
+ """
3495
+
3496
+ """
3497
+ model_config = ConfigDict(
3498
+ populate_by_name=True,
3499
+ use_enum_values=True,
3500
+ arbitrary_types_allowed=True,
3501
+ protected_namespaces=("model_config",),
3502
+ )
3503
+ total_pages: Optional[int] = Field(None, alias="totalPages")
3504
+ total_elements: Optional[int] = Field(None, alias="totalElements")
3505
+ size: Optional[int] = None
3506
+ content: Optional[List[Task]] = None
3507
+ number: Optional[int] = None
3508
+
3509
+ number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
3510
+ first: Optional[bool] = None
3511
+ last: Optional[bool] = None
3512
+ empty: Optional[bool] = None
3513
+
3514
+
3491
3515
  class PageChannel(BaseModel):
3492
3516
  """
3493
3517
 
@@ -86,7 +86,7 @@ from kodexa.model.objects import (
86
86
  PageExtensionPack,
87
87
  PageOrganization,
88
88
  DocumentFamilyStatistics, MessageContext, PagePrompt, Prompt, GuidanceSet, PageGuidanceSet, DocumentEmbedding,
89
- DocumentExternalData,
89
+ DocumentExternalData, Task, PageTask,
90
90
  )
91
91
 
92
92
  logger = logging.getLogger()
@@ -1173,6 +1173,11 @@ class PagePipelineEndpoint(PagePipeline, PageEndpoint):
1173
1173
  return "pipeline"
1174
1174
 
1175
1175
 
1176
+ class PageTaskEndpoint(PageTask, PageEndpoint):
1177
+ def get_type(self) -> Optional[str]:
1178
+ return "task"
1179
+
1180
+
1176
1181
  class PageProjectEndpoint(PageProject, PageEndpoint):
1177
1182
  """Represents a page project endpoint.
1178
1183
 
@@ -2516,15 +2521,25 @@ class WorkspaceEndpoint(EntityEndpoint, Workspace):
2516
2521
  else:
2517
2522
  raise ValueError("Workspace has no channel")
2518
2523
 
2524
+ class TaskEndpoint(EntityEndpoint, Task):
2525
+ """Represents a task endpoint.
2526
+
2527
+ This class is used to interact with the task endpoint of the API.
2528
+ """
2529
+ def get_type(self) -> str:
2530
+ """Get the type of the endpoint.
2531
+
2532
+ Returns:
2533
+ str: The type of the endpoint, in this case "projects".
2534
+ """
2535
+ return "tasks"
2536
+
2519
2537
 
2520
2538
  class ProjectEndpoint(EntityEndpoint, Project):
2521
2539
  """Represents a project endpoint.
2522
2540
 
2523
2541
  This class is used to interact with the project endpoint of the API.
2524
2542
  """
2525
-
2526
- """Represents a project endpoint"""
2527
-
2528
2543
  def get_type(self) -> str:
2529
2544
  """Get the type of the endpoint.
2530
2545
 
@@ -2849,6 +2864,39 @@ class AssistantsEndpoint(EntitiesEndpoint):
2849
2864
  return PageAssistantEndpoint
2850
2865
 
2851
2866
 
2867
+ class TasksEndpoint(EntitiesEndpoint):
2868
+ """Represents a projects endpoint"""
2869
+
2870
+ """Represents a projects endpoint"""
2871
+
2872
+ def get_type(self) -> str:
2873
+ """
2874
+ Get the type of the endpoint.
2875
+
2876
+ Returns:
2877
+ str: The type of the endpoint.
2878
+ """
2879
+ return "tasks"
2880
+
2881
+ def get_instance_class(self, object_dict=None):
2882
+ """
2883
+ Get the instance class of the endpoint.
2884
+
2885
+ Returns:
2886
+ ProjectEndpoint: The instance class of the endpoint.
2887
+ """
2888
+ return TaskEndpoint
2889
+
2890
+ def get_page_class(self, object_dict=None):
2891
+ """
2892
+ Get the page class of the endpoint.
2893
+
2894
+ Returns:
2895
+ PageProjectEndpoint: The page class of the endpoint.
2896
+ """
2897
+ return PageTaskEndpoint
2898
+
2899
+
2852
2900
  class ProjectsEndpoint(EntitiesEndpoint):
2853
2901
  """Represents a projects endpoint"""
2854
2902
 
@@ -6374,6 +6422,7 @@ class KodexaClient:
6374
6422
  self.messages = MessagesEndpoint(self)
6375
6423
  from kodexa.model.entities.product import ProductsEndpoint
6376
6424
  self.products = ProductsEndpoint(self)
6425
+ self.tasks = TasksEndpoint(self)
6377
6426
 
6378
6427
  @staticmethod
6379
6428
  def login(url, token):
@@ -6969,6 +7018,7 @@ class KodexaClient:
6969
7018
  "guidance": GuidanceSetEndpoint,
6970
7019
  "channel": ChannelEndpoint,
6971
7020
  "product": ProductEndpoint,
7021
+ "task": TaskEndpoint,
6972
7022
  "productSubscription": ProductSubscriptionEndpoint,
6973
7023
  "checkResponse": CheckResponseEndpoint
6974
7024
  }
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.0.011121143338"
3
+ version = "7.0.011124021784"
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"