apache-airflow-providers-http 5.2.0rc1__py3-none-any.whl → 5.2.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.
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "5.2.0"
32
+ __version__ = "5.2.1"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.9.0"
@@ -27,8 +27,9 @@ def get_provider_info():
27
27
  "name": "Hypertext Transfer Protocol (HTTP)",
28
28
  "description": "`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__\n",
29
29
  "state": "ready",
30
- "source-date-epoch": 1739963578,
30
+ "source-date-epoch": 1741508912,
31
31
  "versions": [
32
+ "5.2.1",
32
33
  "5.2.0",
33
34
  "5.0.0",
34
35
  "4.13.3",
@@ -107,8 +108,9 @@ def get_provider_info():
107
108
  "dependencies": [
108
109
  "apache-airflow>=2.9.0",
109
110
  "requests>=2.27.0,<3",
110
- "requests-toolbelt>=0.4.0",
111
+ "requests-toolbelt>=1.0.0",
111
112
  "aiohttp>=3.9.2,!=3.11.0",
112
113
  "asgiref>=2.3.0",
113
114
  ],
115
+ "devel-dependencies": [],
114
116
  }
@@ -30,6 +30,7 @@ from airflow.sensors.base import BaseSensorOperator
30
30
  if TYPE_CHECKING:
31
31
  try:
32
32
  from airflow.sdk.definitions.context import Context
33
+ from airflow.sensors.base import PokeReturnValue
33
34
  except ImportError:
34
35
  # TODO: Remove once provider drops support for Airflow 2
35
36
  from airflow.utils.context import Context
@@ -102,7 +103,7 @@ class HttpSensor(BaseSensorOperator):
102
103
  request_kwargs: dict[str, Any] | None = None,
103
104
  headers: dict[str, Any] | None = None,
104
105
  response_error_codes_allowlist: list[str] | None = None,
105
- response_check: Callable[..., bool] | None = None,
106
+ response_check: Callable[..., bool | PokeReturnValue] | None = None,
106
107
  extra_options: dict[str, Any] | None = None,
107
108
  tcp_keep_alive: bool = True,
108
109
  tcp_keep_alive_idle: int = 120,
@@ -129,7 +130,7 @@ class HttpSensor(BaseSensorOperator):
129
130
  self.deferrable = deferrable
130
131
  self.request_kwargs = request_kwargs or {}
131
132
 
132
- def poke(self, context: Context) -> bool:
133
+ def poke(self, context: Context) -> bool | PokeReturnValue:
133
134
  from airflow.utils.operator_helpers import determine_kwargs
134
135
 
