Skip to main content

hgraph-analytics

C++-first numerical analytics for hgraph. The package owns the numerical analytical family migrated from core—diff, count, clip, ewma, and pct_change—plus quantile, shaped-array array_std, shaped-array rolling_window, window_values, array_get_item, cumulative_sum, correlation, generic std/var, trailing rolling_mean, scheduled resample, and the EWMA parameter conversion helpers.

For installation, semantics, and Python/C++ usage patterns, see the analytics user guide. Runnable examples covering scalar pipelines, rolling windows, and shaped-array analytics are in python/examples.

import hgraph as hg
import hgraph_analytics as hga

change = hga.pct_change(
    value,
    period=12,
    divide_by_zero=hg.DivideByZero.NAN,
)

bounded = hga.clip(change, -0.25, 0.25)
smoothed = hga.ewma(bounded, alpha=0.2)
median = hga.quantile(observations, 0.5)
volatility = hga.array_std(observations, ddof=1)
recent = hga.rolling_window(value, period=20, min_window_period=5)
window = hga.window_values(hg.to_window(value, 20))
running = hga.cumulative_sum(observations, axis=0)
correlation = hga.correlation(observations, rowvar=False)
sample_volatility = hga.std(hg.to_window(change, 20, 20), ddof=1)
moving_average = hga.rolling_mean(value, period=20)

The result is fractional: 0.05 denotes five percent. period counts valid source observations and must be positive. The operator does not infer dataframe ordering, elapsed-time sampling, market sessions, or financial price adjustment.

Native consumers link hgraph::analytics, call hgraph::analytics::register_analytics_operators(), and wire the markers in hgraph::analytics, including diff, count, clip, ewma, pct_change, window_values, array_get_item, cumulative_sum, correlation, quantile, array_std, rolling_window, std_, var_, rolling_mean, and resample.

See the hgraph user-guide migration note for the complete Python and C++ name mapping from the former core API.

Metadata

Release files for hgraph-analytics 0.9.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 hgraph-analytics 0.9.1
File Size Uploaded Provenance Actions
hgraph_analytics-0.9.1.tar.gz 42.2 kB With provenance Details for hgraph_analytics-0.9.1.tar.gz

Built distributions (wheels)

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

Total release size: 12.6 MB

Release files / hgraph_analytics-0.9.1.tar.gz

Download URL hgraph_analytics-0.9.1.tar.gz
Size 42.2 kB
Tags Source
SHA-256 checksum
How to use checksums
da57cd546132015a16b7295a793a82cccaac90c3f445bcdfdc52e7cd33e82702
BLAKE2b-256 checksum
How to use checksums
888c0f2dc8494f0cb00f9ad5485f31981baabf29f10e7aa1b3185e6f5b7f3f9b
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 18, 2026.

Transparency log

Release files / hgraph_analytics-0.9.1-cp312-abi3-win_amd64.whl

Download URL hgraph_analytics-0.9.1-cp312-abi3-win_amd64.whl
Size 7.6 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a6bbd00b0ef68caabbbe3f61e5a4a1f4f8d9dc970e3d86c9a63c17eb5bc39f99
BLAKE2b-256 checksum
How to use checksums
d82dafff94f97adc4fc41ff3b01f6d44f9afc8204b6fb0cb6a9a07cc9e260cfb
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 18, 2026.

Transparency log

Release files / hgraph_analytics-0.9.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL hgraph_analytics-0.9.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.8 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
0704be597f13441d7a270eaebc49011792c2dc77c74e6ed7be0150950b2452b5
BLAKE2b-256 checksum
How to use checksums
395bc12ec4a914f158fa67bca4f8d6906d6857d78f3bb67c87af62bcce239d8e
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 18, 2026.

Transparency log

Release files / hgraph_analytics-0.9.1-cp312-abi3-macosx_26_0_arm64.whl

Download URL hgraph_analytics-0.9.1-cp312-abi3-macosx_26_0_arm64.whl
Size 2.2 MB
Tags CPython 3.12 abi3 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
9f56d3055797691ae24e7abfa919ac81f8eb742e0f3ed9b264261a45c272c465
BLAKE2b-256 checksum
How to use checksums
dc72f34e3c706736bb978e7d2fbc1a59098178020bf1a8faad127689d4d3b4a4
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 18, 2026.

Transparency log

Security for hgraph-analytics 0.9.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

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

Select from 4 files

Attestation for hgraph_analytics-0.9.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 18, 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.1 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