Python library for petroleum engineering — Standing PVT, Dranchuk Z-factor, Arps decline, volumetrics, gas P/Z, Archie water saturation, density porosity, Vshale, LAS log I/O. MIT licensed.
Project description
petropt — The Python Library for Petroleum Engineering
Petroleum engineering correlations for Python. MIT licensed.
Online Calculators · Documentation
Install
pip install petropt
Quick Start
import petropt
import numpy as np
# Load a bundled production dataset
df = petropt.datasets.load_sample_production()
# PVT: Standing bubble point pressure
pb = petropt.correlations.standing_bubble_point(api=35, gas_sg=0.65, temp=200)
# Decline: Arps hyperbolic forecast
t = np.arange(0, 60)
q = petropt.correlations.arps_decline(qi=1000, di=0.05, b=0.5, t=t)
# Volumetrics: STOIIP estimate
ooip = petropt.correlations.stoiip(area=640, thickness=50, porosity=0.20, sw=0.30, bo=1.25)
# Petrophysics: water saturation from resistivity
sw = petropt.petrophysics.archie_sw(rt=20.0, phi=0.20, rw=0.05)
# Well logs: read a LAS file
logs = petropt.io.read_las("well.las")
What's Inside
Correlations
- PVT — Standing bubble point / Rs / Bo, Dranchuk Z-factor
- Decline — Arps (exponential, hyperbolic, harmonic)
- Volumetrics — STOIIP, GIIP, recovery factor
- Material balance — gas P/Z
Petrophysics
- Vshale — linear, Larionov (Tertiary / older), Clavier
- Porosity — density
- Water saturation — Archie
I/O
- LAS files — read well logs into pandas DataFrames (wraps lasio)
Datasets
- Sample production — bundled 2-well, 12-month dataset for demos
Links
- tools.petropt.com — petroleum engineering web calculators by Groundwork Analytics
- tools.petropt.com/docs/ — documentation
Citation
Shirangi, M.G. (2026). petropt: The Python Library for Petroleum Engineering.
https://pypi.org/project/petropt/
License
MIT — see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file petropt-1.0.0.tar.gz.
File metadata
- Download URL: petropt-1.0.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d717df7d0fc15398bed6892b87efee7011a7b0d8fa7ed5d371c2d6b20a026232
|
|
| MD5 |
0efa68a055998cd4944cfb5a32cda76e
|
|
| BLAKE2b-256 |
1d98aeaac0cd91189f03fcf580c428d8894de775df500ec5ca403409b4a0ad3b
|
File details
Details for the file petropt-1.0.0-py3-none-any.whl.
File metadata
- Download URL: petropt-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47800123e450cc2dd79632eab4dc95eb1c441b5ce8ba380bac68c4c921ff3967
|
|
| MD5 |
b94b52a555ec08606b326f695c89f8ad
|
|
| BLAKE2b-256 |
913ad333b0c2e886b94f248d025ebba0209916904b972fa5658322f1fdf0b4bf
|