wizata-dsapi 1.3.48__py3-none-any.whl → 1.3.50__py3-none-any.whl
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/context.py +23 -1
- wizata_dsapi/version.py +1 -1
- {wizata_dsapi-1.3.48.dist-info → wizata_dsapi-1.3.50.dist-info}/METADATA +1 -8
- {wizata_dsapi-1.3.48.dist-info → wizata_dsapi-1.3.50.dist-info}/RECORD +7 -7
- {wizata_dsapi-1.3.48.dist-info → wizata_dsapi-1.3.50.dist-info}/WHEEL +0 -0
- {wizata_dsapi-1.3.48.dist-info → wizata_dsapi-1.3.50.dist-info}/licenses/LICENSE.txt +0 -0
- {wizata_dsapi-1.3.48.dist-info → wizata_dsapi-1.3.50.dist-info}/top_level.txt +0 -0
wizata_dsapi/context.py
CHANGED
|
@@ -20,6 +20,12 @@ from .twinregistration import TwinRegistration
|
|
|
20
20
|
|
|
21
21
|
from datetime import datetime
|
|
22
22
|
|
|
23
|
+
def is_json_serializable(value):
|
|
24
|
+
try:
|
|
25
|
+
json.dumps(value)
|
|
26
|
+
return True
|
|
27
|
+
except (TypeError, ValueError):
|
|
28
|
+
return False
|
|
23
29
|
|
|
24
30
|
class Context(ILogger):
|
|
25
31
|
"""
|
|
@@ -56,9 +62,11 @@ class Context(ILogger):
|
|
|
56
62
|
now: datetime = None,
|
|
57
63
|
step: PipelineStep = None,
|
|
58
64
|
dataframe=None,
|
|
59
|
-
properties=None
|
|
65
|
+
properties=None,
|
|
66
|
+
experiment_id: uuid.UUID = None):
|
|
60
67
|
self.pipeline_id = pipeline_id
|
|
61
68
|
self.execution_id = execution_id
|
|
69
|
+
self.experiment_id = experiment_id
|
|
62
70
|
self.template = template
|
|
63
71
|
self.registration = registration
|
|
64
72
|
self.now = now
|
|
@@ -313,3 +321,17 @@ class Context(ILogger):
|
|
|
313
321
|
raise RuntimeError(f'no api is set on this context.')
|
|
314
322
|
self.api.create(evaluation)
|
|
315
323
|
return evaluation
|
|
324
|
+
|
|
325
|
+
def serializable_properties(self) -> dict:
|
|
326
|
+
"""
|
|
327
|
+
return all properties that can be serialized properly in JSON (str, int, ...)
|
|
328
|
+
:return: filtered properties
|
|
329
|
+
"""
|
|
330
|
+
if not self.properties:
|
|
331
|
+
return {}
|
|
332
|
+
|
|
333
|
+
return {
|
|
334
|
+
key: value
|
|
335
|
+
for key, value in self.properties.items()
|
|
336
|
+
if is_json_serializable(value)
|
|
337
|
+
}
|
wizata_dsapi/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.3.
|
|
1
|
+
__version__ = "1.3.50"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wizata_dsapi
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.50
|
|
4
4
|
Summary: Wizata Data Science Toolkit
|
|
5
5
|
Author: Wizata S.A.
|
|
6
6
|
Author-email: info@wizata.com
|
|
@@ -46,13 +46,6 @@ Requires-Dist: plotly==5.13.1; python_version < "3.12" and extra == "all"
|
|
|
46
46
|
Requires-Dist: plotly>=6.3.1; python_version >= "3.12" and extra == "all"
|
|
47
47
|
Requires-Dist: matplotlib==3.7.1; python_version < "3.11" and extra == "all"
|
|
48
48
|
Requires-Dist: matplotlib>=3.10.6; python_version >= "3.11" and extra == "all"
|
|
49
|
-
Requires-Dist: tensorflow>=2.15.0; ((sys_platform != "darwin" or platform_machine != "arm64") and python_version < "3.12") and extra == "all"
|
|
50
|
-
Requires-Dist: tensorflow-macos>=2.15.0; (sys_platform == "darwin" and platform_machine == "arm64" and python_version < "3.12") and extra == "all"
|
|
51
|
-
Requires-Dist: tensorflow>=2.20.0; python_version >= "3.12" and extra == "all"
|
|
52
|
-
Requires-Dist: keras==2.15.0; python_version < "3.12" and extra == "all"
|
|
53
|
-
Requires-Dist: keras>=3.11.3; python_version >= "3.12" and extra == "all"
|
|
54
|
-
Requires-Dist: tensorflow_probability==0.15.0; python_version < "3.12" and extra == "all"
|
|
55
|
-
Requires-Dist: tensorflow_probability>=0.25.0; python_version >= "3.12" and extra == "all"
|
|
56
49
|
Requires-Dist: scikit-learn==1.2.2; python_version < "3.12" and extra == "all"
|
|
57
50
|
Requires-Dist: scikit-learn>=1.7.2; python_version >= "3.12" and extra == "all"
|
|
58
51
|
Requires-Dist: adtk==0.6.2; extra == "all"
|
|
@@ -4,7 +4,7 @@ wizata_dsapi/api_dto.py,sha256=zyzj6-Kcxi59vVAvThfsuq7RLUE2O_FZ3TJ5LpKYPbE,2310
|
|
|
4
4
|
wizata_dsapi/api_interface.py,sha256=ju3Wz1e2uOS1_SrSihc0AECkWLRNNGHMhpMhV2L6tjo,13315
|
|
5
5
|
wizata_dsapi/bucket.py,sha256=Zz9olv-pymikAutGitSuGWrAPiawOTW86JDDHG4ugTc,1150
|
|
6
6
|
wizata_dsapi/business_label.py,sha256=u0TVfUNfoR9qSv8lzpf6rNjlg3G9xTiz6itefcKfeak,4151
|
|
7
|
-
wizata_dsapi/context.py,sha256=
|
|
7
|
+
wizata_dsapi/context.py,sha256=SNlEOELJe2455fdN6F12xu_z5cyINjmC4jAjKZUNvHM,12563
|
|
8
8
|
wizata_dsapi/dataframe_toolkit.py,sha256=7D8JrhsFSGXeO3mRAd2e2cLmdjbXRjk04IuaMG8F974,9078
|
|
9
9
|
wizata_dsapi/datapoint.py,sha256=UUatqzWMwC4ucM6HdeQDWtLS4fGqEsDABCNVmxoP5Hg,14635
|
|
10
10
|
wizata_dsapi/datastore.py,sha256=BSHZmCSJ679boBA1eCkaWGJCy1CUeipKKGt2jDHzdVo,2663
|
|
@@ -31,7 +31,7 @@ wizata_dsapi/template.py,sha256=wtCRKKk3PchH4RrNgNYlEF_9C6bzZwKIeLyEvgv6Fdo,1370
|
|
|
31
31
|
wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
|
|
32
32
|
wizata_dsapi/twin.py,sha256=S0DUzQf1smZXZTdXpXZPtkZYCfKIhw53EecCnsl9i4Q,11017
|
|
33
33
|
wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
|
|
34
|
-
wizata_dsapi/version.py,sha256=
|
|
34
|
+
wizata_dsapi/version.py,sha256=kysJ15-mEfKQUI3q9KZjK6mQ3Cv9iRb5LINEJNw0DYI,23
|
|
35
35
|
wizata_dsapi/wizard_function.py,sha256=RbM7W7Gf-6Rhp_1dU9DBYkHaciknGAGvuAndhAS_vyo,942
|
|
36
36
|
wizata_dsapi/wizard_request.py,sha256=v6BaqKLKvTWmUSo0_gda9FabAQz5x_-GOH1Av50GzFo,3762
|
|
37
37
|
wizata_dsapi/wizata_dsapi_client.py,sha256=PUFOt5b9OOBEjlgUgA4FtdtJyORzZ2eRv4VfWW4uH7E,84724
|
|
@@ -42,8 +42,8 @@ wizata_dsapi/plots/__init__.py,sha256=qgnSFqrjOPur-807M8uh5awIfjM1ZHXUXcAqHc-r2l
|
|
|
42
42
|
wizata_dsapi/plots/common.py,sha256=jdPsJqLHBwSKc6dX83BSGPqSRxzIVNHSYO5yI_8sjGk,6568
|
|
43
43
|
wizata_dsapi/scripts/__init__.py,sha256=hAxiETSQf0qOHde1si1tEAJU48seqEgHrchCzS2-LvQ,80
|
|
44
44
|
wizata_dsapi/scripts/common.py,sha256=efwq-Rd0lvYljIs3gSFz9izogBD7asOU2cTK-IvHTkM,4244
|
|
45
|
-
wizata_dsapi-1.3.
|
|
46
|
-
wizata_dsapi-1.3.
|
|
47
|
-
wizata_dsapi-1.3.
|
|
48
|
-
wizata_dsapi-1.3.
|
|
49
|
-
wizata_dsapi-1.3.
|
|
45
|
+
wizata_dsapi-1.3.50.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
46
|
+
wizata_dsapi-1.3.50.dist-info/METADATA,sha256=f8oSwWL_TAQreI5fMctHDguJlyuh3Ut8t5xWfXEQ9Es,4955
|
|
47
|
+
wizata_dsapi-1.3.50.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
48
|
+
wizata_dsapi-1.3.50.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
|
|
49
|
+
wizata_dsapi-1.3.50.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|