Skip to main content

hgraph-persistence

Durable record/replay and frame storage for hgraph (RFC 0025): the FrameStore (memory / local filesystem / S3, Arrow IPC / Parquet), the frame-backed record/replay/compare overloads for the core operator markers, and the DataFrameStorage compatibility surface.

The public C++ ObjectStore is the durable metadata substrate shared by checkpoint/recovery and the versioned dataflow fabric. It provides:

  • immutable create-if-absent with distinct created, idempotent, and conflict outcomes;
  • typed absent reads carrying an opaque version token when present, with backend failures reported separately as ObjectStoreError;
  • deterministic lexicographic prefix paging;
  • compare/exchange for small named references; and
  • memory, local-filesystem, and S3 strategies behind one owning erased handle.

Local immutable publication uses atomic filesystem creation and reference CAS uses cross-process file locking plus atomic replacement. S3 conditional writes are sent with If-None-Match / If-Match and AWS Signature V4 through libcurl; they are not emulated with a read followed by an unconditional write. FrameStore immutable local and S3 writes use this same backend publication path after serialising the Frame. This requires one additional serialized-Frame-sized buffer for an immutable local or S3 write; mutable FrameStore writes retain their streaming path.

Wheel builds embed a pinned private curl for conditional S3 requests. A shared hgraph::persistence library carries that implementation itself; consumers of a static installed C++ library must provide CURL::libcurl version 7.75 or newer at the final link.

Installing and importing hgraph_persistence registers the "hgraph.persistence.frame" backend with the shared hgraph runtime; selecting that backend (set_record_replay_config) activates it from unchanged hgraph imports.

Runnable Python examples for direct record/replay, transparent component modes, and keyed time-series storage are in python/examples.

ComponentCheckpointStore stores a complete eligible component image under one immutable key. configure_component_recovery(store, component_id, checkpoint_key, restore_key=None, revision="1", global_state=state) selects the previous completed day and the next key before wiring. The runtime captures the component before stop and publishes only after a successful bounded run and successful teardown. Recovery quietly restores outputs, declared recorded state, and supported keyed map membership before new input is evaluated. Inputs must come directly from pull sources used exclusively by the component. Each run supplies future events for its interval; recovery restores the source endpoint baseline, while the caller remains responsible for its input cursor.

Each image is one Arrow cell holding core's canonical checkpoint image (RFC 0039) plus envelope metadata naming the format and the predecessor. Values use the binary value codec, so Frame, Series and non-finite floats are ordinary state. The whole image is encoded before the native store publishes it through its immutable object operation: a value the codec cannot represent fails before publication, every read verifies the image checksum, and write(..., verify=True) adds a decode-and-re-encode comparison. Images are compressed (RFC 0040: zstd where the Arrow build provides it, LZ4 otherwise); the envelope's format name describes the envelope, and the image carries its own version, currently 3. Version 1 images from hgraph 0.8.25-0.8.27 and version 2 images remain readable. There is no mutable latest pointer: applications select an exact predecessor and use a new key for every completed day. Filesystem and S3 durability follow the native object store's guarantees; this does not coordinate external sink transactions or external input acknowledgements.

The initial contract is deterministic simulation within a component, using declared RECORDABLE_STATE for semantic user-node state. Unsupported services, ordinary user STATE, captured Python closure state, schedulers, endpoint representations, and dynamic owners are refused explicitly. Error capture is also refused so a failed evaluation cannot be committed as a completed day. Python callback identity includes module, qualified name, input policy and scalar arguments. The application must change revision when its strategy code changes. Explicit __recordable_id__ values identify Python nodes inside a configured component and must be unique there.

See completed_days.py for a runnable example that restores day one in a new process and computes day two.

Metadata

Release files for hgraph-persistence 0.9.19

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-persistence 0.9.19
File Size Uploaded Provenance Actions
hgraph_persistence-0.9.19.tar.gz 170.0 kB With provenance Details for hgraph_persistence-0.9.19.tar.gz

Built distributions (wheels)

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

Total release size: 4.1 MB

Release files / hgraph_persistence-0.9.19.tar.gz

Download URL hgraph_persistence-0.9.19.tar.gz
Size 170.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4d8dd2d7a5b783adf39da6fe04a7a6c176950309c5ad6943b39ad92f1eb81413
BLAKE2b-256 checksum
How to use checksums
9c6ec13b06a8a21e323d107f76ebf106bd16fd6ddd4f99ff39fbb10d81bfbdf9
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 21, 2026.

Transparency log

Release files / hgraph_persistence-0.9.19-cp312-abi3-win_amd64.whl

Download URL hgraph_persistence-0.9.19-cp312-abi3-win_amd64.whl
Size 657.2 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c331dd18c03ba48e0ab7348116a1a8a5ec9471390c06b2334b31c4c1c1117f90
BLAKE2b-256 checksum
How to use checksums
3d8eb464cd8b7d9182f95cce1b7dd71ab6a9ffab5e8cb9aa97d3cf1c3f760bfc
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 21, 2026.

Transparency log

Release files / hgraph_persistence-0.9.19-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL hgraph_persistence-0.9.19-cp312-abi3-manylinux_2_28_x86_64.whl
Size 2.7 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
b2a728b62791d394b25f8bf23a5b3de90e5610abb2ee61d218c3813ae32ef0e8
BLAKE2b-256 checksum
How to use checksums
5a4ae3de5c3964e9113e4906615b85f1341d31c442b4f94b3532119a8aa90dab
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 21, 2026.

Transparency log

Release files / hgraph_persistence-0.9.19-cp312-abi3-macosx_26_0_arm64.whl

Download URL hgraph_persistence-0.9.19-cp312-abi3-macosx_26_0_arm64.whl
Size 636.5 kB
Tags CPython 3.12 abi3 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
d2b0e03010c3e71eaa84a8c681c6352f250bb4f195982df7ecc5329b0f29eb2f
BLAKE2b-256 checksum
How to use checksums
eb7ac397375a3b9ee739bfdd4188f53577a7609471cc639aa7ea6de31f41edd6
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 21, 2026.

Transparency log

Security for hgraph-persistence 0.9.19

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_persistence-0.9.19.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 21, 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.19 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