wizata-dsapi 2.2.0.dev25__tar.gz → 2.2.0.dev27__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.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/PKG-INFO +1 -1
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/python_package.py +21 -5
- wizata_dsapi-2.2.0.dev27/wizata_dsapi/version.py +1 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/wizata_dsapi_client.py +2 -2
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi.egg-info/PKG-INFO +1 -1
- wizata_dsapi-2.2.0.dev25/wizata_dsapi/version.py +0 -1
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/LICENSE.txt +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/README.rst +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/setup.cfg +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/setup.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/api_config.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/api_dto.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/api_interface.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/bucket.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/business_label.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/connection.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/connection_discovery.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/connection_policy.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/connection_types.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/context.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/dashboard.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/dataframe_toolkit.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/datapoint.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/datastore.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/deployment.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/ds_dataframe.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/dsapi_json_encoder.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/edge_config.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/edge_device.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/edge_module.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/edge_package.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/evaluation.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/execution.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/execution_log.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/experiment.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/formula.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/graylog_log.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/group_system.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/ilogger.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/insight.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/inventory.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/mlmodel.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/mobile_asset.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/model_toolkit.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/models/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/models/common.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/notification.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/paged_query_result.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/pipeline.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/pipeline_image.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/plot.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/plots/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/plots/common.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/plots/theme.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/product.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/request.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/script.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/scripts/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/scripts/common.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/search.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/solution_component.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/streamlit_utils.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/template.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/template_config.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/trigger.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/twin.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/twinregistration.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/user.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/wizard_function.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/wizard_request.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi/words.py +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi.egg-info/requires.txt +0 -0
- {wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi.egg-info/top_level.txt +0 -0
|
@@ -6,13 +6,13 @@ importable where a pipeline runs (runners, pipeline images, edges) under its ori
|
|
|
6
6
|
dotted name, so models pickled against it load unchanged.
|
|
7
7
|
|
|
8
8
|
PythonPackage — one package, named as pip names it: the name is normalised the pip way
|
|
9
|
-
(``
|
|
9
|
+
(``Plant_Models`` is ``plant-models``). ``source`` says where its code comes from:
|
|
10
10
|
|
|
11
11
|
- ``upload``: pure-Python wheels uploaded one version at a time (option A);
|
|
12
12
|
- ``git``: the ``packages/<name>/`` folder of the attached repository (option B), whose
|
|
13
13
|
version is the commit a pipeline is read at.
|
|
14
14
|
|
|
15
|
-
``import_names`` are the top-level modules it provides (``
|
|
15
|
+
``import_names`` are the top-level modules it provides (``plant_models``). ``versions`` is
|
|
16
16
|
filled on read only.
|
|
17
17
|
|
|
18
18
|
PythonPackageVersion — one uploaded wheel of an ``upload`` package. Immutable: a version is
|
|
@@ -30,7 +30,7 @@ from typing import List, Optional
|
|
|
30
30
|
|
|
31
31
|
def normalize_python_package_name(name: str) -> str:
|
|
32
32
|
"""
|
|
33
|
-
A package name as pip compares it (PEP 503): ``
|
|
33
|
+
A package name as pip compares it (PEP 503): ``Plant_Models.v2`` -> ``plant-models-v2``.
|
|
34
34
|
Validating it is the package client's job.
|
|
35
35
|
"""
|
|
36
36
|
return re.sub(r"[-_.]+", "-", name).lower()
|
|
@@ -77,6 +77,8 @@ class PythonPackageVersion:
|
|
|
77
77
|
:ivar str requires_python: the wheel's ``Requires-Python``.
|
|
78
78
|
:ivar str uploaded_by: the user who uploaded it.
|
|
79
79
|
:ivar datetime uploaded_at: when it was uploaded.
|
|
80
|
+
:ivar list used_by: keys of the stored pipelines that pin this version (filled on a
|
|
81
|
+
package read that asks for it; None when not read or not known).
|
|
80
82
|
"""
|
|
81
83
|
|
|
82
84
|
def __init__(self, name: str = None, version: str = None, filename: str = None,
|
|
@@ -91,6 +93,7 @@ class PythonPackageVersion:
|
|
|
91
93
|
self.requires_python: Optional[str] = requires_python
|
|
92
94
|
self.uploaded_by: Optional[str] = None
|
|
93
95
|
self.uploaded_at: Optional[datetime] = None
|
|
96
|
+
self.used_by: Optional[List[str]] = None
|
|
94
97
|
|
|
95
98
|
def api_id(self) -> str:
|
|
96
99
|
return f"{self.name}=={self.version}"
|
|
@@ -102,7 +105,7 @@ class PythonPackageVersion:
|
|
|
102
105
|
("size", self.size), ("requiresDist", self.requires_dist),
|
|
103
106
|
("requiresPython", self.requires_python),
|
|
104
107
|
("uploadedBy", self.uploaded_by),
|
|
105
|
-
("uploadedAt", _ts_out(self.uploaded_at))):
|
|
108
|
+
("uploadedAt", _ts_out(self.uploaded_at)), ("usedBy", self.used_by)):
|
|
106
109
|
if value is not None:
|
|
107
110
|
obj[key] = value
|
|
108
111
|
return obj
|
|
@@ -116,6 +119,7 @@ class PythonPackageVersion:
|
|
|
116
119
|
requires_python=_first(data, "requiresPython", "requires_python"))
|
|
117
120
|
obj.uploaded_by = _first(data, "uploadedBy", "uploaded_by")
|
|
118
121
|
obj.uploaded_at = _ts_in(_first(data, "uploadedAt", "uploaded_at"))
|
|
122
|
+
obj.used_by = _first(data, "usedBy", "used_by")
|
|
119
123
|
return obj
|
|
120
124
|
|
|
121
125
|
def __repr__(self) -> str:
|
|
@@ -136,6 +140,10 @@ class PythonPackage:
|
|
|
136
140
|
:ivar str problem: why it cannot be used, when it cannot (a git folder that does not
|
|
137
141
|
compile, a name clash with the repository); set by the platform.
|
|
138
142
|
:ivar list versions: its uploaded versions, newest first (filled on read only).
|
|
143
|
+
:ivar list used_by: keys of the stored pipelines that import it (filled on a package read
|
|
144
|
+
that asks for it; None when not read or not known).
|
|
145
|
+
:ivar str latest_version: its highest version (filled on search rows).
|
|
146
|
+
:ivar int version_count: how many versions it has (filled on search rows; 0 for a git one).
|
|
139
147
|
"""
|
|
140
148
|
|
|
141
149
|
@classmethod
|
|
@@ -153,6 +161,9 @@ class PythonPackage:
|
|
|
153
161
|
self.updated_at: Optional[datetime] = None
|
|
154
162
|
self.problem: Optional[str] = None
|
|
155
163
|
self.versions: Optional[List[PythonPackageVersion]] = None
|
|
164
|
+
self.used_by: Optional[List[str]] = None
|
|
165
|
+
self.latest_version: Optional[str] = None
|
|
166
|
+
self.version_count: Optional[int] = None
|
|
156
167
|
|
|
157
168
|
def api_id(self) -> str:
|
|
158
169
|
return self.name
|
|
@@ -167,7 +178,9 @@ class PythonPackage:
|
|
|
167
178
|
else self.import_names
|
|
168
179
|
for key, value in (("description", self.description), ("createdBy", self.created_by),
|
|
169
180
|
("createdAt", _ts_out(self.created_at)),
|
|
170
|
-
("updatedAt", _ts_out(self.updated_at)), ("problem", self.problem)
|
|
181
|
+
("updatedAt", _ts_out(self.updated_at)), ("problem", self.problem),
|
|
182
|
+
("usedBy", self.used_by), ("latestVersion", self.latest_version),
|
|
183
|
+
("versionCount", self.version_count)):
|
|
171
184
|
if value is not None:
|
|
172
185
|
obj[key] = value
|
|
173
186
|
if self.versions is not None:
|
|
@@ -185,6 +198,9 @@ class PythonPackage:
|
|
|
185
198
|
obj.created_at = _ts_in(_first(data, "createdAt", "created_at"))
|
|
186
199
|
obj.updated_at = _ts_in(_first(data, "updatedAt", "updated_at"))
|
|
187
200
|
obj.problem = data.get("problem")
|
|
201
|
+
obj.used_by = _first(data, "usedBy", "used_by")
|
|
202
|
+
obj.latest_version = _first(data, "latestVersion", "latest_version")
|
|
203
|
+
obj.version_count = _first(data, "versionCount", "version_count")
|
|
188
204
|
if data.get("versions") is not None:
|
|
189
205
|
obj.versions = [PythonPackageVersion.from_dict(v) for v in data["versions"]]
|
|
190
206
|
return obj
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.0.dev27"
|
|
@@ -1454,7 +1454,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
|
|
|
1454
1454
|
description: str = None) -> PythonPackageVersion:
|
|
1455
1455
|
"""
|
|
1456
1456
|
Upload a version of a Python package your pipelines import: the pure-Python wheel
|
|
1457
|
-
``python -m build --wheel`` makes (e.g. ``dist/
|
|
1457
|
+
``python -m build --wheel`` makes (e.g. ``dist/plant_models-1.4.0-py3-none-any.whl``).
|
|
1458
1458
|
Its name, version and requirements come from the wheel; the package is created by
|
|
1459
1459
|
its first upload. A version is immutable: a fix is a new version.
|
|
1460
1460
|
|
|
@@ -1466,7 +1466,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
|
|
|
1466
1466
|
if isinstance(wheel, (bytes, bytearray)):
|
|
1467
1467
|
if not filename:
|
|
1468
1468
|
raise ValueError("give the wheel's file name with its bytes "
|
|
1469
|
-
"(e.g.
|
|
1469
|
+
"(e.g. plant_models-1.4.0-py3-none-any.whl)")
|
|
1470
1470
|
data = bytes(wheel)
|
|
1471
1471
|
else:
|
|
1472
1472
|
path = str(wheel)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.0.dev25"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wizata_dsapi-2.2.0.dev25 → wizata_dsapi-2.2.0.dev27}/wizata_dsapi.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|