cognite-extractor-utils 7.1.2__py3-none-any.whl → 7.1.3__py3-none-any.whl

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.

Potentially problematic release.


This version of cognite-extractor-utils might be problematic. Click here for more details.

@@ -16,5 +16,5 @@
16
16
  Cognite extractor utils is a Python package that simplifies the development of new extractors.
17
17
  """
18
18
 
19
- __version__ = "7.1.2"
19
+ __version__ = "7.1.3"
20
20
  from .base import Extractor
@@ -22,6 +22,7 @@ from cognite.client.data_classes import (
22
22
  Sequence,
23
23
  SequenceData,
24
24
  SequenceRows,
25
+ StatusCode,
25
26
  TimeSeries,
26
27
  )
27
28
  from cognite.client.exceptions import CogniteDuplicatedError, CogniteNotFoundError
@@ -51,7 +52,10 @@ MIN_DATAPOINT_VALUE = -1e100
51
52
 
52
53
  TimeStamp = Union[int, datetime]
53
54
 
54
- DataPoint = Union[Tuple[TimeStamp, float], Tuple[TimeStamp, str]]
55
+ DataPointWithoutStatus = Union[Tuple[TimeStamp, float], Tuple[TimeStamp, str], Tuple[TimeStamp, int]]
56
+ FullStatusCode = Union[StatusCode, int]
57
+ DataPointWithStatus = Union[Tuple[TimeStamp, float, FullStatusCode], Tuple[TimeStamp, str, FullStatusCode]]
58
+ DataPoint = Union[DataPointWithoutStatus, DataPointWithStatus]
55
59
  DataPointList = List[DataPoint]
56
60
 
57
61
 
@@ -283,7 +287,7 @@ class TimeSeriesUploadQueue(AbstractUploadQueue):
283
287
  with self.lock:
284
288
  upload_this = _upload_batch(
285
289
  [
286
- {either_id.type(): either_id.content(), "datapoints": datapoints}
290
+ {either_id.type(): either_id.content(), "datapoints": list(datapoints)}
287
291
  for either_id, datapoints in self.upload_queue.items()
288
292
  if len(datapoints) > 0
289
293
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cognite-extractor-utils
3
- Version: 7.1.2
3
+ Version: 7.1.3
4
4
  Summary: Utilities for easier development of extractors for CDF
5
5
  Home-page: https://github.com/cognitedata/python-extractor-utils
6
6
  License: Apache-2.0
@@ -18,7 +18,7 @@ Provides-Extra: experimental
18
18
  Requires-Dist: arrow (>=1.0.0,<2.0.0)
19
19
  Requires-Dist: azure-identity (>=1.14.0,<2.0.0)
20
20
  Requires-Dist: azure-keyvault-secrets (>=4.7.0,<5.0.0)
21
- Requires-Dist: cognite-sdk (>=7.28.1,<7.35.0)
21
+ Requires-Dist: cognite-sdk (>=7.41.0,<8.0.0)
22
22
  Requires-Dist: dacite (>=1.6.0,<2.0.0)
23
23
  Requires-Dist: decorator (>=5.1.1,<6.0.0)
24
24
  Requires-Dist: more-itertools (>=10.0.0,<11.0.0)
@@ -1,4 +1,4 @@
1
- cognite/extractorutils/__init__.py,sha256=Jr9_i-43717ZejlWzgVBNpwiLv8OXGDt6xZDnG1Svzo,739
1
+ cognite/extractorutils/__init__.py,sha256=-IiYwZmQ1ixTVlM0nkB38zxXs4AsB04AKutQnXLoKTM,739
2
2
  cognite/extractorutils/_inner_util.py,sha256=gmz6aqS7jDNsg8z4RHgJjMFohDLOMiaU4gMWBhg3xcE,1558
3
3
  cognite/extractorutils/base.py,sha256=0t9HUANPLKSbAyfDtb0X7stwuarW1NkamRF3vyXyQzc,16148
4
4
  cognite/extractorutils/configtools/__init__.py,sha256=L-daaqInIsmHcjb2forJeY0fW8tz1mlteOUo7IsWnrU,3059
@@ -17,11 +17,11 @@ cognite/extractorutils/uploader/assets.py,sha256=2E90N1kxsaA6Ah4h0_r_dTVhDYY_68I
17
17
  cognite/extractorutils/uploader/events.py,sha256=NZP2tMoU_rh_rb-EZiUBsOT5KdNABHN4c9Oddk0OsdE,5680
18
18
  cognite/extractorutils/uploader/files.py,sha256=-yskmzcS9FcAsT2wmu3G4pd9cHJeiNqxmrERoRC72Dg,18417
19
19
  cognite/extractorutils/uploader/raw.py,sha256=wFjF90PFTjmByOWx_Y4_YfDJ2w2jl0EQJ2Tjx2MP2PM,6738
20
- cognite/extractorutils/uploader/time_series.py,sha256=7lLiIcNo1FS6e9zHI3WXbFuqyJFzICHdqIDFYSBVlRM,26548
20
+ cognite/extractorutils/uploader/time_series.py,sha256=WAtEQy7k5IjG-sw1oWwCujIM6PjHZYl4LKa4wy2tBPw,26817
21
21
  cognite/extractorutils/uploader_extractor.py,sha256=E-mpVvbPg_Tk90U4S9JybV0duptJ2SXE88HB6npE3zI,7732
22
22
  cognite/extractorutils/uploader_types.py,sha256=wxfrsiKPTzG5lmoYtQsxt8Xyj-s5HnaLl8WDzJNrazg,1020
23
23
  cognite/extractorutils/util.py,sha256=p7AGEgeIU0bNjuFJcFR3V5ZYr6QDj_ZC3zGxRJTf4yk,17198
24
- cognite_extractor_utils-7.1.2.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
25
- cognite_extractor_utils-7.1.2.dist-info/METADATA,sha256=qMnjci_XOaGrKVmI6cqMdWN2nwZjPvmR2qPljGE2pP0,5447
26
- cognite_extractor_utils-7.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
27
- cognite_extractor_utils-7.1.2.dist-info/RECORD,,
24
+ cognite_extractor_utils-7.1.3.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
25
+ cognite_extractor_utils-7.1.3.dist-info/METADATA,sha256=yHvMX5Sjas6K_XAFBdxNt-YFxe9q1QzI7k7PyDM6dx0,5446
26
+ cognite_extractor_utils-7.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
27
+ cognite_extractor_utils-7.1.3.dist-info/RECORD,,