CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-aenum

Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants

76

1.20x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "Evaluates whether the solution builds runtime-defined access level enums using aenum and relies on the library's iteration and name/value access features. Checks focus on creating enums from provided pairs, resolving inputs through aenum lookups, and using aenum facilities to prevent duplicate members.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Enum construction",
      "description": "Creates the access level type via aenum (e.g., subclassing aenum.Enum or using aenum.enum) directly from the provided (name, value) pairs instead of manual classes or dictionaries.",
      "max_score": 30
    },
    {
      "name": "Ordered iteration",
      "description": "Relies on aenum's iteration over the enum type (list(enum_type) or equivalent) to preserve the declared member order when exposing or exporting levels.",
      "max_score": 20
    },
    {
      "name": "Name/value access",
      "description": "Uses enum members' .name and .value attributes from aenum to produce outputs (e.g., listing levels) rather than duplicating that data separately.",
      "max_score": 20
    },
    {
      "name": "Lookup semantics",
      "description": "Resolves inputs via aenum-provided lookup mechanisms (enum_type['NAME'], enum_type(value), or member comparisons) rather than custom maps, returning the proper member for matching names or numeric values and raising ValueError on invalid inputs.",
      "max_score": 20
    },
    {
      "name": "Duplicate prevention",
      "description": "Enforces duplicate name/value rejection using aenum's facilities (e.g., @unique decorator, UniqueEnum/NoAlias settings, or equivalent) instead of ad-hoc checks.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-aenum

tile.json