apache-airflow-providers-http 4.9.0rc2__py3-none-any.whl → 4.9.1rc1__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.
- airflow/providers/http/__init__.py +1 -1
- airflow/providers/http/get_provider_info.py +4 -3
- airflow/providers/http/hooks/http.py +2 -1
- airflow/providers/http/operators/http.py +9 -8
- airflow/providers/http/triggers/http.py +4 -4
- {apache_airflow_providers_http-4.9.0rc2.dist-info → apache_airflow_providers_http-4.9.1rc1.dist-info}/METADATA +10 -10
- apache_airflow_providers_http-4.9.1rc1.dist-info/RECORD +15 -0
- apache_airflow_providers_http-4.9.0rc2.dist-info/RECORD +0 -15
- {apache_airflow_providers_http-4.9.0rc2.dist-info → apache_airflow_providers_http-4.9.1rc1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_http-4.9.0rc2.dist-info → apache_airflow_providers_http-4.9.1rc1.dist-info}/entry_points.txt +0 -0
@@ -28,8 +28,9 @@ def get_provider_info():
|
|
28
28
|
"name": "Hypertext Transfer Protocol (HTTP)",
|
29
29
|
"description": "`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__\n",
|
30
30
|
"state": "ready",
|
31
|
-
"source-date-epoch":
|
31
|
+
"source-date-epoch": 1707636407,
|
32
32
|
"versions": [
|
33
|
+
"4.9.1",
|
33
34
|
"4.9.0",
|
34
35
|
"4.8.0",
|
35
36
|
"4.7.0",
|
@@ -59,9 +60,9 @@ def get_provider_info():
|
|
59
60
|
],
|
60
61
|
"dependencies": [
|
61
62
|
"apache-airflow>=2.6.0",
|
62
|
-
"requests>=2.
|
63
|
+
"requests>=2.27.0,<3",
|
63
64
|
"requests_toolbelt",
|
64
|
-
"aiohttp",
|
65
|
+
"aiohttp>=3.9.2",
|
65
66
|
"asgiref",
|
66
67
|
],
|
67
68
|
"integrations": [
|
@@ -258,7 +258,8 @@ class HttpHook(BaseHook):
|
|
258
258
|
"""
|
259
259
|
self._retry_obj = tenacity.Retrying(**_retry_args)
|
260
260
|
|
261
|
-
|
261
|
+
# TODO: remove ignore type when https://github.com/jd/tenacity/issues/428 is resolved
|
262
|
+
return self._retry_obj(self.run, *args, **kwargs) # type: ignore
|
262
263
|
|
263
264
|
def url_from_endpoint(self, endpoint: str | None) -> str:
|
264
265
|
"""Combine base url with endpoint."""
|
@@ -19,9 +19,9 @@ from __future__ import annotations
|
|
19
19
|
|
20
20
|
import base64
|
21
21
|
import pickle
|
22
|
-
import warnings
|
23
22
|
from typing import TYPE_CHECKING, Any, Callable, Sequence
|
24
23
|
|
24
|
+
from deprecated import deprecated
|
25
25
|
from requests import Response
|
26
26
|
|
27
27
|
from airflow.configuration import conf
|
@@ -233,7 +233,7 @@ class HttpOperator(BaseOperator):
|
|
233
233
|
self, context: Context, event: dict, paginated_responses: None | list[Response] = None
|
234
234
|
):
|
235
235
|
"""
|
236
|
-
|
236
|
+
Execute callback when the trigger fires; returns immediately.
|
237
237
|
|
238
238
|
Relies on trigger to throw an exception, otherwise it assumes execution was successful.
|
239
239
|
"""
|
@@ -291,6 +291,13 @@ class HttpOperator(BaseOperator):
|
|
291
291
|
)
|
292
292
|
|
293
293
|
|
294
|
+
@deprecated(
|
295
|
+
reason=(
|
296
|
+
"Class `SimpleHttpOperator` is deprecated and "
|
297
|
+
"will be removed in a future release. Please use `HttpOperator` instead."
|
298
|
+
),
|
299
|
+
category=AirflowProviderDeprecationWarning,
|
300
|
+
)
|
294
301
|
class SimpleHttpOperator(HttpOperator):
|
295
302
|
"""
|
296
303
|
Calls an endpoint on an HTTP system to execute an action.
|
@@ -345,10 +352,4 @@ class SimpleHttpOperator(HttpOperator):
|
|
345
352
|
"""
|
346
353
|
|
347
354
|
def __init__(self, **kwargs: Any):
|
348
|
-
warnings.warn(
|
349
|
-
"Class `SimpleHttpOperator` is deprecated and "
|
350
|
-
"will be removed in a future release. Please use `HttpOperator` instead.",
|
351
|
-
AirflowProviderDeprecationWarning,
|
352
|
-
stacklevel=2,
|
353
|
-
)
|
354
355
|
super().__init__(**kwargs)
|
@@ -71,7 +71,7 @@ class HttpTrigger(BaseTrigger):
|
|
71
71
|
self.extra_options = extra_options
|
72
72
|
|
73
73
|
def serialize(self) -> tuple[str, dict[str, Any]]:
|
74
|
-
"""
|
74
|
+
"""Serialize HttpTrigger arguments and classpath."""
|
75
75
|
return (
|
76
76
|
"airflow.providers.http.triggers.http.HttpTrigger",
|
77
77
|
{
|
@@ -86,7 +86,7 @@ class HttpTrigger(BaseTrigger):
|
|
86
86
|
)
|
87
87
|
|
88
88
|
async def run(self) -> AsyncIterator[TriggerEvent]:
|
89
|
-
"""
|
89
|
+
"""Make a series of asynchronous http calls via a http hook."""
|
90
90
|
hook = HttpAsyncHook(
|
91
91
|
method=self.method,
|
92
92
|
http_conn_id=self.http_conn_id,
|
@@ -162,7 +162,7 @@ class HttpSensorTrigger(BaseTrigger):
|
|
162
162
|
self.poke_interval = poke_interval
|
163
163
|
|
164
164
|
def serialize(self) -> tuple[str, dict[str, Any]]:
|
165
|
-
"""
|
165
|
+
"""Serialize HttpTrigger arguments and classpath."""
|
166
166
|
return (
|
167
167
|
"airflow.providers.http.triggers.http.HttpSensorTrigger",
|
168
168
|
{
|
@@ -176,7 +176,7 @@ class HttpSensorTrigger(BaseTrigger):
|
|
176
176
|
)
|
177
177
|
|
178
178
|
async def run(self) -> AsyncIterator[TriggerEvent]:
|
179
|
-
"""
|
179
|
+
"""Make a series of asynchronous http calls via an http hook."""
|
180
180
|
hook = self._get_async_hook()
|
181
181
|
while True:
|
182
182
|
try:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: apache-airflow-providers-http
|
3
|
-
Version: 4.9.
|
3
|
+
Version: 4.9.1rc1
|
4
4
|
Summary: Provider package apache-airflow-providers-http for Apache Airflow
|
5
5
|
Keywords: airflow-provider,http,airflow,integration
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
@@ -20,14 +20,14 @@ Classifier: Programming Language :: Python :: 3.9
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.10
|
21
21
|
Classifier: Programming Language :: Python :: 3.11
|
22
22
|
Classifier: Topic :: System :: Monitoring
|
23
|
-
Requires-Dist: aiohttp
|
23
|
+
Requires-Dist: aiohttp>=3.9.2
|
24
24
|
Requires-Dist: apache-airflow>=2.6.0.dev0
|
25
25
|
Requires-Dist: asgiref
|
26
|
-
Requires-Dist: requests>=2.
|
26
|
+
Requires-Dist: requests>=2.27.0,<3
|
27
27
|
Requires-Dist: requests_toolbelt
|
28
28
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
29
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.
|
30
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.
|
29
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1/changelog.html
|
30
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1
|
31
31
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
32
32
|
Project-URL: Source Code, https://github.com/apache/airflow
|
33
33
|
Project-URL: Twitter, https://twitter.com/ApacheAirflow
|
@@ -77,7 +77,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
77
77
|
|
78
78
|
Package ``apache-airflow-providers-http``
|
79
79
|
|
80
|
-
Release: ``4.9.
|
80
|
+
Release: ``4.9.1.rc1``
|
81
81
|
|
82
82
|
|
83
83
|
`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
|
@@ -90,7 +90,7 @@ This is a provider package for ``http`` provider. All classes for this provider
|
|
90
90
|
are in ``airflow.providers.http`` python package.
|
91
91
|
|
92
92
|
You can find package information and changelog for the provider
|
93
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.
|
93
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1/>`_.
|
94
94
|
|
95
95
|
Installation
|
96
96
|
------------
|
@@ -108,11 +108,11 @@ Requirements
|
|
108
108
|
PIP package Version required
|
109
109
|
===================== ==================
|
110
110
|
``apache-airflow`` ``>=2.6.0``
|
111
|
-
``requests`` ``>=2.
|
111
|
+
``requests`` ``>=2.27.0,<3``
|
112
112
|
``requests_toolbelt``
|
113
|
-
``aiohttp``
|
113
|
+
``aiohttp`` ``>=3.9.2``
|
114
114
|
``asgiref``
|
115
115
|
===================== ==================
|
116
116
|
|
117
117
|
The changelog for the provider package can be found in the
|
118
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.
|
118
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1/changelog.html>`_.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
airflow/providers/http/LICENSE,sha256=ywUBpKZc7Jb96rVt5I3IDbg7dIJAbUSHkuoDcF3jbH4,13569
|
2
|
+
airflow/providers/http/__init__.py,sha256=U7E__xhvqe_sZqzWG5-ibJJjjOpxcX5_vsEvNH0pal0,1579
|
3
|
+
airflow/providers/http/get_provider_info.py,sha256=WHkqZjkD-yG1VqoM5afC2bEqUNV_pZKLVmlmJfJhWXM,3545
|
4
|
+
airflow/providers/http/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
5
|
+
airflow/providers/http/hooks/http.py,sha256=9RaVlE99Abz5cn0cGGNAjn241reD3NIkKrQGaKUHtrg,18315
|
6
|
+
airflow/providers/http/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
7
|
+
airflow/providers/http/operators/http.py,sha256=cAXy5UFoZ2MANFzBjpecer4NbSu2BtmvNwNU92Zgb34,17549
|
8
|
+
airflow/providers/http/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
9
|
+
airflow/providers/http/sensors/http.py,sha256=LLrwCko1bqPfiRsWGvG7IVloA-YqV3DgkqqxvOP-Ac4,8109
|
10
|
+
airflow/providers/http/triggers/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
11
|
+
airflow/providers/http/triggers/http.py,sha256=8AQD5ojRCtLnozFQTdGxL_IGoRZYdMw8xhZkgH8ahJU,7702
|
12
|
+
apache_airflow_providers_http-4.9.1rc1.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
|
13
|
+
apache_airflow_providers_http-4.9.1rc1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
14
|
+
apache_airflow_providers_http-4.9.1rc1.dist-info/METADATA,sha256=dzS8y0PKWaWB8BXQaLXjqTCriwMagv98nXccnN54Izk,4882
|
15
|
+
apache_airflow_providers_http-4.9.1rc1.dist-info/RECORD,,
|
@@ -1,15 +0,0 @@
|
|
1
|
-
airflow/providers/http/LICENSE,sha256=ywUBpKZc7Jb96rVt5I3IDbg7dIJAbUSHkuoDcF3jbH4,13569
|
2
|
-
airflow/providers/http/__init__.py,sha256=hcz-k6RFLUhqpSdl0Lb-LBhXQd4FCPcR7ZmhoHyfTmA,1579
|
3
|
-
airflow/providers/http/get_provider_info.py,sha256=Ib52EkxEfa3hlGOxw5v_Q0Rfp7ABKeZzcjEv3Xw7yGo,3514
|
4
|
-
airflow/providers/http/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
5
|
-
airflow/providers/http/hooks/http.py,sha256=dbe9Z2h6rtoxJc9dfIUAmrzK8CaUH-s-TL5Ix2Rtg8A,18205
|
6
|
-
airflow/providers/http/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
7
|
-
airflow/providers/http/operators/http.py,sha256=L7NYQTvgbejfwVqK38BYfvkT94ebEmeuSm7XCt2Tqfc,17560
|
8
|
-
airflow/providers/http/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
9
|
-
airflow/providers/http/sensors/http.py,sha256=LLrwCko1bqPfiRsWGvG7IVloA-YqV3DgkqqxvOP-Ac4,8109
|
10
|
-
airflow/providers/http/triggers/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
11
|
-
airflow/providers/http/triggers/http.py,sha256=r7J4fJ1pN52MFgYLQ7NxgtDcN-kiWyrQmb1JIfizd-I,7707
|
12
|
-
apache_airflow_providers_http-4.9.0rc2.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
|
13
|
-
apache_airflow_providers_http-4.9.0rc2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
14
|
-
apache_airflow_providers_http-4.9.0rc2.dist-info/METADATA,sha256=-1YLk18k_YBDhknjwDf_qUo9XXY8HAC6d3-_XrhtoTs,4846
|
15
|
-
apache_airflow_providers_http-4.9.0rc2.dist-info/RECORD,,
|
File without changes
|