CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-apache-airflow-providers-ftp

Provider package for Apache Airflow that enables FTP file transfer protocol operations including hooks, operators, and sensors for workflow integration.

84

1.06x
Quality

Pending

Does it follow best practices?

Impact

84%

1.06x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-10/

{
  "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
    }
  ]
}

tile.json