apache-airflow-providers-http 4.10.0rc1__py3-none-any.whl → 4.10.1__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 +2 -1
- airflow/providers/http/hooks/http.py +4 -1
- airflow/providers/http/triggers/http.py +1 -1
- {apache_airflow_providers_http-4.10.0rc1.dist-info → apache_airflow_providers_http-4.10.1.dist-info}/METADATA +9 -8
- apache_airflow_providers_http-4.10.1.dist-info/RECORD +15 -0
- apache_airflow_providers_http-4.10.0rc1.dist-info/RECORD +0 -15
- {apache_airflow_providers_http-4.10.0rc1.dist-info → apache_airflow_providers_http-4.10.1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_http-4.10.0rc1.dist-info → apache_airflow_providers_http-4.10.1.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": 1712666022,
|
32
32
|
"versions": [
|
33
|
+
"4.10.1",
|
33
34
|
"4.10.0",
|
34
35
|
"4.9.1",
|
35
36
|
"4.9.0",
|
@@ -318,6 +318,7 @@ class HttpAsyncHook(BaseHook):
|
|
318
318
|
self,
|
319
319
|
endpoint: str | None = None,
|
320
320
|
data: dict[str, Any] | str | None = None,
|
321
|
+
json: dict[str, Any] | str | None = None,
|
321
322
|
headers: dict[str, Any] | None = None,
|
322
323
|
extra_options: dict[str, Any] | None = None,
|
323
324
|
) -> ClientResponse:
|
@@ -325,6 +326,7 @@ class HttpAsyncHook(BaseHook):
|
|
325
326
|
|
326
327
|
:param endpoint: Endpoint to be called, i.e. ``resource/v1/query?``.
|
327
328
|
:param data: Payload to be uploaded or request parameters.
|
329
|
+
:param json: Payload to be uploaded as JSON.
|
328
330
|
:param headers: Additional headers to be passed through as a dict.
|
329
331
|
:param extra_options: Additional kwargs to pass when creating a request.
|
330
332
|
For example, ``run(json=obj)`` is passed as
|
@@ -385,8 +387,9 @@ class HttpAsyncHook(BaseHook):
|
|
385
387
|
for attempt in range(1, 1 + self.retry_limit):
|
386
388
|
response = await request_func(
|
387
389
|
url,
|
388
|
-
json=data if self.method in ("POST", "PUT", "PATCH") else None,
|
389
390
|
params=data if self.method == "GET" else None,
|
391
|
+
data=data if self.method in ("POST", "PUT", "PATCH") else None,
|
392
|
+
json=json,
|
390
393
|
headers=_headers,
|
391
394
|
auth=auth,
|
392
395
|
**extra_options,
|
@@ -108,7 +108,6 @@ class HttpTrigger(BaseTrigger):
|
|
108
108
|
)
|
109
109
|
except Exception as e:
|
110
110
|
yield TriggerEvent({"status": "error", "message": str(e)})
|
111
|
-
# yield TriggerEvent({"status": "error", "message": str(traceback.format_exc())})
|
112
111
|
|
113
112
|
@staticmethod
|
114
113
|
async def _convert_response(client_response: ClientResponse) -> requests.Response:
|
@@ -187,6 +186,7 @@ class HttpSensorTrigger(BaseTrigger):
|
|
187
186
|
extra_options=self.extra_options,
|
188
187
|
)
|
189
188
|
yield TriggerEvent(True)
|
189
|
+
return
|
190
190
|
except AirflowException as exc:
|
191
191
|
if str(exc).startswith("404"):
|
192
192
|
await asyncio.sleep(self.poke_interval)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: apache-airflow-providers-http
|
3
|
-
Version: 4.10.
|
3
|
+
Version: 4.10.1
|
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>
|
@@ -19,15 +19,16 @@ 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
24
|
Requires-Dist: aiohttp>=3.9.2
|
24
|
-
Requires-Dist: apache-airflow>=2.6.0
|
25
|
+
Requires-Dist: apache-airflow>=2.6.0
|
25
26
|
Requires-Dist: asgiref
|
26
27
|
Requires-Dist: requests>=2.27.0,<3
|
27
28
|
Requires-Dist: requests_toolbelt
|
28
29
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
29
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.
|
30
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.
|
30
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.1/changelog.html
|
31
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.1
|
31
32
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
32
33
|
Project-URL: Source Code, https://github.com/apache/airflow
|
33
34
|
Project-URL: Twitter, https://twitter.com/ApacheAirflow
|
@@ -77,7 +78,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
77
78
|
|
78
79
|
Package ``apache-airflow-providers-http``
|
79
80
|
|
80
|
-
Release: ``4.10.
|
81
|
+
Release: ``4.10.1``
|
81
82
|
|
82
83
|
|
83
84
|
`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
|
@@ -90,7 +91,7 @@ This is a provider package for ``http`` provider. All classes for this provider
|
|
90
91
|
are in ``airflow.providers.http`` 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-http/4.10.
|
94
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.1/>`_.
|
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-http``
|
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
|
------------
|
@@ -115,4 +116,4 @@ PIP package Version required
|
|
115
116
|
===================== ==================
|
116
117
|
|
117
118
|
The changelog for the provider package can be found in the
|
118
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.
|
119
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.1/changelog.html>`_.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
airflow/providers/http/LICENSE,sha256=ywUBpKZc7Jb96rVt5I3IDbg7dIJAbUSHkuoDcF3jbH4,13569
|
2
|
+
airflow/providers/http/__init__.py,sha256=VjVtB74wMT7gx0HIHH70keXVrBKyM8fkfl6fg4yF6xk,1580
|
3
|
+
airflow/providers/http/get_provider_info.py,sha256=Kp02NxJ3OqHI3tgzoaXsGMyF3aG-n8s364TriumkMOY,3589
|
4
|
+
airflow/providers/http/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
5
|
+
airflow/providers/http/hooks/http.py,sha256=mfUGvssDv3jxWpJPNnLPr5CdgO95AkTtK3iyT2P6n5k,18541
|
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=Wp29_-4sUDLqoMX9FREqU64yiDAJEJaXxtmLLgk4hXM,7631
|
12
|
+
apache_airflow_providers_http-4.10.1.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
|
13
|
+
apache_airflow_providers_http-4.10.1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
14
|
+
apache_airflow_providers_http-4.10.1.dist-info/METADATA,sha256=Kbs7K4_rNSY9uEo-yg1uRHkn5JJp3mfAhZ9Ofs-krUI,4932
|
15
|
+
apache_airflow_providers_http-4.10.1.dist-info/RECORD,,
|
@@ -1,15 +0,0 @@
|
|
1
|
-
airflow/providers/http/LICENSE,sha256=ywUBpKZc7Jb96rVt5I3IDbg7dIJAbUSHkuoDcF3jbH4,13569
|
2
|
-
airflow/providers/http/__init__.py,sha256=fuFMhTayaaQUBaIJShYfLg5SKCXRlOr7HLViZw7vA4k,1580
|
3
|
-
airflow/providers/http/get_provider_info.py,sha256=prKlMYeM-X_yaJq_A_ylqEiahwo-e2RP7AUDClgDqZk,3567
|
4
|
-
airflow/providers/http/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
5
|
-
airflow/providers/http/hooks/http.py,sha256=4Nk7GEpuUvDBwXnwvdZB-Qaa3adyySN5v5JqgCXpEI0,18407
|
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.10.0rc1.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
|
13
|
-
apache_airflow_providers_http-4.10.0rc1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
14
|
-
apache_airflow_providers_http-4.10.0rc1.dist-info/METADATA,sha256=rzcRY8uyLWkPDhXOdqsZd5kw3wrMXwSqvAmIOKJRmTU,4888
|
15
|
-
apache_airflow_providers_http-4.10.0rc1.dist-info/RECORD,,
|
File without changes
|