Skip to main content

OPM-Common Python bindings

Project description

This folder contains the Python bindings and code required for embedding python for the OPM-common module of the Open Porous Media project.

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

For embedded python code, see the documentation.

To enable tooltips for embedded python code (opm_embedded) for the editor VS Code:

  • Either: Install opm-common.

  • 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.

    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:\n\nclass Builtin:/" > opm_embedded.pyi
    

    in <opm-common-build-folder>/python/opm.

    This will copy the resulting stub file opmcommon_python.pyi to "opm_embedded.pyi" and add the lines

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

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

opm-2025.4-cp312-cp312-manylinux_2_28_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

opm-2025.4-cp311-cp311-manylinux_2_28_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

opm-2025.4-cp310-cp310-manylinux_2_28_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

opm-2025.4-cp39-cp39-manylinux_2_28_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

opm-2025.4-cp38-cp38-manylinux_2_28_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

opm-2025.4-cp37-cp37m-manylinux_2_28_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.28+ x86-64

opm-2025.4-cp36-cp36m-manylinux_2_28_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.28+ x86-64

File details

Details for the file opm-2025.4-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.4-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f34a7c2b1857c25b0bf690ed971399bdfcf9eeb96783c0a0453964c8fdac44db
MD5 6b9a71837ca194d4b8125c9d1a5730a2
BLAKE2b-256 e6ee50f5301409f10ef681e4adb3a10e06ac5593d26118e4039ae577c05250a6

See more details on using hashes here.

File details

Details for the file opm-2025.4-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.4-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 befbd1a988dc322fb007175bf24f5ca0b10dee433be7e1111e76f07b33a6d4c2
MD5 4a2912667083df04219bd5fa94321f05
BLAKE2b-256 3b5efb194cd366611bde5906460a2a61a4af35be69ffdec242b0d2fb87e0244c

See more details on using hashes here.

File details

Details for the file opm-2025.4-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.4-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1fb6c743d25c8774397334b5d0a4c1c67e6b9d6e824c92236917cd447478d16c
MD5 c819e88261ee76c299f1d9b1cc69bca4
BLAKE2b-256 825c086f12be1b449499026e7d741eba9c480d2633fdcccb37147a7969746bd3

See more details on using hashes here.

File details

Details for the file opm-2025.4-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.4-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3b2bc05f531e51e6d4ade9c76b4aa14f47865d33bd11a610e1d9c54e7232a509
MD5 c49be5ac1b7c450d7378d457f39eaf0e
BLAKE2b-256 3d6259adad2a81703b56b7250bf2a1b7e934f1feec32457e5956b2bb6a70c59b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opm-2025.4-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1342b3b5cb874adf9cbda669bdf75f6c9bec73a38ccbcac0858f697d3cef7aac
MD5 b1b20c4323b486313a99a506e5d44760
BLAKE2b-256 c8b4baf74395f574a58fc3a1ace8ae7042181fba7fb1209aa5199ce91eb352a9

See more details on using hashes here.

File details

Details for the file opm-2025.4-cp37-cp37m-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.4-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d30b928347fd00a45dbd8b078bfa0a78cdcae7967660e47636dff4659ea0fb3f
MD5 6fdcb66760755e30bcc0dbd28093fece
BLAKE2b-256 7d81480bef94fe894cb472216befff39f416146cac16a1030bc2dde55f8080e8

See more details on using hashes here.

File details

Details for the file opm-2025.4-cp36-cp36m-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2025.4-cp36-cp36m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 72bf15c2b1b27d2441d10fa869fa867d6dd4ed4c4d7a89cf46612bbb0fc25c36
MD5 883566f3285b846ec22943f70498887e
BLAKE2b-256 80eeb7911c1c28d2ac11258aebf6e8f51df09ab93af4656b2e92735df86dfa2c

See more details on using hashes here.

Supported by

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