apache-airflow-providers-elasticsearch 5.3.3rc1__tar.gz → 5.3.4rc1__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.
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/PKG-INFO +10 -9
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/README.rst +4 -4
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/airflow/providers/elasticsearch/__init__.py +1 -1
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/airflow/providers/elasticsearch/get_provider_info.py +2 -1
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/airflow/providers/elasticsearch/log/es_response.py +8 -0
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/airflow/providers/elasticsearch/log/es_task_handler.py +2 -0
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/pyproject.toml +6 -5
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/airflow/providers/elasticsearch/LICENSE +0 -0
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/airflow/providers/elasticsearch/hooks/__init__.py +0 -0
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/airflow/providers/elasticsearch/hooks/elasticsearch.py +0 -0
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/airflow/providers/elasticsearch/log/__init__.py +0 -0
- {apache_airflow_providers_elasticsearch-5.3.3rc1 → apache_airflow_providers_elasticsearch-5.3.4rc1}/airflow/providers/elasticsearch/log/es_json_formatter.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: apache-airflow-providers-elasticsearch
|
|
3
|
-
Version: 5.3.
|
|
3
|
+
Version: 5.3.4rc1
|
|
4
4
|
Summary: Provider package apache-airflow-providers-elasticsearch for Apache Airflow
|
|
5
5
|
Keywords: airflow-provider,elasticsearch,airflow,integration
|
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
|
@@ -19,14 +19,15 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
23
|
Classifier: Topic :: System :: Monitoring
|
|
23
|
-
Requires-Dist: apache-airflow-providers-common-sql>=1.3.
|
|
24
|
-
Requires-Dist: apache-airflow>=2.6.
|
|
24
|
+
Requires-Dist: apache-airflow-providers-common-sql>=1.3.1rc0
|
|
25
|
+
Requires-Dist: apache-airflow>=2.6.0rc0
|
|
25
26
|
Requires-Dist: elasticsearch>=8.10,<9
|
|
26
27
|
Requires-Dist: apache-airflow-providers-common-sql ; extra == "common.sql"
|
|
27
28
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
28
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
29
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
29
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.4/changelog.html
|
|
30
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.4
|
|
30
31
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
31
32
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
32
33
|
Project-URL: Twitter, https://twitter.com/ApacheAirflow
|
|
@@ -77,7 +78,7 @@ Provides-Extra: common.sql
|
|
|
77
78
|
|
|
78
79
|
Package ``apache-airflow-providers-elasticsearch``
|
|
79
80
|
|
|
80
|
-
Release: ``5.3.
|
|
81
|
+
Release: ``5.3.4.rc1``
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
`Elasticsearch <https://www.elastic.co/elasticsearch>`__
|
|
@@ -90,7 +91,7 @@ This is a provider package for ``elasticsearch`` provider. All classes for this
|
|
|
90
91
|
are in ``airflow.providers.elasticsearch`` python package.
|
|
91
92
|
|
|
92
93
|
You can find package information and changelog for the provider
|
|
93
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
94
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.4/>`_.
|
|
94
95
|
|
|
95
96
|
Installation
|
|
96
97
|
------------
|
|
@@ -99,7 +100,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
|
|
|
99
100
|
for the minimum Airflow version supported) via
|
|
100
101
|
``pip install apache-airflow-providers-elasticsearch``
|
|
101
102
|
|
|
102
|
-
The package supports the following python versions: 3.8,3.9,3.10,3.11
|
|
103
|
+
The package supports the following python versions: 3.8,3.9,3.10,3.11,3.12
|
|
103
104
|
|
|
104
105
|
Requirements
|
|
105
106
|
------------
|
|
@@ -132,4 +133,4 @@ Dependent package
|
|
|
132
133
|
============================================================================================================ ==============
|
|
133
134
|
|
|
134
135
|
The changelog for the provider package can be found in the
|
|
135
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
136
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.4/changelog.html>`_.
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
Package ``apache-airflow-providers-elasticsearch``
|
|
44
44
|
|
|
45
|
-
Release: ``5.3.
|
|
45
|
+
Release: ``5.3.4.rc1``
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
`Elasticsearch <https://www.elastic.co/elasticsearch>`__
|
|
@@ -55,7 +55,7 @@ This is a provider package for ``elasticsearch`` provider. All classes for this
|
|
|
55
55
|
are in ``airflow.providers.elasticsearch`` python package.
|
|
56
56
|
|
|
57
57
|
You can find package information and changelog for the provider
|
|
58
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
58
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.4/>`_.
|
|
59
59
|
|
|
60
60
|
Installation
|
|
61
61
|
------------
|
|
@@ -64,7 +64,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
|
|
|
64
64
|
for the minimum Airflow version supported) via
|
|
65
65
|
``pip install apache-airflow-providers-elasticsearch``
|
|
66
66
|
|
|
67
|
-
The package supports the following python versions: 3.8,3.9,3.10,3.11
|
|
67
|
+
The package supports the following python versions: 3.8,3.9,3.10,3.11,3.12
|
|
68
68
|
|
|
69
69
|
Requirements
|
|
70
70
|
------------
|
|
@@ -97,4 +97,4 @@ Dependent package
|
|
|
97
97
|
============================================================================================================ ==============
|
|
98
98
|
|
|
99
99
|
The changelog for the provider package can be found in the
|
|
100
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
100
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.4/changelog.html>`_.
|
|
@@ -28,8 +28,9 @@ def get_provider_info():
|
|
|
28
28
|
"name": "Elasticsearch",
|
|
29
29
|
"description": "`Elasticsearch <https://www.elastic.co/elasticsearch>`__\n",
|
|
30
30
|
"state": "ready",
|
|
31
|
-
"source-date-epoch":
|
|
31
|
+
"source-date-epoch": 1712665720,
|
|
32
32
|
"versions": [
|
|
33
|
+
"5.3.4",
|
|
33
34
|
"5.3.3",
|
|
34
35
|
"5.3.2",
|
|
35
36
|
"5.3.1",
|
|
@@ -34,15 +34,18 @@ class AttributeList:
|
|
|
34
34
|
self._l_ = _list
|
|
35
35
|
|
|
36
36
|
def __getitem__(self, k):
|
|
37
|
+
"""Retrieve an item or a slice from the list. If the item is a dictionary, it is wrapped in an AttributeDict."""
|
|
37
38
|
val = self._l_[k]
|
|
38
39
|
if isinstance(val, slice):
|
|
39
40
|
return AttributeList(val)
|
|
40
41
|
return _wrap(val)
|
|
41
42
|
|
|
42
43
|
def __iter__(self):
|
|
44
|
+
"""Provide an iterator for the list or the dictionary."""
|
|
43
45
|
return (_wrap(i) for i in self._l_)
|
|
44
46
|
|
|
45
47
|
def __bool__(self):
|
|
48
|
+
"""Check if the list is non-empty."""
|
|
46
49
|
return bool(self._l_)
|
|
47
50
|
|
|
48
51
|
|
|
@@ -53,12 +56,14 @@ class AttributeDict:
|
|
|
53
56
|
super().__setattr__("_d_", d)
|
|
54
57
|
|
|
55
58
|
def __getattr__(self, attr_name):
|
|
59
|
+
"""Retrieve an item as an attribute from the dictionary."""
|
|
56
60
|
try:
|
|
57
61
|
return self.__getitem__(attr_name)
|
|
58
62
|
except KeyError:
|
|
59
63
|
raise AttributeError(f"{self.__class__.__name__!r} object has no attribute {attr_name!r}")
|
|
60
64
|
|
|
61
65
|
def __getitem__(self, key):
|
|
66
|
+
"""Retrieve an item using a key from the dictionary."""
|
|
62
67
|
return _wrap(self._d_[key])
|
|
63
68
|
|
|
64
69
|
def to_dict(self):
|
|
@@ -120,14 +125,17 @@ class ElasticSearchResponse(AttributeDict):
|
|
|
120
125
|
super().__init__(response)
|
|
121
126
|
|
|
122
127
|
def __iter__(self) -> Iterator[Hit]:
|
|
128
|
+
"""Provide an iterator over the hits in the Elasticsearch response."""
|
|
123
129
|
return iter(self.hits)
|
|
124
130
|
|
|
125
131
|
def __getitem__(self, key):
|
|
132
|
+
"""Retrieve a specific hit or a slice of hits from the Elasticsearch response."""
|
|
126
133
|
if isinstance(key, (slice, int)):
|
|
127
134
|
return self.hits[key]
|
|
128
135
|
return super().__getitem__(key)
|
|
129
136
|
|
|
130
137
|
def __bool__(self):
|
|
138
|
+
"""Evaluate the presence of hits in the Elasticsearch response."""
|
|
131
139
|
return bool(self.hits)
|
|
132
140
|
|
|
133
141
|
@property
|
|
@@ -225,6 +225,8 @@ class ElasticsearchTaskHandler(FileTaskHandler, ExternalLoggingMixin, LoggingMix
|
|
|
225
225
|
else:
|
|
226
226
|
log_id_template = self.log_id_template
|
|
227
227
|
|
|
228
|
+
if TYPE_CHECKING:
|
|
229
|
+
assert ti.task
|
|
228
230
|
try:
|
|
229
231
|
dag = ti.task.dag
|
|
230
232
|
except AttributeError: # ti.task is not always set.
|
|
@@ -28,7 +28,7 @@ build-backend = "flit_core.buildapi"
|
|
|
28
28
|
|
|
29
29
|
[project]
|
|
30
30
|
name = "apache-airflow-providers-elasticsearch"
|
|
31
|
-
version = "5.3.
|
|
31
|
+
version = "5.3.4.rc1"
|
|
32
32
|
description = "Provider package apache-airflow-providers-elasticsearch for Apache Airflow"
|
|
33
33
|
readme = "README.rst"
|
|
34
34
|
authors = [
|
|
@@ -51,18 +51,19 @@ classifiers = [
|
|
|
51
51
|
"Programming Language :: Python :: 3.9",
|
|
52
52
|
"Programming Language :: Python :: 3.10",
|
|
53
53
|
"Programming Language :: Python :: 3.11",
|
|
54
|
+
"Programming Language :: Python :: 3.12",
|
|
54
55
|
"Topic :: System :: Monitoring",
|
|
55
56
|
]
|
|
56
57
|
requires-python = "~=3.8"
|
|
57
58
|
dependencies = [
|
|
58
|
-
"apache-airflow-providers-common-sql>=1.3.
|
|
59
|
-
"apache-airflow>=2.6.
|
|
59
|
+
"apache-airflow-providers-common-sql>=1.3.1rc0",
|
|
60
|
+
"apache-airflow>=2.6.0rc0",
|
|
60
61
|
"elasticsearch>=8.10,<9",
|
|
61
62
|
]
|
|
62
63
|
|
|
63
64
|
[project.urls]
|
|
64
|
-
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
65
|
-
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
65
|
+
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.4"
|
|
66
|
+
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.4/changelog.html"
|
|
66
67
|
"Bug Tracker" = "https://github.com/apache/airflow/issues"
|
|
67
68
|
"Source Code" = "https://github.com/apache/airflow"
|
|
68
69
|
"Slack Chat" = "https://s.apache.org/airflow-slack"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|