wizata-dsapi 2.0.0.dev31__tar.gz → 2.0.2__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.dev31/wizata_dsapi.egg-info → wizata_dsapi-2.0.2}/PKG-INFO +1 -1
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/api_interface.py +13 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/pipeline_image.py +7 -2
- wizata_dsapi-2.0.2/wizata_dsapi/version.py +1 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2/wizata_dsapi.egg-info}/PKG-INFO +1 -1
- wizata_dsapi-2.0.0.dev31/wizata_dsapi/version.py +0 -1
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/LICENSE.txt +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/README.rst +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/setup.cfg +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/setup.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/__init__.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/api_config.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/api_dto.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/bucket.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/business_label.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/context.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/dashboard.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/dataframe_toolkit.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/datapoint.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/datastore.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/ds_dataframe.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/dsapi_json_encoder.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/edge_config.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/edge_device.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/edge_module.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/evaluation.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/execution.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/execution_log.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/experiment.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/graylog_log.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/group_system.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/ilogger.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/insight.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/mlmodel.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/mobile_asset.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/model_toolkit.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/models/__init__.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/models/common.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/notification.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/paged_query_result.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/pipeline.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/plot.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/plots/__init__.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/plots/common.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/plots/theme.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/request.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/script.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/scripts/__init__.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/scripts/common.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/search.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/solution_component.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/streamlit_utils.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/template.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/template_config.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/trigger.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/twin.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/twinregistration.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/user.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/wizard_function.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/wizard_request.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/wizata_dsapi_client.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi/words.py +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi.egg-info/requires.txt +0 -0
- {wizata_dsapi-2.0.0.dev31 → wizata_dsapi-2.0.2}/wizata_dsapi.egg-info/top_level.txt +0 -0
|
@@ -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,
|
|
@@ -146,12 +146,17 @@ class PipelineImage(ApiDto):
|
|
|
146
146
|
base_name = json_file[:-5]
|
|
147
147
|
pkl_file = base_name + '.pkl'
|
|
148
148
|
|
|
149
|
+
script = Script.from_dict(json.loads(g_files[json_file]))
|
|
149
150
|
if pkl_file in script_files:
|
|
150
|
-
|
|
151
|
+
# API scripts: pkl carries the dill-serialised callable.
|
|
151
152
|
script.function = Script.load_function_from_dill(g_files[pkl_file])
|
|
152
|
-
|
|
153
|
+
elif script.script_type == wizata_dsapi.ScriptType.RAW:
|
|
154
|
+
# RAW scripts: the python source rides in the JSON; no pkl
|
|
155
|
+
# is expected. Runtime path compiles script.source on use.
|
|
156
|
+
pass
|
|
153
157
|
else:
|
|
154
158
|
raise KeyError(f"missing pkl for script json {json_file}")
|
|
159
|
+
image.scripts.append(script)
|
|
155
160
|
|
|
156
161
|
for pkl_file in pkl_files:
|
|
157
162
|
base_name = pkl_file[:-4]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.0.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.0.0.dev31"
|
|
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
|
|
File without changes
|