cognite-extractor-utils 7.5.11__tar.gz → 7.5.12__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.5.11 → cognite_extractor_utils-7.5.12}/PKG-INFO +1 -10
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/README.md +0 -9
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/__init__.py +1 -1
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/base.py +3 -1
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/time_series.py +1 -1
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/pyproject.toml +1 -1
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/.gitignore +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/LICENSE +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/_inner_util.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/configtools/__init__.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/configtools/_util.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/configtools/elements.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/configtools/loaders.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/configtools/validators.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/exceptions.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/metrics.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/py.typed +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/statestore/__init__.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/statestore/_base.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/statestore/hashing.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/statestore/watermark.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/threading.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/__init__.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/configuration/__init__.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/configuration/exceptions.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/configuration/loaders.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/configuration/models.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/core/__init__.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/core/_dto.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/core/_messaging.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/core/base.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/core/errors.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/core/logger.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/core/restart_policy.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/core/runtime.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/core/tasks.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/scheduling/__init__.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/scheduling/_scheduler.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/unstable/scheduling/_schedules.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/__init__.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/_base.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/_metrics.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/assets.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/data_modeling.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/events.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/files.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/raw.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader/upload_failure_handler.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader_extractor.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/uploader_types.py +0 -0
- {cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/util.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognite-extractor-utils
|
|
3
|
-
Version: 7.5.
|
|
3
|
+
Version: 7.5.12
|
|
4
4
|
Summary: Utilities for easier development of extractors for CDF
|
|
5
5
|
Project-URL: repository, https://github.com/cognitedata/python-extractor-utils
|
|
6
6
|
Author-email: Mathias Lohne <mathias.lohne@cognite.com>
|
|
@@ -72,15 +72,6 @@ project, and then set up a poetry environment, git repository, commit hooks with
|
|
|
72
72
|
template.
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
### Extensions
|
|
76
|
-
|
|
77
|
-
Some source systems have a lot in common, such as RESTful APIs or systems exposing as MQTT. We therefore have extensions
|
|
78
|
-
to `extractor-utils` tailroed to these protocols. These can be found in separate packages:
|
|
79
|
-
|
|
80
|
-
* [REST extension](https://github.com/cognitedata/python-extractor-utils-rest)
|
|
81
|
-
* [MQTT extension](https://github.com/cognitedata/python-extractor-utils-mqtt)
|
|
82
|
-
|
|
83
|
-
|
|
84
75
|
## Contributing
|
|
85
76
|
|
|
86
77
|
The package is open source under the [Apache 2.0 license](./LICENSE), and contribtuions are welcome.
|
|
@@ -39,15 +39,6 @@ project, and then set up a poetry environment, git repository, commit hooks with
|
|
|
39
39
|
template.
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
### Extensions
|
|
43
|
-
|
|
44
|
-
Some source systems have a lot in common, such as RESTful APIs or systems exposing as MQTT. We therefore have extensions
|
|
45
|
-
to `extractor-utils` tailroed to these protocols. These can be found in separate packages:
|
|
46
|
-
|
|
47
|
-
* [REST extension](https://github.com/cognitedata/python-extractor-utils-rest)
|
|
48
|
-
* [MQTT extension](https://github.com/cognitedata/python-extractor-utils-mqtt)
|
|
49
|
-
|
|
50
|
-
|
|
51
42
|
## Contributing
|
|
52
43
|
|
|
53
44
|
The package is open source under the [Apache 2.0 license](./LICENSE), and contribtuions are welcome.
|
{cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/base.py
RENAMED
|
@@ -90,6 +90,7 @@ class Extractor(Generic[CustomConfigClass]):
|
|
|
90
90
|
handle_interrupts: bool = True,
|
|
91
91
|
reload_config_interval: int | None = 300,
|
|
92
92
|
reload_config_action: ReloadConfigAction = ReloadConfigAction.DO_NOTHING,
|
|
93
|
+
success_message: str = "Successful shutdown",
|
|
93
94
|
):
|
|
94
95
|
self.name = name
|
|
95
96
|
self.description = description
|
|
@@ -104,6 +105,7 @@ class Extractor(Generic[CustomConfigClass]):
|
|
|
104
105
|
self.handle_interrupts = handle_interrupts
|
|
105
106
|
self.reload_config_interval = reload_config_interval
|
|
106
107
|
self.reload_config_action = reload_config_action
|
|
108
|
+
self.success_message = success_message
|
|
107
109
|
|
|
108
110
|
self.started = False
|
|
109
111
|
self.configured_logger = False
|
|
@@ -218,7 +220,7 @@ class Extractor(Generic[CustomConfigClass]):
|
|
|
218
220
|
ExtractionPipelineRun(
|
|
219
221
|
extpipe_external_id=self.extraction_pipeline.external_id,
|
|
220
222
|
status="success",
|
|
221
|
-
message=
|
|
223
|
+
message=self.success_message,
|
|
222
224
|
)
|
|
223
225
|
)
|
|
224
226
|
|
|
@@ -72,7 +72,7 @@ def default_time_series_factory(external_id: str, datapoints: DataPointList) ->
|
|
|
72
72
|
A TimeSeries object with external_id set, and the is_string automatically detected
|
|
73
73
|
"""
|
|
74
74
|
is_string = (
|
|
75
|
-
isinstance(datapoints[0].get("value"), str)
|
|
75
|
+
isinstance(datapoints[0].get("value"), str)
|
|
76
76
|
if isinstance(datapoints[0], dict)
|
|
77
77
|
else isinstance(datapoints[0][1], str)
|
|
78
78
|
)
|
|
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
|
{cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/metrics.py
RENAMED
|
File without changes
|
{cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/py.typed
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
|
|
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
|
{cognite_extractor_utils-7.5.11 → cognite_extractor_utils-7.5.12}/cognite/extractorutils/util.py
RENAMED
|
File without changes
|