wizata-dsapi 2.2.0.dev6__tar.gz → 2.2.0.dev8__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.dev6 → wizata_dsapi-2.2.0.dev8}/PKG-INFO +1 -1
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/product.py +12 -2
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/request.py +3 -2
- wizata_dsapi-2.2.0.dev8/wizata_dsapi/version.py +1 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi.egg-info/PKG-INFO +1 -1
- wizata_dsapi-2.2.0.dev6/wizata_dsapi/version.py +0 -1
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/LICENSE.txt +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/README.rst +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/setup.cfg +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/setup.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/api_config.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/api_dto.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/api_interface.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/bucket.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/business_label.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/connection.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/connection_types.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/context.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/dashboard.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/dataframe_toolkit.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/datapoint.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/datastore.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/deployment.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/ds_dataframe.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/dsapi_json_encoder.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/edge_config.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/edge_device.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/edge_module.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/evaluation.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/execution.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/execution_log.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/experiment.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/graylog_log.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/group_system.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/ilogger.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/insight.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/inventory.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/mlmodel.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/mobile_asset.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/model_toolkit.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/models/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/models/common.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/notification.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/paged_query_result.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/pipeline.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/pipeline_image.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/plot.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/plots/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/plots/common.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/plots/theme.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/script.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/scripts/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/scripts/common.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/search.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/solution_component.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/streamlit_utils.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/template.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/template_config.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/trigger.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/twin.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/twinregistration.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/user.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/wizard_function.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/wizard_request.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/wizata_dsapi_client.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi/words.py +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi.egg-info/requires.txt +0 -0
- {wizata_dsapi-2.2.0.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi.egg-info/top_level.txt +0 -0
|
@@ -7,7 +7,9 @@ ProductKind — what role a product plays: raw material, container, finished pro
|
|
|
7
7
|
|
|
8
8
|
Product — something the plant consumes or makes, identified by a Wizata key
|
|
9
9
|
(e.g. ``can_33_coke``). ``category`` is a backend category id (Volume, Count, ...):
|
|
10
|
-
it says how a quantity of that product is expressed.
|
|
10
|
+
it says how a quantity of that product is expressed. ``unit`` (optional, DEV-6087) is
|
|
11
|
+
its default unit, a backend unit id of that category, used for stock totals across
|
|
12
|
+
storages; ``unit_symbol`` is filled on read only.
|
|
11
13
|
|
|
12
14
|
ProductComponent — one line of a product's bill of materials: ``product`` is made of
|
|
13
15
|
``quantity`` ``unit`` of ``composed_of``. The unit is a backend unit id and must
|
|
@@ -120,12 +122,14 @@ class Product:
|
|
|
120
122
|
return "planner/products"
|
|
121
123
|
|
|
122
124
|
def __init__(self, key: str = None, name: str = None, category=None,
|
|
123
|
-
kind: str = None, description: str = None):
|
|
125
|
+
kind: str = None, description: str = None, unit=None):
|
|
124
126
|
self.key: Optional[str] = key
|
|
125
127
|
self.name: Optional[str] = name
|
|
126
128
|
self.category: Optional[str] = _uuid_str(category)
|
|
127
129
|
self.kind: Optional[str] = kind
|
|
128
130
|
self.description: Optional[str] = description
|
|
131
|
+
self.unit: Optional[str] = _uuid_str(unit)
|
|
132
|
+
self.unit_symbol: Optional[str] = None
|
|
129
133
|
self.created_at: Optional[datetime] = None
|
|
130
134
|
self.updated_at: Optional[datetime] = None
|
|
131
135
|
|
|
@@ -141,6 +145,10 @@ class Product:
|
|
|
141
145
|
obj["kind"] = self.kind
|
|
142
146
|
if self.description is not None:
|
|
143
147
|
obj["description"] = self.description
|
|
148
|
+
if self.unit is not None:
|
|
149
|
+
obj["unit"] = self.unit
|
|
150
|
+
if self.unit_symbol is not None:
|
|
151
|
+
obj["unitSymbol"] = self.unit_symbol
|
|
144
152
|
if self.created_at is not None:
|
|
145
153
|
obj["createdAt"] = _ts_out(self.created_at)
|
|
146
154
|
if self.updated_at is not None:
|
|
@@ -155,6 +163,8 @@ class Product:
|
|
|
155
163
|
obj.category = _uuid_str(data.get("category"))
|
|
156
164
|
obj.kind = data.get("kind")
|
|
157
165
|
obj.description = data.get("description")
|
|
166
|
+
obj.unit = _uuid_str(data.get("unit"))
|
|
167
|
+
obj.unit_symbol = data.get("unitSymbol") or data.get("unit_symbol")
|
|
158
168
|
obj.created_at = _ts_in(data.get("createdAt") or data.get("created_at"))
|
|
159
169
|
obj.updated_at = _ts_in(data.get("updatedAt") or data.get("updated_at"))
|
|
160
170
|
return obj
|
|
@@ -766,9 +766,10 @@ class Request(ApiDto):
|
|
|
766
766
|
|
|
767
767
|
if "products" in json_data.keys():
|
|
768
768
|
products = json_data["products"]
|
|
769
|
-
if products is not None and (not isinstance(products, list)
|
|
769
|
+
if products is not None and (not isinstance(products, list) or not products
|
|
770
770
|
or not all(isinstance(p, str) for p in products)):
|
|
771
|
-
raise ValueError(f"'products' must be a list of product keys
|
|
771
|
+
raise ValueError(f"'products' must be a non-empty list of product keys (leave it out "
|
|
772
|
+
f"for every product), got {products!r}"[:300])
|
|
772
773
|
self.products = products
|
|
773
774
|
|
|
774
775
|
if "connections" in json_data.keys():
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.0.dev8"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.0.dev6"
|
|
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.dev6 → wizata_dsapi-2.2.0.dev8}/wizata_dsapi.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|