wizata-dsapi 2.2.0.dev23__tar.gz → 2.2.0.dev24__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.dev23 → wizata_dsapi-2.2.0.dev24}/PKG-INFO +1 -1
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/inventory.py +19 -10
- wizata_dsapi-2.2.0.dev24/wizata_dsapi/version.py +1 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/PKG-INFO +1 -1
- wizata_dsapi-2.2.0.dev23/wizata_dsapi/version.py +0 -1
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/LICENSE.txt +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/README.rst +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/setup.cfg +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/setup.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/api_config.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/api_dto.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/api_interface.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/bucket.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/business_label.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/connection.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/connection_discovery.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/connection_policy.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/connection_types.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/context.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/dashboard.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/dataframe_toolkit.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/datapoint.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/datastore.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/deployment.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/ds_dataframe.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/dsapi_json_encoder.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/edge_config.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/edge_device.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/edge_module.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/edge_package.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/evaluation.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/execution.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/execution_log.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/experiment.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/formula.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/graylog_log.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/group_system.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/ilogger.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/insight.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/mlmodel.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/mobile_asset.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/model_toolkit.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/models/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/models/common.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/notification.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/paged_query_result.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/pipeline.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/pipeline_image.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/plot.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/plots/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/plots/common.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/plots/theme.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/product.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/request.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/script.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/scripts/__init__.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/scripts/common.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/search.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/solution_component.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/streamlit_utils.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/template.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/template_config.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/trigger.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/twin.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/twinregistration.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/user.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/wizard_function.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/wizard_request.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/wizata_dsapi_client.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/words.py +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/requires.txt +0 -0
- {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/top_level.txt +0 -0
|
@@ -334,7 +334,9 @@ class InventoryCountLine:
|
|
|
334
334
|
"""
|
|
335
335
|
One line of a count (DEV-6128): the balance, its storage, and what the movements
|
|
336
336
|
predicted at that moment. ``expected`` is the stock just before this count, without
|
|
337
|
-
it: the count before it plus the movements since, in the datapoint's unit.
|
|
337
|
+
it: the count before it plus the movements since, in the datapoint's unit. With no
|
|
338
|
+
count before it there is nothing to check: ``expected``, ``difference`` and
|
|
339
|
+
``verified`` are None (this count is the opening level).
|
|
338
340
|
"""
|
|
339
341
|
|
|
340
342
|
def __init__(self, balance: InventoryBalance = None, twin_id=None, twin_hardware_id: str = None,
|
|
@@ -425,10 +427,12 @@ class InventoryCount:
|
|
|
425
427
|
|
|
426
428
|
class InventoryCountControl:
|
|
427
429
|
"""
|
|
428
|
-
How a count compares with the movements (DEV-6129): ``previous`` count
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
How a count compares with the movements (DEV-6129): the ``previous`` count, the net
|
|
431
|
+
quantity ``moved`` since it, so ``expected`` = previous + moved, then ``counted``, their
|
|
432
|
+
``difference`` and whether it is ``verified`` (difference 0 after unit rounding).
|
|
433
|
+
|
|
434
|
+
A count with no count before it cannot be checked: it is the opening level, and
|
|
435
|
+
``previous``, ``moved``, ``expected``, ``difference`` and ``verified`` are None.
|
|
432
436
|
"""
|
|
433
437
|
|
|
434
438
|
def __init__(self, previous: InventoryStockCount = None, moved: float = None, expected: float = None,
|
|
@@ -509,9 +513,11 @@ class InventoryHistory:
|
|
|
509
513
|
``opening`` is the stock at ``start``, ``closing`` at ``end``; ``events`` are every
|
|
510
514
|
movement and count in between, oldest first, each with the stock after it. A count
|
|
511
515
|
carries its control against the count before it, even when that one is before
|
|
512
|
-
``start``.
|
|
513
|
-
|
|
514
|
-
and
|
|
516
|
+
``start``. A count with no count before it is the opening level and is not checked.
|
|
517
|
+
``summary`` gives the ``counts``, how many could be ``checked``, how many of those are
|
|
518
|
+
``verified``, and the ``unexplained`` quantity (the sum of their differences). Past the
|
|
519
|
+
event limit, ``truncated`` is true and only the latest events are kept; the summary
|
|
520
|
+
still covers the whole period.
|
|
515
521
|
"""
|
|
516
522
|
|
|
517
523
|
def __init__(self, datapoint: str = None, product: str = None, start=None, end=None, unit=None,
|
|
@@ -528,6 +534,7 @@ class InventoryHistory:
|
|
|
528
534
|
self.events: list = list(events or [])
|
|
529
535
|
self.truncated: bool = truncated
|
|
530
536
|
self.counts: int = 0
|
|
537
|
+
self.checked: int = 0
|
|
531
538
|
self.verified: int = 0
|
|
532
539
|
self.unexplained: float = 0.0
|
|
533
540
|
|
|
@@ -539,7 +546,8 @@ class InventoryHistory:
|
|
|
539
546
|
"opening": {"timestamp": ts(self.start), "quantity": self.opening},
|
|
540
547
|
"closing": {"timestamp": ts(self.end), "quantity": self.closing},
|
|
541
548
|
"events": [e.to_dict() for e in self.events],
|
|
542
|
-
"summary": {"counts": self.counts, "
|
|
549
|
+
"summary": {"counts": self.counts, "checked": self.checked, "verified": self.verified,
|
|
550
|
+
"unexplained": self.unexplained},
|
|
543
551
|
"truncated": self.truncated}
|
|
544
552
|
|
|
545
553
|
@classmethod
|
|
@@ -552,10 +560,11 @@ class InventoryHistory:
|
|
|
552
560
|
events=[InventoryHistoryEvent.from_dict(e) for e in data.get("events") or []],
|
|
553
561
|
truncated=bool(data.get("truncated")))
|
|
554
562
|
obj.counts = summary.get("counts", 0)
|
|
563
|
+
obj.checked = summary.get("checked", 0)
|
|
555
564
|
obj.verified = summary.get("verified", 0)
|
|
556
565
|
obj.unexplained = summary.get("unexplained", 0.0)
|
|
557
566
|
return obj
|
|
558
567
|
|
|
559
568
|
def __repr__(self) -> str:
|
|
560
569
|
return (f"InventoryHistory({self.datapoint!r}, {self.product!r}, {len(self.events)} events, "
|
|
561
|
-
f"{self.verified}/{self.
|
|
570
|
+
f"{self.verified}/{self.checked} checked counts verified)")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.0.dev24"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.0.dev23"
|
|
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.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|