Skip to main content

numpy-onlinestats

PyPI pre-commit.ci status unit tests Documentation Status

This is a Python package for element-wise streaming statistics of Numpy arrays, meaning that arrays can be added one-by-one. This is much more memory-efficient than first collecting all arrays before calculating statstics. One major usecase is Bayesian modeling, where the posterior distribution is often intractable and can only be approximated via sampling. This concerns both MCMC and variational inference meethods. MCMC is inherently sampling-based, while variational inference methods can have derived quantities or structured posteriors that do not admit closed-form expressions for properties of their distribution.

numpy-onlinestats approximates quantiles and cumulative distribution functions using the t-digest algorithm (in particular, it uses this implementation) and calculates exact moments using a numerically stable algorithm.

Requirements

  • Python 3.10 or newer
  • A C++20 compatible compiler with OpenMP support (developed with GCC 13 using -std=c++20)
  • libopenmp

Sample code

import numpy as np
import numpy_onlinestats as npo

stats = npo.NpOnlineStats(np.random.uniform(size=(5, 3, 7)))
for i in range(100):
    stats.add(np.random.uniform(size=(5, 3, 7)))

stats.quantile(0.25)
stats.mean()
stats.var()

Metadata

Release files for numpy-onlinestats 0.1.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 numpy-onlinestats 0.1.1
File Size Uploaded Provenance
numpy_onlinestats-0.1.1.tar.gz 663.0 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for numpy-onlinestats 0.1.1
File
numpy_onlinestats-0.1.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
numpy_onlinestats-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
numpy_onlinestats-0.1.1-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details
numpy_onlinestats-0.1.1-cp313-cp313-macosx_14_0_arm64.whl CPython 3.13 CPython 3.13 macOS 14.0+ ARM64 Details
numpy_onlinestats-0.1.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
numpy_onlinestats-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
numpy_onlinestats-0.1.1-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details
numpy_onlinestats-0.1.1-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details
numpy_onlinestats-0.1.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
numpy_onlinestats-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
numpy_onlinestats-0.1.1-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details
numpy_onlinestats-0.1.1-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details
numpy_onlinestats-0.1.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
numpy_onlinestats-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
numpy_onlinestats-0.1.1-cp310-cp310-macosx_15_0_arm64.whl CPython 3.10 CPython 3.10 macOS 15.0+ ARM64 Details
numpy_onlinestats-0.1.1-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details

Total release size: 7.0 MB

Release files / numpy_onlinestats-0.1.1.tar.gz

Download URL numpy_onlinestats-0.1.1.tar.gz
Size 663.0 kB
Tags Source
SHA-256 checksum
How to use checksums
716caf212fadd2cd42ad7bb8a24246e36f45238a2b0754a58c858ef649b9ea9f
BLAKE2b-256 checksum
How to use checksums
0e91529eca7bda1c07c15b8a1c6e5fe1cbc6abb09cb517ba77d2bb6e13c78223
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp313-cp313-win_amd64.whl

Download URL numpy_onlinestats-0.1.1-cp313-cp313-win_amd64.whl
Size 593.1 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
45ad15b886ce8403eb00cf557a0e5faba73b0e78896d6fb62bbbb4d47dcdba7d
BLAKE2b-256 checksum
How to use checksums
fd7415870634b2e9f9b9be6f0ae7a3b00354004cd56e35ca5aaaf909ad16e654
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL numpy_onlinestats-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 231.6 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
09709cc3d3020017b4cd713efcf5fd1275bc3b4320f962d9eb3ffc32b308d19e
BLAKE2b-256 checksum
How to use checksums
a432792b48828e7f2249061617d247498691eb0433524fc6533a3ef03727a065
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp313-cp313-macosx_15_0_arm64.whl

Download URL numpy_onlinestats-0.1.1-cp313-cp313-macosx_15_0_arm64.whl
Size 381.1 kB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
07326e52a7c82e42b7db773edf5803c2e6361b9926981371f73d5eb35c8876e6
BLAKE2b-256 checksum
How to use checksums
ae30788edb677f0b31b97b31171aef0346b1a06b52cc488f281fd7f36ac2ab68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp313-cp313-macosx_14_0_arm64.whl

Download URL numpy_onlinestats-0.1.1-cp313-cp313-macosx_14_0_arm64.whl
Size 381.4 kB
Tags CPython 3.13 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
780aea8919e2b6d66c6db0219e212aed86cc34c6ec6e0830571aaec74c7bc079
BLAKE2b-256 checksum
How to use checksums
7943c2da356a91e75dcabd4645cfcc9e8927ca7f7cbf5d9da7646a0560362e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp312-cp312-win_amd64.whl

