Registry / data / pcodec

pcodec

JSON →
library1.0.2pypypi✓ verified 79d ago

Good compression for numerical sequences. Current version 1.0.1, released periodically.

pip install pcodec
INSTALL
IMPORT
SIG · PCODEC
P
pcodec
datapythonv1.0.2
Install
3.8s avg
Import
Disk
88MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.8s · import 0.000s · 87MB
88MB installed
● package 88MB
Code
Verified usage

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

pcodec
import pcodec
from pcodec import compress
ChunkConfig
from pcodec import ChunkConfig
DeltaSpec
from pcodec import DeltaSpec

Compress and decompress a numpy array of float64.

from pcodec import compress, decompress import numpy as np data = np.array([1.0, 2.5, 3.2, 4.8, 5.1], dtype=np.float64) compressed = compress(data) decompressed = decompress(compressed, dtype=np.float64) print(decompressed)
pcodec --version
Debug
Known issues
breakingIn v1.0.0, function arguments were renamed: 'nums' became 'src', and 'none' delta encoding became 'no_op'.
fix
Update calls: compress(src=...) and use delta_encoding='no_op' instead of 'none'.
affects: >=1.0.0,<1.0.0
breakingIn v1.0.0, simple_compress_into now accepts any Write impl (Rust change); Python API may have changed signature.
fix
Check pcodec documentation for current function signatures.
affects: <1.0.0
gotchaCompression and decompression require numpy arrays; other iterables may not work.
fix
Convert your data to a numpy array with the correct dtype before calling compress.
affects: all
Upgrade
Version history
1.0.2latest on PyPI · released May 10, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Resources
pcodec — pip install pcodec · libregistry