wizata-dsapi 2.1.0.dev15__tar.gz → 2.1.0.dev17__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 (68) hide show
  1. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/PKG-INFO +49 -3
  2. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/setup.py +7 -1
  3. wizata_dsapi-2.1.0.dev17/wizata_dsapi/plot.py +104 -0
  4. wizata_dsapi-2.1.0.dev17/wizata_dsapi/version.py +1 -0
  5. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi.egg-info/PKG-INFO +49 -3
  6. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi.egg-info/requires.txt +54 -1
  7. wizata_dsapi-2.1.0.dev15/wizata_dsapi/plot.py +0 -70
  8. wizata_dsapi-2.1.0.dev15/wizata_dsapi/version.py +0 -1
  9. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/LICENSE.txt +0 -0
  10. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/README.rst +0 -0
  11. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/setup.cfg +0 -0
  12. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/__init__.py +0 -0
  13. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/api_config.py +0 -0
  14. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/api_dto.py +0 -0
  15. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/api_interface.py +0 -0
  16. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/bucket.py +0 -0
  17. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/business_label.py +0 -0
  18. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/context.py +0 -0
  19. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/dashboard.py +0 -0
  20. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/dataframe_toolkit.py +0 -0
  21. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/datapoint.py +0 -0
  22. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/datastore.py +0 -0
  23. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/deployment.py +0 -0
  24. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/ds_dataframe.py +0 -0
  25. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  26. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/edge_config.py +0 -0
  27. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/edge_device.py +0 -0
  28. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/edge_module.py +0 -0
  29. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/evaluation.py +0 -0
  30. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/execution.py +0 -0
  31. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/execution_log.py +0 -0
  32. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/experiment.py +0 -0
  33. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/graylog_log.py +0 -0
  34. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/group_system.py +0 -0
  35. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/ilogger.py +0 -0
  36. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/insight.py +0 -0
  37. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/mlmodel.py +0 -0
  38. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/mobile_asset.py +0 -0
  39. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/model_toolkit.py +0 -0
  40. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/models/__init__.py +0 -0
  41. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/models/common.py +0 -0
  42. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/notification.py +0 -0
  43. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/paged_query_result.py +0 -0
  44. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/pipeline.py +0 -0
  45. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/pipeline_image.py +0 -0
  46. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/plots/__init__.py +0 -0
  47. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/plots/common.py +0 -0
  48. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/plots/theme.py +0 -0
  49. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/request.py +0 -0
  50. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/script.py +0 -0
  51. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/scripts/__init__.py +0 -0
  52. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/scripts/common.py +0 -0
  53. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/search.py +0 -0
  54. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/solution_component.py +0 -0
  55. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/streamlit_utils.py +0 -0
  56. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/template.py +0 -0
  57. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/template_config.py +0 -0
  58. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/trigger.py +0 -0
  59. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/twin.py +0 -0
  60. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/twinregistration.py +0 -0
  61. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/user.py +0 -0
  62. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/wizard_function.py +0 -0
  63. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/wizard_request.py +0 -0
  64. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/wizata_dsapi_client.py +0 -0
  65. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi/words.py +0 -0
  66. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  67. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  68. {wizata_dsapi-2.1.0.dev15 → wizata_dsapi-2.1.0.dev17}/wizata_dsapi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 2.1.0.dev15
3
+ Version: 2.1.0.dev17
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -91,8 +91,54 @@ Requires-Dist: shapely==2.0.1; python_version < "3.12" and extra == "std"
91
91
  Requires-Dist: shapely>=2.1.2; python_version >= "3.12" and extra == "std"
92
92
  Requires-Dist: pyodbc==4.0.35; python_version < "3.12" and extra == "std"
93
93
  Requires-Dist: pyodbc>=5.2.0; python_version >= "3.12" and extra == "std"
