apache-airflow-providers-sftp 5.4.0rc1__py3-none-any.whl → 5.4.1__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/sftp/__init__.py +1 -1
- airflow/providers/sftp/operators/sftp.py +10 -9
- {apache_airflow_providers_sftp-5.4.0rc1.dist-info → apache_airflow_providers_sftp-5.4.1.dist-info}/METADATA +18 -8
- {apache_airflow_providers_sftp-5.4.0rc1.dist-info → apache_airflow_providers_sftp-5.4.1.dist-info}/RECORD +6 -6
- {apache_airflow_providers_sftp-5.4.0rc1.dist-info → apache_airflow_providers_sftp-5.4.1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_sftp-5.4.0rc1.dist-info → apache_airflow_providers_sftp-5.4.1.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.4.
|
|
32
|
+
__version__ = "5.4.1"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
35
|
"2.10.0"
|
|
@@ -144,24 +144,25 @@ class SFTPOperator(BaseOperator):
|
|
|
144
144
|
|
|
145
145
|
file_msg = None
|
|
146
146
|
try:
|
|
147
|
+
if self.remote_host is not None:
|
|
148
|
+
self.log.info(
|
|
149
|
+
"remote_host is provided explicitly. "
|
|
150
|
+
"It will replace the remote_host which was defined "
|
|
151
|
+
"in sftp_hook or predefined in connection of ssh_conn_id."
|
|
152
|
+
)
|
|
153
|
+
|
|
147
154
|
if self.ssh_conn_id:
|
|
148
155
|
if self.sftp_hook and isinstance(self.sftp_hook, SFTPHook):
|
|
149
156
|
self.log.info("ssh_conn_id is ignored when sftp_hook is provided.")
|
|
150
157
|
else:
|
|
151
158
|
self.log.info("sftp_hook not provided or invalid. Trying ssh_conn_id to create SFTPHook.")
|
|
152
|
-
self.sftp_hook = SFTPHook(
|
|
159
|
+
self.sftp_hook = SFTPHook(
|
|
160
|
+
ssh_conn_id=self.ssh_conn_id, remote_host=self.remote_host or ""
|
|
161
|
+
)
|
|
153
162
|
|
|
154
163
|
if not self.sftp_hook:
|
|
155
164
|
raise AirflowException("Cannot operate without sftp_hook or ssh_conn_id.")
|
|
156
165
|
|
|
157
|
-
if self.remote_host is not None:
|
|
158
|
-
self.log.info(
|
|
159
|
-
"remote_host is provided explicitly. "
|
|
160
|
-
"It will replace the remote_host which was defined "
|
|
161
|
-
"in sftp_hook or predefined in connection of ssh_conn_id."
|
|
162
|
-
)
|
|
163
|
-
self.sftp_hook.remote_host = self.remote_host
|
|
164
|
-
|
|
165
166
|
if self.operation.lower() in (SFTPOperation.GET, SFTPOperation.PUT):
|
|
166
167
|
for _local_filepath, _remote_filepath in zip(local_filepath_array, remote_filepath_array):
|
|
167
168
|
if self.operation.lower() == SFTPOperation.GET:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apache-airflow-providers-sftp
|
|
3
|
-
Version: 5.4.
|
|
3
|
+
Version: 5.4.1
|
|
4
4
|
Summary: Provider package apache-airflow-providers-sftp for Apache Airflow
|
|
5
5
|
Keywords: airflow-provider,sftp,airflow,integration
|
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
|
@@ -20,15 +20,15 @@ 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.
|
|
24
|
-
Requires-Dist: apache-airflow-providers-ssh>=4.0.
|
|
23
|
+
Requires-Dist: apache-airflow>=2.10.0
|
|
24
|
+
Requires-Dist: apache-airflow-providers-ssh>=4.0.0
|
|
25
25
|
Requires-Dist: paramiko>=2.9.0,<4.0.0
|
|
26
26
|
Requires-Dist: asyncssh>=2.12.0
|
|
27
27
|
Requires-Dist: apache-airflow-providers-common-compat ; extra == "common-compat"
|
|
28
28
|
Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
|
|
29
29
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
30
|
-
Project-URL: Changelog, https://airflow.
|
|
31
|
-
Project-URL: Documentation, https://airflow.
|
|
30
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.1/changelog.html
|
|
31
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.1
|
|
32
32
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
|
33
33
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
34
34
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
@@ -61,7 +61,7 @@ Provides-Extra: openlineage
|
|
|
61
61
|
|
|
62
62
|
Package ``apache-airflow-providers-sftp``
|
|
63
63
|
|
|
64
|
-
Release: ``5.4.
|
|
64
|
+
Release: ``5.4.1``
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
`SSH File Transfer Protocol (SFTP) <https://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/>`__
|
|
@@ -74,7 +74,7 @@ This is a provider package for ``sftp`` provider. All classes for this provider
|
|
|
74
74
|
are in ``airflow.providers.sftp`` python package.
|
|
75
75
|
|
|
76
76
|
You can find package information and changelog for the provider
|
|
77
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.
|
|
77
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.1/>`_.
|
|
78
78
|
|
|
79
79
|
Installation
|
|
80
80
|
------------
|
|
@@ -118,6 +118,16 @@ Dependent package
|
|
|
118
118
|
`apache-airflow-providers-ssh <https://airflow.apache.org/docs/apache-airflow-providers-ssh>`_ ``ssh``
|
|
119
119
|
================================================================================================================== =================
|
|
120
120
|
|
|
121
|
+
Optional dependencies
|
|
122
|
+
----------------------
|
|
123
|
+
|
|
124
|
+
================= ==========================================
|
|
125
|
+
Extra Dependencies
|
|
126
|
+
================= ==========================================
|
|
127
|
+
``common.compat`` ``apache-airflow-providers-common-compat``
|
|
128
|
+
``openlineage`` ``apache-airflow-providers-openlineage``
|
|
129
|
+
================= ==========================================
|
|
130
|
+
|
|
121
131
|
The changelog for the provider package can be found in the
|
|
122
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.
|
|
132
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.1/changelog.html>`_.
|
|
123
133
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
airflow/providers/sftp/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
2
|
-
airflow/providers/sftp/__init__.py,sha256=
|
|
2
|
+
airflow/providers/sftp/__init__.py,sha256=76hvqk29Ph0E6KfFF4Kynyg8Q4PEFfwZhfE0F03cKwk,1493
|
|
3
3
|
airflow/providers/sftp/exceptions.py,sha256=Gz4mk1YkBUFE1ridk-C7dcu9Y3JPdkp5MUyQOwWOWyY,1011
|
|
4
4
|
airflow/providers/sftp/get_provider_info.py,sha256=_IqUGQ-rKpZsSAsXdTsGYzfzJ3X57duhn-2b0-rFOz0,2905
|
|
5
5
|
airflow/providers/sftp/version_compat.py,sha256=zRB-sKs65ic8Gl2QARSOaJ8ScjIRw58pt0kR6nOQPPY,2113
|
|
@@ -9,12 +9,12 @@ airflow/providers/sftp/decorators/sensors/sftp.py,sha256=O-rkLJ_-B49aRZ5W9vpHcCe
|
|
|
9
9
|
airflow/providers/sftp/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
10
10
|
airflow/providers/sftp/hooks/sftp.py,sha256=5qpttnQVZ2_2ZsS_u72-ugy66GOC97CzcSSzyiMj7c8,34243
|
|
11
11
|
airflow/providers/sftp/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
12
|
-
airflow/providers/sftp/operators/sftp.py,sha256=
|
|
12
|
+
airflow/providers/sftp/operators/sftp.py,sha256=xOXEq0Wu6jQFyMc96pbhfgNvcjrUii7PXS8mfv65X58,13183
|
|
13
13
|
airflow/providers/sftp/sensors/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
14
14
|
airflow/providers/sftp/sensors/sftp.py,sha256=XXtwu3PzzYNcNlI-xhHhTT2SmIlIrA3r4NkDbYpW3Z0,9040
|
|
15
15
|
airflow/providers/sftp/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
16
16
|
airflow/providers/sftp/triggers/sftp.py,sha256=e_zdgyg2Y9T2bvCP57a2GZN0rBLW_R_t0V6kquvV2GY,6164
|
|
17
|
-
apache_airflow_providers_sftp-5.4.
|
|
18
|
-
apache_airflow_providers_sftp-5.4.
|
|
19
|
-
apache_airflow_providers_sftp-5.4.
|
|
20
|
-
apache_airflow_providers_sftp-5.4.
|
|
17
|
+
apache_airflow_providers_sftp-5.4.1.dist-info/entry_points.txt,sha256=Fa1IkUHV6qnIuwLd0U7tKoklbLXXVrbB2hhG6N7Q-zo,100
|
|
18
|
+
apache_airflow_providers_sftp-5.4.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
19
|
+
apache_airflow_providers_sftp-5.4.1.dist-info/METADATA,sha256=pn7Ji-sTx9plnXIPxvkwqHNbWAS2hHBCxR-J2kLHUhE,6081
|
|
20
|
+
apache_airflow_providers_sftp-5.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|