{"id":27564,"library":"zccache","title":"zccache","description":"A high-performance local compiler cache daemon for Python, designed to accelerate repetitive compilation tasks. Requires Python >=3.10. Latest version: 1.3.10, released with monthly patches under active development.","status":"active","version":"1.3.10","language":"python","source_language":"en","source_url":"https://github.com/user/zccache","tags":["compiler","cache","daemon","build","acceleration"],"install":[{"cmd":"pip install zccache","lang":"bash","label":"Standard install"}],"dependencies":[],"imports":[{"note":"Common mistake: using 'zcc' as an alias or thinking the module is zcc. Always import as 'zccache'.","wrong":"import zcc as zccache","symbol":"zccache","correct":"import zccache"}],"quickstart":{"code":"import zccache\n\n# Configure and start the daemon\nconfig = zccache.Config(cache_dir=\"/tmp/zccache\", max_size=\"1GB\")\ndaemon = zccache.Daemon(config)\ndaemon.start()\n\n# Use the cache for compilation\nresult = zccache.run(\"gcc -O2 main.c -o main\")\nprint(result)\n\ndaemon.stop()","lang":"python","description":"Initialize a zccache daemon, run a compiler command, and retrieve cached results."},"warnings":[{"fix":"Replace `zccache.Cache(...)` with `zccache.Config(...)`.","message":"In v1.3.0, the `Cache` class was renamed to `Config`. Old code using `zccache.Cache(...)` will raise AttributeError.","severity":"breaking","affected_versions":">=1.3.0,<1.3.0"},{"fix":"Always call daemon.start() before invoking zccache.run().","message":"The daemon must be started before any run() call; otherwise run() silently falls back to uncached execution.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install zccache' and ensure you are in the correct environment.","cause":"zccache not installed or virtual environment not activated.","error":"ModuleNotFoundError: No module named 'zccache'"},{"fix":"Use 'zccache.Config' instead of 'zccache.Cache'.","cause":"Breaking change in v1.3.0: 'Cache' was renamed to 'Config'.","error":"AttributeError: module 'zccache' has no attribute 'Cache'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}