CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-requests-cache

tessl install tessl/pypi-requests-cache@1.2.0

A 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%

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how effectively the engineer uses the requests-cache package to implement per-request expiration override functionality. The focus is on proper use of CachedSession initialization with expire_after parameter and per-request expiration overrides.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "CachedSession instantiation",
      "description": "Uses requests_cache.CachedSession() or requests_cache.session.CachedSession() to create a caching session",
      "max_score": 15
    },
    {
      "name": "Session-level expire_after",
      "description": "Passes expire_after parameter to CachedSession constructor to set default expiration for all requests",
      "max_score": 20
    },
    {
      "name": "Per-request override",
      "description": "Uses expire_after parameter in session.get() or session.request() method calls to override the session-level default expiration for specific requests",
      "max_score": 30
    },
    {
      "name": "Integer seconds support",
      "description": "Correctly uses integer values (seconds) for both session-level and per-request expiration settings",
      "max_score": 15
    },
    {
      "name": "Timedelta support",
      "description": "Correctly uses datetime.timedelta objects for expiration settings, demonstrating support for multiple time formats",
      "max_score": 15
    },
    {
      "name": "Cache checking",
      "description": "Uses appropriate methods to verify cache status, such as session.cache.contains(url=...) or checking cache.urls()",
      "max_score": 5
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/requests-cache@1.2.x
tile.json