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-3/

{
  "context": "This criteria evaluates how effectively an engineer uses the frozendict package to implement an immutable configuration manager. The focus is on proper usage of frozendict's construction patterns including empty initialization, dictionary-based initialization, iterable-based initialization, and merging operations.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Empty Construction",
      "description": "Uses frozendict() to create empty immutable configuration objects in the create_empty() method",
      "max_score": 15
    },
    {
      "name": "Dict Construction",
      "description": "Uses frozendict(dict) or frozendict(**kwargs) to create immutable configurations from dictionaries in load_from_dict() method",
      "max_score": 20
    },
    {
      "name": "Iterable Construction",
      "description": "Uses frozendict(iterable) where iterable is a sequence of (key, value) tuples to create immutable configurations in load_from_pairs() method",
      "max_score": 20
    },
    {
      "name": "Union Operations",
      "description": "Uses frozendict's union operator (|) or equivalent merging approach to combine multiple frozendict instances in merge_configs() method",
      "max_score": 20
    },
    {
      "name": "Immutability Guarantee",
      "description": "Returns frozendict instances (not regular dicts) from all methods that create configuration objects, ensuring immutability",
      "max_score": 15
    },
    {
      "name": "Hashability Support",
      "description": "Ensures returned frozendict instances are hashable and can be used as dictionary keys or in sets",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-frozendict

tile.json