CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-varname

Dark magics about variable names in python

Overall
score

90%

Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "context": "This evaluation assesses how well the engineer uses the varname package's Wrapper class (or equivalent functionality) to implement self-documenting configuration entries that automatically capture their variable names. The focus is on correct usage of varname's variable name introspection capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Wrapper class usage",
      "description": "Uses varname's Wrapper class to implement ConfigEntry, leveraging its built-in capability to capture variable names and store values",
      "max_score": 40
    },
    {
      "name": "Variable name capture",
      "description": "Correctly captures the variable name during initialization, either through Wrapper or by using varname() function with appropriate frame parameter",
      "max_score": 25
    },
    {
      "name": "Value storage",
      "description": "Properly stores and provides access to the configuration value through the 'value' attribute as specified",
      "max_score": 15
    },
    {
      "name": "Name attribute access",
      "description": "Provides access to the captured variable name through the 'name' attribute as specified",
      "max_score": 10
    },
    {
      "name": "String representation",
      "description": "Implements __str__ method to return a readable representation showing both the name and value",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-varname

tile.json