cognite-extractor-utils 7.1.1__py3-none-any.whl → 7.1.2__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.1"
19
+ __version__ = "7.1.2"
20
20
  from .base import Extractor
@@ -16,6 +16,7 @@
16
16
  The ``util`` package contains miscellaneous functions and classes that can some times be useful while developing
17
17
  extractors.
18
18
  """
19
+
19
20
  import logging
20
21
  import random
21
22
  from functools import partial, wraps
@@ -27,7 +28,7 @@ from decorator import decorator
27
28
 
28
29
  from cognite.client import CogniteClient
29
30
  from cognite.client.data_classes import Asset, ExtractionPipelineRun, TimeSeries
30
- from cognite.client.exceptions import CogniteAPIError, CogniteException, CogniteNotFoundError
31
+ from cognite.client.exceptions import CogniteAPIError, CogniteException, CogniteFileUploadError, CogniteNotFoundError
31
32
  from cognite.extractorutils.threading import CancellationToken
32
33
 
33
34
 
@@ -492,7 +493,7 @@ def cognite_exceptions(
492
493
  status_codes = status_codes or [408, 425, 429, 500, 502, 503, 504]
493
494
 
494
495
  def handle_cognite_errors(exception: CogniteException) -> bool:
495
- if isinstance(exception, CogniteAPIError):
496
+ if isinstance(exception, (CogniteAPIError, CogniteFileUploadError)):
496
497
  return exception.code in status_codes
497
498
  return True
498
499
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cognite-extractor-utils
3
- Version: 7.1.1
3
+ Version: 7.1.2
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,<8.0.0)
21
+ Requires-Dist: cognite-sdk (>=7.28.1,<7.35.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=oQBtYGoYu8qJrFRbUFGKJzfMj296pr3ZW1-29B7Xve8,739
1
+ cognite/extractorutils/__init__.py,sha256=Jr9_i-43717ZejlWzgVBNpwiLv8OXGDt6xZDnG1Svzo,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
@@ -20,8 +20,8 @@ cognite/extractorutils/uploader/raw.py,sha256=wFjF90PFTjmByOWx_Y4_YfDJ2w2jl0EQJ2
20
20
  cognite/extractorutils/uploader/time_series.py,sha256=7lLiIcNo1FS6e9zHI3WXbFuqyJFzICHdqIDFYSBVlRM,26548
21
21
  cognite/extractorutils/uploader_extractor.py,sha256=E-mpVvbPg_Tk90U4S9JybV0duptJ2SXE88HB6npE3zI,7732
22
22
  cognite/extractorutils/uploader_types.py,sha256=wxfrsiKPTzG5lmoYtQsxt8Xyj-s5HnaLl8WDzJNrazg,1020
23
- cognite/extractorutils/util.py,sha256=M94tf7LmwbyXIdzI1MBbY9__NDOJveMSkj5Qo7QjUmg,17147
24
- cognite_extractor_utils-7.1.1.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
25
- cognite_extractor_utils-7.1.1.dist-info/METADATA,sha256=RPse9IHtq8sXzedKwzZVn0uf9hdykoLYzpdH8AvAOks,5446
26
- cognite_extractor_utils-7.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
27
- cognite_extractor_utils-7.1.1.dist-info/RECORD,,
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,,