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.
Files changed (56) hide show
  1. {wizata_dsapi-1.4.0.dev36/wizata_dsapi.egg-info → wizata_dsapi-1.4.0.dev37}/PKG-INFO +1 -1
  2. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/paged_query_result.py +2 -7
  3. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/search.py +2 -30
  4. wizata_dsapi-1.4.0.dev37/wizata_dsapi/version.py +1 -0
  5. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37/wizata_dsapi.egg-info}/PKG-INFO +1 -1
  6. wizata_dsapi-1.4.0.dev36/wizata_dsapi/version.py +0 -1
  7. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/LICENSE.txt +0 -0
  8. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/README.rst +0 -0
  9. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/setup.cfg +0 -0
  10. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/setup.py +0 -0
  11. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/__init__.py +0 -0
  12. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/api_config.py +0 -0
  13. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/api_dto.py +0 -0
  14. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/api_interface.py +0 -0
  15. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/bucket.py +0 -0
  16. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/business_label.py +0 -0
  17. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/context.py +0 -0
  18. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/dataframe_toolkit.py +0 -0
  19. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/datapoint.py +0 -0
  20. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/datastore.py +0 -0
  21. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/ds_dataframe.py +0 -0
  22. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  23. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/evaluation.py +0 -0
  24. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/execution.py +0 -0
  25. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/execution_log.py +0 -0
  26. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/experiment.py +0 -0
  27. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/group_system.py +0 -0
  28. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/ilogger.py +0 -0
  29. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/insight.py +0 -0
  30. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/mlmodel.py +0 -0
  31. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/model_toolkit.py +0 -0
  32. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/models/__init__.py +0 -0
  33. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/models/common.py +0 -0
  34. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/pipeline.py +0 -0
  35. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/pipeline_image.py +0 -0
  36. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/plot.py +0 -0
  37. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/plots/__init__.py +0 -0
  38. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/plots/common.py +0 -0
  39. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/request.py +0 -0
  40. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/script.py +0 -0
  41. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/scripts/__init__.py +0 -0
  42. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/scripts/common.py +0 -0
  43. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/solution_component.py +0 -0
  44. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/streamlit_utils.py +0 -0
  45. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/template.py +0 -0
  46. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/trigger.py +0 -0
  47. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/twin.py +0 -0
  48. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/twinregistration.py +0 -0
  49. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/wizard_function.py +0 -0
  50. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/wizard_request.py +0 -0
  51. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/wizata_dsapi_client.py +0 -0
  52. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi/words.py +0 -0
  53. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  54. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  55. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi.egg-info/requires.txt +0 -0
  56. {wizata_dsapi-1.4.0.dev36 → wizata_dsapi-1.4.0.dev37}/wizata_dsapi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.4.0.dev36
3
+ Version: 1.4.0.dev37
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.4.0.dev36
3
+ Version: 1.4.0.dev37
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -1 +0,0 @@
1
- __version__ = "1.4.0.dev36"