Download URL numpy_onlinestats-0.1.1-cp312-cp312-win_amd64.whl
Size 593.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
b8b83a8df54cb61e31415a267317cf5e99f1ad5113791af2329a5e1c8380cedf
BLAKE2b-256 checksum
How to use checksums
93dc1ce12ca69431f3b67445011d2793861dfbd5dc2a3e6575aa18a4e350eff0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL numpy_onlinestats-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 231.6 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ecd38799f231070c95245fdfc0daf4f80ee4ac3456def13e4de747336d5a991a
BLAKE2b-256 checksum
How to use checksums
82e89612195d444c434e4c1b58658025117eae6b44c71b14bcc39fecafca565c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp312-cp312-macosx_15_0_arm64.whl

Download URL numpy_onlinestats-0.1.1-cp312-cp312-macosx_15_0_arm64.whl
Size 381.1 kB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
03aea3c1cc4820fa8ae65fdf9f6d7ad00b56bbee6284a8d6563e05b75a84c057
BLAKE2b-256 checksum
How to use checksums
1033ecac6b33c9de9dcbf243120e84c70c08948858f9df241ef2de2828de4978
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp312-cp312-macosx_14_0_arm64.whl

Download URL numpy_onlinestats-0.1.1-cp312-cp312-macosx_14_0_arm64.whl
Size 381.4 kB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
0d694a094423ace42825bde2fd44ba6b4d4e7c8878533303720f9b3660b6a820
BLAKE2b-256 checksum
How to use checksums
a3cbcf1cb785146425b56fc61530c2fa367e1d63ba5b3032a3c029ff0cb81301
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp311-cp311-win_amd64.whl

Download URL numpy_onlinestats-0.1.1-cp311-cp311-win_amd64.whl
Size 595.0 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
a1a79bc031a079d904016f06de6e674baabbbc7c8d7ad9dcb9aff0354b421f92
BLAKE2b-256 checksum
How to use checksums
fa97cbad6c7a43c84d75413488fbafc4744bfde65b1c464c4737d5947e9670e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL numpy_onlinestats-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 235.5 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
8a8def227d419de28c4297ec314fef048f8fa8c0ffc6f6f79f3f2f11b6cb3fab
BLAKE2b-256 checksum
How to use checksums
b3ccc448da628e9dcf5ec4cae7f857e1d697270a52f60c759585751a4e90047b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp311-cp311-macosx_15_0_arm64.whl

Download URL numpy_onlinestats-0.1.1-cp311-cp311-macosx_15_0_arm64.whl
Size 383.5 kB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
90f00ad894252455320e31fde8d4d6e23ee432c5c286cfb380012d69cbf878e1
BLAKE2b-256 checksum
How to use checksums
f819bc4aae4fd5fc5c617ba6cb8da3ddbbd499614e9b373d503d655996c4a592
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp311-cp311-macosx_14_0_arm64.whl

Download URL numpy_onlinestats-0.1.1-cp311-cp311-macosx_14_0_arm64.whl
Size 383.9 kB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
cc706c8118381dd301202894de88743d203ff5cea1626a0a0403acef956321f2
BLAKE2b-256 checksum
How to use checksums
a61d3bbc70b95acf4f24b1070504b041baa6b38aec931319eb4421560b65e075
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp310-cp310-win_amd64.whl

Download URL numpy_onlinestats-0.1.1-cp310-cp310-win_amd64.whl
Size 595.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
797bac9cc04073f26e27b89a09c05c777e38deb51020d59dd4a8bdbbeabda953
BLAKE2b-256 checksum
How to use checksums
cd1cff0c690108a8f16a506fe3f2d49edc1702a942219f314ced4041795005a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL numpy_onlinestats-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 235.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1fbd419252132aea1f135a287e111c06922d1fb62fa82271b640aaea1e509d91
BLAKE2b-256 checksum
How to use checksums
3865d0cf1d23125e136d4f46aea8a736b1c13831528d1e86236af26143f34f58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp310-cp310-macosx_15_0_arm64.whl

Download URL numpy_onlinestats-0.1.1-cp310-cp310-macosx_15_0_arm64.whl
Size 383.7 kB
Tags CPython 3.10 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
832c81f8f6ef13b823d3194b7d1fc176d6eaf25ea3a10fce27751ac9a9fa4b3a
BLAKE2b-256 checksum
How to use checksums
c52ff6670d60ecb646d5a3dd4c12533204337c297698ae2463d3296128d6698a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Release files / numpy_onlinestats-0.1.1-cp310-cp310-macosx_14_0_arm64.whl

Download URL numpy_onlinestats-0.1.1-cp310-cp310-macosx_14_0_arm64.whl
Size 384.1 kB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
d220a925c233703977b77d78e3490c40095f93a91dd5ee937cd943b43cf505da
BLAKE2b-256 checksum
How to use checksums
8c3c715ce30488caf71837ebe03a48ef59a42511ebc0d3ac4aa45f767e985ae9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 22, 2025.

Transparency log

Security for numpy-onlinestats 0.1.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 17 files in this release have been uploaded with provenance metadata.

Select from 17 files

Attestation for numpy_onlinestats-0.1.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 Apr 22, 2025.

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.1.1 This release

17 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