hg_cpp
A clean-slate, C++-first implementation of the hgraph functional-reactive time-series runtime. The C++ runtime is the source of truth. Python provides wiring compatibility and supports Python-authored nodes running inside that runtime.
Python package
The C++-backed compatibility package is published under the hg_cpp
distribution name:
python -m pip install hg_cpp
The distribution exposes the hgraph import package and the native _hgraph
extension. Install it in an isolated environment rather than alongside the
main hgraph distribution, since both provide the same Python import namespace.
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.
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):
- User guide — start at
docs/source/user_guide/quick_start.rst, then the authoring/testing guides for nodes, graphs, and theeval_nodeharness. - Developer guide — the authoritative design records
(
docs/source/developer_guide/): architecture, data structures, wiring, nested graphs, mesh, services, error handling, operators, roadmap.
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.- The read-only
ext/maintree is the canonical Pythonhgraphreference.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hg_cpp-0.4.18.tar.gz.
File metadata
- Download URL: hg_cpp-0.4.18.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8202f456f454e71bfeb948e6de7ebcd89bf26ae8fd2ff872e483f05444a9d9d9
|
|
| MD5 |
e59cb4ffd3c757108b35dc4929444e92
|
|
| BLAKE2b-256 |
1b15e3316c190468cdd7a83f9105d2b577a57642229c31f66ebb56ce65be5f7c
|
Provenance
The following attestation bundles were made for hg_cpp-0.4.18.tar.gz:
Publisher:
build.yml on hhenson/hg_cpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hg_cpp-0.4.18.tar.gz -
Subject digest:
8202f456f454e71bfeb948e6de7ebcd89bf26ae8fd2ff872e483f05444a9d9d9 - Sigstore transparency entry: 2386373259
- Sigstore integration time:
-
Permalink:
hhenson/hg_cpp@571f340356e75cb0e5dcceb13704d3655d72f34e -
Branch / Tag:
refs/tags/v_0.4.18 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@571f340356e75cb0e5dcceb13704d3655d72f34e -
Trigger Event:
push
-
Statement type:
File details
Details for the file hg_cpp-0.4.18-cp312-abi3-win_amd64.whl.
File metadata
- Download URL: hg_cpp-0.4.18-cp312-abi3-win_amd64.whl
- Upload date:
- Size: 16.8 MB
- Tags: CPython 3.12+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6a4f8ce0d328fb3b57d6c1c65023dae15fdd857d0496111b30bec6782c7706c
|
|
| MD5 |
2467dc3ae4686b7d88f904bae43ac55c
|
|
| BLAKE2b-256 |
81066fa44f32cc24a8ee6b448003487c9b269a50c073cd245ee99b11c333f82c
|
Provenance
The following attestation bundles were made for hg_cpp-0.4.18-cp312-abi3-win_amd64.whl:
Publisher:
build.yml on hhenson/hg_cpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hg_cpp-0.4.18-cp312-abi3-win_amd64.whl -
Subject digest:
a6a4f8ce0d328fb3b57d6c1c65023dae15fdd857d0496111b30bec6782c7706c - Sigstore transparency entry: 2386373345
- Sigstore integration time:
-
Permalink:
hhenson/hg_cpp@571f340356e75cb0e5dcceb13704d3655d72f34e -
Branch / Tag:
refs/tags/v_0.4.18 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@571f340356e75cb0e5dcceb13704d3655d72f34e -
Trigger Event:
push
-
Statement type:
File details
Details for the file hg_cpp-0.4.18-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: hg_cpp-0.4.18-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.4 MB
- Tags: CPython 3.12+, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80c26eabd866b9da9b58eda644394816107299ec84c47d2cb617c91eb4a6fa27
|
|
| MD5 |
3cf084b68f3b1192eec08aad7199e45a
|
|
| BLAKE2b-256 |
3e236ba5df60fc5d742b70b5e45e5a528edf21516c958ec0688a73624bb3aa0c
|
Provenance
The following attestation bundles were made for hg_cpp-0.4.18-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
build.yml on hhenson/hg_cpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hg_cpp-0.4.18-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
80c26eabd866b9da9b58eda644394816107299ec84c47d2cb617c91eb4a6fa27 - Sigstore transparency entry: 2386373380
- Sigstore integration time:
-
Permalink:
hhenson/hg_cpp@571f340356e75cb0e5dcceb13704d3655d72f34e -
Branch / Tag:
refs/tags/v_0.4.18 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@571f340356e75cb0e5dcceb13704d3655d72f34e -
Trigger Event:
push
-
Statement type:
File details
Details for the file hg_cpp-0.4.18-cp312-abi3-macosx_15_0_arm64.whl.
File metadata
- Download URL: hg_cpp-0.4.18-cp312-abi3-macosx_15_0_arm64.whl
- Upload date:
- Size: 8.0 MB
- Tags: CPython 3.12+, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04b7b6809d1ee4ec1198184e1ac9ac3b47760de8e001be6433ab891a5df4eb2d
|
|
| MD5 |
7ad172ed8b735a3bc5889c29faa9e5dd
|
|
| BLAKE2b-256 |
769b07e76eb2a8b1d8847bc1fc26efcf123eac13d96c41bbbddb3fc0d44c51a4
|
Provenance
The following attestation bundles were made for hg_cpp-0.4.18-cp312-abi3-macosx_15_0_arm64.whl:
Publisher:
build.yml on hhenson/hg_cpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hg_cpp-0.4.18-cp312-abi3-macosx_15_0_arm64.whl -
Subject digest:
04b7b6809d1ee4ec1198184e1ac9ac3b47760de8e001be6433ab891a5df4eb2d - Sigstore transparency entry: 2386373304
- Sigstore integration time:
-
Permalink:
hhenson/hg_cpp@571f340356e75cb0e5dcceb13704d3655d72f34e -
Branch / Tag:
refs/tags/v_0.4.18 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@571f340356e75cb0e5dcceb13704d3655d72f34e -
Trigger Event:
push
-
Statement type: