hypergraph-client
gRPC client for the Temporal Hypergraph Engine. The LangChain and LlamaIndex integrations are built on it.
pip install hypergraph-client
docker run -d -p 50051:50051 ghcr.io/divyansh151005/temporal-hypergraph-server
For development from a clone: pip install -e integrations/python-client.
from hypergraph_client import TemporalHypergraph
memory = TemporalHypergraph(api_key="your_key") # session "default"; pass session_id= to change
from hypergraph_client import HypergraphClient, Hyperedge
with HypergraphClient("localhost:50051", api_key=None) as client:
client.insert(Hyperedge("ACQUISITION", ["org:microsoft", "org:activision"], 1696118400,
summary="Microsoft completed its Activision acquisition"))
for edge in client.traverse(["org:microsoft"], k_hops=3):
print(edge.score, edge.summary)
endpointdefaults to$HYPERGRAPH_ENDPOINT, thenlocalhost:50051. It acceptshost:port,tcp://host:portandunix:///path.api_keydefaults to$HYPERGRAPH_API_KEYand is sent asx-api-key.AsyncHypergraphClientoffers the same methods forasyncio.HypergraphKVOffloadTierManagerstores and loads KV blocks over gRPC (submit_store,submit_load,close) with a vLLM-style interface. It is not yet loadable as a vLLM secondary tier; call it from your own code.SessionMemorystores chat messages around asession:<id>node; see thehypergraph_client.sessionmodule for the graph conventions.HashingEmbedderis a deterministic, dependency-free default embedder. Use a real embedding model for semantic retrieval quality.
Stubs in src/hypergraph_client/_proto/ are generated; regenerate them with
scripts/gen_protos.sh python after editing proto/hypergraph_service.proto.
Tests (they start a local server; build it first with
cargo build --release -p grpc-server):
pytest integrations/python-client
Metadata
Release files for hypergraph-client 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hypergraph_client-2.0.0.tar.gz | 25.5 kB | Without provenance | Details for hypergraph_client-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hypergraph_client-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for hypergraph_client-2.0.0-py3-none-any.whl |
Total release size: 52.8 kB
Release files / hypergraph_client-2.0.0.tar.gz
| Download URL | hypergraph_client-2.0.0.tar.gz |
|---|---|
| Size | 25.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f04a13d9b109dacdf3cdf0d1ff173673b8ad000342259d8b0580541ff2c022aa
|
|
BLAKE2b-256 checksum How to use checksums |
1d2b0b1d7edc2113e88395b9370dca172d015113fcc94fed3768baf5bfed4fd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.13
|
Release files / hypergraph_client-2.0.0-py3-none-any.whl
| Download URL | hypergraph_client-2.0.0-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0cf47d15daeca65ddc10e97f27e0d98ead55f85abca46d315602932f0be7c90
|
|
BLAKE2b-256 checksum How to use checksums |
01b030e438504d944ee85a5d09141afa39a847de0569fdd91f9f16bcb6ac1041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.13
|
Security for hypergraph-client 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.