apache-airflow-providers-http 5.2.1rc1__py3-none-any.whl → 5.2.2rc1__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 +0 -51
- airflow/providers/http/hooks/http.py +3 -3
- airflow/providers/http/operators/http.py +1 -2
- airflow/providers/http/sensors/http.py +1 -1
- {apache_airflow_providers_http-5.2.1rc1.dist-info → apache_airflow_providers_http-5.2.2rc1.dist-info}/METADATA +9 -9
- apache_airflow_providers_http-5.2.2rc1.dist-info/RECORD +16 -0
- {apache_airflow_providers_http-5.2.1rc1.dist-info → apache_airflow_providers_http-5.2.2rc1.dist-info}/WHEEL +1 -1
- apache_airflow_providers_http-5.2.1rc1.dist-info/RECORD +0 -16
- {apache_airflow_providers_http-5.2.1rc1.dist-info → apache_airflow_providers_http-5.2.2rc1.dist-info}/entry_points.txt +0 -0
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
29
29
|
|
30
30
|
__all__ = ["__version__"]
|
31
31
|
|
32
|
-
__version__ = "5.2.
|
32
|
+
__version__ = "5.2.2"
|
33
33
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
35
35
|
"2.9.0"
|
@@ -26,49 +26,6 @@ def get_provider_info():
|
|
26
26
|
"package-name": "apache-airflow-providers-http",
|
27
27
|
"name": "Hypertext Transfer Protocol (HTTP)",
|
28
28
|
"description": "`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__\n",
|
29
|
-
"state": "ready",
|
30
|
-
"source-date-epoch": 1741508912,
|
31
|
-
"versions": [
|
32
|
-
"5.2.1",
|
33
|
-
"5.2.0",
|
34
|
-
"5.0.0",
|
35
|
-
"4.13.3",
|
36
|
-
"4.13.2",
|
37
|
-
"4.13.1",
|
38
|
-
"4.13.0",
|
39
|
-
"4.12.0",
|
40
|
-
"4.11.1",
|
41
|
-
"4.11.0",
|
42
|
-
"4.10.1",
|
43
|
-
"4.10.0",
|
44
|
-
"4.9.1",
|
45
|
-
"4.9.0",
|
46
|
-
"4.8.0",
|
47
|
-
"4.7.0",
|
48
|
-
"4.6.0",
|
49
|
-
"4.5.2",
|
50
|
-
"4.5.1",
|
51
|
-
"4.5.0",
|
52
|
-
"4.4.2",
|
53
|
-
"4.4.1",
|
54
|
-
"4.4.0",
|
55
|
-
"4.3.0",
|
56
|
-
"4.2.0",
|
57
|
-
"4.1.1",
|
58
|
-
"4.1.0",
|
59
|
-
"4.0.0",
|
60
|
-
"3.0.0",
|
61
|
-
"2.1.2",
|
62
|
-
"2.1.1",
|
63
|
-
"2.1.0",
|
64
|
-
"2.0.3",
|
65
|
-
"2.0.2",
|
66
|
-
"2.0.1",
|
67
|
-
"2.0.0",
|
68
|
-
"1.1.1",
|
69
|
-
"1.1.0",
|
70
|
-
"1.0.0",
|
71
|
-
],
|
72
29
|
"integrations": [
|
73
30
|
{
|
74
31
|
"integration-name": "Hypertext Transfer Protocol (HTTP)",
|
@@ -105,12 +62,4 @@ def get_provider_info():
|
|
105
62
|
"connection-types": [
|
106
63
|
{"hook-class-name": "airflow.providers.http.hooks.http.HttpHook", "connection-type": "http"}
|
107
64
|
],
|
108
|
-
"dependencies": [
|
109
|
-
"apache-airflow>=2.9.0",
|
110
|
-
"requests>=2.27.0,<3",
|
111
|
-
"requests-toolbelt>=1.0.0",
|
112
|
-
"aiohttp>=3.9.2,!=3.11.0",
|
113
|
-
"asgiref>=2.3.0",
|
114
|
-
],
|
115
|
-
"devel-dependencies": [],
|
116
65
|
}
|
@@ -176,8 +176,8 @@ class HttpHook(BaseHook):
|
|
176
176
|
self.base_url = host
|
177
177
|
else:
|
178
178
|
self.base_url = f"{schema}://{host}" if host else f"{schema}://"
|
179
|
-
|
180
|
-
|
179
|
+
if connection.port:
|
180
|
+
self.base_url = f"{self.base_url}:{connection.port}"
|
181
181
|
parsed = urlparse(self.base_url)
|
182
182
|
if not parsed.scheme:
|
183
183
|
raise ValueError(f"Invalid base URL: Missing scheme in {self.base_url}")
|
@@ -189,7 +189,7 @@ class HttpHook(BaseHook):
|
|
189
189
|
def _extract_auth(self, connection: Connection) -> Any | None:
|
190
190
|
if connection.login:
|
191
191
|
return self.auth_type(connection.login, connection.password)
|
192
|
-
|
192
|
+
if self._auth_type:
|
193
193
|
return self.auth_type()
|
194
194
|
return None
|
195
195
|
|
@@ -276,8 +276,7 @@ class HttpOperator(BaseOperator):
|
|
276
276
|
|
277
277
|
self.paginate_async(context=context, response=response, previous_responses=paginated_responses)
|
278
278
|
return self.process_response(context=context, response=response)
|
279
|
-
|
280
|
-
raise AirflowException(f"Unexpected error in the operation: {event['message']}")
|
279
|
+
raise AirflowException(f"Unexpected error in the operation: {event['message']}")
|
281
280
|
|
282
281
|
def paginate_async(
|
283
282
|
self, context: Context, response: Response, previous_responses: None | list[Response] = None
|
@@ -167,7 +167,7 @@ class HttpSensor(BaseSensorOperator):
|
|
167
167
|
def execute(self, context: Context) -> Any:
|
168
168
|
if not self.deferrable or self.response_check:
|
169
169
|
return super().execute(context=context)
|
170
|
-
|
170
|
+
if not self.poke(context):
|
171
171
|
self.defer(
|
172
172
|
timeout=timedelta(seconds=self.timeout),
|
173
173
|
trigger=HttpSensorTrigger(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: apache-airflow-providers-http
|
3
|
-
Version: 5.2.
|
3
|
+
Version: 5.2.2rc1
|
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>
|
@@ -21,16 +21,16 @@ Classifier: Programming Language :: Python :: 3.11
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
22
22
|
Classifier: Topic :: System :: Monitoring
|
23
23
|
Requires-Dist: apache-airflow>=2.9.0rc0
|
24
|
-
Requires-Dist: requests>=2.
|
24
|
+
Requires-Dist: requests>=2.31.0,<3
|
25
25
|
Requires-Dist: requests-toolbelt>=1.0.0
|
26
26
|
Requires-Dist: aiohttp>=3.9.2,!=3.11.0
|
27
27
|
Requires-Dist: asgiref>=2.3.0
|
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/5.2.
|
30
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.
|
29
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.2/changelog.html
|
30
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.2
|
31
|
+
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
31
32
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
32
33
|
Project-URL: Source Code, https://github.com/apache/airflow
|
33
|
-
Project-URL: Twitter, https://x.com/ApacheAirflow
|
34
34
|
Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
35
35
|
|
36
36
|
|
@@ -58,7 +58,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
58
58
|
|
59
59
|
Package ``apache-airflow-providers-http``
|
60
60
|
|
61
|
-
Release: ``5.2.
|
61
|
+
Release: ``5.2.2``
|
62
62
|
|
63
63
|
|
64
64
|
`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
|
@@ -71,7 +71,7 @@ This is a provider package for ``http`` provider. All classes for this provider
|
|
71
71
|
are in ``airflow.providers.http`` python package.
|
72
72
|
|
73
73
|
You can find package information and changelog for the provider
|
74
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.
|
74
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.2/>`_.
|
75
75
|
|
76
76
|
Installation
|
77
77
|
------------
|
@@ -89,12 +89,12 @@ Requirements
|
|
89
89
|
PIP package Version required
|
90
90
|
===================== ====================
|
91
91
|
``apache-airflow`` ``>=2.9.0``
|
92
|
-
``requests`` ``>=2.
|
92
|
+
``requests`` ``>=2.31.0,<3``
|
93
93
|
``requests-toolbelt`` ``>=1.0.0``
|
94
94
|
``aiohttp`` ``!=3.11.0,>=3.9.2``
|
95
95
|
``asgiref`` ``>=2.3.0``
|
96
96
|
===================== ====================
|
97
97
|
|
98
98
|
The changelog for the provider package can be found in the
|
99
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.
|
99
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.2/changelog.html>`_.
|
100
100
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
airflow/providers/http/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
2
|
+
airflow/providers/http/__init__.py,sha256=Z9Adu1cOTraEmLNqwiqa6DBqG9RCo7K8sdnTMKjtQRU,1491
|
3
|
+
airflow/providers/http/exceptions.py,sha256=WnIEj0cnAS746uRF1661tCEBc_Uuo0bMEIMrQyEb9nc,1084
|
4
|
+
airflow/providers/http/get_provider_info.py,sha256=eJrWksE0KVCB32BavHb64imCUZZIoWyJYnsBj8UsS9Y,2657
|
5
|
+
airflow/providers/http/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
6
|
+
airflow/providers/http/hooks/http.py,sha256=pWp9PNUV-UlVvRvk6QF4zFgoy4GLo5NF96XwvILKbr4,20778
|
7
|
+
airflow/providers/http/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
8
|
+
airflow/providers/http/operators/http.py,sha256=994QNohMBXi6XeBt5GXLJ_osq0FRBKz0iIF8N9LpHjM,14632
|
9
|
+
airflow/providers/http/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
10
|
+
airflow/providers/http/sensors/http.py,sha256=sPGbe9Fh0QiorQCQsSZ2Ue_K4NPEyhksa0Cd1A7k5L0,8337
|
11
|
+
airflow/providers/http/triggers/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
12
|
+
airflow/providers/http/triggers/http.py,sha256=uOhEbTyJKhVDcRt28H04l7osD4oIimPJWiRLeF7ay8s,7964
|
13
|
+
apache_airflow_providers_http-5.2.2rc1.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
|
14
|
+
apache_airflow_providers_http-5.2.2rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
15
|
+
apache_airflow_providers_http-5.2.2rc1.dist-info/METADATA,sha256=Vfvap89Zb2Dn1iUhdXTvHslBCAu130mTozZGqSpeMo8,4111
|
16
|
+
apache_airflow_providers_http-5.2.2rc1.dist-info/RECORD,,
|
@@ -1,16 +0,0 @@
|
|
1
|
-
airflow/providers/http/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
2
|
-
airflow/providers/http/__init__.py,sha256=CLkJ9urneY3U3l8kkWIOeh-S3n3QOGcbZ0TlBmyupu8,1491
|
3
|
-
airflow/providers/http/exceptions.py,sha256=WnIEj0cnAS746uRF1661tCEBc_Uuo0bMEIMrQyEb9nc,1084
|
4
|
-
airflow/providers/http/get_provider_info.py,sha256=9UG3OBXl-7WVMvJ0DvzwnLXEpTEqIrO7wfbZCMZ7tII,3837
|
5
|
-
airflow/providers/http/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
6
|
-
airflow/providers/http/hooks/http.py,sha256=RgPIy0ccxojA5ywIRAmQCtOsTzKyPj5tb_YBivPcyPg,20788
|
7
|
-
airflow/providers/http/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
8
|
-
airflow/providers/http/operators/http.py,sha256=d8PHAnwIMts0G7TUxLO7RUNkm2hEQY2sRGCWB9E36fQ,14650
|
9
|
-
airflow/providers/http/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
10
|
-
airflow/providers/http/sensors/http.py,sha256=g8mt1X-hV-gQGw9bIcFZQF9L1mtR00ZUHzIPWK4waKE,8339
|
11
|
-
airflow/providers/http/triggers/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
12
|
-
airflow/providers/http/triggers/http.py,sha256=uOhEbTyJKhVDcRt28H04l7osD4oIimPJWiRLeF7ay8s,7964
|
13
|
-
apache_airflow_providers_http-5.2.1rc1.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
|
14
|
-
apache_airflow_providers_http-5.2.1rc1.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
|
15
|
-
apache_airflow_providers_http-5.2.1rc1.dist-info/METADATA,sha256=g9n_Nx8u65XSXtFdR6JX_ev65ag1qbGtilDvgjMUWPg,4107
|
16
|
-
apache_airflow_providers_http-5.2.1rc1.dist-info/RECORD,,
|