Skip to main content

resfo

Code style: black docs

resfo (REservoir Simulator Fortran Output) is a parser for the output format used by several reservoir simulators such as opm flow, such as found in files with extensions .UNRST, .EGRID, .INIT, etc. and also the corresponding ascii files with extension .FUNRST, .FEGRID, .FINIT, etc.

Installation

resfo can be installed with pip:

pip install resfo

Getting started

Reservoir simulator output files consist of a sequence of named arrays. resfo does not interpret the names, but simply give you a tuple of the name and a numpy array with the read function:

import resfo

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

>>> "FILEHEAD"
>>> "GRIDHEAD"
>>> "COORD"
>>> "ZCORN"
>>> "ACTNUM"
>>> "MAPAXES"

For more information, see the docs.

How to contribute

The easiest way to set up a nice development environment for resfo is to use tox (can be installed via pip install tox or sudo apt install tox on ubuntu), then all testing and linting can be ran with

tox

You can also set up pre-commit to ensure style checks are done as you commit:

pip install pre-commit
pre-commit install

Metadata

Release files for resfo 5.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resfo 5.0.2
File Size Uploaded Provenance Actions
resfo-5.0.2.tar.gz 32.4 kB With provenance Details for resfo-5.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for resfo 5.0.2
File Interpreter ABI Platform Actions
resfo-5.0.2-py3-none-any.whl Python 3 none any Details for resfo-5.0.2-py3-none-any.whl

Total release size: 52.0 kB

Release files / resfo-5.0.2.tar.gz

Download URL resfo-5.0.2.tar.gz
Size 32.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4a4b16f870744e52c48471ae484193b536c7af0556bf8482aad120a56d8dc94f
BLAKE2b-256 checksum
How to use checksums
50517f3cfde3b3a6c0bda51038e6daebf5cc23f73422880c6ff8304e73da4fbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / resfo-5.0.2-py3-none-any.whl

Download URL resfo-5.0.2-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c07b151ee9c7c3d24a49276e9d20d9c2ecce7475d18a3df4e77182eb9a81426f
BLAKE2b-256 checksum
How to use checksums
3b535b0caddc3eaefbdc7fb7a6d652a56eae8ce2175a39616e7e2604f434cf25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for resfo 5.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for resfo-5.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page