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.4

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.4
File Size Uploaded Provenance Actions
resfo-5.0.4.tar.gz 32.8 kB With provenance Details for resfo-5.0.4.tar.gz

Built distribution (wheel)

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

Total release size: 52.9 kB

Release files / resfo-5.0.4.tar.gz

Download URL resfo-5.0.4.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0cd2fc657e9dc6e69ef55af05ca7524d51f52e2fee399e5b508c838e7422d090
BLAKE2b-256 checksum
How to use checksums
9f1fcd858014ee0ca5f48588e9ae0dab67c0f54b220f2cf2b2aa21645f1a2fe9
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 Nov 25, 2026.

Transparency log

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

Download URL resfo-5.0.4-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecf6aecd74bfa09901e027be172814421772be929bf3f5bf9af910cd52bb2555
BLAKE2b-256 checksum
How to use checksums
147061fe5aa226f50efc4def9849e372560d53499de620975ff9f4109d912776
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 Nov 25, 2026.

Transparency log

Security for resfo 5.0.4

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for resfo-5.0.4.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 Nov 25, 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