wizata-dsapi 1.3.7__tar.gz → 1.3.9__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 (54) hide show
  1. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/PKG-INFO +1 -1
  2. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/setup.py +8 -7
  3. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/dataframe_toolkit.py +4 -4
  4. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/execution.py +11 -1
  5. wizata_dsapi-1.3.9/wizata_dsapi/version.py +1 -0
  6. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi.egg-info/PKG-INFO +1 -1
  7. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi.egg-info/requires.txt +26 -12
  8. wizata_dsapi-1.3.7/wizata_dsapi/version.py +0 -1
  9. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/LICENSE.txt +0 -0
  10. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/README.rst +0 -0
  11. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/setup.cfg +0 -0
  12. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/__init__.py +0 -0
  13. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/api_config.py +0 -0
  14. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/api_dto.py +0 -0
  15. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/api_interface.py +0 -0
  16. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/bucket.py +0 -0
  17. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/business_label.py +0 -0
  18. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/context.py +0 -0
  19. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/datapoint.py +0 -0
  20. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/datastore.py +0 -0
  21. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/ds_dataframe.py +0 -0
  22. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  23. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/evaluation.py +0 -0
  24. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/experiment.py +0 -0
  25. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/group_system.py +0 -0
  26. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/ilogger.py +0 -0
  27. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/insight.py +0 -0
  28. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/mlmodel.py +0 -0
  29. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/model_toolkit.py +0 -0
  30. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/models/__init__.py +0 -0
  31. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/models/common.py +0 -0
  32. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/paged_query_result.py +0 -0
  33. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/pipeline.py +0 -0
  34. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/pipeline_image.py +0 -0
  35. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/plot.py +0 -0
  36. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/plots/__init__.py +0 -0
  37. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/plots/common.py +0 -0
  38. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/request.py +0 -0
  39. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/script.py +0 -0
  40. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/scripts/__init__.py +0 -0
  41. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/scripts/common.py +0 -0
  42. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/solution_component.py +0 -0
  43. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/streamlit_utils.py +0 -0
  44. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/template.py +0 -0
  45. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/trigger.py +0 -0
  46. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/twin.py +0 -0
  47. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/twinregistration.py +0 -0
  48. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/wizard_function.py +0 -0
  49. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/wizard_request.py +0 -0
  50. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/wizata_dsapi_client.py +0 -0
  51. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi/words.py +0 -0
  52. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  53. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  54. {wizata_dsapi-1.3.7 → wizata_dsapi-1.3.9}/wizata_dsapi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizata_dsapi
3
- Version: 1.3.7
3
+ Version: 1.3.9
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -7,7 +7,8 @@ with open(ver_path) as ver_file:
7
7
  exec(ver_file.read(), main_ns)
8
8
 
