Official client libraries for the HyperCache API — Python, TypeScript/JavaScript, Rust, and Go.
| Language | Install | Package |
|---|---|---|
| Python | pip install hypercache-kv |
PyPI |
| TypeScript / JS | npm install hypercache-kv |
npm |
| Rust | cargo add hypercache-kv |
crates.io |
| Go | go get github.com/Hyper-Cache/hypercache-sdk/sdks/go@latest |
— |
Set your key:
export HYPERCACHE_KEY=hck_...Get a key at hypercache.ai.
import hypercache
result = hypercache.cache_lookup(b"some input")
if result.hit:
use(result.value)
else:
hypercache.cache_put(result.fingerprint_hex, expensive_output, ttl=3600)Each language's README has full usage.
sdks/
python/ pip install hypercache-kv (import: hypercache)
typescript/ npm install hypercache-kv
rust/ cargo add hypercache-kv (lib: hypercache)
go/ go get github.com/Hyper-Cache/hypercache-sdk/sdks/go
MIT.