serp-statistics
Drop-in facade for CPython's statistics module, written in the Serpentine
subset: the same source compiles to native code with serp and imports under
CPython.
API (data is list[float])
mean,fmean,geometric_mean,harmonic_meanmedian,median_low,median_highvariance/stdev(sample, n-1),pvariance/pstdev(population)covariance(x, y),correlation(x, y)quantiles(xs, n=4, method="exclusive")— "inclusive" also supported.StatisticsError(ValueError subclass) with CPython's messages.
Divergences: mean/variance use float arithmetic (CPython uses exact rationals
internally — last-ulp differences possible); mode/multimode/median_grouped/
NormalDist are not provided. Depends on serp-math.
Install
serp add serp-statistics
pip install serp-statistics
Metadata
Release files for serp-statistics 0.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 |
|---|---|---|---|---|
| serp_statistics-0.1.0.tar.gz | 3.6 kB | With provenance | Details for serp_statistics-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serp_statistics-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for serp_statistics-0.1.0-py3-none-any.whl |
Total release size: 7.0 kB
Release files / serp_statistics-0.1.0.tar.gz
| Download URL | serp_statistics-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8a632c9cdc54c22c0dbe3628c5db439b17b1d4c1216a158efaaf9ec495650a1
|
|
BLAKE2b-256 checksum How to use checksums |
02dca388f9ab3bbf203640b8ed78bd06ffc3855b98a583b038d4dd82648062e5
|
| 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 Sep 29, 2026.
Transparency logRelease files / serp_statistics-0.1.0-py3-none-any.whl
| Download URL | serp_statistics-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c4eafacc7afc140587be20560d315c716376e07ae0bf8d37f70efd49400f801
|
|
BLAKE2b-256 checksum How to use checksums |
44f10a6d5cf097800c3fb6781ac463038dae0cb358e4d7f430e667a2a5fa2474
|
| 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 Sep 29, 2026.
Transparency logSecurity for serp-statistics 0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for serp_statistics-0.1.0.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 Sep 29, 2026.
Transparency logA 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.