Ctrl + K
DocumentationLog inGet started

tessl/pypi-apache-airflow-providers-ftp

tessl install tessl/pypi-apache-airflow-providers-ftp@3.13.0

Provider 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%

task.mdevals/scenario-6/

FTP Connection Manager

A utility that manages FTP and FTPS connections with support for configuration and connection testing.

Capabilities

Establish FTP Connection

  • Establishes a standard FTP connection to server "ftp.example.com" on port 21 with username "user" and password "pass" @test
  • Establishes a secure FTPS connection to server "ftps.example.com" with use_ftps=True @test

Configure Connection Mode

  • Sets passive mode to True, and the connection uses passive mode for data transfers @test
  • Sets passive mode to False, and the connection uses active mode for data transfers @test

Manage Connection Lifecycle

  • Uses context manager to open and close connection automatically @test
  • Ensures connection is closed even when exception occurs inside context manager @test

Test Connection Validity

  • Returns True when testing a valid connection that can list directories @test
  • Returns False when testing with invalid credentials @test

Implementation

@generates

API

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
        """
        pass

Dependencies { .dependencies }

apache-airflow-providers-ftp { .dependency }

Provides FTP and FTPS connection capabilities for Apache Airflow.

@satisfied-by

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/apache-airflow-providers-ftp@3.13.x
tile.json