The missing async toolbox - re-implements functions and classes of the Python standard library to make them compatible with async callables, iterables and context managers
84
Quality
Pending
Does it follow best practices?
Impact
84%
3.36xAverage score across 10 eval scenarios
{
"context": "This criteria evaluates an engineer's ability to use the asyncstdlib package, specifically the zip_longest function from asyncstdlib.itertools, to merge async iterables of different lengths with fillvalue support. The focus is on proper usage of the package's async iteration capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses zip_longest",
"description": "Uses asyncstdlib.itertools.zip_longest (or imports it as 'from asyncstdlib import zip_longest') to merge the async streams with fillvalue parameter",
"max_score": 40
},
{
"name": "Correct fillvalue parameter",
"description": "Correctly passes the fill_value parameter to zip_longest using the fillvalue keyword argument",
"max_score": 20
},
{
"name": "Async iteration handling",
"description": "Properly iterates over the result using async iteration (async for) to consume the zip_longest result",
"max_score": 20
},
{
"name": "List conversion",
"description": "Uses asyncstdlib.builtins.list or manually collects results into a list from the async iterable returned by zip_longest",
"max_score": 15
},
{
"name": "Async function signature",
"description": "Implements merge_streams as an async function (async def) that can be awaited",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-asyncstdlibevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10