CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-frozendict

A simple immutable dictionary implementation with hashing support and performance optimizations

85

1.30x
Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This criteria evaluates how well the engineer uses the frozendict package to implement a configuration reader with read-only dictionary operations. The focus is on proper usage of frozendict's construction, safe value retrieval, key access, and membership testing capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "frozendict Construction",
      "description": "Uses frozendict() constructor to create an immutable dictionary from the input config dict in __init__. The frozendict should be stored as an instance attribute and used for all subsequent operations.",
      "max_score": 25
    },
    {
      "name": "get() Method Usage",
      "description": "Uses frozendict's get() method to retrieve configuration values by key in the ConfigReader's get() method. Should properly handle the default parameter, returning the default value when key is not found.",
      "max_score": 25
    },
    {
      "name": "keys() Method Usage",
      "description": "Uses frozendict's keys() method to return all configuration keys in the keys() method. The returned value should be the keys view from frozendict, not a manually constructed list.",
      "max_score": 25
    },
    {
      "name": "Membership Testing",
      "description": "Uses the 'in' operator (or equivalent has_key/contains check) on the frozendict to check key existence in the has_keys() method. Should properly iterate through the provided keys list and check each key's presence in the frozendict.",
      "max_score": 25
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-frozendict

tile.json