apache-airflow-providers-http 5.3.2__py3-none-any.whl → 5.3.3rc1__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.3.2"
32
+ __version__ = "5.3.3"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.10.0"
@@ -19,7 +19,7 @@ from __future__ import annotations
19
19
 
20
20
  import copy
21
21
  from collections.abc import Callable
22
- from typing import TYPE_CHECKING, Any
22
+ from typing import TYPE_CHECKING, Any, cast
23
23
  from urllib.parse import urlparse
24
24
 
25
25
  import aiohttp
@@ -34,11 +34,7 @@ from requests_toolbelt.adapters.socket_options import TCPKeepAliveAdapter
34
34
 
35
35
  from airflow.exceptions import AirflowException
36
36
  from airflow.providers.http.exceptions import HttpErrorException, HttpMethodException
37
-
38
- try:
39
- from airflow.sdk import BaseHook
40
- except ImportError:
41
- from airflow.hooks.base import BaseHook as BaseHook # type: ignore
37
+ from airflow.providers.http.version_compat import BaseHook
42
38
 
43
39
  if TYPE_CHECKING:
44
40
  from aiohttp.client_reqrep import ClientResponse
@@ -239,7 +235,7 @@ class HttpHook(BaseHook):
239
235
  session.stream = self.merged_extra.get("stream", False)
240
236
  session.verify = self.merged_extra.get("verify", self.merged_extra.get("verify_ssl", True))
241
237
  session.cert = self.merged_extra.get("cert", None)
242
- session.max_redirects = self.merged_extra.get("max_redirects", DEFAULT_REDIRECT_LIMIT)
238
+ session.max_redirects = cast("int", self.merged_extra.get("max_redirects", DEFAULT_REDIRECT_LIMIT))
243
239
  session.trust_env = self.merged_extra.get("trust_env", True)
244
240
 
245
241
  try:
@@ -383,7 +379,7 @@ class HttpHook(BaseHook):
383
379
  self._retry_obj = tenacity.Retrying(**_retry_args)
384
380
 
385
381
  # TODO: remove ignore type when https://github.com/jd/tenacity/issues/428 is resolved
386
- return self._retry_obj(self.run, *args, **kwargs) # type: ignore
382
+ return self._retry_obj(self.run, *args, **kwargs)
387
383
 
388
384
  def url_from_endpoint(self, endpoint: str | None) -> str:
389
385
  """Combine base url with endpoint."""
@@ -27,13 +27,8 @@ from requests import Response
27
27
 
28
28
  from airflow.configuration import conf
29
29
  from airflow.exceptions import AirflowException
30
-
31
- try:
32
- from airflow.sdk import BaseHook
33
- except ImportError:
34
- from airflow.hooks.base import BaseHook # type: ignore[attr-defined,no-redef]
35
30
  from airflow.providers.http.triggers.http import HttpTrigger, serialize_auth_type
36
- from airflow.providers.http.version_compat import BaseOperator
31
+ from airflow.providers.http.version_compat import BaseHook, BaseOperator
37
32
  from airflow.utils.helpers import merge_dicts
38
33
 
39
34
  if TYPE_CHECKING:
@@ -33,11 +33,17 @@ def get_base_airflow_version_tuple() -> tuple[int, int, int]:
33
33
 
34
34
 
35
35
  AIRFLOW_V_3_0_PLUS = get_base_airflow_version_tuple() >= (3, 0, 0)
36
+ AIRFLOW_V_3_1_PLUS: bool = get_base_airflow_version_tuple() >= (3, 1, 0)
37
+
38
+ if AIRFLOW_V_3_1_PLUS:
39
+ from airflow.sdk import BaseHook
40
+ else:
41
+ from airflow.hooks.base import BaseHook # type: ignore[attr-defined,no-redef]
36
42
 
37
43
  if AIRFLOW_V_3_0_PLUS:
38
44
  from airflow.sdk import BaseOperator, BaseSensorOperator
39
45
  else:
40
- from airflow.models import BaseOperator # type: ignore[no-redef]
46
+ from airflow.models import BaseOperator
41
47
  from airflow.sensors.base import BaseSensorOperator # type: ignore[no-redef]
42
48
 
43
- __all__ = ["AIRFLOW_V_3_0_PLUS", "BaseOperator", "BaseSensorOperator"]
49
+ __all__ = ["AIRFLOW_V_3_0_PLUS", "AIRFLOW_V_3_1_PLUS", "BaseHook", "BaseOperator", "BaseSensorOperator"]
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-http
3
- Version: 5.3.2
3
+ Version: 5.3.3rc1
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>
7
7
  Maintainer-email: Apache Software Foundation <dev@airflow.apache.org>
8
- Requires-Python: ~=3.10
8
+ Requires-Python: >=3.10
9
9
  Description-Content-Type: text/x-rst
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Environment :: Console
@@ -18,15 +18,16 @@ Classifier: License :: OSI Approved :: Apache Software License
18
18
  Classifier: Programming Language :: Python :: 3.10
19
19
  Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
21
22
  Classifier: Topic :: System :: Monitoring