94
- Requires-Dist: torch==2.7.1; (python_version >= "3.11" and python_version < "3.12") and extra == "std"
95
- Requires-Dist: torch>=2.8.0; python_version >= "3.12" and extra == "std"
94
+ Provides-Extra: torch
95
+ Requires-Dist: pandas==2.2.3; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
96
+ Requires-Dist: pandas>=2.3.3; python_version >= "3.12" and extra == "torch"
97
+ Requires-Dist: numpy==1.26.4; python_version < "3.12" and extra == "torch"
98
+ Requires-Dist: numpy>=2.3.3; python_version >= "3.12" and extra == "torch"
99
+ Requires-Dist: dill==0.3.6; python_version < "3.12" and extra == "torch"
100
+ Requires-Dist: dill==0.4.0; python_version >= "3.12" and extra == "torch"
101
+ Requires-Dist: protobuf==3.20.3; python_version < "3.12" and extra == "torch"
102
+ Requires-Dist: protobuf>=5.29.5; python_version >= "3.12" and extra == "torch"
103
+ Requires-Dist: msal==1.30.0; python_version < "3.12" and extra == "torch"
104
+ Requires-Dist: msal>=1.34.0; python_version >= "3.12" and extra == "torch"
105
+ Requires-Dist: joblib==1.5.2; python_version < "3.12" and extra == "torch"
106
+ Requires-Dist: joblib>=1.2.0; python_version >= "3.12" and extra == "torch"
107
+ Requires-Dist: requests<3,>=2.32.5; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
108
+ Requires-Dist: requests>=2.32.5; python_version >= "3.12" and extra == "torch"
109
+ Requires-Dist: setuptools<81,>=80.9.0; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
110
+ Requires-Dist: setuptools>=80.9.0; python_version >= "3.12" and extra == "torch"
111
+ Requires-Dist: plotly==5.13.1; python_version < "3.12" and extra == "torch"
112
+ Requires-Dist: plotly>=6.3.1; python_version >= "3.12" and extra == "torch"
113
+ Requires-Dist: pytz<2027,>=2026.1; extra == "torch"
114
+ Requires-Dist: matplotlib<3.11,>=3.10.6; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
115
+ Requires-Dist: matplotlib>=3.10.6; python_version >= "3.12" and extra == "torch"
116
+ Requires-Dist: scikit-learn==1.2.2; python_version < "3.12" and extra == "torch"
117
+ Requires-Dist: scikit-learn>=1.7.2; python_version >= "3.12" and extra == "torch"
118
+ Requires-Dist: adtk==0.6.2; extra == "torch"
119
+ Requires-Dist: scipy==1.10.1; python_version < "3.12" and extra == "torch"
120
+ Requires-Dist: scipy>=1.16.2; python_version >= "3.12" and extra == "torch"
121
+ Requires-Dist: xgboost==1.7.4; python_version < "3.12" and extra == "torch"
122
+ Requires-Dist: xgboost>=3.0.5; python_version >= "3.12" and extra == "torch"
123
+ Requires-Dist: u8darts==0.25.0; python_version < "3.12" and extra == "torch"
124
+ Requires-Dist: u8darts>=0.38.0; python_version >= "3.12" and extra == "torch"
125
+ Requires-Dist: optuna==3.3.0; python_version < "3.12" and extra == "torch"
126
+ Requires-Dist: optuna>=4.5.0; python_version >= "3.12" and extra == "torch"
127
+ Requires-Dist: explainerdashboard==0.4.2.1; python_version < "3.12" and extra == "torch"
128
+ Requires-Dist: ipywidgets==8.0.4; python_version < "3.12" and extra == "torch"
129
+ Requires-Dist: ipywidgets>=8.1.7; python_version >= "3.12" and extra == "torch"
130
+ Requires-Dist: kaleido==0.2.1; python_version < "3.12" and extra == "torch"
131
+ Requires-Dist: kaleido>=1.1.0; python_version >= "3.12" and extra == "torch"
132
+ Requires-Dist: pytest==7.2.2; python_version < "3.12" and extra == "torch"
133
+ Requires-Dist: pytest>=8.4.2; python_version >= "3.12" and extra == "torch"
134
+ Requires-Dist: pytest-cov==4.0.0; python_version < "3.12" and extra == "torch"
135
+ Requires-Dist: pytest-cov>=7.0.0; python_version >= "3.12" and extra == "torch"
136
+ Requires-Dist: shapely==2.0.1; python_version < "3.12" and extra == "torch"
137
+ Requires-Dist: shapely>=2.1.2; python_version >= "3.12" and extra == "torch"
138
+ Requires-Dist: pyodbc==4.0.35; python_version < "3.12" and extra == "torch"
139
+ Requires-Dist: pyodbc>=5.2.0; python_version >= "3.12" and extra == "torch"
140
+ Requires-Dist: torch==2.7.1; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
141
+ Requires-Dist: torch>=2.8.0; python_version >= "3.12" and extra == "torch"
96
142
  Provides-Extra: julia