9
9
  core_dependencies = [
10
- 'pandas==1.5.3; python_version<"3.12"',
10
+ 'pandas==1.5.3; python_version<"3.11"',
11
+ 'pandas==2.2.3; python_version>="3.11" and python_version<"3.12"',
11
12
  'pandas>=2.3.3; python_version>="3.12"',
12
13
  'numpy==1.26.4; python_version<"3.12"',
13
14
  'numpy>=2.3.3; python_version>="3.12"',
@@ -18,17 +19,17 @@ core_dependencies = [
18
19
  'msal>=1.34.0; python_version>="3.12"',
19
20
  'joblib==1.5.2; python_version<"3.12"',
20
21
  'joblib>=1.2.0; python_version>="3.12"',
21
- 'requests==2.28.2; python_version<"3.12"',
22
- 'requests>=2.32.5; python_version>="3.12"',
23
- 'setuptools==67.6.0; python_version<"3.12"',
24
- 'setuptools>=80.9.0; python_version>="3.12"',
22
+ 'requests==2.28.2; python_version<"3.11"',
23
+ 'requests>=2.32.5; python_version>="3.11"',
24
+ 'setuptools==67.6.0; python_version<"3.11"',
25
+ 'setuptools>=80.9.0; python_version>="3.11"',
25
26
  'plotly==5.13.1; python_version<"3.12"',
26
27
  'plotly>=6.3.1; python_version>="3.12"'
27
28
  ]
28
29
 
29
30
  ml_dependencies = [
30
- 'matplotlib==3.7.1; python_version<"3.12"',
31
- 'matplotlib>=3.10.6; python_version>="3.12"',
31
+ 'matplotlib==3.7.1; python_version<"3.11"',
32
+ 'matplotlib>=3.10.6; python_version>="3.11"',
32
33
  'tensorflow>=2.15.0; (sys_platform != "darwin" or platform_machine != "arm64") and python_version<"3.12"',
33
34
  'tensorflow-macos>=2.15.0; sys_platform == "darwin" and platform_machine == "arm64" and python_version<"3.12"',
34
35
  'tensorflow>=2.20.0; python_version>="3.12"',
@@ -148,7 +148,7 @@ def df_from_dict(df_dict: dict) -> pandas.DataFrame:
148
148
  raise ValueError('if using a multi-line dataframe please provide a Timestamp column')
149
149
 
150
150
  if "Timestamp" not in df_dict:
151
- df_dict["Timestamp"] = [datetime.utcnow()]
151
+ df_dict["Timestamp"] = [datetime.now(timezone.utc)]
152
152
  else:
153
153
  timestamp_col = []
154
154
  for timestamp_ms in df_dict["Timestamp"]:
@@ -208,7 +208,7 @@ def verify_relative_datetime(formatted_string: str) -> bool:
208
208
  def generate_epoch(formatted_string: str, now=None):
209
209
  """
210
210
  generate an epoch based on a formatted string (e.g. now+6h) - see documentation.
211
- * now = datetime.utcnow() can be override
211
+ * now = datetime.now(timezone.utc) can be override
212
212
  * units = 'y' = 365d, 'M'=30d , 'w'=7d , 'd'=24h , 'h'=60m, 'm'=60s , 's'=1000'ms'
213
213
  * operators = '+' or '-'
214
214
  :param formatted_string: formatted epoch representation using relative time.
@@ -216,7 +216,7 @@ def generate_epoch(formatted_string: str, now=None):
216
216
  :return: epoch in ms.
217
217
  """
218
218
  if now is None:
219
- now = datetime.utcnow()
219
+ now = datetime.now(timezone.utc)
220
220
 
221
221
  pattern = r'^now([+-]\d+([yMwdHhms]{1,2}))?$'
222
222
  match = re.match(pattern, formatted_string)
@@ -274,5 +274,5 @@ def generate_unique_key() -> str:
274
274
  - 11 char for 'animal_'
275
275
  - 3 car for number XXX
276
276
  """
277
- return f"{datetime.now().strftime('%y%m%d')}_{random.choice(colors).lower()}_" \
277
+ return f"{datetime.now(timezone.utc).strftime('%y%m%d')}_{random.choice(colors).lower()}_" \
278
278
  f"{random.choice(animals).lower()}_{random.randint(1, 999)}"
@@ -1,5 +1,6 @@
1
1
  import json
2
2
  import uuid
3
+ import sys
3
4
  from enum import Enum
4
5
 
5
6
  from .api_dto import ApiDto
@@ -147,6 +148,7 @@ class Execution(ApiDto):
147
148
  :ivar uuid.UUID twin_id: twin id registered on the template to run pipeline on.
148
149
  :ivar int waiting_time: duration of the waiting time in the queue.
149
150
  :ivar list warnings: list of error and/or warning messages.
151
+ :ivar version str: python version (major.minor) to use as target on runners, by default use current auto-detected version.
150
152
  """
151
153
 
152
154
  @classmethod
@@ -169,7 +171,8 @@ class Execution(ApiDto):
169
171
  experiment_id: uuid.UUID = None,
170
172
  twin_id: uuid.UUID = None,
171
173
  template_id: uuid.UUID = None,
172
- trigger_id: uuid.UUID = None):
174
+ trigger_id: uuid.UUID = None,
175
+ version: str = None):
173
176
 
174
177
  self.execution_id = execution_id
175
178
 
@@ -199,6 +202,9 @@ class Execution(ApiDto):
199
202
  self.waiting_time = None
200
203
  self.warnings = None
201
204
  self.edge_device_id = None
205
+ self.version = version
206
+ if version is None:
207
+ self.version = f'{sys.version_info.major}.{sys.version_info.minor}'
202
208
 
203
209
  # Only accessible between Front-End and DS API (not backend)
204
210
  if properties is None:
@@ -265,6 +271,8 @@ class Execution(ApiDto):
265
271
  obj["warnings"] = self.warnings
