A package for easily working with US and state metadata
Overall
score
88%
{
"context": "This criteria evaluates how well the engineer uses the python-us package to implement state name validation, specifically focusing on the proper usage of the state lookup functionality with name-based queries.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses us.states.lookup()",
"description": "The implementation uses the us.states.lookup() function to look up states by name rather than implementing custom lookup logic or iterating through state lists",
"max_score": 40
},
{
"name": "Accesses State attributes",
"description": "The implementation correctly accesses the State object's 'name' and 'abbr' attributes to extract the official state name and postal abbreviation",
"max_score": 25
},
{
"name": "Handles None returns",
"description": "The implementation properly handles the case where us.states.lookup() returns None for invalid state names and propagates None to the caller",
"max_score": 20
},
{
"name": "Leverages case-insensitivity",
"description": "The implementation relies on the built-in case-insensitive matching of us.states.lookup() rather than normalizing input strings manually before lookup",
"max_score": 15
}
]
}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