CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-aenum

tessl install tessl/pypi-aenum@3.1.0

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

Agent Success

Agent success rate when using this tile

76%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.21x

Baseline

Agent success rate without this tile

63%

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
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/aenum@3.1.x
tile.json