Skip to main content

OPM-Common Python bindings

Project description

opm-common: Python bindings and embedded Python

This folder contains the Python bindings for the OPM-common module and code required for using embedded Python with OPM.

  • For the Python bindings, see also the Python bindings of opm-simulators.

  • For the Python bindings and embedded Python code, see the documentation.

  • To enable tooltips for embedded Python code (opm_embedded) for the editor VS Code, first make sure the stub file in <opm-common-folder>/python/opm_embedded/__init__.pyi is updated! You can recreate this stub file by executing

     stubgen -m opmcommon_python -o . && cat opmcommon_python.pyi | sed "s/class Builtin:/current_ecl_state: EclipseState\ncurrent_report_step: int\ncurrent_schedule: Schedule\ncurrent_summary_state: SummaryState\n\nclass Builtin:/" > NAME-OF-OUTPUT-FILE.pyi
    

    in <opm-common-build-folder>/python/opm. To execute stubgen, "mypy" is needed; this can be installed with "pip install mypy".

    The above stubgen command will create the stub file opmcommon_python.pyi. The cat command will copy the stub file opmcommon_python.pyi to "NAME-OF-OUTPUT-FILE.pyi" and add the lines

     current_ecl_state: EclipseState
     current_report_step: int
     current_schedule: Schedule
     current_summary_state: SummaryState
    

    Then:

    • Either: Build the module opm-common and install it with "make install" - this will copy the file <opm-common-folder>/python/opm_embedded/__init__.pyi to the location where opm_embedded is installed, making it visible to VSCode.
    • Or: Copy the file <opm-common-folder>/python/opm_embedded/__init__.pyi into the folder defined in variable python.analysis.stubPath of VS Code and rename it to opm_embedded.pyi.
  • So: When updating any classes or documentation here, please also update the stub file located in <opm-common-folder>/python/opm_embedded/__init__.pyi!

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

opm-2025.10-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

opm-2025.10-cp314-cp314-macosx_14_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

opm-2025.10-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

opm-2025.10-cp313-cp313-macosx_14_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

opm-2025.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

opm-2025.10-cp312-cp312-macosx_14_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

opm-2025.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

opm-2025.10-cp311-cp311-macosx_14_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

opm-2025.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

opm-2025.10-cp310-cp310-macosx_14_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

opm-2025.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

opm-2025.10-cp39-cp39-macosx_14_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

opm-2025.10-cp38-cp38-manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

File details

Details for the file opm-2025.10-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d55c76c4a8dd6c3b4507248d02be0f40b9c47375397a5c5e4e8602665c0475ec
MD5 e2f928bdd547ba64de38b670243d5b47
BLAKE2b-256 0e02a51be5f8facab67ec149a1fb2cdb678549db36f91a071cc858363ff39470

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp314-cp314-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e6844cc23450a93a540b19dcb2a9e1527e74e4f0fc1e1f1c88746eb8124e11c7
MD5 7ea3c44c946592ed119a351807a5d5bc
BLAKE2b-256 d85a896cf9fdd483bd5b673f731c8251a79b988b5db6d458d3cc002874a3a61d

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8029daba64fb81655a5bc4d30c3db002c1d5d0bac56b58749ddc919227100c55
MD5 1f52e674ac9c343ac1a7d67085dfa391
BLAKE2b-256 6b7e685f6d5c48f06e8f656fda6891154e289f32e11b21237a7b966842e98eef

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 98edaf89efaf86259ab6113d71cebc349b890683487170093eed008a6a691367
MD5 f35a44143ba9d0e3cc1320437b00caa9
BLAKE2b-256 54db1d1333d88f51cd291fc9c72e00ac0f01a44f67de7c1c700853dbf2bf6eef

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ba7f68a88c4474335336c16b122ab2b1bf58d3b6d7539e6e3754c627bdfbbf1c
MD5 addd91711401a45b2dac7fb5e0addcae
BLAKE2b-256 0b78db3a7dc1809ec4dd0d129108bbf7f4594bd7ce5353e7640172301c34252a

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7995dc2b8935f8fdec143f687bb53550c9d599da48861d81bc0bb84791a58e53
MD5 3d36a4f4cd59db0df1f3bf5996ae90f4
BLAKE2b-256 4cb9e9bcfcec9a36f2a6fe14845e80b01ae59694ac44a22da9f37c183f3c2e44

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0dd48bf82aaeb71c1ee2ecce983246439b9daf834f3c0b4e4b30d2fd859348b6
MD5 88ce9d2461fed7dc5f22a13cc4d6e0cf
BLAKE2b-256 83d5d31a974ba17bd96ab695cac678b9ecf68d12fdd01f9c8c98a9469107b09e

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 313c95378decb2500cd51d3fba0b380ef195df8bdacfcf2c18e40afa670fb016
MD5 d7a3753e8c130cad8ffdfaa5060b17b9
BLAKE2b-256 5e1e55a4ae69b103516a3ac71334047a2af781696ae63134ed9e40539f19496a

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 601ed175f0db648ba9bf7ba4bf88fbe041d05baa121527d6227e366126c3a102
MD5 9ec68f210b1c1c33cfb7b6818a168b4f
BLAKE2b-256 79049774f67105bfc72898cc05842ecd62aedc406b32c4013fe049c31d00772c

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9d669627268a3414ac093be396ee45a6633d6c1a608c64225b8645fa4452d609
MD5 07d4c405c7dc7cd98007018b85183235
BLAKE2b-256 84251d32aadda6fd9fdbe4b68b7ebb866c66b63eff1ad8982d398a0ec760f1a3

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1aa70303f7c3f9747de1cebafaf341f2232c3ba7f60ed8f39945ef9d3c4ec46a
MD5 9226c8a30c134601ec426c973fe0703e
BLAKE2b-256 07edd10828f5f41377a0a96323f7675186feddc8d83bd2174c528f55972e0632

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8baecdfdc1e04b6793f79c2091cc592cdba42e16a4f7306cdd4b35ca02e93ae5
MD5 de9f2009437d696e212e448638a659ce
BLAKE2b-256 d6b8bc632266f67d7a24710b1b0e397ce58a0ac4ff052c30edfc8fcdf79387b7

See more details on using hashes here.

File details

Details for the file opm-2025.10-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.10-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 487c35c9158daac520bb3a3bb4d6f684b14e5427edc77a3f9adb5042ca0b8490
MD5 968a085f50ce9ec7782ab3766a488c67
BLAKE2b-256 cf099e3247715d5bc9d272268b3c258aa136d7733ce9fdca9fea2372acd42ebc

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