wizata-dsapi 1.4.0.dev11__tar.gz → 1.4.0.dev18__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-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/PKG-INFO +18 -1
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/setup.py +9 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/__init__.py +2 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/execution_log.py +1 -1
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/paged_query_result.py +28 -0
- wizata_dsapi-1.4.0.dev18/wizata_dsapi/search.py +64 -0
- wizata_dsapi-1.4.0.dev18/wizata_dsapi/version.py +1 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi.egg-info/PKG-INFO +18 -1
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi.egg-info/SOURCES.txt +1 -0
- wizata_dsapi-1.4.0.dev11/wizata_dsapi/version.py +0 -1
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/LICENSE.txt +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/README.rst +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/setup.cfg +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/api_config.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/api_dto.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/api_interface.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/bucket.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/business_label.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/context.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/dataframe_toolkit.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/datapoint.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/datastore.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/ds_dataframe.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/dsapi_json_encoder.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/evaluation.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/execution.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/experiment.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/group_system.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/ilogger.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/insight.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/mlmodel.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/model_toolkit.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/models/__init__.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/models/common.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/pipeline.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/pipeline_image.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/plot.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/plots/__init__.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/plots/common.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/request.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/script.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/scripts/__init__.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/scripts/common.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/solution_component.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/streamlit_utils.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/template.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/trigger.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/twin.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/twinregistration.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/wizard_function.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/wizard_request.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/wizata_dsapi_client.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi/words.py +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi.egg-info/requires.txt +0 -0
- {wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi.egg-info/top_level.txt +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wizata_dsapi
|
|
3
|
-
Version: 1.4.0.
|
|
3
|
+
Version: 1.4.0.dev18
|
|
4
4
|
Summary: Wizata Data Science Toolkit
|
|
5
|
+
Home-page: https://www.wizata.com
|
|
5
6
|
Author: Wizata S.A.
|
|
6
7
|
Author-email: info@wizata.com
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Description-Content-Type: text/x-rst
|
|
7
10
|
License-File: LICENSE.txt
|
|
8
11
|
Requires-Dist: pandas==1.5.3; python_version < "3.11"
|
|
9
12
|
Requires-Dist: pandas==2.2.3; python_version >= "3.11" and python_version < "3.12"
|
|
@@ -74,7 +77,21 @@ Requires-Dist: torch==2.7.1; (python_version >= "3.11" and python_version < "3.1
|
|
|
74
77
|
Requires-Dist: torch>=2.8.0; python_version >= "3.12" and extra == "all"
|
|
75
78
|
Dynamic: author
|
|
76
79
|
Dynamic: author-email
|
|
80
|
+
Dynamic: description
|
|
81
|
+
Dynamic: description-content-type
|
|
82
|
+
Dynamic: home-page
|
|
77
83
|
Dynamic: license-file
|
|
78
84
|
Dynamic: provides-extra
|
|
79
85
|
Dynamic: requires-dist
|
|
86
|
+
Dynamic: requires-python
|
|
80
87
|
Dynamic: summary
|
|
88
|
+
|
|
89
|
+
===========================
|
|
90
|
+
Wizata Data Science Package
|
|
91
|
+
===========================
|
|
92
|
+
|
|
93
|
+
This module is intended to be used to create and distribute data science modules within Wizata Platform.
|
|
94
|
+
|
|
95
|
+
Documentation can be found https://<your_tenant>.onwizata.com/docs
|
|
96
|
+
|
|
97
|
+
For more information please visit https://www.wizata.com
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
from setuptools import setup
|
|
2
2
|
from distutils.util import convert_path
|
|
3
|
+
from pathlib import Path
|
|
3
4
|
|
|
4
5
|
main_ns = {}
|
|
5
6
|
ver_path = convert_path('wizata_dsapi/version.py')
|
|
6
7
|
with open(ver_path) as ver_file:
|
|
7
8
|
exec(ver_file.read(), main_ns)
|
|
8
9
|
|
|
10
|
+
# Read the long description from README
|
|
11
|
+
this_directory = Path(__file__).parent
|
|
12
|
+
long_description = (this_directory / "README.rst").read_text(encoding='utf-8')
|
|
13
|
+
|
|
9
14
|
core_dependencies = [
|
|
10
15
|
'pandas==1.5.3; python_version<"3.11"',
|
|
11
16
|
'pandas==2.2.3; python_version>="3.11" and python_version<"3.12"',
|
|
@@ -72,8 +77,11 @@ setup(
|
|
|
72
77
|
name='wizata_dsapi',
|
|
73
78
|
version=main_ns['__version__'],
|
|
74
79
|
description='Wizata Data Science Toolkit',
|
|
80
|
+
long_description=long_description,
|
|
81
|
+
long_description_content_type='text/x-rst',
|
|
75
82
|
author='Wizata S.A.',
|
|
76
83
|
author_email='info@wizata.com',
|
|
84
|
+
url='https://www.wizata.com',
|
|
77
85
|
packages=['wizata_dsapi',
|
|
78
86
|
'wizata_dsapi.plots',
|
|
79
87
|
'wizata_dsapi.scripts',
|
|
@@ -82,4 +90,5 @@ setup(
|
|
|
82
90
|
extras_require={
|
|
83
91
|
'all': all_dependencies
|
|
84
92
|
},
|
|
93
|
+
python_requires='>=3.9',
|
|
85
94
|
)
|
|
@@ -405,7 +405,7 @@ class ExecutionLog(Dto):
|
|
|
405
405
|
"template": self.get_template_key(),
|
|
406
406
|
"twin": self.get_twin_key(),
|
|
407
407
|
"edgeDeviceId": self.edge_device_id,
|
|
408
|
-
"status": self.status.value if self.status else
|
|
408
|
+
"status": self.status.value if hasattr(self.status, 'value') else self.status
|
|
409
409
|
}
|
|
410
410
|
return {k: v for k, v in labels.items() if v is not None}
|
|
411
411
|
|
|
@@ -29,3 +29,31 @@ class PagedQueryResult:
|
|
|
29
29
|
if direction != 'asc' and direction != 'desc':
|
|
30
30
|
raise ValueError("direction must be asc or desc")
|
|
31
31
|
self.results = None
|
|
32
|
+
|
|
33
|
+
def to_json(self):
|
|
34
|
+
"""
|
|
35
|
+
format the results
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
if self.direction == "asc":
|
|
39
|
+
sort_dir = "asc"
|
|
40
|
+
else:
|
|
41
|
+
sort_dir = "desc"
|
|
42
|
+
|
|
43
|
+
formatted_results = []
|
|
44
|
+
if self.results:
|
|
45
|
+
for obj in self.results:
|
|
46
|
+
if hasattr(obj, 'to_json'):
|
|
47
|
+
formatted_results.append(obj.to_json())
|
|
48
|
+
elif hasattr(obj, 'to_dict'):
|
|
49
|
+
formatted_results.append(obj.to_dict())
|
|
50
|
+
else:
|
|
51
|
+
formatted_results.append(obj)
|
|
52
|
+
return {
|
|
53
|
+
"page": self.page,
|
|
54
|
+
"size": self.size,
|
|
55
|
+
"sort": self.sort,
|
|
56
|
+
"direction": sort_dir,
|
|
57
|
+
"total": self.total,
|
|
58
|
+
"results": formatted_results
|
|
59
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from dataclasses import dataclass, field
|
|
2
|
+
from typing import Dict, List, Any, Optional
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FilterOperator:
|
|
6
|
+
"""
|
|
7
|
+
Constants for standard filtering operators.
|
|
8
|
+
"""
|
|
9
|
+
EQ = "eq"
|
|
10
|
+
NE = "ne"
|
|
11
|
+
GT = "gt"
|
|
12
|
+
GTE = "gte"
|
|
13
|
+
LT = "lt"
|
|
14
|
+
LTE = "lte"
|
|
15
|
+
IN = "in"
|
|
16
|
+
CONTAINS = "contains"
|
|
17
|
+
SEARCH = "_search"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class SortOption:
|
|
21
|
+
def __init__(self, field: str, order: str = "asc"):
|
|
22
|
+
self.field = field
|
|
23
|
+
self.order = order
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class SearchQuery:
|
|
27
|
+
"""
|
|
28
|
+
Generic class to represent JSON request structure.
|
|
29
|
+
"""
|
|
30
|
+
@classmethod
|
|
31
|
+
def from_dict(cls, data: dict):
|
|
32
|
+
"""
|
|
33
|
+
Helper to convert dictionary coming from endpoint to SearchQuery object.
|
|
34
|
+
"""
|
|
35
|
+
raw_sort = data.get("sort", [])
|
|
36
|
+
sort_objs = []
|
|
37
|
+
for s in raw_sort:
|
|
38
|
+
sort_objs.append(SortOption(field=s["field"], order=s.get("order", "asc")))
|
|
39
|
+
|
|
40
|
+
svc_name = data.get("serviceName") or data.get("service_name") or "pipeline_runner"
|
|
41
|
+
return cls(
|
|
42
|
+
filters=data.get("filters", {}),
|
|
43
|
+
sort=sort_objs,
|
|
44
|
+
limit=data.get("limit", 5000),
|
|
45
|
+
page=data.get("page", 1),
|
|
46
|
+
size=data.get("size", 50),
|
|
47
|
+
service_name=svc_name
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
def __init__(self,
|
|
51
|
+
filters: Optional[Dict[str, Any]] = None,
|
|
52
|
+
sort: Optional[List[SortOption]] = None,
|
|
53
|
+
limit: int = 5000,
|
|
54
|
+
page: int = 1,
|
|
55
|
+
size: int = 50,
|
|
56
|
+
service_name: str = "pipeline_runner"):
|
|
57
|
+
|
|
58
|
+
self.filters = filters if filters is not None else {}
|
|
59
|
+
self.sort = sort if sort is not None else []
|
|
60
|
+
self.limit = limit
|
|
61
|
+
self.page = page
|
|
62
|
+
self.size = size
|
|
63
|
+
self.service_name = service_name
|
|
64
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.4.0.dev18"
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wizata_dsapi
|
|
3
|
-
Version: 1.4.0.
|
|
3
|
+
Version: 1.4.0.dev18
|
|
4
4
|
Summary: Wizata Data Science Toolkit
|
|
5
|
+
Home-page: https://www.wizata.com
|
|
5
6
|
Author: Wizata S.A.
|
|
6
7
|
Author-email: info@wizata.com
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Description-Content-Type: text/x-rst
|
|
7
10
|
License-File: LICENSE.txt
|
|
8
11
|
Requires-Dist: pandas==1.5.3; python_version < "3.11"
|
|
9
12
|
Requires-Dist: pandas==2.2.3; python_version >= "3.11" and python_version < "3.12"
|
|
@@ -74,7 +77,21 @@ Requires-Dist: torch==2.7.1; (python_version >= "3.11" and python_version < "3.1
|
|
|
74
77
|
Requires-Dist: torch>=2.8.0; python_version >= "3.12" and extra == "all"
|
|
75
78
|
Dynamic: author
|
|
76
79
|
Dynamic: author-email
|
|
80
|
+
Dynamic: description
|
|
81
|
+
Dynamic: description-content-type
|
|
82
|
+
Dynamic: home-page
|
|
77
83
|
Dynamic: license-file
|
|
78
84
|
Dynamic: provides-extra
|
|
79
85
|
Dynamic: requires-dist
|
|
86
|
+
Dynamic: requires-python
|
|
80
87
|
Dynamic: summary
|
|
88
|
+
|
|
89
|
+
===========================
|
|
90
|
+
Wizata Data Science Package
|
|
91
|
+
===========================
|
|
92
|
+
|
|
93
|
+
This module is intended to be used to create and distribute data science modules within Wizata Platform.
|
|
94
|
+
|
|
95
|
+
Documentation can be found https://<your_tenant>.onwizata.com/docs
|
|
96
|
+
|
|
97
|
+
For more information please visit https://www.wizata.com
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.4.0.dev11"
|
|
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
|
{wizata_dsapi-1.4.0.dev11 → wizata_dsapi-1.4.0.dev18}/wizata_dsapi.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|