Skip to main content

Python package for calculating gas properties using the AGA8 equations GERG-2008 and DETAIL

Project description

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(...) raises ValueError for invalid mixtures, for example an empty composition or a sum that is not close enough to 1.0.
  • calc_density(...) / calc_density() raises ordinary Python exceptions based on the underlying failure, typically ValueError or RuntimeError.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyaga8-0.1.17.tar.gz (14.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyaga8-0.1.17-cp314-cp314-win_amd64.whl (170.9 kB view details)

Uploaded CPython 3.14Windows x86-64

pyaga8-0.1.17-cp314-cp314-manylinux_2_34_x86_64.whl (310.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

pyaga8-0.1.17-cp314-cp314-macosx_11_0_arm64.whl (279.3 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

pyaga8-0.1.17-cp313-cp313-win_amd64.whl (170.6 kB view details)

Uploaded CPython 3.13Windows x86-64

pyaga8-0.1.17-cp313-cp313-manylinux_2_34_x86_64.whl (310.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pyaga8-0.1.17-cp313-cp313-macosx_11_0_arm64.whl (279.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyaga8-0.1.17-cp312-cp312-win_amd64.whl (170.6 kB view details)

Uploaded CPython 3.12Windows x86-64

pyaga8-0.1.17-cp312-cp312-manylinux_2_34_x86_64.whl (311.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pyaga8-0.1.17-cp312-cp312-macosx_11_0_arm64.whl (279.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyaga8-0.1.17-cp311-cp311-win_amd64.whl (171.8 kB view details)

Uploaded CPython 3.11Windows x86-64

pyaga8-0.1.17-cp311-cp311-manylinux_2_34_x86_64.whl (314.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pyaga8-0.1.17-cp311-cp311-macosx_11_0_arm64.whl (279.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyaga8-0.1.17-cp310-cp310-win_amd64.whl (171.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pyaga8-0.1.17-cp310-cp310-manylinux_2_34_x86_64.whl (314.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pyaga8-0.1.17-cp310-cp310-macosx_11_0_arm64.whl (280.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyaga8-0.1.17-cp39-cp39-win_amd64.whl (173.5 kB view details)

Uploaded CPython 3.9Windows x86-64

pyaga8-0.1.17-cp39-cp39-manylinux_2_34_x86_64.whl (316.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

pyaga8-0.1.17-cp39-cp39-macosx_11_0_arm64.whl (282.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file pyaga8-0.1.17.tar.gz.

File metadata

  • Download URL: pyaga8-0.1.17.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pyaga8-0.1.17.tar.gz
Algorithm Hash digest
SHA256 772f23f408812c2fc3264ff0fac752ab3b81f16223313bf3bf6bf7b00710d225
MD5 5c98c192cc6e982a5a16252ec4219b5f
BLAKE2b-256 237cc209e62503c0b9bb4d05479ba7a8124a6e6f2fb61ce206696cccc2f5b4e9

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: pyaga8-0.1.17-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 170.9 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pyaga8-0.1.17-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 74b19be6d02f3895b3c7e33e3c149d7231b5b0566e36d26c5fdf6fc5a1b5fc77
MD5 3e6446cb729da15dbcfe5659829683c9
BLAKE2b-256 3d55eb1c7d8e117e7f2c2215966e093cc54ee823821a7d435d40646c874b3f28

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a2568458a29be37962911507ae82ccc011f63a0bebbe8fa071f570c514cb7fd0
MD5 77167ec809e8e4597d1c24b2a8adc07f
BLAKE2b-256 525d5074b75667d05c5fe6074bd01aa7532b96674e1c952da75c7760905d6ead

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a3cd0af15fe365bc9d6702d400672c10d3727b57a996e628047d464fdb899a3
MD5 f463a7a5dcb3e3944e719ae831ffb7fd
BLAKE2b-256 bfe3281c1f7bc00b794e580a24d9326af9b94d83c9cb247ae7394df37ec70ee1

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyaga8-0.1.17-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 170.6 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pyaga8-0.1.17-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a9e76967f4e1b078b3d2ae1397ae38c65c7e46e06155dd16c74b0d94fda8a0c3
MD5 15abcb45153248e13785cfba8e439ce0
BLAKE2b-256 3468038df7df66022c469c8422fbca6e435f366282817a450788b6892eed276a

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c712206a42dc5746796ee75c3eb35e0ff662c488629add0e32f0d31fb258bfb1
MD5 13409c4c7ea1a691871e65fdac02c15a
BLAKE2b-256 087fad414cb95868f2fddf2462e53f05d408822128047efc63a1813de10b794f

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebf798c92e0b532d617760df109add89908c087d427557efa1a1ec2075ec22d8
MD5 019c4eb935e102761c720cfa3bfe3cd7
BLAKE2b-256 0205fcdd33aa9a5fecc15548a5c8868ba34e8cc5b03162769b56e7fa8b3ec81f

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyaga8-0.1.17-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 170.6 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pyaga8-0.1.17-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d98d3d2e69cb2cc4dc36a531657b7e9bf2e2a443896a491bf67d12d9293e5a8b
MD5 e0d9403e3d6a54cca01326ab805ae785
BLAKE2b-256 55b0cec562a8f2320db4d542c20f7ed4cc6e429a58c8d0ada6af42d2b5decd5e

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 bf9b30217641d991e0705cf0c6146dc0d38b85322e1db647b830bbf7d369eb8b
MD5 c0fcb651b4a4efb954e492172f07fc8b
BLAKE2b-256 58d22bcedabc768192700d0adb5ed1ee05a3f713c19f7a82b1cac0f4f3ac53c4

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85c1fe4cd10ba241efe172048dae82868ab282a4130b428762f0351c99ee46b9
MD5 5d5ad1b578dc187b067ae46c67bca9aa
BLAKE2b-256 32a75319a55fedf047161b4fcca8f387da8b1ba91333357ff1efe65286e3e38c

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyaga8-0.1.17-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 171.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pyaga8-0.1.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d07785c800cb52852731e09c57866847f0f0b20905e825558fe4902a2e511264
MD5 e7e2246950f35316d3d06e8844ba671c
BLAKE2b-256 ec696955333a530a2ecfbe17f7cdc23367d672522073a53e6227214f394982e5

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 214beff69182be8b9fd969f86e573ba41fcc3422fda7277da6354b476183bd4e
MD5 5a756a6582471899aa57c2ca704c53f8
BLAKE2b-256 ef9cfa94006b920e55fe619797d5313301d2922f988f5383a9a785cf49a702e9

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 458f9b1547b7a90dabfbcca6c9a1a5ff26d434753c6d49b37386dfcddd452991
MD5 7256586d7d1b89195a907dd66d922077
BLAKE2b-256 bde8a60aac89feec2026840516b745939ab4ff18ebfbf09435dc19a8dd307323

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyaga8-0.1.17-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 171.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pyaga8-0.1.17-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0ad24073c62a5cee600a4882be9e201a98382d329d3df1e753ee6c771ed39c7a
MD5 c46e5dcd0f99ee4e28280313ca9b25b5
BLAKE2b-256 39f2b874d6a850e57ffd01e6638b6926e4bc39a6fb51c0db5cc4f2217bf5132b

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 bf64162ffb3f7ddc98a55d4050416c1f95ae608c6daf36279fb5657e9d009e0b
MD5 671101eed2640269c0f32ae933b9fa80
BLAKE2b-256 2b60abab964bccb072ac5e3e1ac705e7b6603241ffaa0d26b5b591a97cf1050d

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d8754ed9164073502ebf5fc904c2d4a3c4097b60947bc9780ac561e6f0c287d
MD5 c6567600cae15fc5ac65ffc5e9f1775c
BLAKE2b-256 c6f5bc1c74788eeb8ab85c22eeb85c3091c4421147ebce1442abb6d5bb392e46

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyaga8-0.1.17-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 173.5 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pyaga8-0.1.17-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0e3bb9f085de9ef34db5bf461762b2ddf401977fb4d0826609f60e800a1591d5
MD5 07bf15b2782f465e9eb6a11e424817ad
BLAKE2b-256 f89ee4f27a83213ba562e44b77b0f9792cf83ef3110b3a4760840a683bdd2ded

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 61d09a7cf27d2bd7fcdf7c1d91b3cec222b898bf857fdce178bf733401097395
MD5 4a126e383bdb2f440e4bb6253649d9cf
BLAKE2b-256 ae06394a6cb8120298a48875c704815bb8e5e2f411ef8bd23be630c28f707888

See more details on using hashes here.

File details

Details for the file pyaga8-0.1.17-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyaga8-0.1.17-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f598a77f086e5480b33a2c18924c056da2a34b63157a05383e5f0aab3791c93
MD5 052c63d7519722960dbee380afa5cc53
BLAKE2b-256 57db22df456c9f029208f171eae1d992e74f8f6ca8923fbdce71a04d9e3082e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page