Provider package for Apache Airflow that enables FTP file transfer protocol operations including hooks, operators, and sensors for workflow integration.
84
{
"context": "This evaluation assesses how well the engineer uses the apache-airflow-providers-ftp package to perform in-memory FTP file operations using file-like buffer objects. The focus is on proper usage of FTPHook with BytesIO or StringIO to avoid disk I/O.",
"type": "weighted_checklist",
"checklist": [
{
"name": "FTPHook instantiation",
"description": "Uses FTPHook class from airflow.providers.ftp.hooks.ftp to establish FTP connection with proper connection parameters (host, username, password)",
"max_score": 15
},
{
"name": "BytesIO for download",
"description": "Uses BytesIO (or similar file-like buffer object from io module) to store downloaded file content in memory when calling retrieve_file() method",
"max_score": 25
},
{
"name": "retrieve_file() usage",
"description": "Correctly uses FTPHook.retrieve_file() method with remote path and file-like buffer object to download the CSV file from FTP server",
"max_score": 20
},
{
"name": "BytesIO for upload",
"description": "Uses BytesIO (or similar file-like buffer object from io module) to hold processed CSV content before uploading, properly seeking to beginning of buffer before upload",
"max_score": 20
},
{
"name": "store_file() usage",
"description": "Correctly uses FTPHook.store_file() method with remote path and file-like buffer object to upload the processed CSV file to FTP server",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-apache-airflow-providers-ftpevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10