FTPS connection¶
Bases: FTP
FTPS file connection. |support_hooks|
Based on FTPUtil library <https://pypi.org/project/ftputil/>_.
.. warning::
Since onETL v0.7.0 to use FTPS connector you should install package as follows:
.. code:: bash
pip install "onetl[ftps]"
# or
pip install "onetl[files]"
See :ref:`install-files` installation instruction for more details.
.. versionadded:: 0.1.0
Parameters:
-
host(str) –Host of FTPS source. For example:
ftps.domain.com -
port(int, default:`21`) –Port of FTPS source
-
user(str, default:`None`) –User, which have access to the file source. For example:
someuser.Nonemeans that the user is anonymous. -
password(str, default:`None`) –Password for file source connection.
Nonemeans that the user is anonymous.
Examples:
Create and check FTPS connection:
.. code:: python
from onetl.connection import FTPS
ftps = FTPS(
host="ftps.domain.com",
user="someuser",
password="*****",
).check()