wizata-dsapi 2.0.0.dev30__tar.gz → 2.0.1__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-2.0.0.dev30/wizata_dsapi.egg-info → wizata_dsapi-2.0.1}/PKG-INFO +1 -1
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/__init__.py +1 -1
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/api_interface.py +13 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/search.py +5 -2
- wizata_dsapi-2.0.1/wizata_dsapi/version.py +1 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1/wizata_dsapi.egg-info}/PKG-INFO +1 -1
- wizata_dsapi-2.0.0.dev30/wizata_dsapi/version.py +0 -1
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/LICENSE.txt +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/README.rst +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/setup.cfg +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/setup.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/api_config.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/api_dto.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/bucket.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/business_label.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/context.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/dashboard.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/dataframe_toolkit.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/datapoint.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/datastore.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/ds_dataframe.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/dsapi_json_encoder.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/edge_config.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/edge_device.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/edge_module.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/evaluation.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/execution.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/execution_log.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/experiment.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/graylog_log.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/group_system.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/ilogger.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/insight.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/mlmodel.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/mobile_asset.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/model_toolkit.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/models/__init__.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/models/common.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/notification.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/paged_query_result.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/pipeline.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/pipeline_image.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/plot.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/plots/__init__.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/plots/common.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/plots/theme.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/request.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/script.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/scripts/__init__.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/scripts/common.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/solution_component.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/streamlit_utils.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/template.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/template_config.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/trigger.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/twin.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/twinregistration.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/user.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/wizard_function.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/wizard_request.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/wizata_dsapi_client.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi/words.py +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi.egg-info/requires.txt +0 -0
- {wizata_dsapi-2.0.0.dev30 → wizata_dsapi-2.0.1}/wizata_dsapi.egg-info/top_level.txt +0 -0
|
@@ -49,7 +49,7 @@ from .evaluation import Evaluation
|
|
|
49
49
|
from .streamlit_utils import (get_streamlit_token, get_streamlit_domain, get_streamlit_from, get_streamlit_to,
|
|
50
50
|
get_streamlit_twin_id)
|
|
51
51
|
|
|
52
|
-
from .search import FilterOperator, SearchQuery, SortOption, GroupSearchQuery
|
|
52
|
+
from .search import FilterOperator, SearchQuery, SortOption, GroupSearchQuery, GroupOption, GroupSummary, GroupSummaryType
|
|
53
53
|
from .notification import NotificationScope, DeviceToken, AlertRule, AlertActive, MonitoredDatapoint, \
|
|
54
54
|
MonitoredPipeline, NotificationPreference, RecipientList, Recipient, RecipientType
|
|
55
55
|
from .edge_device import EdgeDevice, EdgeDeviceStatus, EdgeDeviceType
|
|
@@ -78,6 +78,19 @@ class ApiInterface:
|
|
|
78
78
|
"""
|
|
79
79
|
pass
|
|
80
80
|
|
|
81
|
+
def upsert(self, obj):
|
|
82
|
+
"""
|
|
83
|
+
upsert an object on the server. Dedup is based on the entity's logical
|
|
84
|
+
key when available (hardware_id for DataPoint/Twin, key for
|
|
85
|
+
Template/Pipeline/Experiment, ...); for entities without a logical key,
|
|
86
|
+
dedup falls back to the technical UUID (``api_id``). The matching
|
|
87
|
+
record is updated (UUID preserved); otherwise a new one is created.
|
|
88
|
+
|
|
89
|
+
:param obj: a DTO instance implementing ``api_key()``, ``api_id()``, ``set_id()``.
|
|
90
|
+
:return: the upserted object.
|
|
91
|
+
"""
|
|
92
|
+
pass
|
|
93
|
+
|
|
81
94
|
def query(self,
|
|
82
95
|
datapoints: list[str] = None,
|
|
83
96
|
start: datetime = None,
|
|
@@ -120,7 +120,8 @@ class GroupSearchQuery:
|
|
|
120
120
|
filters=data.get("filters"),
|
|
121
121
|
service_name=svc_name,
|
|
122
122
|
groups=data.get("groups"),
|
|
123
|
-
group_summaries=data.get("groupSummaries")
|
|
123
|
+
group_summaries=data.get("groupSummaries"),
|
|
124
|
+
limit=data.get("limit", 1000)
|
|
124
125
|
)
|
|
125
126
|
|
|
126
127
|
|
|
@@ -128,10 +129,12 @@ class GroupSearchQuery:
|
|
|
128
129
|
filters: Optional[Dict[str, Any]] = None,
|
|
129
130
|
service_name: str = "pipeline_runner",
|
|
130
131
|
groups: Optional[List[Union[GroupOption, dict]]] = None,
|
|
131
|
-
group_summaries: Optional[List[Union[GroupSummary, dict]]] = None
|
|
132
|
+
group_summaries: Optional[List[Union[GroupSummary, dict]]] = None,
|
|
133
|
+
limit: int = 1000):
|
|
132
134
|
|
|
133
135
|
self.filters = filters if filters is not None else {}
|
|
134
136
|
self.service_name = service_name
|
|
137
|
+
self.limit = limit
|
|
135
138
|
|
|
136
139
|
|
|
137
140
|
# New grouping feature
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.0.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.0.0.dev30"
|
|
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
|
|
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
|