pyaga8
Python bindings for the AGA8 GERG-2008 and DETAIL gas property equations, built on the Rust aga8 port of NIST's AGA8 code.
GitHub: https://github.com/equinor/pyaga8
Description
pyaga8 is a low-level Python interface to the AGA8 calculations. It exposes the underlying GERG-2008 and DETAIL state objects and methods directly, with Rust used for performance via pyo3.
Higher-level libraries such as pvtlib build on top of pyaga8 to provide workflows such as PT, PH, PS and rhoT calculations:
https://github.com/equinor/pvtlib/blob/main/examples/gas_properties_from_aga8.py
Installation
pip install pyaga8
Minimal usage
import pyaga8
detail = pyaga8.Detail()
comp = pyaga8.Composition()
comp.methane = 0.9
comp.nitrogen = 0.1
detail.set_composition(comp)
detail.temperature = 400.0
detail.pressure = 50_000.0
detail.calc_density()
print(detail.d)
Error handling
Python-facing API methods raise normal Python exceptions when inputs or state are invalid; they do not intentionally panic the Python interpreter.
set_composition(...)raisesValueErrorfor invalid mixtures, for example an empty composition or a sum that is not close enough to1.0.calc_density(...)/calc_density()raises ordinary Python exceptions based on the underlying failure, typicallyValueErrororRuntimeError.
pyaga8 is intentionally a lower-level library. Higher-level packages may choose to translate selected failures to NaN or other domain-specific behavior, but that translation is not part of pyaga8 itself.
Metadata
Release files for pyaga8 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyaga8-0.1.18.tar.gz | 12.9 kB | Details |
Built distributions (wheels)
Total release size: 4.5 MB
Release files / pyaga8-0.1.18.tar.gz
| Download URL | pyaga8-0.1.18.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b781000d5db789296c8e3aaf54a8d14408af25aede2b98e206433fb6f5818f7a
|
|
BLAKE2b-256 checksum How to use checksums |
218b99a96c8e1ef4bf87b79d3b4562acb0e6fb345b57e2a5e73d897507b9bb04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp314-cp314-win_amd64.whl
| Download URL | pyaga8-0.1.18-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 162.1 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
530294d6098381dde6392f02fed70be9fcfadcbc1a5e149fa2dc705ad1776a40
|
|
BLAKE2b-256 checksum How to use checksums |
30f2a934f6b9a6c3708a62617b93a13a336f0c0c2f5342a1a57513ccd74ae917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | pyaga8-0.1.18-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 302.8 kB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
8a05618774ce11a7bb5ce13ddfb40e01ed9ba73a92f81b12f0dd5c39601a7470
|
|
BLAKE2b-256 checksum How to use checksums |
0f1df2715506fc485ad1060dddbeb5f69a270b7d5d30f8556548bdc2cf782f2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | pyaga8-0.1.18-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 272.1 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2f1af32323ed9daaf2c5d3ace887c916d2406bf6a842616c85a263a866247a4b
|
|
BLAKE2b-256 checksum How to use checksums |
4fdd43a42bc63038fa937db263ca2b38e9eaf0dadebe03373e39b67a5e1be8cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp313-cp313-win_amd64.whl
| Download URL | pyaga8-0.1.18-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 161.7 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1b07bd645d2c41a2a989a92bc509b383735d73745c5ee9b56b3ad1d938e0d2d7
|
|
BLAKE2b-256 checksum How to use checksums |
e04a437781f9cb0275dd321f99a5e40246dc4efd18208fcef2adfa2868597e84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | pyaga8-0.1.18-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 302.2 kB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
7f1df9b331db1d92975b5b036ffa03ceabcec0bc029fa9453ef058a4046f63e5
|
|
BLAKE2b-256 checksum How to use checksums |
8ce3e05e5a88830415327510baab6e30188ad258c0e6161752157fcd88956afa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | pyaga8-0.1.18-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 270.8 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
05e454957964f4ddf329f37f7e098bee1a1ed4b32f02c2f848c3d2e911b5ddd6
|
|
BLAKE2b-256 checksum How to use checksums |
350178985178cbe54d0eee6a6a7d9265b8132adfb564f76687b21c4bea1bf5c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp312-cp312-win_amd64.whl
| Download URL | pyaga8-0.1.18-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 162.0 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ba5f1eba76934dfe121a0613136a17b0df1e0270adc0ce4704567a7b026bd8e5
|
|
BLAKE2b-256 checksum How to use checksums |
3e2fc3b85f8be807a426fac054c1455b776926ae7ba1d3d327131ca14c30713d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | pyaga8-0.1.18-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 302.6 kB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
cb1c42d760e040827f346d50dc0311a76d993963d492358913cd2c4a5c24b2ec
|
|
BLAKE2b-256 checksum How to use checksums |
d34f67ce3cd16403a1017eda00abebbb288b27352d4b9002b8e7d26fe12f6578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | pyaga8-0.1.18-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 270.9 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
722f155848722a7ea5576c03b291e861139e76c4bff83bc99f4546839d45cd3c
|
|
BLAKE2b-256 checksum How to use checksums |
6f4d30f61c02c92234e61ac910800e888426b9d20b2fa70075e6d837d0782611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp311-cp311-win_amd64.whl
| Download URL | pyaga8-0.1.18-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 164.0 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b9c0608d36fe1a574e8070c4cf8ab6dc189460a056ab9a6668b59e82a871175d
|
|
BLAKE2b-256 checksum How to use checksums |
47a23c345e729d0c394999abdd6024a4909068698ebd63adaeb48a0fa9bb79d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | pyaga8-0.1.18-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 305.8 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
2fd9552c45e0d2ac5ebebfb4b97f058e97a0d41cd8479e7b772dc6e7a16ea0a7
|
|
BLAKE2b-256 checksum How to use checksums |
02428ddb60a4b51d9d49a2cab3d283e52dfebe31b2f3f65cca714a78a3bc3d0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | pyaga8-0.1.18-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 275.0 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
057e3606cce9ad1ebed3c3e34daa2d6621c3b1938b48efc3860d93bb3d331722
|
|
BLAKE2b-256 checksum How to use checksums |
03c8f0247c3f5958b69af10257e7d1856e8f61978a467ef5c61e8ecc5c327a21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp310-cp310-win_amd64.whl
| Download URL | pyaga8-0.1.18-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 163.9 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e35d4855402f1889498fe74b007a7596a56437473e6f0240991e445828d760b1
|
|
BLAKE2b-256 checksum How to use checksums |
683446736933c84311abb3a54db773c986d93d32edf1c172b16ac2efa1f3b6b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | pyaga8-0.1.18-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 306.0 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
36c5c8cd60b9163919e15f6587010f00b83b35276595ad08980283ab7ccd544f
|
|
BLAKE2b-256 checksum How to use checksums |
109678d47d551b336e07510813f2d11aa687bdb8a222be62ea31c67e6084fcb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | pyaga8-0.1.18-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 275.1 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5942fc883d5a09d2ca09cdf6ca26eead26a447b8d42e7f17e140b4423f9af8a8
|
|
BLAKE2b-256 checksum How to use checksums |
fdf681f190442ab16142723a3677c668d3872ad33fee05d7623e8e01bbdcabb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp39-cp39-win_amd64.whl
| Download URL | pyaga8-0.1.18-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 166.5 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
24dc06d5337f250af61fb3a52a91e44c7193727160d20a71e1394a7d4a4cb596
|
|
BLAKE2b-256 checksum How to use checksums |
559308bed2fc0eb43d52064dd1397e2f384c99d33b1d89ba29f48f6891e693b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp39-cp39-manylinux_2_34_x86_64.whl
| Download URL | pyaga8-0.1.18-cp39-cp39-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 309.6 kB |
| Tags | CPython 3.9 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
007610a4cd522740d01bc514e7b9f4456f115059dc53c190a728a7b14bfb1fca
|
|
BLAKE2b-256 checksum How to use checksums |
c2ca0b5002691719a095cefdf11bb9d16462b7f284e768f4dac954a7df20aa08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / pyaga8-0.1.18-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | pyaga8-0.1.18-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 276.9 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
58b6aee37b74886673c5b1ee9cb5cbaee42c682f2878eb1070b73e89a6b295f8
|
|
BLAKE2b-256 checksum How to use checksums |
77e9ba6266054aadc986020d772b59390754429a5d350092886b7c716ec9618c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|