kodexa 7.0.9962385482__tar.gz → 7.0.10052855711__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.
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/PKG-INFO +2 -1
- kodexa-7.0.10052855711/kodexa/model/entities/check_response.py +132 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/model/objects.py +19 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/platform/client.py +2 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/pyproject.toml +2 -1
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/LICENSE +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/README.md +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/model/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/model/base.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/model/entities/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/model/entities/product.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/model/entities/product_subscription.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/model/model.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/model/persistence.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/platform/kodexa.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/core.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/steps/common.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/training/__init__.py +0 -0
- {kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/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.
|
3
|
+
Version: 7.0.10052855711
|
4
4
|
Summary: Python SDK for the Kodexa Platform
|
5
5
|
Author: Austin Redenbaugh
|
6
6
|
Author-email: austin@kodexa.com
|
@@ -16,6 +16,7 @@ Classifier: Topic :: Software Development :: Libraries
|
|
16
16
|
Requires-Dist: addict (>=2.4.0,<3.0.0)
|
17
17
|
Requires-Dist: appdirs (>=1.4.4,<2.0.0)
|
18
18
|
Requires-Dist: better-exceptions (>=0.3.3,<0.4.0)
|
19
|
+
Requires-Dist: certifi (>=2024.7.4,<2025.0.0)
|
19
20
|
Requires-Dist: chevron (>=0.14.0,<0.15.0)
|
20
21
|
Requires-Dist: deepdiff (>=7.0.1,<8.0.0)
|
21
22
|
Requires-Dist: msgpack (>=1.0.6,<2.0.0)
|
@@ -0,0 +1,132 @@
|
|
1
|
+
from typing import Optional, List
|
2
|
+
|
3
|
+
from pydantic import BaseModel, ConfigDict, Field
|
4
|
+
from kodexa.model.base import StandardDateTime
|
5
|
+
from kodexa.model.objects import User
|
6
|
+
from kodexa.platform.client import EntityEndpoint, PageEndpoint, EntitiesEndpoint
|
7
|
+
|
8
|
+
from enum import Enum
|
9
|
+
|
10
|
+
|
11
|
+
class CheckStatus(Enum):
|
12
|
+
""" Check Status ENUM: OPEN, CLOSED, IN_PROGRESS """
|
13
|
+
open = "OPEN"
|
14
|
+
closed = "CLOSED"
|
15
|
+
in_progress = "IN_PROGRESS"
|
16
|
+
|
17
|
+
|
18
|
+
class CheckResponse(BaseModel):
|
19
|
+
"""
|
20
|
+
Entity of check response
|
21
|
+
"""
|
22
|
+
model_config = ConfigDict(
|
23
|
+
populate_by_name=True,
|
24
|
+
use_enum_values=True,
|
25
|
+
arbitrary_types_allowed=True,
|
26
|
+
protected_namespaces=("model_config",),
|
27
|
+
)
|
28
|
+
|
29
|
+
id: Optional[str] = Field(None)
|
30
|
+
uuid: Optional[str] = None
|
31
|
+
change_sequence: Optional[int] = Field(None, alias="changeSequence")
|
32
|
+
created_on: Optional[StandardDateTime] = Field(None, alias="createdOn")
|
33
|
+
updated_on: Optional[StandardDateTime] = Field(None, alias="updatedOn")
|
34
|
+
title: Optional[str] = None
|
35
|
+
description: Optional[str] = None
|
36
|
+
status: Optional[CheckStatus] = None
|
37
|
+
confidence: Optional[float] = None
|
38
|
+
approver: Optional[User] = None
|
39
|
+
|
40
|
+
|
41
|
+
class PageCheckResponse(BaseModel):
|
42
|
+
"""
|
43
|
+
A page pydantic for check response
|
44
|
+
"""
|
45
|
+
|
46
|
+
model_config = ConfigDict(
|
47
|
+
populate_by_name=True,
|
48
|
+
use_enum_values=True,
|
49
|
+
arbitrary_types_allowed=True,
|
50
|
+
protected_namespaces=("model_config",),
|
51
|
+
)
|
52
|
+
total_pages: Optional[int] = Field(None, alias="totalPages")
|
53
|
+
total_elements: Optional[int] = Field(None, alias="totalElements")
|
54
|
+
size: Optional[int] = None
|
55
|
+
content: Optional[List[CheckResponse]] = None
|
56
|
+
number: Optional[int] = None
|
57
|
+
number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
|
58
|
+
first: Optional[bool] = None
|
59
|
+
last: Optional[bool] = None
|
60
|
+
empty: Optional[bool] = None
|
61
|
+
|
62
|
+
|
63
|
+
class PageCheckResponseEndpoint(PageCheckResponse, PageEndpoint):
|
64
|
+
"""
|
65
|
+
Represents a page check response endpoint
|
66
|
+
|
67
|
+
This class is used to represent the endpoints of a page check response. It inherits from
|
68
|
+
the PageCheckResponse and PageEndpoint classes.
|
69
|
+
|
70
|
+
Methods:
|
71
|
+
get_type: Returns the type of the endpoint.
|
72
|
+
"""
|
73
|
+
|
74
|
+
def get_type(self) -> str:
|
75
|
+
"""Get the type of the endpoint
|
76
|
+
|
77
|
+
This method is used to get the type of the endpoint. In this case, it will always
|
78
|
+
return "workspace".
|
79
|
+
|
80
|
+
Returns:
|
81
|
+
str: The type of the endpoint, "workspace".
|
82
|
+
"""
|
83
|
+
return "checkResponse"
|
84
|
+
|
85
|
+
|
86
|
+
class CheckResponseEndpoint(CheckResponse, EntityEndpoint):
|
87
|
+
"""Represents a Check Response endpoint"""
|
88
|
+
|
89
|
+
def get_type(self) -> str:
|
90
|
+
"""
|
91
|
+
Get the type of endpoint
|
92
|
+
|
93
|
+
:return: The type of endpoint
|
94
|
+
"""
|
95
|
+
return "checkResponses"
|
96
|
+
|
97
|
+
|
98
|
+
class CheckResponsesEndpoint(EntitiesEndpoint):
|
99
|
+
""" Represents check responses endpoint """
|
100
|
+
|
101
|
+
def get_type(self) -> str:
|
102
|
+
"""
|
103
|
+
Get the type of endpoint
|
104
|
+
:return: The type of endpoint
|
105
|
+
"""
|
106
|
+
return "checkResponses"
|
107
|
+
|
108
|
+
def get_instance_class(self, object_dict=None) -> CheckResponseEndpoint:
|
109
|
+
"""Get the instance class of the endpoint
|
110
|
+
|
111
|
+
This method is used to get the instance class of the endpoint.
|
112
|
+
|
113
|
+
Args:
|
114
|
+
object_dict (dict, optional): A dictionary containing the object data.
|
115
|
+
|
116
|
+
Returns:
|
117
|
+
CheckResponseEndpoint: The instance class of the endpoint.
|
118
|
+
"""
|
119
|
+
return CheckResponseEndpoint
|
120
|
+
|
121
|
+
def get_page_class(self, object_dict=None) -> PageCheckResponseEndpoint:
|
122
|
+
"""Get the page class of the endpoint
|
123
|
+
|
124
|
+
This method is used to get the page class of the endpoint.
|
125
|
+
|
126
|
+
Args:
|
127
|
+
object_dict (dict, optional): A dictionary containing the object data.
|
128
|
+
|
129
|
+
Returns:
|
130
|
+
PageCheckResponseEndpoint: The page class of the endpoint.
|
131
|
+
"""
|
132
|
+
return PageCheckResponseEndpoint
|
@@ -766,6 +766,23 @@ class RelatedTaxon(BaseModel):
|
|
766
766
|
priority: Optional[int] = None
|
767
767
|
|
768
768
|
|
769
|
+
class ChecklistDefinition(BaseModel):
|
770
|
+
"""
|
771
|
+
Checklist Definiton
|
772
|
+
"""
|
773
|
+
model_config = ConfigDict(
|
774
|
+
populate_by_name=True,
|
775
|
+
use_enum_values=True,
|
776
|
+
arbitrary_types_allowed=True,
|
777
|
+
protected_namespaces=("model_config",),
|
778
|
+
)
|
779
|
+
|
780
|
+
title: Optional[str] = None
|
781
|
+
description: Optional[str] = None
|
782
|
+
definition: Optional[str] = None
|
783
|
+
type: Optional[str] = None
|
784
|
+
|
785
|
+
|
769
786
|
class ScheduleDefinition(BaseModel):
|
770
787
|
"""
|
771
788
|
|
@@ -2666,6 +2683,8 @@ class Taxon(BaseModel):
|
|
2666
2683
|
|
2667
2684
|
conditional_formats: Optional[List[TaxonConditionalFormat]] = Field(None, alias="conditionalFormats")
|
2668
2685
|
|
2686
|
+
checklist_definitions: Optional[List[ChecklistDefinition]] = Field(None, alias="checklistDefinitions")
|
2687
|
+
|
2669
2688
|
def update_path(self, parent_path=None):
|
2670
2689
|
if parent_path is None:
|
2671
2690
|
parent_path = ""
|
@@ -6924,6 +6924,7 @@ class KodexaClient:
|
|
6924
6924
|
|
6925
6925
|
from kodexa.model.entities.product import ProductEndpoint
|
6926
6926
|
from kodexa.model.entities.product_subscription import ProductSubscriptionEndpoint
|
6927
|
+
from kodexa.model.entities.check_response import CheckResponseEndpoint
|
6927
6928
|
known_components = {
|
6928
6929
|
"taxonomy": TaxonomyEndpoint,
|
6929
6930
|
"pipeline": PipelineEndpoint,
|
@@ -6949,6 +6950,7 @@ class KodexaClient:
|
|
6949
6950
|
"channel": ChannelEndpoint,
|
6950
6951
|
"product": ProductEndpoint,
|
6951
6952
|
"productSubscription": ProductSubscriptionEndpoint,
|
6953
|
+
"checkResponse": CheckResponseEndpoint
|
6952
6954
|
}
|
6953
6955
|
|
6954
6956
|
if component_type in known_components:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "7.0.
|
3
|
+
version = "7.0.010052855711"
|
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"
|
@@ -35,6 +35,7 @@ semver = "^3.0.1"
|
|
35
35
|
chevron = "^0.14.0"
|
36
36
|
addict = "^2.4.0"
|
37
37
|
simpleeval = "^0.9.13"
|
38
|
+
certifi = "^2024.7.4"
|
38
39
|
|
39
40
|
[tool.poetry.group.dev.dependencies]
|
40
41
|
mkdocs-material = "^9.0.3"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{kodexa-7.0.9962385482 → kodexa-7.0.10052855711}/kodexa/model/entities/product_subscription.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|