Registry / data / pylerc

pylerc

JSON →
library4.1pypypiunverified

Limited Error Raster Compression (LERC) library with Python bindings. Version 4.1 supports compression/decompression of rasters with a user-specified max error. Release cadence: approximately yearly, aligned with ArcGIS releases.

pip install pylerc
INSTALL
IMPORT
SIG · PYLERC
P
pylerc
datapythonv4.1
Install
3.8s avg
Import
Disk
91MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 93MB
glibc
py 3.103.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)
Debug
Known issues
breakingPackage renamed from 'lerc' to 'pylerc' starting v4.1.0. 'pip install lerc' will install an older (pre-4.0) version. Uninstall old lerc package before installing pylerc.
fix
pip uninstall lerc && pip install pylerc
affects: >=4.1.0
breakingThe Lerc class API changed in v4.0.0: encode() now takes data as the first positional argument (previously took maxzerror first). Old code using Lerc().encode(maxzerror, data) will silently produce incorrect results or raise TypeError.
fix
Change to Lerc().encode(data, maxzerror=0.1)
affects: >=4.0.0,<5
gotchaThe Lerc class instance is stateful; do not use the same instance for concurrent encoding/decoding without locking. Reuse is safe sequentially.
fix
Create separate Lerc instances per thread or synchronize access.
affects: >=4.0.0
deprecatedConda package is no longer updated for pylerc; only pip install is supported.
fix
Use pip install pylerc
affects: >=4.1.0
Upgrade
Version history
4.1latest on PyPI · released Mar 10, 2026
Audit
Dependencies
numpyrequiredRequired for array handling
Agent activity
42 hits · last 30 days
node
38
OpenAI (training)
1
Resources
pylerc — pip install pylerc · libregistry