97
143
  Requires-Dist: pandas==2.2.3; (python_version >= "3.11" and python_version < "3.12") and extra == "julia"
98
144
  Requires-Dist: pandas>=2.3.3; python_version >= "3.12" and extra == "julia"
@@ -81,7 +81,13 @@ setup(
81
81
  install_requires=core_dependencies,
82
82
  extras_require={
83
83
  'slim': core_dependencies,
84
- 'std': core_dependencies + ml_dependencies + torch_dependencies,
84
+ # DEV-6008: torch is no longer part of 'std'. It is a multi-GB dependency that
85
+ # every std runner carried whether or not a pipeline used it, and its 3.11 pin
86
+ # is the constraint that made that build fragile. Pipelines that need it now
87
+ # ask for it: wizata_dsapi[torch]. The runtime already treats it as optional
88
+ # (wizata_dsapi.HAS_TORCH), so 'std' losing it changes no behaviour.
89
+ 'std': core_dependencies + ml_dependencies,
90
+ 'torch': core_dependencies + ml_dependencies + torch_dependencies,
85
91
  'julia': core_dependencies + ml_dependencies + julia_dependencies,
86
92
  'all': ['wizata-dsapi-extras-all-removed-pick-std-or-other==999.0.0'],
87
93
  },
@@ -0,0 +1,104 @@
1
+ import uuid
2
+ from .api_dto import ApiDto
3
+
4
+
5
+ class Plot(ApiDto):
6
+ """
7
+ A plot is a definition of a Plotly figure that can be stored and shared on Wizata.
8
+ :ivar plot_id: The UUID of the plot. None for a deployed plot, which is addressed
9
+ by ``key`` instead — see below.
10
+ :ivar name: A simple name helping the user identifying the plot.
11
+ :ivar figure: Plotly figure defining the plot itself.
12
+ :ivar key: DEV-6026 — the deterministic identity of a DEPLOYED plot,
13
+ ``<pipeline key>/<twin key>/<plot script>.<input dataframe>``. An experiment
14
+ plot is one blob per execution addressed by ``plot_id`` and fetched with
15
+ ``GET /plots/<id>/``; a deployed plot is one blob per (pipeline, twin, plot
16
+ step) that is overwritten, so it has no uuid at all. `plot_id` is deliberately
17
+ left None in that case rather than minted and dropped: a uuid that looks
18
+ addressable via ``GET /plots/<id>`` but is not would be its own trap. Note the
19
+ identity is the plot STEP — its script and input dataframe, both from the
20
+ pipeline definition — and not ``name``, which stays the display label, so
21
+ relabelling a chart cannot orphan its blob.
22
+ """
23
+
24
+ @classmethod
25
+ def route(cls):
26
+ return "plots"
27
+
28
+ @classmethod
29
+ def from_dict(cls, data):
30
+ obj = Plot()
31
+ obj.from_json(data)
32
+ return obj
33
+
34
+ def __init__(self, plot_id=None, name=None, figure=None, key=None):
35
+ # A keyed (deployed) plot gets NO uuid — see the `key` note on the class.
36
+ # Every other plot keeps minting one, so nothing that existed changes.
37
+ if plot_id is not None:
38
+ self.plot_id = plot_id
39
+ elif key is not None:
40
+ self.plot_id = None
41
+ else:
42
+ self.plot_id = uuid.uuid4()
43
+ self.name = name
44
+ self.figure = figure
45
+ self.key = key
46
+
47
+ def api_id(self) -> str:
48
+ """
49
+ Id of the plot (plot_id)
50
+ :return: string formatted UUID of the plot, None for a deployed plot — it is
51
+ not a backend entity, so there is no id to send.
52
+ """
53
+ if self.plot_id is None:
54
+ return None
55
+ return str(self.plot_id).upper()
56
+
57
+ def endpoint(self) -> str:
58
+ """
59
+ Name of the endpoints used to manipulate plots.
60
+ :return: Endpoint name.
61
+ """
62
+ return "Plots"
63
+
64
+ def from_json(self, obj):
65
+ """
66
+ Load the Plot entity from a dictionary representation of the Plot.
67
+ :param obj: Dict version of the Plot.
68
+ """
69
+ if "id" in obj.keys():
70
+ self.plot_id = uuid.UUID(obj["id"])
71
+ if "key" in obj.keys():
72
+ # A deployed plot: keyed, never uuid-addressed. Clearing plot_id undoes
73
+ # the uuid __init__ minted before from_json ran, so a round-tripped
74
+ # execution log does not grow a uuid that addresses nothing.
75
+ self.key = obj["key"]
76
+ self.plot_id = None
77
+ if "name" in obj.keys():
78
+ self.name = obj["name"]
79
+ if "figure" in obj.keys():
80
+ self.figure = obj["figure"]
81
+
82
+ def to_json(self, target: str = None):
83
+ """
84
+ Convert the plot to a dictionary compatible to JSON format.
85
+ :return: dictionary representation of the Plot object.
86
+ """
87
+ # A deployed plot carries its deterministic key and NO id. The execution log
88
+ # is what makes it traceable which run last wrote a plot, and `key` is what
89
+ # the deployed-plot endpoint reads — an "id" beside it would only invite a
90
+ # GET /plots/<id> that cannot answer.
91
+ if self.key is not None:
92
+ obj = {
93
+ "key": self.key
94
+ }
95
+ else:
96
+ obj = {
97
+ "id": str(self.plot_id)
98
+ }
99
+ if self.name is not None:
100
+ obj["name"] = self.name
101
+ if target is None or target != 'logs':
102
+ if self.figure is not None:
103
+ obj["figure"] = self.figure
104
+ return obj
@@ -0,0 +1 @@
1
+ __version__ = "2.1.0.dev17"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 2.1.0.dev15
3
+ Version: 2.1.0.dev17
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -91,8 +91,54 @@ Requires-Dist: shapely==2.0.1; python_version < "3.12" and extra == "std"
91
91
  Requires-Dist: shapely>=2.1.2; python_version >= "3.12" and extra == "std"
92
92
  Requires-Dist: pyodbc==4.0.35; python_version < "3.12" and extra == "std"
93
93
  Requires-Dist: pyodbc>=5.2.0; python_version >= "3.12" and extra == "std"
94
- Requires-Dist: torch==2.7.1; (python_version >= "3.11" and python_version < "3.12") and extra == "std"
95
- Requires-Dist: torch>=2.8.0; python_version >= "3.12" and extra == "std"
94
+ Provides-Extra: torch
95
+ Requires-Dist: pandas==2.2.3; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
96
+ Requires-Dist: pandas>=2.3.3; python_version >= "3.12" and extra == "torch"
97
+ Requires-Dist: numpy==1.26.4; python_version < "3.12" and extra == "torch"
98
+ Requires-Dist: numpy>=2.3.3; python_version >= "3.12" and extra == "torch"
99
+ Requires-Dist: dill==0.3.6; python_version < "3.12" and extra == "torch"
100
+ Requires-Dist: dill==0.4.0; python_version >= "3.12" and extra == "torch"
101
+ Requires-Dist: protobuf==3.20.3; python_version < "3.12" and extra == "torch"
102
+ Requires-Dist: protobuf>=5.29.5; python_version >= "3.12" and extra == "torch"
103
+ Requires-Dist: msal==1.30.0; python_version < "3.12" and extra == "torch"
104
+ Requires-Dist: msal>=1.34.0; python_version >= "3.12" and extra == "torch"
105
+ Requires-Dist: joblib==1.5.2; python_version < "3.12" and extra == "torch"
106
+ Requires-Dist: joblib>=1.2.0; python_version >= "3.12" and extra == "torch"
107
+ Requires-Dist: requests<3,>=2.32.5; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
108
+ Requires-Dist: requests>=2.32.5; python_version >= "3.12" and extra == "torch"
109
+ Requires-Dist: setuptools<81,>=80.9.0; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
110
+ Requires-Dist: setuptools>=80.9.0; python_version >= "3.12" and extra == "torch"
111
+ Requires-Dist: plotly==5.13.1; python_version < "3.12" and extra == "torch"
112
+ Requires-Dist: plotly>=6.3.1; python_version >= "3.12" and extra == "torch"
113
+ Requires-Dist: pytz<2027,>=2026.1; extra == "torch"
114
+ Requires-Dist: matplotlib<3.11,>=3.10.6; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
115
+ Requires-Dist: matplotlib>=3.10.6; python_version >= "3.12" and extra == "torch"
116
+ Requires-Dist: scikit-learn==1.2.2; python_version < "3.12" and extra == "torch"
117
+ Requires-Dist: scikit-learn>=1.7.2; python_version >= "3.12" and extra == "torch"
118
+ Requires-Dist: adtk==0.6.2; extra == "torch"
119
+ Requires-Dist: scipy==1.10.1; python_version < "3.12" and extra == "torch"
120
+ Requires-Dist: scipy>=1.16.2; python_version >= "3.12" and extra == "torch"
121
+ Requires-Dist: xgboost==1.7.4; python_version < "3.12" and extra == "torch"
122
+ Requires-Dist: xgboost>=3.0.5; python_version >= "3.12" and extra == "torch"
123
+ Requires-Dist: u8darts==0.25.0; python_version < "3.12" and extra == "torch"
124
+ Requires-Dist: u8darts>=0.38.0; python_version >= "3.12" and extra == "torch"
125
+ Requires-Dist: optuna==3.3.0; python_version < "3.12" and extra == "torch"
126
+ Requires-Dist: optuna>=4.5.0; python_version >= "3.12" and extra == "torch"
127
+ Requires-Dist: explainerdashboard==0.4.2.1; python_version < "3.12" and extra == "torch"
128
+ Requires-Dist: ipywidgets==8.0.4; python_version < "3.12" and extra == "torch"
129
+ Requires-Dist: ipywidgets>=8.1.7; python_version >= "3.12" and extra == "torch"
130
+ Requires-Dist: kaleido==0.2.1; python_version < "3.12" and extra == "torch"
131
+ Requires-Dist: kaleido>=1.1.0; python_version >= "3.12" and extra == "torch"
132
+ Requires-Dist: pytest==7.2.2; python_version < "3.12" and extra == "torch"
133
+ Requires-Dist: pytest>=8.4.2; python_version >= "3.12" and extra == "torch"
134
+ Requires-Dist: pytest-cov==4.0.0; python_version < "3.12" and extra == "torch"
135
+ Requires-Dist: pytest-cov>=7.0.0; python_version >= "3.12" and extra == "torch"
136
+ Requires-Dist: shapely==2.0.1; python_version < "3.12" and extra == "torch"
137
+ Requires-Dist: shapely>=2.1.2; python_version >= "3.12" and extra == "torch"
138
+ Requires-Dist: pyodbc==4.0.35; python_version < "3.12" and extra == "torch"
139
+ Requires-Dist: pyodbc>=5.2.0; python_version >= "3.12" and extra == "torch"
140
+ Requires-Dist: torch==2.7.1; (python_version >= "3.11" and python_version < "3.12") and extra == "torch"
141
+ Requires-Dist: torch>=2.8.0; python_version >= "3.12" and extra == "torch"
96
142
  Provides-Extra: julia
97
143
  Requires-Dist: pandas==2.2.3; (python_version >= "3.11" and python_version < "3.12") and extra == "julia"
98
144
  Requires-Dist: pandas>=2.3.3; python_version >= "3.12" and extra == "julia"
@@ -139,7 +139,6 @@ pandas==2.2.3
139
139
  requests<3,>=2.32.5
140
140
  setuptools<81,>=80.9.0
141
141
  matplotlib<3.11,>=3.10.6
142
- torch==2.7.1
143
142
 
144
143
  [std:python_version >= "3.12"]
145
144
  pandas>=2.3.3
@@ -163,4 +162,58 @@ pytest>=8.4.2
163
162
  pytest-cov>=7.0.0
164
163
  shapely>=2.1.2
165
164
  pyodbc>=5.2.0
165
+
166
+ [torch]
167
+ pytz<2027,>=2026.1
168
+ adtk==0.6.2
169
+
170
+ [torch:python_version < "3.12"]
171
+ numpy==1.26.4
172
+ dill==0.3.6
173
+ protobuf==3.20.3
174
+ msal==1.30.0
175
+ joblib==1.5.2
176
+ plotly==5.13.1
177
+ scikit-learn==1.2.2
178
+ scipy==1.10.1
179
+ xgboost==1.7.4
180
+ u8darts==0.25.0
181
+ optuna==3.3.0
182
+ explainerdashboard==0.4.2.1
183
+ ipywidgets==8.0.4
184
+ kaleido==0.2.1
185
+ pytest==7.2.2
186
+ pytest-cov==4.0.0
187
+ shapely==2.0.1
188
+ pyodbc==4.0.35
189
+
190
+ [torch:python_version >= "3.11" and python_version < "3.12"]
191
+ pandas==2.2.3
192
+ requests<3,>=2.32.5
193
+ setuptools<81,>=80.9.0
194
+ matplotlib<3.11,>=3.10.6
195
+ torch==2.7.1
196
+
197
+ [torch:python_version >= "3.12"]
198
+ pandas>=2.3.3
199
+ numpy>=2.3.3
200
+ dill==0.4.0
201
+ protobuf>=5.29.5
202
+ msal>=1.34.0
203
+ joblib>=1.2.0
204
+ requests>=2.32.5
205
+ setuptools>=80.9.0
206
+ plotly>=6.3.1
207
+ matplotlib>=3.10.6
208
+ scikit-learn>=1.7.2
209
+ scipy>=1.16.2
210
+ xgboost>=3.0.5
211
+ u8darts>=0.38.0
212
+ optuna>=4.5.0
213
+ ipywidgets>=8.1.7
214
+ kaleido>=1.1.0
215
+ pytest>=8.4.2
216
+ pytest-cov>=7.0.0
217
+ shapely>=2.1.2
218
+ pyodbc>=5.2.0
166
219
  torch>=2.8.0
@@ -1,70 +0,0 @@
1
- import uuid
2
- from .api_dto import ApiDto
3
-
4
-
5
- class Plot(ApiDto):
6
- """
7
- A plot is a definition of a Plotly figure that can be stored and shared on Wizata.
8
- :ivar plot_id: The UUID of the plot.
9
- :ivar name: A simple name helping the user identifying the plot.
10
- :ivar figure: Plotly figure defining the plot itself.
11
- """
12
-
13
- @classmethod
14
- def route(cls):
15
- return "plots"
16
-
17
- @classmethod
18
- def from_dict(cls, data):
19
- obj = Plot()
20
- obj.from_json(data)
21
- return obj
22
-
23
- def __init__(self, plot_id=None, name=None, figure=None):
24
- if plot_id is None:
25
- self.plot_id = uuid.uuid4()
26
- else:
27
- self.plot_id = plot_id
28
- self.name = name
29
- self.figure = figure
30
-
31
- def api_id(self) -> str:
32
- """
33
- Id of the plot (plot_id)
34
- :return: string formatted UUID of the plot.
35
- """
36
- return str(self.plot_id).upper()
37
-
38
- def endpoint(self) -> str:
39
- """
40
- Name of the endpoints used to manipulate plots.
41
- :return: Endpoint name.
42
- """
43
- return "Plots"
44
-
45
- def from_json(self, obj):
46
- """
47
- Load the Plot entity from a dictionary representation of the Plot.
48
- :param obj: Dict version of the Plot.
49
- """
50
- if "id" in obj.keys():
51
- self.plot_id = uuid.UUID(obj["id"])
52
- if "name" in obj.keys():
53
- self.name = obj["name"]
54
- if "figure" in obj.keys():
55
- self.figure = obj["figure"]
56
-
57
- def to_json(self, target: str = None):
58
- """
59
- Convert the plot to a dictionary compatible to JSON format.
60
- :return: dictionary representation of the Plot object.
61
- """
62
- obj = {
63
- "id": str(self.plot_id)
64
- }
65
- if self.name is not None:
66
- obj["name"] = self.name
67
- if target is None or target != 'logs':
68
- if self.figure is not None:
69
- obj["figure"] = self.figure
70
- return obj
@@ -1 +0,0 @@
1
- __version__ = "2.1.0.dev15"