kodexa 7.4.412448324201__tar.gz → 7.4.412519097586__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 (50) hide show
  1. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/PKG-INFO +1 -1
  2. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/entities/product.py +2 -1
  3. kodexa-7.4.412519097586/kodexa/model/entities/product_group.py +126 -0
  4. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/pyproject.toml +1 -1
  5. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/LICENSE +0 -0
  6. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/README.md +0 -0
  7. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/__init__.py +0 -0
  8. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/assistant/__init__.py +0 -0
  9. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/assistant/assistant.py +0 -0
  10. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/connectors/__init__.py +0 -0
  11. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/connectors/connectors.py +0 -0
  12. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/dataclasses/__init__.py +0 -0
  13. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
  14. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/__init__.py +0 -0
  15. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/base.py +0 -0
  16. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/entities/__init__.py +0 -0
  17. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/entities/check_response.py +0 -0
  18. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/entities/product_subscription.py +0 -0
  19. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/model.py +0 -0
  20. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/objects.py +0 -0
  21. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/persistence.py +0 -0
  22. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/model/utils.py +0 -0
  23. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/pipeline/__init__.py +0 -0
  24. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/pipeline/pipeline.py +0 -0
  25. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/platform/__init__.py +0 -0
  26. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/platform/client.py +0 -0
  27. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/platform/interaction.py +0 -0
  28. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/platform/kodexa.py +0 -0
  29. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/__init__.py +0 -0
  30. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/ast.py +0 -0
  31. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/core.py +0 -0
  32. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/lexrules.py +0 -0
  33. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/lextab.py +0 -0
  34. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/lextab.pyi +0 -0
  35. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/parserules.py +0 -0
  36. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/parserules.pyi +0 -0
  37. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/parsetab.py +0 -0
  38. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/selectors/parsetab.pyi +0 -0
  39. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/spatial/__init__.py +0 -0
  40. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/spatial/azure_models.py +0 -0
  41. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/spatial/bbox_common.py +0 -0
  42. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/spatial/table_form_common.py +0 -0
  43. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/steps/__init__.py +0 -0
  44. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/steps/common.py +0 -0
  45. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/testing/__init__.py +0 -0
  46. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/testing/test_components.py +0 -0
  47. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/testing/test_utils.py +0 -0
  48. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/training/__init__.py +0 -0
  49. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/training/train_utils.py +0 -0
  50. {kodexa-7.4.412448324201 → kodexa-7.4.412519097586}/kodexa/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.4.412448324201
3
+ Version: 7.4.412519097586
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -3,7 +3,7 @@ from typing import Optional, List
3
3
  from pydantic import BaseModel, ConfigDict, Field
4
4
  from kodexa.model.base import StandardDateTime
5
5
  from kodexa.platform.client import EntityEndpoint, PageEndpoint, EntitiesEndpoint
6
-
6
+ from .product_group import ProductGroup
7
7
 
8
8
  class Product(BaseModel):
