tessl install tessl/pypi-apache-airflow-providers-ftp@3.13.0Provider package for Apache Airflow that enables FTP file transfer protocol operations including hooks, operators, and sensors for workflow integration.
Agent Success
Agent success rate when using this tile
84%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.06x
Baseline
Agent success rate without this tile
79%
A utility that manages FTP and FTPS connections with support for configuration and connection testing.
@generates
class FTPConnectionManager:
"""
Manages FTP and FTPS connections with configuration support.
Args:
host: FTP server hostname
port: FTP server port (default: 21)
username: FTP username (default: "")
password: FTP password (default: "")
use_ftps: Whether to use FTPS (secure) instead of FTP (default: False)
passive: Whether to use passive mode (default: True)
"""
def __init__(self, host: str, port: int = 21, username: str = "",
password: str = "", use_ftps: bool = False,
passive: bool = True):
"""Initialize FTP connection manager with configuration."""
pass
def connect(self):
"""
Establish connection to the FTP server.
Returns:
The FTP connection object (ftplib.FTP or ftplib.FTP_TLS)
"""
pass
def close(self):
"""Close the FTP connection if it is open."""
pass
def __enter__(self):
"""Enter context manager and establish connection."""
pass
def __exit__(self, exc_type, exc_val, exc_tb):
"""Exit context manager and close connection."""
pass
def test_connection(self) -> bool:
"""
Test if connection can be established and is working.
Returns:
True if connection is successful, False otherwise
"""
passProvides FTP and FTPS connection capabilities for Apache Airflow.
@satisfied-by