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 how well the engineer uses asyncstdlib's ExitStack to implement dynamic context manager lifecycle management, focusing specifically on the usage of ExitStack's key methods for entering context managers, registering callbacks, and ensuring proper LIFO cleanup.",
"type": "weighted_checklist",
"checklist": [
{
"name": "ExitStack instantiation",
"description": "Uses asyncstdlib.ExitStack() to create an exit stack instance for managing multiple context managers",
"max_score": 15
},
{
"name": "Dynamic context entry",
"description": "Uses ExitStack.enter_context() method to dynamically add and enter async context managers at runtime",
"max_score": 25
},
{
"name": "Callback registration",
"description": "Uses ExitStack.callback() method to register cleanup callbacks that execute during teardown",
"max_score": 20
},
{
"name": "Manual cleanup",
"description": "Uses ExitStack.aclose() method to manually trigger immediate cleanup of all registered resources",
"max_score": 15
},
{
"name": "Context manager integration",
"description": "Properly integrates ExitStack within __aenter__ and __aexit__ methods to provide context manager protocol support",
"max_score": 15
},
{
"name": "LIFO cleanup order",
"description": "Leverages ExitStack's built-in LIFO (Last In First Out) cleanup ordering, allowing the stack to automatically handle reverse-order resource cleanup",
"max_score": 10
}
]
}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