skillfed

resfo

A (lazy) parser and writer for reservoir simulator fortran output format.

resfo v5.0.1 128.7K downloads/30d#11,698 on PyPI19
Copyleft license LGPL-3.0-or-later Active released

What it is and what it does

resfo is a parser for the binary and ASCII output formats used by reservoir simulators, particularly opm flow. It reads files with extensions like .UNRST, .EGRID, .INIT (binary) and .FUNRST, .FEGRID, .FINIT (ASCII), extracting them as a sequence of named arrays. The package does not interpret the semantic meaning of array names—it simply returns tuples of name and numpy array, leaving interpretation to the caller.

The package depends only on numpy and typing_extensions, making it lightweight to install. It is classified as Mature and supports Python 3.10 through 3.14. The repository is actively maintained with recent commits, and the package carries no known security vulnerabilities.

Use it for:

  • Extract grid geometry and properties from opm flow simulation output for post-processing or visualization
  • Read reservoir simulator results into numpy arrays for numerical analysis or machine learning workflows
  • Parse historical or archived simulation output files in binary or ASCII format for data recovery
  • Integrate simulator output into automated workflows that require programmatic access to simulation results

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

resfo parses binary and ASCII output files from reservoir simulators (such as opm flow), extracting named arrays as numpy arrays for programmatic access.

Yes. resfo is a specialized, actively maintained parser with low install friction and no security issues. If you work with reservoir simulator output files (especially from opm flow), it directly solves the problem of extracting binary/ASCII data into usable arrays. The LGPL-3.0-or-later license requires attention if you plan proprietary distribution, but poses no barrier to internal or open-source use.

Install

resfo on PyPI

pip

pip install resfo

uv

uv add resfo

poetry

poetry add resfo

Installing resfo

Before you install

Low friction: pure Python wheel with only numpy and typing_extensions as runtime dependencies. Actively maintained with a recent release and ongoing repository activity.

License in practice

Licensed under LGPL-3.0-or-later (copyleft). Derivative works and modifications must be distributed under compatible terms; proprietary use requires careful licensing review.

Quickstart

pip install resfo

import resfo

for kw, arr in resfo.read("my_grid.egrid"):
    print(kw, arr.shape)

Verify before relying

  • Whether the package handles all variants of reservoir simulator output formats beyond opm flow
  • Performance characteristics when parsing large binary files
  • Availability of lazy-loading features mentioned in the summary

Package facts

License LGPL-3.0-or-later (copyleft)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 2 — numpy, typing_extensions
Maintenance actively maintained — 245 days since the last release
Last repo commit
First released
Downloads 128,715/month — #11,698 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: resfo-5.0.1-py3-none-any.whl

Development Status :: 6 - MatureProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

reservoir simulator output parserfortran binary file readeropm flow output parserunrst egrid init parsernumpy array extraction fortran
reservoir-simulationgeosciencebinary-format

More Scientific/Engineering packages