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.18.tar.gz (12.9 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.18-cp314-cp314-win_amd64.whl (162.1 kB view details)

Uploaded CPython 3.14Windows x86-64

pyaga8-0.1.18-cp314-cp314-manylinux_2_34_x86_64.whl (302.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

pyaga8-0.1.18-cp314-cp314-macosx_11_0_arm64.whl (272.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

pyaga8-0.1.18-cp313-cp313-win_amd64.whl (161.7 kB view details)

Uploaded CPython 3.13Windows x86-64

pyaga8-0.1.18-cp313-cp313-manylinux_2_34_x86_64.whl (302.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pyaga8-0.1.18-cp313-cp313-macosx_11_0_arm64.whl (270.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyaga8-0.1.18-cp312-cp312-win_amd64.whl (162.0 kB view details)

Uploaded CPython 3.12Windows x86-64

pyaga8-0.1.18-cp312-cp312-manylinux_2_34_x86_64.whl (302.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pyaga8-0.1.18-cp312-cp312-macosx_11_0_arm64.whl (270.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyaga8-0.1.18-cp311-cp311-win_amd64.whl (164.0 kB view details)

Uploaded CPython 3.11Windows x86-64

pyaga8-0.1.18-cp311-cp311-manylinux_2_34_x86_64.whl (305.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pyaga8-0.1.18-cp311-cp311-macosx_11_0_arm64.whl (275.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyaga8-0.1.18-cp310-cp310-win_amd64.whl (163.9 kB view details)

Uploaded CPython 3.10Windows x86-64

pyaga8-0.1.18-cp310-cp310-manylinux_2_34_x86_64.whl (306.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pyaga8-0.1.18-cp310-cp310-macosx_11_0_arm64.whl (275.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyaga8-0.1.18-cp39-cp39-win_amd64.whl (166.5 kB view details)

Uploaded CPython 3.9Windows x86-64

pyaga8-0.1.18-cp39-cp39-manylinux_2_34_x86_64.whl (309.6 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

pyaga8-0.1.18-cp39-cp39-macosx_11_0_arm64.whl (276.9 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pyaga8-0.1.18.tar.gz
  • Upload date:
  • Size: 12.9 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.18.tar.gz
Algorithm Hash digest
SHA256 b781000d5db789296c8e3aaf54a8d14408af25aede2b98e206433fb6f5818f7a
MD5 46f9130cc21e8bc9f416700a9acaa7ca
BLAKE2b-256 218b99a96c8e1ef4bf87b79d3b4562acb0e6fb345b57e2a5e73d897507b9bb04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaga8-0.1.18-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 162.1 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.18-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 530294d6098381dde6392f02fed70be9fcfadcbc1a5e149fa2dc705ad1776a40
MD5 c1c7ede9aeb90833a60e4f437482f67d
BLAKE2b-256 30f2a934f6b9a6c3708a62617b93a13a336f0c0c2f5342a1a57513ccd74ae917

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8a05618774ce11a7bb5ce13ddfb40e01ed9ba73a92f81b12f0dd5c39601a7470
MD5 c1c7dbf5507526d8b2bf9a56cf83e151
BLAKE2b-256 0f1df2715506fc485ad1060dddbeb5f69a270b7d5d30f8556548bdc2cf782f2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f1af32323ed9daaf2c5d3ace887c916d2406bf6a842616c85a263a866247a4b
MD5 b3d6726373088a790d3ca3aeed0ed014
BLAKE2b-256 4fdd43a42bc63038fa937db263ca2b38e9eaf0dadebe03373e39b67a5e1be8cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaga8-0.1.18-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 161.7 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.18-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1b07bd645d2c41a2a989a92bc509b383735d73745c5ee9b56b3ad1d938e0d2d7
MD5 5f14484872f5fa522f11bc89dbd5899f
BLAKE2b-256 e04a437781f9cb0275dd321f99a5e40246dc4efd18208fcef2adfa2868597e84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7f1df9b331db1d92975b5b036ffa03ceabcec0bc029fa9453ef058a4046f63e5
MD5 89e45d8c3d21847b0ff9a60dcbb41996
BLAKE2b-256 8ce3e05e5a88830415327510baab6e30188ad258c0e6161752157fcd88956afa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05e454957964f4ddf329f37f7e098bee1a1ed4b32f02c2f848c3d2e911b5ddd6
MD5 b22b089fe7e0e91931b9a3575671c3d5
BLAKE2b-256 350178985178cbe54d0eee6a6a7d9265b8132adfb564f76687b21c4bea1bf5c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaga8-0.1.18-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 162.0 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.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ba5f1eba76934dfe121a0613136a17b0df1e0270adc0ce4704567a7b026bd8e5
MD5 7e9f8de64986b6513d2203a7fe0eaa1c
BLAKE2b-256 3e2fc3b85f8be807a426fac054c1455b776926ae7ba1d3d327131ca14c30713d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cb1c42d760e040827f346d50dc0311a76d993963d492358913cd2c4a5c24b2ec
MD5 7e3d835c769fef63d9940ad7151b075c
BLAKE2b-256 d34f67ce3cd16403a1017eda00abebbb288b27352d4b9002b8e7d26fe12f6578

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 722f155848722a7ea5576c03b291e861139e76c4bff83bc99f4546839d45cd3c
MD5 e3d46a0b5bf9d314e67c7bbabbb22403
BLAKE2b-256 6f4d30f61c02c92234e61ac910800e888426b9d20b2fa70075e6d837d0782611

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaga8-0.1.18-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 164.0 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.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b9c0608d36fe1a574e8070c4cf8ab6dc189460a056ab9a6668b59e82a871175d
MD5 5db0113e812cc6629150db50f56d1ffb
BLAKE2b-256 47a23c345e729d0c394999abdd6024a4909068698ebd63adaeb48a0fa9bb79d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2fd9552c45e0d2ac5ebebfb4b97f058e97a0d41cd8479e7b772dc6e7a16ea0a7
MD5 560650def4ce9414640b7f49191ba034
BLAKE2b-256 02428ddb60a4b51d9d49a2cab3d283e52dfebe31b2f3f65cca714a78a3bc3d0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 057e3606cce9ad1ebed3c3e34daa2d6621c3b1938b48efc3860d93bb3d331722
MD5 9979adbbe185e87fbbc5693d674ac98e
BLAKE2b-256 03c8f0247c3f5958b69af10257e7d1856e8f61978a467ef5c61e8ecc5c327a21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaga8-0.1.18-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 163.9 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.18-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e35d4855402f1889498fe74b007a7596a56437473e6f0240991e445828d760b1
MD5 a0dd0ea2a8038f576cb50359bf9e308b
BLAKE2b-256 683446736933c84311abb3a54db773c986d93d32edf1c172b16ac2efa1f3b6b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 36c5c8cd60b9163919e15f6587010f00b83b35276595ad08980283ab7ccd544f
MD5 395c9a571b3326146729006254ca55ff
BLAKE2b-256 109678d47d551b336e07510813f2d11aa687bdb8a222be62ea31c67e6084fcb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5942fc883d5a09d2ca09cdf6ca26eead26a447b8d42e7f17e140b4423f9af8a8
MD5 1a7eba4e3731d5c043982386562fcaf1
BLAKE2b-256 fdf681f190442ab16142723a3677c668d3872ad33fee05d7623e8e01bbdcabb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaga8-0.1.18-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 166.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.18-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 24dc06d5337f250af61fb3a52a91e44c7193727160d20a71e1394a7d4a4cb596
MD5 26f9a8028e158e58dceb71081db15573
BLAKE2b-256 559308bed2fc0eb43d52064dd1397e2f384c99d33b1d89ba29f48f6891e693b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 007610a4cd522740d01bc514e7b9f4456f115059dc53c190a728a7b14bfb1fca
MD5 cf9ec5f3207c23641fda97a5fd921f8d
BLAKE2b-256 c2ca0b5002691719a095cefdf11bb9d16462b7f284e768f4dac954a7df20aa08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaga8-0.1.18-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58b6aee37b74886673c5b1ee9cb5cbaee42c682f2878eb1070b73e89a6b295f8
MD5 fa2aea3efa1c1ea45825b1c5c4176780
BLAKE2b-256 77e9ba6266054aadc986020d772b59390754429a5d350092886b7c716ec9618c

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