CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-connectorx

Load data from databases to dataframes, the fastest way.

86

1.04x

Quality

Pending

Does it follow best practices?

Impact

86%

1.04x

Average score across 10 eval scenarios

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates the engineer's ability to use ConnectorX for database connection management. It assesses proper usage of connection strings, protocol selection, connection validation through read_sql calls, and error handling specific to ConnectorX's API.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "connectorx.read_sql Usage",
      "description": "Uses connectorx.read_sql() or cx.read_sql() function to establish connections and execute queries. This is the primary API for database interaction in ConnectorX.",
      "max_score": 30
    },
    {
      "name": "Connection String Handling",
      "description": "Properly uses connection string parameter in read_sql() calls. Connection strings should be passed as the first argument (conn parameter) and should support multiple database types (PostgreSQL, MySQL, SQLite formats).",
      "max_score": 20
    },
    {
      "name": "Protocol Parameter",
      "description": "Implements protocol selection by using the 'protocol' parameter in read_sql() calls. Should support protocol values like 'binary', 'csv', 'cursor', 'text', or 'simple' as documented in ConnectorX.",
      "max_score": 15
    },
    {
      "name": "Connection Validation",
      "description": "Validates database connections by attempting read_sql() calls and properly catching exceptions. Should use try-except blocks to handle connection failures gracefully.",
      "max_score": 15
    },
    {
      "name": "Multiple Database Support",
      "description": "Correctly handles multiple database connections independently, executing read_sql() for each database configuration. Should iterate through database configurations and maintain separate connection attempts.",
      "max_score": 10
    },
    {
      "name": "Return Type Handling",
      "description": "Properly handles the DataFrame return type from read_sql(). Should recognize that read_sql() returns pandas DataFrames by default and handle the results appropriately.",
      "max_score": 5
    },
    {
      "name": "Error Information Capture",
      "description": "Captures and returns meaningful error information when connections fail. Should extract exception details from ConnectorX errors and include them in validation results.",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-connectorx

tile.json