Skip to main content

hgraph

HGraph is a functional-reactive time-series engine with a Python-first user experience and a native C++ runtime. Most users author and test graphs with the hgraph Python package; library authors can use the C++ API directly when they need native integration or maximum performance. Both paths wire and execute through the same runtime.

Python package

The C++-backed runtime is published under the hgraph distribution name:

python -m pip install hgraph

The distribution exposes the supported hgraph authoring package and its private native _hgraph extension. The 0.8 line replaces the Python runtime maintained on the release/0.5 branch while retaining Python as the primary public API. One wheel per supported platform covers CPython 3.12 and later through the CPython stable ABI. The supported Python and platform policy is recorded in docs/source/developer_guide/release_readiness.rst.

Start with docs/source/getting_started.rst and use docs/source/reference/ for the supported Python types, decorators, operators and modules.

Build & test

cmake -S . -B build                 # configure (fmt + Catch2 fetched if absent)
cmake --build build -j              # build hgraph_core + tests
ctest --test-dir build --output-on-failure

Requires a C++23 compiler and CMake >= 3.25. Python/nanobind are not needed for the default build (bindings are opt-in via -DHGRAPH_BUILD_PYTHON_BINDINGS=ON).

First-party extensions

First-party extensions are co-developed in extensions/ but remain separate native and Python distributions. Kafka is built in-tree for development with -DHGRAPH_BUILD_KAFKA_EXTENSION=ON, or independently from extensions/kafka/ against an installed hgraph SDK. Its wheel is selected from the uv workspace after making that matching SDK discoverable:

CMAKE_PREFIX_PATH=/path/to/hgraph/sdk \
  uv build --wheel --package hgraph-kafka --python 3.12

The core build does not enable the extension by default and does not acquire a Kafka or librdkafka dependency.

Documentation

Sphinx docs live under docs/source (uv sync --extra docs, then uv run sphinx-build -W -b html docs/source docs/_build/html):

  • Getting started — docs/source/getting_started.rst: install the wheel and run a first graph in Python.
  • User guide — docs/source/user_guide/: the concepts the runtime implements and the primary Python authoring track (python/: quick start, common tasks, tutorial, programming model). Native C++ authoring is an advanced section for library authors.
  • Python API reference — docs/source/reference/: curated reference pages plus a generated inventory of wildcard exports, lazy operators and public submodules.
  • Specification — docs/source/specification/: a language-neutral definition of HGraph semantics.
  • Developer guide — the authoritative design records (docs/source/developer_guide/): architecture, data structures, wiring, nested graphs, mesh, services, error handling, operators, roadmap.

The narrative documentation's Python examples are executable. They are checked against a real runtime by sphinx-build -b doctest, which needs an importable hgraph; CI runs both that and the warning-free HTML build.

Contributing / AI sessions

  • AGENTS.md — canonical project direction: goals, build philosophy, source layout, dependency policy, git hygiene.
  • CLAUDE.md — the operational working guide: the enforced design-first workflow (docs change in the same commit as code), guardrails, architecture map, and current state.
  • plugins/hgraph-development/ — installable hgraph development skills for downstream Codex and Claude projects.

Shared specifications

Run python3 tools/shared_artifacts.py before documentation or contract-test work to initialize the pinned specification and audit repositories.

The HGL compiler and language tooling live in the separate public hgraph_lang project, which consumes the installed hgraph SDK.

Metadata

Release files for hgraph 0.9.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hgraph 0.9.5
File Size Uploaded Provenance Actions
hgraph-0.9.5.tar.gz 12.0 MB With provenance Details for hgraph-0.9.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for hgraph 0.9.5
File Interpreter ABI Platform Actions
hgraph-0.9.5-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for hgraph-0.9.5-cp312-abi3-win_amd64.whl
hgraph-0.9.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for hgraph-0.9.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
hgraph-0.9.5-cp312-abi3-macosx_26_0_arm64.whl CPython 3.12 abi3 macOS 26.0+ ARM64 Details for hgraph-0.9.5-cp312-abi3-macosx_26_0_arm64.whl

Total release size: 54.4 MB

Release files / hgraph-0.9.5.tar.gz

Download URL hgraph-0.9.5.tar.gz
Size 12.0 MB
Tags Source
SHA-256 checksum
How to use checksums
362b36b13f5bb204be7577bff05e3453eef0ba14a76bbc95ee00431e84f6d4c7
BLAKE2b-256 checksum
How to use checksums
7fcd07c8cc40daab2cc1b72bf05c8823b5bbc6c5b9f3e3aa5a5c543766c8841e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

Release files / hgraph-0.9.5-cp312-abi3-win_amd64.whl

Download URL hgraph-0.9.5-cp312-abi3-win_amd64.whl
Size 18.0 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4888f0a14daf0e30c5d97e58c8a590887f8d2b7fdcbaaa5779e02523ea7f27a9
BLAKE2b-256 checksum
How to use checksums
a8bdcf08b0f2cfadecb023b4139535ed203a2fb3a95d19821574075430a92bfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

Release files / hgraph-0.9.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL hgraph-0.9.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 12.0 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
bb34ac5ea725502e27549f6e30ebe85e07e4c8202746e78e330f78c41c645c4b
BLAKE2b-256 checksum
How to use checksums
141db2d4561e810a03e7266b839a6d6c6c1f2ee67da54f1ba78063585414a705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

Release files / hgraph-0.9.5-cp312-abi3-macosx_26_0_arm64.whl

Download URL hgraph-0.9.5-cp312-abi3-macosx_26_0_arm64.whl
Size 12.4 MB
Tags CPython 3.12 abi3 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
c9d02f7a077ba51ac65e5fa13893af4b84e5034232fc36b6ec33d1943e36b2f7
BLAKE2b-256 checksum
How to use checksums
ecf571931c773dc2fdfc3e29eba5b38255da27da19f718f50868f628fb33fa3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 19, 2026.

Transparency log

Security for hgraph 0.9.5

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

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for hgraph-0.9.5.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 19, 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

0.9.5 This release

4 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