Registry / data / laszip

laszip

JSON →
library0.3.0pypypi✓ verified 83d ago

The `laszip` library provides Python bindings for the LASzip C/C++ library, enabling efficient compression and decompression of LAZ (compressed LAS) point cloud files. It leverages `pybind11` for seamless integration. The current version is 0.3.0, and releases occur as needed for bug fixes and feature enhancements, typical for a pre-1.0 library.

pip install laszip
INSTALL
IMPORT
SIG · LASZIP
L
laszip
datapythonv0.3.0
Install
1.6s avg
Import
Disk
18MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.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
glibc
py 3.10
✓ —
✓ 1.65s
py 3.11
✓ —
✓ 1.65s
py 3.12
✓ —
✓ 1.55s
py 3.13
✓ —
✓ 1.55s
py 3.9
✕ build_error
✕ build_error
18MB installed
● package 18MB
Code
Verified usage

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

laszip
import laszip
from laszip import LaszipReader

This quickstart demonstrates how to create a minimal LAZ file with a single point and then read it back using `laszip.LaszipWriter` and `laszip.LaszipReader`. It sets up a temporary file to ensure the example is runnable without pre-existing data.

import laszip import os import tempfile # Create a temporary file path temp_laz_path = os.path.join(tempfile.gettempdir(), "test_laszip_quickstart.laz") try: # 1. Prepare a minimal header for writing header = laszip.LaszipHeader() header.major_version = 1 header.minor_version = 4 header.point_data_format = 6 # Standard LAS 1.4, Point Data Record Format 6 header.point_data_record_length = 36 # bytes for format 6 header.number_of_point_records = 1 header.X_offset = 0.0; header.Y_offset = 0.0; header.Z_offset = 0.0 header.X_scale_factor = 0.01; header.Y_scale_factor = 0.01; header.Z_scale_factor = 0.01 header.min_x = 100.0; header.max_x = 100.0 header.min_y = 200.0; header.max_y = 200.0 header.min_z = 300.0; header.max_z = 300.0 # Prepare a dummy point point = laszip.LaszipPoint() point.X = 10000; point.Y = 20000; point.Z = 30000 # Scaled by 0.01 point.classification = 1 point.intensity = 100 # 2. Write a dummy LAZ file print(f"Writing dummy LAZ to {temp_laz_path}") with laszip.LaszipWriter(temp_laz_path, header_in=header) as writer: writer.write_point(point) # 3. Read the LAZ file back print(f"Reading from {temp_laz_path}") with laszip.LaszipReader(temp_laz_path) as reader: read_header = reader.header print(f" Read header - Point count: {read_header.number_of_point_records}") read_point = reader.read_point() print(f" Read point: X={read_point.X}, Y={read_point.Y}, Z={read_point.Z}") except Exception as e: print(f"An error occurred: {e}") finally: # 4. Clean up the temporary file if os.path.exists(temp_laz_path): os.remove(temp_laz_path) print(f"Cleaned up {temp_laz_path}")
Debug
Known issues
breakingAs a pre-1.0.0 library, `laszip`'s API may undergo breaking changes without a major version increment. Always consult the GitHub repository for the latest API documentation and examples when upgrading.
fix
Pin the library version in your `requirements.txt` (e.g., `laszip==0.3.0`) and review release notes/changelogs carefully before updating.
affects: All versions < 1.0.0
gotchaBuilding `laszip` from source (e.g., if pre-compiled wheels are not available for your platform/Python version) requires C++ build tools and `pybind11` development headers. This can lead to complex build errors.
fix
Prioritize `pip install laszip` to use pre-compiled wheels. If building from source, ensure you have a compatible C++ compiler (GCC, Clang, MSVC) and `pip install pybind11` (or `pip install 'pybind11[global]'`) and necessary system development libraries.
affects: All versions
gotchaWhen processing extremely large point clouds, be mindful of memory consumption if you attempt to load all points into memory simultaneously. `LaszipReader` is designed for iterative reading.
fix
Process points in chunks or iterate through them one by one using `reader.read_point()` rather than attempting to store an entire dataset in a list or array. Leverage Python's generator patterns for efficiency.
affects: All versions
Upgrade
Version history
0.3.0latest on PyPI · released Dec 31, 2025
Audit
Dependencies

No dependency data recorded yet.

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