266
272
  if self.status is not None and isinstance(self.status, ExecutionStatus):
267
273
  obj["status"] = self.status.value
274
+ if self.version is not None:
275
+ obj["version"] = self.version
268
276
  if self.edge_device_id is not None:
269
277
  obj["edgeDeviceId"] = self.edge_device_id
270
278
 
@@ -319,6 +327,8 @@ class Execution(ApiDto):
319
327
  self.warnings = obj["warnings"]
320
328
  if "status" in obj.keys():
321
329
  self.status = ExecutionStatus(str(obj["status"]))
330
+ if "version" in obj.keys() and obj["version"] is not None:
331
+ self.version = obj["version"]
322
332
  if "edgeDeviceId" in obj.keys() and obj["edgeDeviceId"] is not None:
323
333
  self.edge_device_id = obj["edgeDeviceId"]
324
334
 
@@ -0,0 +1 @@
1
+ __version__ = "1.3.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizata-dsapi
3
- Version: 1.3.7
3
+ Version: 1.3.9
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -1,23 +1,30 @@
1
1
  protobuf>=3.20.3
2
2
 
3
- [:python_version < "3.12"]
3
+ [:python_version < "3.11"]
4
4
  pandas==1.5.3
5
+ requests==2.28.2
6
+ setuptools==67.6.0
7
+
8
+ [:python_version < "3.12"]
5
9
  numpy==1.26.4
6
10
  dill==0.3.6
7
11
  msal==1.24.0
8
12
  joblib==1.5.2
9
- requests==2.28.2
10
- setuptools==67.6.0
11
13
  plotly==5.13.1
12
14
 
15
+ [:python_version >= "3.11"]
16
+ requests>=2.32.5
17
+ setuptools>=80.9.0
18
+
19
+ [:python_version >= "3.11" and python_version < "3.12"]
20
+ pandas==2.2.3
21
+
13
22
  [:python_version >= "3.12"]
14
23
  pandas>=2.3.3
15
24
  numpy>=2.3.3
16
25
  dill==0.4.0
17
26
  msal>=1.34.0
18
27
  joblib>=1.2.0
19
- requests>=2.32.5
20
- setuptools>=80.9.0
21
28
  plotly>=6.3.1
22
29
 
23
30
  [all]
@@ -27,16 +34,18 @@ adtk==0.6.2
27
34
  [all:(sys_platform != "darwin" or platform_machine != "arm64") and python_version < "3.12"]
28
35
  tensorflow>=2.15.0
29
36
 
30
- [all:python_version < "3.12"]
37
+ [all:python_version < "3.11"]
31
38
  pandas==1.5.3
39
+ requests==2.28.2
40
+ setuptools==67.6.0
41
+ matplotlib==3.7.1
42
+
43
+ [all:python_version < "3.12"]
32
44
  numpy==1.26.4
33
45
  dill==0.3.6
34
46
  msal==1.24.0
35
47
  joblib==1.5.2
36
- requests==2.28.2
37
- setuptools==67.6.0
38
48
  plotly==5.13.1
39
- matplotlib==3.7.1
40
49
  keras==2.15.0
41
50
  tensorflow_probability==0.15.0
42
51
  scikit-learn==1.2.2
@@ -52,16 +61,21 @@ pytest-cov==4.0.0
52
61
  shapely==2.0.1
53
62
  pyodbc==4.0.35
54
63
 
64
+ [all:python_version >= "3.11"]
65
+ requests>=2.32.5
66
+ setuptools>=80.9.0
67
+ matplotlib>=3.10.6
68
+
69
+ [all:python_version >= "3.11" and python_version < "3.12"]
70
+ pandas==2.2.3
71
+
55
72
  [all:python_version >= "3.12"]
56
73
  pandas>=2.3.3
57
74
  numpy>=2.3.3
58
75
  dill==0.4.0
59
76
  msal>=1.34.0
60
77
  joblib>=1.2.0
61
- requests>=2.32.5
62
- setuptools>=80.9.0
63
78
  plotly>=6.3.1
64
- matplotlib>=3.10.6
65
79
  tensorflow>=2.20.0
66
80
  keras>=3.11.3
67
81
  tensorflow_probability>=0.25.0
@@ -1 +0,0 @@
1
- __version__ = "1.3.7"
File without changes
File without changes
File without changes