Skip to content

Hyper-Cache/hypercache-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HyperCache SDKs

Official client libraries for the HyperCache API — Python, TypeScript/JavaScript, Rust, and Go.

Install

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.

Quickstart (Python)

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.

Repository layout

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

License

MIT.

About

Hyper Fast KV Cache. No repeat LLM calls. Real audit trail.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors