Skip to main content

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)
  • endpoint defaults to $HYPERGRAPH_ENDPOINT, then localhost:50051. It accepts host:port, tcp://host:port and unix:///path.
  • api_key defaults to $HYPERGRAPH_API_KEY and is sent as x-api-key.
  • AsyncHypergraphClient offers the same methods for asyncio.
  • HypergraphKVOffloadTierManager stores 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.
  • SessionMemory stores chat messages around a session:<id> node; see the hypergraph_client.session module for the graph conventions.
  • HashingEmbedder is 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)

Source distribution for hypergraph-client 2.0.1
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)

Table of built distributions (wheels) for hypergraph-client 2.0.1
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

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.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page