open_petro_elastic
A Python library for petro-elastic modelling. It contains a Material class for representing rocks and fluids, as well as various rock physics models and algorithms such as Hashin-Shtrikman bounds and Gassmann fluid substitution.
Installation
pip install open_petro_elastic
Developers and contributors can download the repository and do uv sync --all-groups to install the package with all its dependencies for development, testing, and building the docs.
Usage
The tool can be used as a library, or from the command line using YAML configuration files. For example, see the tutorial config file.
Generally, the open_petro_elastic.material module is used for interfacing with open_petro_elastic as a Python library:
>>> from open_petro_elastic.material import Material
>>> from open_petro_elastic.material.sandstone import hertz_mindlin
>>> mineral = Material(bulk_modulus=1e9, shear_modulus=1e9, density=1000)
>>> sand = hertz_mindlin(mineral, porosity=0.4, pressure=1e6)
>>> print(sand.density)
600.0
To get help on the command line interface:
open_petro_elastic --help
Run tests
Tests can be run with:
uv run pytest
Developers should also read the Code of Conduct.
Metadata
Release files for open-petro-elastic 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| open_petro_elastic-2.0.0.tar.gz | 18.0 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| open_petro_elastic-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.9 MB
Release files / open_petro_elastic-2.0.0.tar.gz
| Download URL | open_petro_elastic-2.0.0.tar.gz |
|---|---|
| Size | 18.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbb95ba715e03aa65a68dde4f836d417c58ebc68b4e6b5a83e1c79996e17b571
|
|
BLAKE2b-256 checksum How to use checksums |
28a597d9e7f49985e1c1b48f532e246a8287ff2030e1fda6fbd457f84e253035
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 14, 2026.
Transparency logRelease files / open_petro_elastic-2.0.0-py3-none-any.whl
| Download URL | open_petro_elastic-2.0.0-py3-none-any.whl |
|---|---|
| Size | 17.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9c782e8ab4be0f90caea79d5faee1e6e688c6b82b6f4683c4f33f92a5235a69
|
|
BLAKE2b-256 checksum How to use checksums |
b4beaecf6be8e4288e38d116c6a1417fda513f4efba1b50caad779fc5592848e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 14, 2026.
Transparency logSecurity for open-petro-elastic 2.0.0
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.
Attestation for open_petro_elastic-2.0.0.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 Aug 14, 2026.
Transparency logA 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.