--- id: lasio version: "0.32" license: MIT license_treatment: permissive maintenance: aging --- # lasio — Read/write well data from Log ASCII Standard (LAS) files License: permissive · Maintenance: aging · Downloads: 291.0K/mo ## What it is and what it does lasio is a Python library that reads and writes Log ASCII Standard (LAS) files, a format used to store borehole data such as geophysical, geological, and petrophysical logs. It implements support for LAS versions 1.2 and 2.0 as published by the Canadian Well Logging Society and is designed to handle real-world LAS files that may contain common errors and non-compliant formatting. The package exposes data both as raw numpy arrays and as CurveItem objects with associated metadata (units, descriptions, mnemonics), and provides access to header sections (version, well information, parameters) as HeaderItem objects. The library is primarily for I/O operations—reading LAS files from disk, file-like objects, or URLs, and writing them back. It does not provide higher-level curve analysis or well project management; the documentation explicitly recommends considering welly for broader well-data workflows. lasio stopped supporting Python 2.7 in August 2020 and currently requires Python 3.9 or later with numpy as its sole required dependency. Use it for: - Import borehole geophysical log data from LAS files into numpy arrays for numerical analysis and visualization. - Parse well logging metadata (depths, units, curve descriptions) from LAS headers for data cataloging and validation. - Convert LAS files to pandas DataFrames or export to Excel for spreadsheet-based workflows. - Build LAS files programmatically from well data and write them back to disk in compliant format. - Handle non-standard or malformed LAS files that strict parsers may reject. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Read and write Log ASCII Standard (LAS) files used for borehole geophysical, geological, and petrophysical logging data, supporting LAS versions 1.2 and 2.0. Yes, if you work with LAS well-log data. The package is stable, permissively licensed, has low install friction, and carries no known vulnerabilities. The aging maintenance status (378 days since last release) is a minor concern for a mature I/O library but worth monitoring if you depend on active development. Consider welly if you need higher-level well-data abstractions beyond reading and writing. ## Install pip install lasio uv add lasio poetry add lasio ## Installing lasio Before you install: Low install friction with a single runtime dependency on numpy. Package is aging (378 days since last release) but maintains broad Python version support from 3.9 through 3.13 and carries Beta stability classification. License in practice: MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute lasio freely provided you include the license notice. Quickstart: pip install lasio import lasio las = lasio.read("sample.las") data = las['DEPT'] # access curve as numpy array metadata = las.curves # access CurveItem objects with units and descriptions Requires Python 3.9 or later; numpy must be installed. Verify before relying: - Performance characteristics for large LAS files (documentation notes lasio is not particularly fast). - Current status of LAS 3 support mentioned as 'being worked on' in the description. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 291.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags las file reader writer, log ascii standard python, borehole data geophysics, well log data io, las format parser, geophysical log files, petrophysical data import, geophysics, well-logging, file-io [View on SkillFed](https://skillfed.io/packages/lasio) · [View on PyPI](https://pypi.org/project/lasio/)