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 how effectively an engineer uses the requests-cache library to implement Last-Modified validation with If-Modified-Since conditional requests. The criteria focus specifically on proper usage of requests-cache's conditional request capabilities and cache revalidation features.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CachedSession initialization",
"description": "Uses requests_cache.CachedSession class to create a persistent HTTP cache session. The implementation should properly initialize the session with a cache_name parameter to specify the SQLite database for persistent storage.",
"max_score": 20
},
{
"name": "Automatic revalidation",
"description": "Configures the CachedSession with always_revalidate=True parameter to enable automatic conditional request validation. This ensures that cached responses are validated with the server using If-Modified-Since headers from the cached Last-Modified timestamp.",
"max_score": 30
},
{
"name": "Cache persistence",
"description": "Properly utilizes the cache persistence features to store responses across multiple fetch calls. The implementation should demonstrate that responses remain cached between method invocations.",
"max_score": 20
},
{
"name": "Multiple URL handling",
"description": "Correctly uses the same CachedSession instance to handle multiple URLs efficiently, demonstrating that conditional requests work for each cached resource independently.",
"max_score": 15
},
{
"name": "Response content access",
"description": "Properly accesses and returns the response body content using standard requests library attributes (response.text or response.content) from the CachedResponse objects returned by the session's GET requests.",
"max_score": 15
}
]
}