or run

tessl search
Log in

Version

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

tessl/pypi-us

tessl install tessl/pypi-us@3.2.0

A package for easily working with US and state metadata

Agent Success

Agent success rate when using this tile

88%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.24x

Baseline

Agent success rate without this tile

71%

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how effectively the engineer uses the python-us package's is_territory attribute and state/territory collections to build the territory validation utility. The focus is entirely on proper usage of package APIs for territory identification.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Territory lookup",
      "description": "Uses us.states.lookup() to retrieve state/territory objects from identifiers (names or abbreviations)",
      "max_score": 20
    },
    {
      "name": "is_territory attribute",
      "description": "Accesses the is_territory attribute on State objects to determine if an entity is a territory",
      "max_score": 25
    },
    {
      "name": "TERRITORIES collection",
      "description": "Uses us.states.TERRITORIES collection to retrieve the list of all US territories",
      "max_score": 20
    },
    {
      "name": "Territory names",
      "description": "Accesses the name attribute on territory objects to get territory names",
      "max_score": 15
    },
    {
      "name": "Error handling",
      "description": "Properly handles cases where lookup() returns None for invalid identifiers by raising ValueError",
      "max_score": 10
    },
    {
      "name": "Case-insensitive lookup",
      "description": "Leverages the package's built-in case-insensitive lookup capability rather than manual case conversion",
      "max_score": 10
    }
  ]
}