Install & Compatibility
Where this runs
tested against v1.7.0 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 23MB
20MB installed
● package 20MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
FastCDC
✓ from fastcdc import fastcdc
✗ from fastcdc import FastCDC
Demonstrates basic usage: instantiate FastCDC with average chunk size, then chunk bytes.
from fastcdc import FastCDC
# Create a FastCDC instance with desired average chunk size
cdc = FastCDC(avg_size=4096) # 4KB average chunk size
# Chunk a bytes object
data = b"""Some large binary data repeated many times to demonstrate chunking.""" * 100
chunks = list(cdc.chunk(data))
print(f"Number of chunks: {len(chunks)}")
for offset, length, chunk_hash in chunks[:3]:
print(f"Offset: {offset}, Length: {length}, Hash: {chunk_hash.hex()}")
Upgrade
Version history
1.7.0latest on PyPI · released Jun 27, 2024
Audit
Dependencies
No dependency data recorded yet.