Skip to main content

Python API for interfacing with Petrel

Project description

Introduction

A Python library for interfacing with Petrel.

Usage

Python Tool Pro requires a connection to be established from the preferred client-side Python IDE to the Python Tool Pro server in Petrel. Petrel domain objects are accessed from the external Python IDE and the scripts are executed outside of Petrel. The results of the Python scripts are then streamed back to Petrel.

Basic Example - Open connection

from cegalprizm.pythontool import PetrelConnection
petrel = PetrelConnection()
project_name = petrel.get_current_project_name()
print(f'Name of currently active Petrel project is "{project_name}"')
petrel.close()

Further information and examples

Please see the Cegal Prizm Documentation site here

License

Copyright (2025) Cegal, AS. This library (the "Software") may not be used except in connection with the Licensees use of the Cegal Prizm Hub pursuant to an Agreement (defined below) between Licensee (defined below) and Cegal, AS. ("Cegal"). This Software shall be deemed part of the "Subscription Services" under the Agreement. Licensees use of the Software must comply at all times with any restrictions applicable to the Subscription Services, generally, and must be used in accordance with any applicable documentation. If you have not agreed to an Agreement or otherwise do not agree to these terms, you may not use the Software. This license terminates automatically upon the termination of the Agreement or Licensees breach of these terms. Agreement: the agreement between Cegal and Licensee governing the use of the Cegal Prizm Hub, which shall be, with respect to Cegal, and the Cegal Terms of Service located at https://cegal.com/about/terms-and-conditions , in each case unless Licensee has entered into a separate written agreement with Cegal governing the use of the applicable Cegal Services. Licensee: the user of the Software, or, if the Software is being used on behalf of a company, the company.

Petrel * is a mark of SLB Python™ is a trademark of the Python Software Foundation

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 Distribution

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

cegalprizm_pythontoolpro-2.8.0-py3-none-any.whl (335.9 kB view details)

Uploaded Python 3

File details

Details for the file cegalprizm_pythontoolpro-2.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cegalprizm_pythontoolpro-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ee338e9f04cb651a2e50c1e9ea56f5c00a57ac11a0f452b6bb45768f527c503
MD5 8621f074766638c40a59751bcfe93349
BLAKE2b-256 18d247c50d1111e97aa79a9a39a5f2df421bbd20e12987c9e035f69a8c92900a

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