CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-requests-cache

A persistent cache for python requests

76

1.26x
Quality

Pending

Does it follow best practices?

Impact

76%

1.26x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-10/

{
  "context": "This criteria evaluates how well the engineer uses requests-cache's cache filtering and deletion capabilities to identify and remove invalid cached responses. The focus is on using the appropriate methods for detecting deserialization failures and selectively removing corrupted entries while preserving valid ones.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "CachedSession Usage",
      "description": "Uses requests_cache.CachedSession or install_cache() to create a cached HTTP session for making requests that will be stored in the cache",
      "max_score": 15
    },
    {
      "name": "Filter Invalid Responses",
      "description": "Uses the filter() method with 'invalid' parameter to identify cached responses that have deserialization errors (e.g., session.cache.filter(invalid=True))",
      "max_score": 30
    },
    {
      "name": "Delete Invalid Entries",
      "description": "Uses the delete() method to remove invalid cached responses from the cache (e.g., session.cache.delete(invalid=True) or iterating through filtered results and deleting them)",
      "max_score": 30
    },
    {
      "name": "Distinguish Response Types",
      "description": "Correctly distinguishes between valid, expired, and invalid cached responses using filter() with appropriate parameters (valid=True, expired=True, invalid=True)",
      "max_score": 15
    },
    {
      "name": "Verify Cache State",
      "description": "Uses cache inspection methods to verify the cache state before and after cleanup (e.g., counting entries, checking urls(), or using contains())",
      "max_score": 10
    }
  ]
}

tile.json