9
9
  """
@@ -28,6 +28,7 @@ class Product(BaseModel):
28
28
  name: str
29
29
  description: Optional[str] = None
30
30
  overview_markdown: Optional[str] = Field(None, alias="overviewMarkdown")
31
+ product_group: ProductGroup = Field(..., alias="productGroup")
31
32
 
32
33
 
33
34
  class ProductEndpoint(Product, EntityEndpoint):
@@ -0,0 +1,126 @@
1
+ from typing import Optional, List
2
+
3
+ from pydantic import BaseModel, ConfigDict, Field
4
+ from kodexa.model.base import StandardDateTime
5
+ from kodexa.platform.client import EntityEndpoint, PageEndpoint, EntitiesEndpoint
6
+
7
+
8
+ class ProductGroup(BaseModel):
9
+ """
10
+
11
+ """
12
+ model_config = ConfigDict(
13
+ populate_by_name=True,
14
+ use_enum_values=True,
15
+ arbitrary_types_allowed=True,
16
+ protected_namespaces=("model_config",),
17
+ )
18
+ """
19
+ A product group
20
+ """
21
+
22
+
23
+ id: Optional[str] = None
24
+ uuid: Optional[str] = None
25
+ change_sequence: Optional[int] = Field(None, alias="changeSequence")
26
+ created_on: Optional[StandardDateTime] = Field(None, alias="createdOn")
27
+ updated_on: Optional[StandardDateTime] = Field(None, alias="updatedOn")
28
+ name: str
29
+ description: Optional[str] = None
30
+ overview_markdown: Optional[str] = Field(None, alias="overviewMarkdown")
31
+
32
+
33
+ class ProductGroupEndpoint(ProductGroup, EntityEndpoint):
34
+ """Handles the endpoint for a product group
35
+
36
+ This class is a combination of DataException and EntityEndpoint. It is used
37
+ to manage the endpoint for data exceptions.
38
+
39
+ Methods:
40
+ get_type: Returns the type of the endpoint.
41
+ """
42
+
43
+ def get_type(self) -> str:
44
+ """Gets the type of the endpoint.
45
+
46
+ This method returns the type of the endpoint which is "exceptions".
47
+
48
+ Returns:
49
+ str: The type of the endpoint.
50
+ """
51
+ return "product-groups"
52
+
53
+
54
+ class PageProductGroup(BaseModel):
55
+ """
56
+
57
+ """
58
+ model_config = ConfigDict(
59
+ populate_by_name=True,
60
+ use_enum_values=True,
61
+ arbitrary_types_allowed=True,
62
+ protected_namespaces=("model_config",),
63
+ )
64
+ total_pages: Optional[int] = Field(None, alias="totalPages")
65
+ total_elements: Optional[int] = Field(None, alias="totalElements")
66
+ size: Optional[int] = None
67
+ content: Optional[List[ProductGroup]] = None
68
+ number: Optional[int] = None
69
+
70
+ number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
71
+ first: Optional[bool] = None
72
+ last: Optional[bool] = None
73
+ empty: Optional[bool] = None
74
+
75
+
76
+ class PageProductGroupEndpoint(PageProductGroup, PageEndpoint):
77
+ def get_type(self) -> Optional[str]:
78
+ return "product-group"
79
+
80
+
81
+ class ProductGroupsEndpoint(EntitiesEndpoint):
82
+ """Represents the product groups endpoint
83
+
84
+ This class is used to represent the product groups endpoint in the system.
85
+
86
+ Attributes:
87
+ object_dict: A dictionary containing the object data.
88
+ """
89
+
90
+ """Represents a assistants endpoint"""
91
+
92
+ def get_type(self) -> str:
93
+ """Get the type of the endpoint
94
+
95
+ This method is used to get the type of the endpoint.
96
+
97
+ Returns:
98
+ str: The type of the endpoint.
99
+ """
100
+ return "product-groups"
101
+
102
+ def get_instance_class(self, object_dict=None):
103
+ """Get the instance class of the endpoint
104
+
105
+ This method is used to get the instance class of the endpoint.
106
+
107
+ Args:
108
+ object_dict (dict, optional): A dictionary containing the object data.
109
+
110
+ Returns:
111
+ AssistantEndpoint: The instance class of the endpoint.
112
+ """
113
+ return ProductGroupEndpoint
114
+
115
+ def get_page_class(self, object_dict=None):
116
+ """Get the page class of the endpoint
117
+
118
+ This method is used to get the page class of the endpoint.
119
+
120
+ Args:
121
+ object_dict (dict, optional): A dictionary containing the object data.
122
+
123
+ Returns:
124
+ PageAssistantEndpoint: The page class of the endpoint.
125
+ """
126
+ return PageProductGroupEndpoint
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.4.412448324201"
3
+ version = "7.4.412519097586"
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"