CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-requests-cache

A persistent cache for python requests

76

1.26x
Overview
Eval results
Files

Evaluation results

85%

HTTP Redirect Chain Tracker

Full redirect history preservation

Criteria
Without context
With context

CachedSession usage

100%

100%

Redirect following

100%

100%

History attribute access

100%

100%

Redirect chain parsing

100%

100%

Redirect alias behavior

0%

0%

Cache persistence

100%

100%

100%

70%

HTTP Cache with Custom Expiration

Per-request expiration override

Criteria
Without context
With context

CachedSession instantiation

0%

100%

Session-level expire_after

0%

100%

Per-request override

0%

100%

Integer seconds support

100%

100%

Timedelta support

100%

100%

Cache checking

0%

100%

100%

30%

Weather API Cache with Redis

Redis storage backend with native TTL support

Criteria
Without context
With context

Redis Backend Initialization

100%

100%

Redis Connection Parameters

100%

100%

Per-Request Expiration

100%

100%

Cache Clear Operation

0%

100%

Cache Contains Check

0%

100%

85%

-5%

OAuth API Client with Caching

Integration with requests-based libraries (oauth, toolbelt, mock)

Criteria
Without context
With context

CachedSession usage

100%

100%

OAuth2Session integration

60%

40%

Backend configuration

100%

100%

Cache management

100%

100%

requests-mock integration

100%

100%

Cache key handling

100%

100%

100%

65%

HTTP Cache Validator

Last-Modified validation with If-Modified-Since

Criteria
Without context
With context

CachedSession initialization

25%

100%

Automatic revalidation

0%

100%

Cache persistence

25%

100%

Multiple URL handling

66%

100%

Response content access

100%

100%

11%

-20%

Cache Manager with Client-Side Cache Control

Cache-Control request directives (max-stale, min-fresh, only-if-cached)

Criteria
Without context
With context

CachedSession initialization

80%

53%

max-stale implementation

20%

0%

min-fresh implementation

20%

0%

only-if-cached implementation

20%

0%

Request header construction

0%

0%

Cache management methods

100%

60%

85%

-15%

Multi-threaded Web Scraper with Cache

Thread-safe cache operations with RLock

Criteria
Without context
With context

CachedSession instantiation

100%

100%

Thread-safe usage

100%

50%

Threading implementation

100%

100%

Cache configuration

100%

100%

Request execution

100%

100%

95%

46%

HTTP Response Cache Manager

Pickle serialization (default for SQLite)

Criteria
Without context
With context

CachedSession initialization

20%

100%

Backend configuration

50%

100%

HTTP requests

53%

100%

Cache verification

90%

100%

Response persistence

20%

66%

Cache file persistence

100%

100%

100%

API Response Cache Manager

Session-level expiration control with expire_after

Criteria
Without context
With context

CachedSession import

100%

100%

Short expiration session

100%

100%

Long expiration session

100%

100%

HTTP GET requests

100%

100%

Cache clearing

100%

100%

Automatic caching behavior

100%

100%

0%

-10%

HTTP Cache Validator

Invalid response filtering and deletion

Criteria
Without context
With context

CachedSession Usage

0%

0%

Filter Invalid Responses

0%

0%

Delete Invalid Entries

0%

0%

Distinguish Response Types

33%

0%

Verify Cache State

50%

0%

Install with Tessl CLI

npx tessl i tessl/pypi-requests-cache
Evaluated
Agent
Claude Code

Table of Contents