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.1
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.1.tar.gz | 25.4 kB | With provenance | Details for hypergraph_client-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hypergraph_client-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for hypergraph_client-2.0.1-py3-none-any.whl |
Total release size: 52.8 kB
Release files / hypergraph_client-2.0.1.tar.gz
| Download URL | hypergraph_client-2.0.1.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3e6ab2d5daf38c80387a706bac89d9c0bb1cda49238121af81f14d22ab278bd
|
|
BLAKE2b-256 checksum How to use checksums |
0c6710fe7902b227d51fa1123f14cdc18d2bd9ae73d4269156fbdd6ceb57030b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / hypergraph_client-2.0.1-py3-none-any.whl
| Download URL | hypergraph_client-2.0.1-py3-none-any.whl |
|---|---|
| Size | 27.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e15121eaf80eb2a5421e0cf371af2ff21e0fcf6624e43035bf80d9a094b6eef5
|
|
BLAKE2b-256 checksum How to use checksums |
97f43b1725e5f963a0671d189f8d722862797dd3a8612e7238ce89bf7cd41c27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for hypergraph-client 2.0.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for hypergraph_client-2.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA 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.