Native Python ASPRS LAS read/write library
Project Links
Meta
Author: Grant Brown, Thomas Montaigu
Requires Python: >=3.10
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
- Science/Research
License
- OSI Approved :: BSD License
Operating System
- OS Independent
Programming Language
- Python
Topic
- Scientific/Engineering :: GIS
Laspy
Laspy is a python library for reading, modifying and creating LAS LiDAR files.
Laspy is compatible with Python 3.8+.
Features
- LAS support.
- LAZ support via
lazrsorlaszipbackend. - LAS/LAZ streamed/chunked reading/writting.
- COPC support over files.
- COPC support over https with
requestspackage. - CRS support via
pyprojpackage.
Examples
Directly read and write las
import laspy
las = laspy.read('filename.las')
las.points = las.points[las.classification == 2]
las.write('ground.laz')
Open data to inspect header (opening only reads the header and vlrs)
import laspy
with laspy.open('filename.las') as f:
print(f"Point format: {f.header.point_format}")
print(f"Number of points: {f.header.point_count}")
print(f"Number of vlrs: {len(f.header.vlrs)}")
Use the 'chunked' reading & writing features
import laspy
with laspy.open('big.laz') as input_las:
with laspy.open('ground.laz', mode="w", header=input_las.header) as ground_las:
for points in input_las.chunk_iterator(2_000_000):
ground_las.write_points(points[points.classification == 2])
Appending points to existing file
import laspy
with laspy.open('big.laz') as input_las:
with laspy.open('ground.laz', mode="a") as ground_las:
for points in input_las.chunk_iterator(2_000_000):
ground_las.append_points(points[points.classification == 2])
API Documentation and tutorials are available at ReadTheDocs.
Installation
Laspy can be installed either with pip:
pip install laspy # without LAZ support
# Or
pip install laspy[laszip] # with LAZ support via LASzip
# Or
pip install laspy[lazrs] # with LAZ support via lazrs
Changelog
See CHANGELOG.md
2.7.0
Jan 14, 2026
2.6.1
Jul 07, 2025
2.6.0
Jul 06, 2025
2.5.4
Jun 19, 2024
2.5.3
Jan 04, 2024
2.5.2
Jan 02, 2024
2.5.1
Jul 28, 2023
2.5.0
Jul 23, 2023
2.4.1
Feb 20, 2023
2.4.0
Feb 11, 2023
2.3.0
Oct 25, 2022
2.2.0
Jun 29, 2022
2.2.0b0
May 03, 2022
2.1.2
Feb 18, 2022
2.1.1
Jan 23, 2022
2.1.0
Jan 09, 2022
2.0.3
Sep 16, 2021
2.0.2
Jul 23, 2021
2.0.1
Jun 20, 2021
2.0.0
Jun 15, 2021
2.0.0a3
Jun 07, 2021
2.0.0a2
Jun 03, 2021
2.0.0a1
Apr 12, 2021
2.0.0a0
Apr 10, 2021
1.7.1
Jun 15, 2021
1.7.0
Mar 13, 2020
1.6.0
Sep 10, 2019
1.5.1
Dec 05, 2017
1.5.0
Mar 31, 2017
1.4.2
Dec 01, 2016
1.4.1
Mar 03, 2016
1.4.0
Dec 10, 2015
1.3.2
Dec 09, 2015
1.3.1
Dec 09, 2015
1.3.0
Dec 04, 2015
1.2.5
Jul 23, 2012
1.2.4
Jul 20, 2012
1.2.3
Jul 15, 2012
1.2.2
Jul 10, 2012
1.2.1
Jul 07, 2012
1.2.0
Jul 04, 2012
1.1.0
Jun 30, 2012
1.0.0
Jun 25, 2012
1.5.0.macosx
Mar 31, 2017
1.4.1.win
Mar 03, 2016
1.4.0.win
Dec 10, 2015
1.3.2.win
Dec 09, 2015
1.3.1.win
Dec 09, 2015
1.3.0.win
Dec 04, 2015
1.2.5.win32
Jul 23, 2012
1.2.4.win32
Jul 20, 2012
1.2.3.win32
Jul 15, 2012
1.2.2.win32
Jul 10, 2012
1.2.1.win32
Jul 07, 2012
1.2.0.win32
Jul 04, 2012
1.0.0.win32
Jun 25, 2012