statstream: Statistics for Streaming Data
statstream is a lightweight Python package providing data analysis and statistics utilities for streaming data.
Its main goal is to provide single-pass variants of conventional numpy data analysis and statistics functionality for streaming data that is either generated on the fly or to large to be handled at once. Data can be streamed as in chunks called mini-batches, which makes statstream extremely useful in combination with machine learning and deep learning packages like keras, tensorflow, or pytorch.
statstream functions consume iterators providing batches of data. They compute statistics of these batches and combine them to obtain statistics for the full data set.
import statstream
mean = statstream.streaming_mean(some_iterable)
The Overview and Examples sections of our documentation provide more realistic and complete examples.
Project Information
statstream is released under the MIT license, its documentation lives at Read the Docs, the code on GitHub, and the latest release can be found on PyPI. It’s tested on Python 2.7 and 3.5+.
If you’d like to contribute to statstream you’re most welcome. We have written a short guide to help you get you started!
Further Reading
Additional information on the algorithmic aspects of statstream can be found in the following works:
Tony F. Chan & Gene H. Golub & Randall J. LeVeque, “Updating formulae and a pairwise algorithm for computing sample variances”, 1979
Radim, Rehurek, “Scalability of Semantic Analysis in Natural Language Processing”, 2011
Acknowledgments
During the setup of this project we were heavily influenced and inspired by the works of Hynek Schlawack and in particular his attrs package and blog posts on testing and packaing and deploying to PyPI. Thank you for sharing your experiences and insights.
Metadata
Release files for statstream 22.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| statstream-22.1.0.tar.gz | 36.3 kB | Without provenance | Details for statstream-22.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| statstream-22.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for statstream-22.1.0-py2.py3-none-any.whl |
Total release size: 48.3 kB
Release files / statstream-22.1.0.tar.gz
| Download URL | statstream-22.1.0.tar.gz |
|---|---|
| Size | 36.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db87823438849985e7951f639a87182f5910f865e7c4fda9d085c22e23d72d54
|
|
BLAKE2b-256 checksum How to use checksums |
ca7680436c7f3964c76b8581994ad0d75f8297f1887ef3fe43fbd19f79e41d57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.8.3 requests/2.28.1 setuptools/65.0.2 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.3
|
Release files / statstream-22.1.0-py2.py3-none-any.whl
| Download URL | statstream-22.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e862dc502786a6f33a48e0d62d2c5e8fa633fbd6ef5a92a689765e0829bc6b6a
|
|
BLAKE2b-256 checksum How to use checksums |
c958d991aa0aa07feeec14bc5cf70964b0559fcf0d13c51861ffb58f2aa11a35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.8.3 requests/2.28.1 setuptools/65.0.2 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.3
|
Security for statstream 22.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.