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

{
  "context": "Evaluates how well the solution leverages aenum's NamedTuple API to model shipment records with defaults, tuple semantics, and helper methods for transforming data. Focus is on using NamedTuple-provided construction, attribute/index parity, and built-in conversion utilities rather than reimplementing tuple behavior manually.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "NamedTuple setup",
      "description": "Defines ShipmentRecord via aenum's NamedTuple (metaclass or functional API), including the four declared fields with defaults for weight and priority so instances are tuple subclasses.",
      "max_score": 25
    },
    {
      "name": "Attribute/index parity",
      "description": "Relies on NamedTuple-generated tuple ordering so field values are accessible both by attribute and by index without custom __getitem__ hacks or diverging order.",
      "max_score": 20
    },
    {
      "name": "Sequence ingestion",
      "description": "Implements load_shipments using the NamedTuple constructor or _make to turn sequences into ShipmentRecord instances, applying the NamedTuple defaults for missing trailing optional fields while rejecting rows missing required id/destination.",
      "max_score": 20
    },
    {
      "name": "Mapping export",
      "description": "Uses the NamedTuple _asdict helper (or equivalent NamedTuple-provided ordered mapping) in to_mapping instead of hand-building dictionaries, preserving field order and values.",
      "max_score": 15
    },
    {
      "name": "Immutable update",
      "description": "Implements update_priority via the NamedTuple _replace method (or equivalent NamedTuple cloning helper) to return a new ShipmentRecord without mutating the original.",
      "max_score": 20
    }
  ]
}

Version

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