kodexa 7.0.9017589911__tar.gz → 7.0.9018094045__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 (44) hide show
  1. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/PKG-INFO +1 -1
  2. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/platform/client.py +44 -8
  3. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/pyproject.toml +1 -1
  4. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/LICENSE +0 -0
  5. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/README.md +0 -0
  6. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/__init__.py +0 -0
  7. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/assistant/__init__.py +0 -0
  8. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/assistant/assistant.py +0 -0
  9. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/connectors/__init__.py +0 -0
  10. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/connectors/connectors.py +0 -0
  11. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/model/__init__.py +0 -0
  12. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/model/base.py +0 -0
  13. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/model/entities/__init__.py +0 -0
  14. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/model/entities/product.py +0 -0
  15. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/model/entities/product_subscription.py +0 -0
  16. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/model/model.py +0 -0
  17. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/model/objects.py +0 -0
  18. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/model/persistence.py +0 -0
  19. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/pipeline/__init__.py +0 -0
  20. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/pipeline/pipeline.py +0 -0
  21. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/platform/__init__.py +0 -0
  22. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/platform/interaction.py +0 -0
  23. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/platform/kodexa.py +0 -0
  24. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/__init__.py +0 -0
  25. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/ast.py +0 -0
  26. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/core.py +0 -0
  27. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/lexrules.py +0 -0
  28. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/lextab.py +0 -0
  29. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/lextab.pyi +0 -0
  30. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/parserules.py +0 -0
  31. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/parserules.pyi +0 -0
  32. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/parsetab.py +0 -0
  33. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/selectors/parsetab.pyi +0 -0
  34. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/spatial/__init__.py +0 -0
  35. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/spatial/azure_models.py +0 -0
  36. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/spatial/bbox_common.py +0 -0
  37. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/spatial/table_form_common.py +0 -0
  38. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/steps/__init__.py +0 -0
  39. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/steps/common.py +0 -0
  40. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/testing/__init__.py +0 -0
  41. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/testing/test_components.py +0 -0
  42. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/testing/test_utils.py +0 -0
  43. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/kodexa/training/__init__.py +0 -0
  44. {kodexa-7.0.9017589911 → kodexa-7.0.9018094045}/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.9017589911
3
+ Version: 7.0.9018094045
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -2461,7 +2461,7 @@ class ProjectEndpoint(EntityEndpoint, Project):
2461
2461
  data_forms: List["DataFormEndpoint"] = None,
2462
2462
  guidance: List["GuidanceSetEndpoint"] = None,
2463
2463
  dashboards: List["DashboardEndpoint"] = None,
2464
- ) -> "ProjectEndpoint":
2464
+ ):
2465
2465
  """Update the resources of the project.
2466
2466
 
2467
2467
  Args:
@@ -2470,9 +2470,6 @@ class ProjectEndpoint(EntityEndpoint, Project):
2470
2470
  data_forms (List["DataFormEndpoint"], optional): List of data form endpoints to update.
2471
2471
  guidance (List["GuidanceSetEndpoint"], optional): List of guidance set endpoints to update.
2472
2472
  dashboards (List["DashboardEndpoint"], optional): List of dashboard endpoints to update.
2473
-
2474
- Returns:
2475
- ProjectEndpoint: The updated project endpoint.
2476
2473
  """
2477
2474
  project_resources_update = ProjectResourcesUpdate()
2478
2475
  project_resources_update.store_refs = []
@@ -2501,7 +2498,7 @@ class ProjectEndpoint(EntityEndpoint, Project):
2501
2498
  dashboard.ref for dashboard in dashboards
2502
2499
  ]
2503
2500
 
2504
- response = self.client.put(
2501
+ self.client.put(
2505
2502
  f"/api/projects/{self.id}/resources",
2506
2503
  body=json.loads(project_resources_update.json(by_alias=True)),
2507
2504
  )
@@ -2585,6 +2582,43 @@ class ProjectEndpoint(EntityEndpoint, Project):
2585
2582
  return [ProjectTag.model_validate(tag) for tag in response.json()]
2586
2583
 
2587
2584
 
2585
+ class GuidanceSetsEndpoint(EntitiesEndpoint):
2586
+ """Represents a message endpoint"""
2587
+
2588
+ def get_type(self) -> str:
2589
+ """
2590
+ Get the type of the endpoint.
2591
+
2592
+ Returns:
2593
+ str: The type of the endpoint, in this case "guidance".
2594
+ """
2595
+ return "guidance"
2596
+
2597
+ def get_instance_class(self, object_dict=None):
2598
+ """
2599
+ Get the instance class of the endpoint.
2600
+
2601
+ Args:
2602
+ object_dict (dict, optional): An optional dictionary object. Defaults to None.
2603
+
2604
+ Returns:
2605
+ GuidanceSetEndpoint: The instance class of the endpoint.
2606
+ """
2607
+ return GuidanceSetEndpoint
2608
+
2609
+ def get_page_class(self, object_dict=None):
2610
+ """
2611
+ Get the page class of the endpoint.
2612
+
2613
+ Args:
2614
+ object_dict (dict, optional): An optional dictionary object. Defaults to None.
2615
+
2616
+ Returns:
2617
+ PageGuidanceSetEndpoint: The page class of the endpoint.
2618
+ """
2619
+ return PageGuidanceSetEndpoint
2620
+
2621
+
2588
2622
  class MessagesEndpoint(EntitiesEndpoint):
2589
2623
  """Represents a message endpoint"""
2590
2624
 
@@ -2787,12 +2821,13 @@ class ProjectsEndpoint(EntitiesEndpoint):
2787
2821
  """
2788
2822
  return PageProjectEndpoint
2789
2823
 
2790
- def find_by_name(self, project_name: str) -> Optional[ProjectEndpoint]:
2824
+ def find_by_name(self, project_name: str, organization: Optional[Organization] = None) -> Optional[ProjectEndpoint]:
2791
2825
  """
2792
2826
  Find a project by name.
2793
2827
 
2794
2828
  Args:
2795
2829
  project_name (str): The name of the project to find.
2830
+ organization (Organization, optional): The organization to search in. Defaults to None.
2796
2831
 
2797
2832
  Returns:
2798
2833
  Optional[ProjectEndpoint]: The project endpoint if found, None otherwise.
@@ -2800,8 +2835,8 @@ class ProjectsEndpoint(EntitiesEndpoint):
2800
2835
 
2801
2836
  url = f"/api/{self.get_type()}"
2802
2837
  filters = {"filter": [f"name: '{project_name}'"]}
2803
- if self.organization is not None:
2804
- filters["filter"].append(f"organization.id: '{self.organization.id}'")
2838
+ if organization is not None:
2839
+ filters["filter"].append(f"organization.id: '{organization.id}'")
2805
2840
  get_response = self.client.get(url, params=filters)
2806
2841
  if len(get_response.json()["content"]) > 0:
2807
2842
  return ProjectEndpoint.model_validate(
@@ -6228,6 +6263,7 @@ class KodexaClient:
6228
6263
  self.messages = MessagesEndpoint(self)
6229
6264
  from kodexa.model.entities.product import ProductsEndpoint
6230
6265
  self.products = ProductsEndpoint(self)
6266
+ self.guidance_sets = GuidanceSetsEndpoint(self)
6231
6267
 
6232
6268
  @staticmethod
6233
6269
  def login(url, token):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.0.09017589911"
3
+ version = "7.0.09018094045"
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