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-2026.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.4 MB view details)

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

opm-2026.4-cp314-cp314-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

opm-2026.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.4 MB view details)

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

opm-2026.4-cp313-cp313-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

opm-2026.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.4 MB view details)

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

opm-2026.4-cp312-cp312-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

opm-2026.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.4 MB view details)

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

opm-2026.4-cp311-cp311-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

opm-2026.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.4 MB view details)

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

opm-2026.4-cp310-cp310-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

opm-2026.4-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.4 MB view details)

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

opm-2026.4-cp39-cp39-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

opm-2026.4-cp38-cp38-manylinux_2_28_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 94850f92b73d71c0de43252594f4b961c1b84d2201ed645ce76e84ca3d87247c
MD5 073ddcbd7f79dc481bd3e9a432bb654e
BLAKE2b-256 fe556f470677f399054c98f07286ee4c7e879fcd7da5c356deeabbe87be74893

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2c0c61432d10d75a215ef0f98bdaf00faf7644241c3347410a0c29266febb824
MD5 4edc91cb4878f46a7ed3665db45ab0d7
BLAKE2b-256 f4583731a010ba9ee0ec92428ab1cdd6b1b3e40e8754f72632baef4d5fc29334

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 785aef57c363200afbf085f331594a6b2abc5f5610270632f2fed93630d83bf0
MD5 32081f771d826bcb86cf5253689f8d60
BLAKE2b-256 ac2b451ff4097516dfa071b57ca5cc39eb36422e4eabcd5ff3f4fd965013b517

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 757813edc73f451e13b37cd979d740c3e2aac4312a8bd832055e7933e75ab19e
MD5 eb8801ba74017386cd6eb6bfd14f2210
BLAKE2b-256 de9ef3b749a51aa3b4a6246f686b13d9f96bec76159ab7cc11da428ba9d80854

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c9d9fef35c356131e61f7fcf4dfd206370502ab362622020aeb01b063b5dd877
MD5 ea02a74e6b590faac596ff49e950423a
BLAKE2b-256 ee2e14a40adcf5de633529d7fc86c7cf2d4f2094559fc0b340fc8aa361f1a023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 218d07406a6a2d48fde3d73b83bf9774b38ca9c6c8607baca26ab5b6850b4db0
MD5 f182c977850b7ee9b4fb6b44228701f7
BLAKE2b-256 9cb2a22b7721fbbedbef9d140b96a443c3c153a2a4132370f5baf1abc114a139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a1d85383ab98f095873368efb9ab87ea5daa4c7114db15ec74386d09a1126477
MD5 b9fd901675f46389f20e13fcfb4fc2ff
BLAKE2b-256 6ab967d1071dd4873fa7eb0167be900e4e3ed4d0ac156a914e93e583eaa63a93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 feb1ba7a6b18e6b580c531c78039b1afc2447ed517138decf1457e81053c3427
MD5 062b3f0483dd288754f8b2837733f291
BLAKE2b-256 f29c5fd0589ff5de70d1b2cbecf0a51e591c97171e95781eafff0229e816cf58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d84ae694cc284fc25582a9897afc2ea769b9595ad12df7005c4ee04ba4b1fd5c
MD5 55930acc158f6538f4d93ee1e76f4623
BLAKE2b-256 d66b088df93e2063c477242468b2f3af912cb761d8ed7d939965925bf9381147

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8b99a2c8934e5c156164d2bdc0e6b815d40f77ac61bbcb4afbb200d270cde6cc
MD5 41d7d6ff05b329ff4f40f55e2c377bf4
BLAKE2b-256 3e4b6da3ec035eccaea5a6d390212296cbc8ecfdbaf9c307468e2ca7f4a811f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7dccaf8895dada0bd4f75ab24cb43f82363836736897809b49910a20c5cccaac
MD5 51747b95f7038760042a77576b96c6bc
BLAKE2b-256 4efb7cc7e5d729e523ec49eb4fb934faa07d56ed9372d03d5af0658e08d8d6a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opm-2026.4-cp39-cp39-macosx_14_0_arm64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.9, macOS 14.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for opm-2026.4-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 60dee61f9fd760f154e80a2b780112226823667e826ea4e886f05389b40829a9
MD5 9a907efac721cc46d197cc3f55fbaf6f
BLAKE2b-256 d8eee019f77b4b58ee97ab15da5c9187052d4abfe60c8746657ec72c2e5711ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2026.4-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 27dbde799146198a33b66edae6435f33a4f6f473d5128e303101dae1ebb8469e
MD5 725d6a874285e5d6edc4f74e1522c630
BLAKE2b-256 0d34c9f1c310c23ee44bcc102ad26bea3066542659b440d101bd34ecce1b35e1

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