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-10/

FTP Report Downloader

A utility for downloading daily sales reports from a remote FTP server to the local filesystem for further processing.

Capabilities

Download single report file

  • It downloads a single report file from the FTP server to a local directory @test
  • It raises an error when the remote file does not exist @test

Download multiple report files

  • It downloads multiple report files in a single operation using lists of file paths @test
  • It validates that the local and remote file path lists have matching lengths @test

Create intermediate directories

  • It automatically creates local parent directories when downloading to nested paths @test

Implementation

@generates

API

def download_report(ftp_conn_id: str, remote_filepath: str, local_filepath: str) -> str:
    """
    Downloads a single report file from an FTP server to the local filesystem.

    Args:
        ftp_conn_id: Airflow connection ID for the FTP server
        remote_filepath: Path to the file on the remote FTP server
        local_filepath: Path where the file should be saved locally

    Returns:
        The local file path where the report was saved

    Raises:
        Exception: If the remote file does not exist or download fails
    """
    pass

def download_reports_batch(ftp_conn_id: str, remote_filepaths: list, local_filepaths: list) -> list:
    """
    Downloads multiple report files from an FTP server in a single operation.

    Args:
        ftp_conn_id: Airflow connection ID for the FTP server
        remote_filepaths: List of paths to files on the remote FTP server
        local_filepaths: List of paths where files should be saved locally

    Returns:
        List of local file paths where the reports were saved

    Raises:
        ValueError: If the lengths of remote_filepaths and local_filepaths don't match
        Exception: If any file download fails
    """
    pass

def download_report_with_dirs(ftp_conn_id: str, remote_filepath: str, local_filepath: str) -> str:
    """
    Downloads a report file from an FTP server, automatically creating any
    necessary parent directories in the local filesystem.

    Args:
        ftp_conn_id: Airflow connection ID for the FTP server
        remote_filepath: Path to the file on the remote FTP server
        local_filepath: Path where the file should be saved locally (may be nested)

    Returns:
        The local file path where the report was saved
    """
    pass

Dependencies { .dependencies }

apache-airflow-providers-ftp { .dependency }

Provides FTP file transfer operations for Apache Airflow, including hooks and operators for downloading files from FTP servers.

Version

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