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 FIPS code lookup functionality to validate state codes and retrieve state information. The focus is on correct usage of the package's lookup API with FIPS codes.",
"type": "weighted_checklist",
"checklist": [
{
"name": "FIPS lookup usage",
"description": "Uses the us.states.lookup() function to look up states by FIPS code",
"max_score": 40
},
{
"name": "State object attributes",
"description": "Correctly accesses the 'name' and 'abbr' attributes from State objects returned by lookup()",
"max_score": 25
},
{
"name": "FIPS code handling",
"description": "Correctly passes FIPS codes as strings to lookup() and accesses the 'fips' attribute from State objects",
"max_score": 20
},
{
"name": "Territory support",
"description": "Solution works for both states and territories (lookup handles both by default)",
"max_score": 10
},
{
"name": "Invalid code handling",
"description": "Properly handles None return values from lookup() when FIPS codes are invalid",
"max_score": 5
}
]
}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