CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-hishel

Persistent cache implementation for httpx and httpcore following RFC 9111 specification

74

1.48x
Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how well the engineer uses the hishel package to implement HTTP cache validation using ETag and Last-Modified headers. The focus is on proper usage of hishel's built-in conditional request generation and 304 Not Modified handling capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Hishel Client Usage",
      "description": "Uses hishel.CacheClient or hishel.AsyncCacheClient as the underlying HTTP client rather than implementing caching from scratch",
      "max_score": 25
    },
    {
      "name": "Storage Backend",
      "description": "Configures a storage backend such as hishel.FileStorage, hishel.SQLiteStorage, or hishel.InMemoryStorage for caching responses",
      "max_score": 10
    },
    {
      "name": "Proper Client Setup",
      "description": "Correctly initializes hishel.CacheClient with appropriate storage backend, allowing hishel to automatically handle cache validators",
      "max_score": 15
    },
    {
      "name": "ETag Handling",
      "description": "Implementation correctly leverages hishel's automatic If-None-Match header generation from cached ETag values for conditional requests",
      "max_score": 20
    },
    {
      "name": "Last-Modified Handling",
      "description": "Implementation correctly leverages hishel's automatic If-Modified-Since header generation from cached Last-Modified values for conditional requests",
      "max_score": 20
    },
    {
      "name": "304 Response Handling",
      "description": "Relies on hishel's built-in 304 Not Modified response handling to serve cached content without manual intervention",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-hishel

tile.json