Registry / analytics / crick
library0.0.8pypypiunverified

Crick is a Python library providing high-performance approximate and streaming algorithms, including t-digest for quantiles, hyperloglog for cardinality, and count-min sketch for frequency estimation. The latest version is 0.0.8, released as an early development release, with no regular release cadence.

pip install crick
INSTALL
IMPORT
SIG · CRICK
C
crick
analyticspythonv0.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TDigest
from crick import TDigest
from crick import TDigest
HyperLogLog
from crick import HyperLogLog
CountMinSketch
from crick import CountMinSketch

Create a TDigest, add values, and query quantiles.

from crick import TDigest digest = TDigest() digest.update(1.0) digest.update(2.0) digest.update(3.0) print(digest.quantile(0.5)) # approximate median
Debug
Known issues
breakingCrick 0.0.8 requires Python >=3.10. Attempting to install on Python <3.10 will fail with an incompatible version error.
fix
Upgrade to Python 3.10+.
affects: <0.0.8
gotchaThe TDigest.quantile() method returns an approximate value, not the exact percentile. Accuracy depends on the compression parameter (default 100).
fix
Use a higher compression value for better accuracy at the cost of memory.
affects: all
deprecatedThe `crick.tdigest` and `crick.hyperloglog` submodules are not guaranteed to be stable; prefer top-level imports.
fix
Import directly from `crick` (e.g., `from crick import TDigest`).
affects: all
Upgrade
Version history
0.0.8latest on PyPI · released Dec 23, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
42
OpenAI (training)
1
Resources
crick — pip install crick · libregistry