apache-airflow-providers-http 5.3.3rc1__py3-none-any.whl → 5.3.4__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/hooks/http.py +6 -0
- {apache_airflow_providers_http-5.3.3rc1.dist-info → apache_airflow_providers_http-5.3.4.dist-info}/METADATA +12 -13
- {apache_airflow_providers_http-5.3.3rc1.dist-info → apache_airflow_providers_http-5.3.4.dist-info}/RECORD +6 -6
- {apache_airflow_providers_http-5.3.3rc1.dist-info → apache_airflow_providers_http-5.3.4.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_http-5.3.3rc1.dist-info → apache_airflow_providers_http-5.3.4.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.3.
|
32
|
+
__version__ = "5.3.4"
|
33
33
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
35
35
|
"2.10.0"
|
@@ -135,6 +135,7 @@ class HttpHook(BaseHook):
|
|
135
135
|
self.http_conn_id = http_conn_id
|
136
136
|
self.method = method.upper()
|
137
137
|
self.base_url: str = ""
|
138
|
+
self._base_url_initialized: bool = False
|
138
139
|
self._retry_obj: Callable[..., Any]
|
139
140
|
self._auth_type: Any = auth_type
|
140
141
|
|
@@ -203,6 +204,7 @@ class HttpHook(BaseHook):
|
|
203
204
|
parsed = urlparse(self.base_url)
|
204
205
|
if not parsed.scheme:
|
205
206
|
raise ValueError(f"Invalid base URL: Missing scheme in {self.base_url}")
|
207
|
+
self._base_url_initialized = True
|
206
208
|
|
207
209
|
def _configure_session_from_auth(self, session: Session, connection: Connection) -> Session:
|
208
210
|
session.auth = self._extract_auth(connection)
|
@@ -383,6 +385,10 @@ class HttpHook(BaseHook):
|
|
383
385
|
|
384
386
|
def url_from_endpoint(self, endpoint: str | None) -> str:
|
385
387
|
"""Combine base url with endpoint."""
|
388
|
+
# Ensure base_url is set by initializing it if it hasn't been initialized yet
|
389
|
+
if not self._base_url_initialized and not self.base_url:
|
390
|
+
connection = self.get_connection(self.http_conn_id)
|
391
|
+
self._set_base_url(connection)
|
386
392
|
return _url_from_endpoint(base_url=self.base_url, endpoint=endpoint)
|
387
393
|
|
388
394
|
def test_connection(self):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: apache-airflow-providers-http
|
3
|
-
Version: 5.3.
|
3
|
+
Version: 5.3.4
|
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.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
21
21
|
Classifier: Programming Language :: Python :: 3.13
|
22
22
|
Classifier: Topic :: System :: Monitoring
|
23
|
-
Requires-Dist: apache-airflow>=2.10.
|
23
|
+
Requires-Dist: apache-airflow>=2.10.0
|
24
24
|
Requires-Dist: requests>=2.32.0,<3
|
25
25
|
Requires-Dist: requests-toolbelt>=1.0.0
|
26
26
|
Requires-Dist: aiohttp>=3.12.14
|
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.
|
30
|
-
Project-URL: Documentation, https://airflow.
|
29
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.4/changelog.html
|
30
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.4
|
31
31
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
32
32
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
33
33
|
Project-URL: Source Code, https://github.com/apache/airflow
|
@@ -58,9 +58,8 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
58
58
|
|
59
59
|
Package ``apache-airflow-providers-http``
|
60
60
|
|
61
|
-
Release: ``5.3.
|
61
|
+
Release: ``5.3.4``
|
62
62
|
|
63
|
-
Release Date: ``|PypiReleaseDate|``
|
64
63
|
|
65
64
|
`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
|
66
65
|
|
@@ -72,12 +71,12 @@ 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.3.
|
74
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.4/>`_.
|
76
75
|
|
77
76
|
Installation
|
78
77
|
------------
|
79
78
|
|
80
|
-
You can install this package on top of an existing Airflow
|
79
|
+
You can install this package on top of an existing Airflow installation (see ``Requirements`` below
|
81
80
|
for the minimum Airflow version supported) via
|
82
81
|
``pip install apache-airflow-providers-http``
|
83
82
|
|
@@ -86,16 +85,16 @@ The package supports the following python versions: 3.10,3.11,3.12,3.13
|
|
86
85
|
Requirements
|
87
86
|
------------
|
88
87
|
|
89
|
-
=====================
|
88
|
+
===================== ==================
|
90
89
|
PIP package Version required
|
91
|
-
=====================
|
90
|
+
===================== ==================
|
92
91
|
``apache-airflow`` ``>=2.10.0``
|
93
92
|
``requests`` ``>=2.32.0,<3``
|
94
93
|
``requests-toolbelt`` ``>=1.0.0``
|
95
|
-
``aiohttp``
|
94
|
+
``aiohttp`` ``>=3.12.14``
|
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.3.
|
99
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.3.4/changelog.html>`_.
|
101
100
|
|
@@ -1,17 +1,17 @@
|
|
1
1
|
airflow/providers/http/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
2
|
-
airflow/providers/http/__init__.py,sha256=
|
2
|
+
airflow/providers/http/__init__.py,sha256=RmrtyqR3ka6J3c4gx9P5sv3P4biGxAWT5wulO7Yiqz4,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
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=
|
7
|
+
airflow/providers/http/hooks/http.py,sha256=MoEyhIJtXB9sNy-Avrrm2oVc4VugAlBSq18CAvylJgo,22587
|
8
8
|
airflow/providers/http/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
9
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.
|
15
|
-
apache_airflow_providers_http-5.3.
|
16
|
-
apache_airflow_providers_http-5.3.
|
17
|
-
apache_airflow_providers_http-5.3.
|
14
|
+
apache_airflow_providers_http-5.3.4.dist-info/entry_points.txt,sha256=65Rk4MYlxxtwo7y7-uNv4KS7MfoBnILhMjRQmNbRo1Q,100
|
15
|
+
apache_airflow_providers_http-5.3.4.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
16
|
+
apache_airflow_providers_http-5.3.4.dist-info/METADATA,sha256=24sxYo0EMGgNm3B5NMm8W1zrlMtoqLQHcxH6TX0XKvQ,4088
|
17
|
+
apache_airflow_providers_http-5.3.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|