CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pylibmc

Quick and small memcached client for Python

86

1.03x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "Evaluates whether the solution wires pylibmc's custom serialization hooks into cache operations. Checks that JSON payloads are flagged, raw bytes are preserved, and CacheMiss is used to treat incompatible data as misses.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Hook wiring",
      "description": "Custom serialize/deserialize functions are set on a pylibmc.Client (or subclass) so set/get calls flow through the hooks rather than manual pre/post-processing.",
      "max_score": 20
    },
    {
      "name": "JSON flagging",
      "description": "serialize encodes dictionaries to UTF-8 JSON bytes and returns them with a nonzero custom flag, and deserialize decodes back to dicts when that flag is encountered.",
      "max_score": 25
    },
    {
      "name": "Bytes passthrough",
      "description": "Bytes inputs bypass extra encoding and serialize returns them with a neutral/default flag (e.g., 0), with deserialize echoing the raw bytes for that flag.",
      "max_score": 15
    },
    {
      "name": "Cache miss sentinel",
      "description": "deserialize returns pylibmc.CacheMiss (not None/False) for unrecognized flags so the backend treats those entries as misses rather than errors.",
      "max_score": 25
    },
    {
      "name": "Default handling",
      "description": "Read helpers return the caller-provided default/None when CacheMiss is raised/returned, relying on pylibmc miss semantics and leaving cached data untouched.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-pylibmc

tile.json