135
136
  hook = HttpHook(
@@ -163,9 +164,9 @@ class HttpSensor(BaseSensorOperator):
163
164
 
164
165
  return True
165
166
 
166
- def execute(self, context: Context) -> None:
167
+ def execute(self, context: Context) -> Any:
167
168
  if not self.deferrable or self.response_check:
168
- super().execute(context=context)
169
+ return super().execute(context=context)
169
170
  elif not self.poke(context):
170
171
  self.defer(
171
172
  timeout=timedelta(seconds=self.timeout),
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-http
3
- Version: 5.2.0rc1
3
+ Version: 5.2.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>
@@ -22,44 +22,43 @@ Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Topic :: System :: Monitoring
23
23
  Requires-Dist: apache-airflow>=2.9.0rc0
24
24
  Requires-Dist: requests>=2.27.0,<3
25
- Requires-Dist: requests-toolbelt>=0.4.0
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.0/changelog.html
30
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0
29
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1/changelog.html
30
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.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://x.com/ApacheAirflow
34
34
  Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
35
35
 
36
36
 
37
- .. Licensed to the Apache Software Foundation (ASF) under one
38
- or more contributor license agreements. See the NOTICE file
39
- distributed with this work for additional information
40
- regarding copyright ownership. The ASF licenses this file
41
- to you under the Apache License, Version 2.0 (the
42
- "License"); you may not use this file except in compliance
43
- with the License. You may obtain a copy of the License at
37
+ .. Licensed to the Apache Software Foundation (ASF) under one
38
+ or more contributor license agreements. See the NOTICE file
39
+ distributed with this work for additional information
40
+ regarding copyright ownership. The ASF licenses this file
41
+ to you under the Apache License, Version 2.0 (the
42
+ "License"); you may not use this file except in compliance
43
+ with the License. You may obtain a copy of the License at
44
44
 
45
- .. http://www.apache.org/licenses/LICENSE-2.0
45
+ .. http://www.apache.org/licenses/LICENSE-2.0
46
46
 
47
- .. Unless required by applicable law or agreed to in writing,
48
- software distributed under the License is distributed on an
49
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
50
- KIND, either express or implied. See the License for the
51
- specific language governing permissions and limitations
52
- under the License.
47
+ .. Unless required by applicable law or agreed to in writing,
48
+ software distributed under the License is distributed on an
49
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
50
+ KIND, either express or implied. See the License for the
51
+ specific language governing permissions and limitations
52
+ under the License.
53
53
 
54
- .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
55
-
56
- .. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
57
- `PROVIDER_README_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
54
+ .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
58
55
 
56
+ .. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
57
+ ``PROVIDER_README_TEMPLATE.rst.jinja2`` IN the ``dev/breeze/src/airflow_breeze/templates`` DIRECTORY
59
58
 
60
59
  Package ``apache-airflow-providers-http``
61
60
 
62
- Release: ``5.2.0``
61
+ Release: ``5.2.1``
63
62
 
64
63
 
65
64
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
@@ -72,7 +71,7 @@ This is a provider package for ``http`` provider. All classes for this provider
72
71
  are in ``airflow.providers.http`` python package.
73
72
 
74
73
  You can find package information and changelog for the provider
75
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0/>`_.
74
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1/>`_.
76
75
 
77
76
  Installation
78
77
  ------------
@@ -91,11 +90,11 @@ PIP package Version required
91
90
  ===================== ====================
92
91
  ``apache-airflow`` ``>=2.9.0``
93
92
  ``requests`` ``>=2.27.0,<3``
94
- ``requests-toolbelt`` ``>=0.4.0``
93
+ ``requests-toolbelt`` ``>=1.0.0``
95
94
  ``aiohttp`` ``!=3.11.0,>=3.9.2``
96
95
  ``asgiref`` ``>=2.3.0``
97
96
  ===================== ====================
98
97
 
99
98
  The changelog for the provider package can be found in the
100
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0/changelog.html>`_.
99
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1/changelog.html>`_.
101
100
 
@@ -1,16 +1,16 @@
1
1
  airflow/providers/http/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
- airflow/providers/http/__init__.py,sha256=pa7UNoBEbQ0auhDXexqrUNS8vw5R3RaamnJ8kquAA48,1491
2
+ airflow/providers/http/__init__.py,sha256=CLkJ9urneY3U3l8kkWIOeh-S3n3QOGcbZ0TlBmyupu8,1491
3
3
  airflow/providers/http/exceptions.py,sha256=WnIEj0cnAS746uRF1661tCEBc_Uuo0bMEIMrQyEb9nc,1084
4
- airflow/providers/http/get_provider_info.py,sha256=qV688QITJrCeEudyM10Y4SFDmyHP2UJHkhstIn5eIHQ,3782
4
+ airflow/providers/http/get_provider_info.py,sha256=9UG3OBXl-7WVMvJ0DvzwnLXEpTEqIrO7wfbZCMZ7tII,3837
5
5
  airflow/providers/http/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
6
6
  airflow/providers/http/hooks/http.py,sha256=RgPIy0ccxojA5ywIRAmQCtOsTzKyPj5tb_YBivPcyPg,20788
7
7
  airflow/providers/http/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
8
8
  airflow/providers/http/operators/http.py,sha256=d8PHAnwIMts0G7TUxLO7RUNkm2hEQY2sRGCWB9E36fQ,14650
9
9
  airflow/providers/http/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
10
- airflow/providers/http/sensors/http.py,sha256=cPB2e01mH92aQYNSNkQsNmvJUTVtEvmX47Dd4rhbBYU,8240
10
+ airflow/providers/http/sensors/http.py,sha256=g8mt1X-hV-gQGw9bIcFZQF9L1mtR00ZUHzIPWK4waKE,8339
11
11
  airflow/providers/http/triggers/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
12
12
  airflow/providers/http/triggers/http.py,sha256=uOhEbTyJKhVDcRt28H04l7osD4oIimPJWiRLeF7ay8s,7964
13
- apache_airflow_providers_http-5.2.0rc1.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
14
- apache_airflow_providers_http-5.2.0rc1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
15
- apache_airflow_providers_http-5.2.0rc1.dist-info/METADATA,sha256=utdPcZSZFpf572nMvzIBSU2_33gGRA4edrkSSejRQz0,4121
16
- apache_airflow_providers_http-5.2.0rc1.dist-info/RECORD,,
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,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.10.1
2
+ Generator: flit 3.11.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any