Install & Compatibility
Where this runs
tested against v4.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 · 93MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.8s · import 0.000s · 89MB
91MB installed
● package 91MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Lerc
✓ import lerc
✗ from pylerc import Lerc
Encode and decode a 2D float array with LERC compression.
import numpy as np
from pylerc import Lerc
# Create a sample 2D float array (height, width)
data = np.array([[1.0, 2.0], [3.0, 4.0]], dtype=np.float32)
# Encode with max error 0.1
encoder = Lerc()
encoded = encoder.encode(data, maxzerror=0.1)
print(f"Encoded size: {len(encoded)} bytes")
# Decode back
decoded = encoder.decode(encoded)
print("Decoded array:", decoded)
Upgrade
Version history
4.1latest on PyPI · released Mar 10, 2026
Audit
Dependencies
numpyrequiredRequired for array handling