apache-airflow-providers-http 4.10.0__tar.gz → 4.10.1__tar.gz

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.
Files changed (14) hide show
  1. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/PKG-INFO +8 -7
  2. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/README.rst +4 -4
  3. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/__init__.py +1 -1
  4. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/get_provider_info.py +2 -1
  5. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/hooks/http.py +4 -1
  6. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/triggers/http.py +1 -1
  7. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/pyproject.toml +4 -3
  8. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/LICENSE +0 -0
  9. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/hooks/__init__.py +0 -0
  10. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/operators/__init__.py +0 -0
  11. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/operators/http.py +0 -0
  12. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/sensors/__init__.py +0 -0
  13. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/sensors/http.py +0 -0
  14. {apache_airflow_providers_http-4.10.0 → apache_airflow_providers_http-4.10.1}/airflow/providers/http/triggers/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-http
3
- Version: 4.10.0
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,6 +19,7 @@ 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
25
  Requires-Dist: apache-airflow>=2.6.0
@@ -26,8 +27,8 @@ 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.0/changelog.html
30
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.0
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.0``
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.0/>`_.
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.0/changelog.html>`_.
119
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.1/changelog.html>`_.
@@ -42,7 +42,7 @@
42
42
 
43
43
  Package ``apache-airflow-providers-http``
44
44
 
45
- Release: ``4.10.0``
45
+ Release: ``4.10.1``
46
46
 
47
47
 
48
48
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
@@ -55,7 +55,7 @@ This is a provider package for ``http`` provider. All classes for this provider
55
55
  are in ``airflow.providers.http`` python package.
56
56
 
57
57
  You can find package information and changelog for the provider
58
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.0/>`_.
58
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.1/>`_.
59
59
 
60
60
  Installation
61
61
  ------------
@@ -64,7 +64,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
64
64
  for the minimum Airflow version supported) via
65
65
  ``pip install apache-airflow-providers-http``
66
66
 
67
- The package supports the following python versions: 3.8,3.9,3.10,3.11
67
+ The package supports the following python versions: 3.8,3.9,3.10,3.11,3.12
68
68
 
69
69
  Requirements
70
70
  ------------
@@ -80,4 +80,4 @@ PIP package Version required
80
80
  ===================== ==================
81
81
 
82
82
  The changelog for the provider package can be found in the
83
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.0/changelog.html>`_.
83
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.1/changelog.html>`_.
@@ -27,7 +27,7 @@ import packaging.version
27
27
 
28
28
  __all__ = ["__version__"]
29
29
 
30
- __version__ = "4.10.0"
30
+ __version__ = "4.10.1"
31
31
 
32
32
  try:
33
33
  from airflow import __version__ as airflow_version
@@ -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": 1709555804,
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)
@@ -28,7 +28,7 @@ build-backend = "flit_core.buildapi"
28
28
 
29
29
  [project]
30
30
  name = "apache-airflow-providers-http"
31
- version = "4.10.0"
31
+ version = "4.10.1"
32
32
  description = "Provider package apache-airflow-providers-http for Apache Airflow"
33
33
  readme = "README.rst"
34
34
  authors = [
@@ -51,6 +51,7 @@ classifiers = [
51
51
  "Programming Language :: Python :: 3.9",
52
52
  "Programming Language :: Python :: 3.10",
53
53
  "Programming Language :: Python :: 3.11",
54
+ "Programming Language :: Python :: 3.12",
54
55
  "Topic :: System :: Monitoring",
55
56
  ]
56
57
  requires-python = "~=3.8"
@@ -63,8 +64,8 @@ dependencies = [
63
64
  ]
64
65
 
65
66
  [project.urls]
66
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.0"
67
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.0/changelog.html"
67
+ "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.1"
68
+ "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-http/4.10.1/changelog.html"
68
69
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
69
70
  "Source Code" = "https://github.com/apache/airflow"
70
71
  "Slack Chat" = "https://s.apache.org/airflow-slack"