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-2/

{
  "context": "This criteria evaluates how well the engineer uses the hishel package to implement HTTP caching for the requests library through adapter-based integration. The focus is on proper instantiation and configuration of hishel components for persistent caching with metadata tracking.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "CacheAdapter usage",
      "description": "Uses hishel.CacheAdapter class to create a caching adapter for the requests session",
      "max_score": 25
    },
    {
      "name": "SQLite storage configuration",
      "description": "Instantiates hishel.SyncSqliteStorage with the correct database_path parameter set to '.cache/http_cache.db' and default_ttl parameter set to 300 seconds",
      "max_score": 25
    },
    {
      "name": "Adapter mounting",
      "description": "Correctly mounts the CacheAdapter to both 'http://' and 'https://' URL schemes using session.mount() method",
      "max_score": 20
    },
    {
      "name": "Storage injection",
      "description": "Passes the configured storage instance to the CacheAdapter constructor through the storage parameter",
      "max_score": 15
    },
    {
      "name": "Metadata access",
      "description": "Implementation supports accessing cache metadata through response headers (X-Hishel-From-Cache, X-Hishel-Created-At, X-Hishel-Stored) to determine cache status",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-hishel

tile.json