A package for easily working with US and state metadata
Overall
score
88%
{
"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
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-usdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10