cognite-extractor-utils 7.1.1__tar.gz → 7.1.2__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.
Potentially problematic release.
This version of cognite-extractor-utils might be problematic. Click here for more details.
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/PKG-INFO +2 -2
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/__init__.py +1 -1
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/util.py +3 -2
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/pyproject.toml +3 -3
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/LICENSE +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/README.md +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/_inner_util.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/base.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/configtools/__init__.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/configtools/_util.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/configtools/elements.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/configtools/loaders.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/exceptions.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/metrics.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/py.typed +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/statestore.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/threading.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader/__init__.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader/_base.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader/_metrics.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader/assets.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader/events.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader/files.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader/raw.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader/time_series.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader_extractor.py +0 -0
- {cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/uploader_types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cognite-extractor-utils
|
|
3
|
-
Version: 7.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,<
|
|
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)
|
{cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/util.py
RENAMED
|
@@ -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
|
[tool.poetry]
|
|
2
2
|
name = "cognite-extractor-utils"
|
|
3
|
-
version = "7.1.
|
|
3
|
+
version = "7.1.2"
|
|
4
4
|
description = "Utilities for easier development of extractors for CDF"
|
|
5
5
|
authors = ["Mathias Lohne <mathias.lohne@cognite.com>"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -53,7 +53,7 @@ exclude = "tests/*"
|
|
|
53
53
|
|
|
54
54
|
[tool.poetry.dependencies]
|
|
55
55
|
python = "^3.8.0"
|
|
56
|
-
cognite-sdk = "
|
|
56
|
+
cognite-sdk = ">=7.28.1, <7.35.0"
|
|
57
57
|
prometheus-client = ">0.7.0, <=1.0.0"
|
|
58
58
|
arrow = "^1.0.0"
|
|
59
59
|
pyyaml = ">=5.3.0, <7"
|
|
@@ -73,7 +73,7 @@ experimental = ["cognite-sdk-experimental"]
|
|
|
73
73
|
mypy = "1.9.0"
|
|
74
74
|
ruff = "^0.3.0"
|
|
75
75
|
pytest = "^8.0.0"
|
|
76
|
-
pytest-cov = "^
|
|
76
|
+
pytest-cov = "^5.0.0"
|
|
77
77
|
sphinx = "^7.0.0"
|
|
78
78
|
sphinx-rtd-theme = "^2.0.0"
|
|
79
79
|
pre-commit = "^3.3.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/exceptions.py
RENAMED
|
File without changes
|
{cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/metrics.py
RENAMED
|
File without changes
|
{cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/py.typed
RENAMED
|
File without changes
|
{cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/statestore.py
RENAMED
|
File without changes
|
{cognite_extractor_utils-7.1.1 → cognite_extractor_utils-7.1.2}/cognite/extractorutils/threading.py
RENAMED
|
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
|