tessl install tessl/pypi-requests-cache@1.2.0A persistent cache for python requests
Agent Success
Agent success rate when using this tile
76%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.27x
Baseline
Agent success rate without this tile
60%
{
"context": "This evaluation assesses the engineer's ability to use requests-cache for thread-safe caching in a concurrent environment. The focus is on proper usage of CachedSession and understanding its built-in thread safety features with RLock.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CachedSession instantiation",
"description": "Creates a CachedSession instance (from requests_cache module) instead of using regular requests.Session",
"max_score": 25
},
{
"name": "Thread-safe usage",
"description": "Uses the same CachedSession instance across multiple threads, leveraging its built-in RLock for thread safety rather than creating separate sessions per thread",
"max_score": 30
},
{
"name": "Threading implementation",
"description": "Implements concurrent URL fetching using Python's threading module with multiple threads accessing the shared cache",
"max_score": 20
},
{
"name": "Cache configuration",
"description": "Properly configures the CachedSession with appropriate backend (e.g., memory, sqlite) to enable caching functionality",
"max_score": 15
},
{
"name": "Request execution",
"description": "Uses CachedSession HTTP methods (e.g., session.get()) to fetch URLs, allowing automatic caching and reuse of responses",
"max_score": 10
}
]
}