wizata-dsapi 1.4.0.dev36__tar.gz → 1.4.0.dev37__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.
- {wizata_dsapi-1.4.0.dev36/wizata_dsapi.egg-info → wizata_dsapi-1.4.0.dev37}/PKG-INFO +1 -1
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/paged_query_result.py +2 -7
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/search.py +2 -30
- wizata_dsapi-1.4.0.dev37/wizata_dsapi/version.py +1 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37/wizata_dsapi.egg-info}/PKG-INFO +1 -1
- wizata_dsapi-1.4.0.dev36/wizata_dsapi/version.py +0 -1
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/LICENSE.txt +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/README.rst +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/setup.cfg +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/setup.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/__init__.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/api_config.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/api_dto.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/api_interface.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/bucket.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/business_label.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/context.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/dataframe_toolkit.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/datapoint.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/datastore.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/ds_dataframe.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/dsapi_json_encoder.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/evaluation.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/execution.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/execution_log.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/experiment.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/group_system.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/ilogger.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/insight.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/mlmodel.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/model_toolkit.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/models/__init__.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/models/common.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/pipeline.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/pipeline_image.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/plot.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/plots/__init__.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/plots/common.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/request.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/script.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/scripts/__init__.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/scripts/common.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/solution_component.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/streamlit_utils.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/template.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/trigger.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/twin.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/twinregistration.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/wizard_function.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/wizard_request.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/wizata_dsapi_client.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/words.py +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi.egg-info/requires.txt +0 -0
- {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi.egg-info/top_level.txt +0 -0
|
@@ -7,7 +7,6 @@ class PagedQueryResult:
|
|
|
7
7
|
:ivar int size: number of records per page.
|
|
8
8
|
:ivar str sort: column name used in sorting.
|
|
9
9
|
:ivar int total: total number of results on all pages.
|
|
10
|
-
:ivar dict groups: statistics used for the execution logs charts.
|
|
11
10
|
"""
|
|
12
11
|
|
|
13
12
|
def __init__(self,
|
|
@@ -15,8 +14,7 @@ class PagedQueryResult:
|
|
|
15
14
|
page: int = None,
|
|
16
15
|
size: int = None,
|
|
17
16
|
sort: str = None,
|
|
18
|
-
direction: str = None
|
|
19
|
-
groups: dict = None):
|
|
17
|
+
direction: str = None):
|
|
20
18
|
self.total = total
|
|
21
19
|
self.page = page
|
|
22
20
|
if page < 0:
|
|
@@ -31,7 +29,6 @@ class PagedQueryResult:
|
|
|
31
29
|
if direction != 'asc' and direction != 'desc':
|
|
32
30
|
raise ValueError("direction must be asc or desc")
|
|
33
31
|
self.results = None
|
|
34
|
-
self.groups = groups if groups else {}
|
|
35
32
|
|
|
36
33
|
@classmethod
|
|
37
34
|
def from_dict(cls, data: dict, dto_class=None) -> "PagedQueryResult":
|
|
@@ -47,7 +44,6 @@ class PagedQueryResult:
|
|
|
47
44
|
size=data.get("size", 50),
|
|
48
45
|
sort=data.get("sort", "id"),
|
|
49
46
|
direction=data.get("direction", "desc"),
|
|
50
|
-
groups=data.get("groups"),
|
|
51
47
|
)
|
|
52
48
|
result.results = []
|
|
53
49
|
for obj in data.get("results", []):
|
|
@@ -82,6 +78,5 @@ class PagedQueryResult:
|
|
|
82
78
|
"sort": self.sort,
|
|
83
79
|
"direction": sort_dir,
|
|
84
80
|
"total": self.total,
|
|
85
|
-
"results": formatted_results
|
|
86
|
-
"groups": self.groups
|
|
81
|
+
"results": formatted_results
|
|
87
82
|
}
|
|
@@ -62,9 +62,7 @@ class SearchQuery:
|
|
|
62
62
|
limit=data.get("limit", 1000),
|
|
63
63
|
page=data.get("page", 1),
|
|
64
64
|
size=data.get("size", 50),
|
|
65
|
-
service_name=svc_name
|
|
66
|
-
groups=data.get("groups"),
|
|
67
|
-
group_summaries=data.get("groupSummaries")
|
|
65
|
+
service_name=svc_name
|
|
68
66
|
)
|
|
69
67
|
|
|
70
68
|
|
|
@@ -74,9 +72,7 @@ class SearchQuery:
|
|
|
74
72
|
limit: int = 1000,
|
|
75
73
|
page: int = 1,
|
|
76
74
|
size: int = 50,
|
|
77
|
-
service_name: str = "pipeline_runner"
|
|
78
|
-
groups: Optional[List[Union[GroupOption, dict]]] = None,
|
|
79
|
-
group_summaries: Optional[List[Union[GroupSummary, dict]]] = None):
|
|
75
|
+
service_name: str = "pipeline_runner"):
|
|
80
76
|
|
|
81
77
|
self.filters = filters if filters is not None else {}
|
|
82
78
|
self.limit = limit
|
|
@@ -93,26 +89,6 @@ class SearchQuery:
|
|
|
93
89
|
self.sort.append(SortOption(field=s.get("field"), order=s.get("order", "asc")))
|
|
94
90
|
|
|
95
91
|
|
|
96
|
-
# New grouping feature
|
|
97
|
-
self.groups: List[GroupOption] = []
|
|
98
|
-
if groups:
|
|
99
|
-
for g in groups:
|
|
100
|
-
if isinstance(g, GroupOption):
|
|
101
|
-
self.groups.append(g)
|
|
102
|
-
elif isinstance(g, dict) and g.get("propertyName"):
|
|
103
|
-
self.groups.append(GroupOption(property_name=g.get("propertyName")))
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
# GroupSummaries
|
|
107
|
-
self.group_summaries: List[GroupSummary] = []
|
|
108
|
-
if group_summaries:
|
|
109
|
-
for gs in group_summaries:
|
|
110
|
-
if isinstance(gs, GroupSummary):
|
|
111
|
-
self.group_summaries.append(gs)
|
|
112
|
-
elif isinstance(gs, dict) and gs.get("propertyName"):
|
|
113
|
-
sum_type = gs.get("type", "Count")
|
|
114
|
-
self.group_summaries.append(GroupSummary(type=sum_type, property_name=gs.get("propertyName")))
|
|
115
|
-
|
|
116
92
|
def to_dict(self) -> dict:
|
|
117
93
|
"""
|
|
118
94
|
Convert SearchQuery to a dictionary matching the API expected JSON format.
|
|
@@ -126,10 +102,6 @@ class SearchQuery:
|
|
|
126
102
|
}
|
|
127
103
|
if self.sort:
|
|
128
104
|
data["sort"] = [{"field": s.field, "order": s.order} for s in self.sort]
|
|
129
|
-
if self.groups:
|
|
130
|
-
data["groups"] = [{"propertyName": g.property_name} for g in self.groups]
|
|
131
|
-
if self.group_summaries:
|
|
132
|
-
data["groupSummaries"] = [{"type": gs.type, "propertyName": gs.property_name} for gs in self.group_summaries]
|
|
133
105
|
return data
|
|
134
106
|
|
|
135
107
|
class GroupSearchQuery:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.4.0.dev37"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.4.0.dev36"
|
|
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
|
|
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
|
{wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|