22
- Requires-Dist: apache-airflow>=2.10.0
23
+ Requires-Dist: apache-airflow>=2.10.0rc1
23
24
  Requires-Dist: requests>=2.32.0,<3
24
25
  Requires-Dist: requests-toolbelt>=1.0.0
25
- Requires-Dist: aiohttp>=3.9.2,!=3.11.0
26
+ Requires-Dist: aiohttp>=3.12.14
26
27
  Requires-Dist: asgiref>=2.3.0
27
28
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
28
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.2/changelog.html
29
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.2
29
+ Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-http/5.3.3/changelog.html
30
+ Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-http/5.3.3
30
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
@@ -57,8 +58,9 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
57
58
 
58
59
  Package ``apache-airflow-providers-http``
59
60
 
60
- Release: ``5.3.2``
61
+ Release: ``5.3.3``
61
62
 
63
+ Release Date: ``|PypiReleaseDate|``
62
64
 
63
65
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
64
66
 
@@ -70,7 +72,7 @@ This is a provider package for ``http`` provider. All classes for this provider
70
72
  are in ``airflow.providers.http`` python package.
71
73
 
72
74
  You can find package information and changelog for the provider
73
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.2/>`_.
75
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.3/>`_.
74
76
 
75
77
  Installation
76
78
  ------------
@@ -79,7 +81,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
79
81
  for the minimum Airflow version supported) via
80
82
  ``pip install apache-airflow-providers-http``
81
83
 
82
- The package supports the following python versions: 3.10,3.11,3.12
84
+ The package supports the following python versions: 3.10,3.11,3.12,3.13
83
85
 
84
86
  Requirements
85
87
  ------------
@@ -95,5 +97,5 @@ PIP package Version required
95
97
  ===================== ====================
96
98
 
97
99
  The changelog for the provider package can be found in the
98
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.2/changelog.html>`_.
100
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.3/changelog.html>`_.
99
101
 
@@ -1,17 +1,17 @@
1
1
  airflow/providers/http/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
- airflow/providers/http/__init__.py,sha256=tQvdnTJRYE9FvJRDKU1d8fpZh2E7o__GzUfBxSSZhLI,1493
2
+ airflow/providers/http/__init__.py,sha256=2aIGbvz6ZokFMtXtYVuAoctQVYj4hz6VZZnYn1SIYZg,1493
3
3
  airflow/providers/http/exceptions.py,sha256=WnIEj0cnAS746uRF1661tCEBc_Uuo0bMEIMrQyEb9nc,1084
4
4
  airflow/providers/http/get_provider_info.py,sha256=eJrWksE0KVCB32BavHb64imCUZZIoWyJYnsBj8UsS9Y,2657
5
- airflow/providers/http/version_compat.py,sha256=qgCyO8WUWZqFbibL39BgFatIsjiDX2jJPh-WL1cm5-A,1851
5
+ airflow/providers/http/version_compat.py,sha256=MGhWZkvkF4S7MI6wOQmQrUCKHJ2vqDe1WjSkQNyAtRU,2082
6
6
  airflow/providers/http/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
7
- airflow/providers/http/hooks/http.py,sha256=ld0LpT6oJEDFpQKPMPG-E5eB06JaVP436YcYSvr8aDc,22311
7
+ airflow/providers/http/hooks/http.py,sha256=MI1Y9VQKJYgSLlhm_s-pP3fjzahyJjGHCPi_vdbZ-3U,22238
8
8
  airflow/providers/http/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
9
- airflow/providers/http/operators/http.py,sha256=wzozFzdc_PxrvK601sm8Iwr3cXdWPWV6q5GU6PqEw6U,15674
9
+ airflow/providers/http/operators/http.py,sha256=KzviUKRlf0-Omam9bjQuguWhvHmQTtlZz50kc1Z-95A,15538
10
10
  airflow/providers/http/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
11
11
  airflow/providers/http/sensors/http.py,sha256=4lIgV7-3AUy64tAv9N5lKiDtWYaqaVHG_cXkz_Gijq8,8502
12
12
  airflow/providers/http/triggers/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
13
13
  airflow/providers/http/triggers/http.py,sha256=DG4_20edkRT44grqB5Gyx8pD0ueYsTURpsBMRwO1SNQ,8501
14
- apache_airflow_providers_http-5.3.2.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
15
- apache_airflow_providers_http-5.3.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
16
- apache_airflow_providers_http-5.3.2.dist-info/METADATA,sha256=2F5huqVZD46DFVJ7oZ4c1NXc_9YQYxCAvW-W_GOflzg,4054
17
- apache_airflow_providers_http-5.3.2.dist-info/RECORD,,
14
+ apache_airflow_providers_http-5.3.3rc1.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
15
+ apache_airflow_providers_http-5.3.3rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
16
+ apache_airflow_providers_http-5.3.3rc1.dist-info/METADATA,sha256=OGHgYci1c_DGJbw4hVJo3BVjuWjj6FduzREu6iX6lXg,4159
17
+ apache_airflow_providers_http-5.3.3rc1.dist-info/RECORD,,