Skip to main content

PyIpsm is a python package to communicate with Petroleum Experts(Petex) software - Prosper, MBAL and GAP - through openserver using Python. This Python package eliminates the the need for writing VBA code to interface with Petex software.

Project description

PyIpsm

PyIpsm is a python package to communicate with Petroleum Experts(Petex) software - Prosper, MBAL and GAP - through openserver using Python. This Python package eliminates the the need for writing VBA code to interface with Petex software.

Quick start

$ pip install PyIpsm

Pyipsm requires Pywin32 installed. If Pywin32 is not installed, install it using pip and then pip install Pyipsm.

$ pip install Pywin32
$ pip install PyIpsm

Example session:

# Import Pyipsm
>>> import PyIpsm.ipsm as Ipsm

# Provide the full path to Petex executable.
>>> prosper_exe = "C:\\Program Files\\Petroleum Experts\\IPM 12\\prosper.exe"

# Establish openserver connection...
>>> openserver_file = "PX32.OpenServer.1"
>>> open_server = Ipsm.OpenServer(openserver_file)

# Start executables...
>>> prosper = Ipsm.Program(prosper_exe, open_server)

# Do prosper command...
>>> open_file_command = "PROSPER.OPENFILE=C:\\Apps\\src\\Src\\IPSM\\Openserver\\Openserver\\Code\\Test\\Test_v2.Out"
>>> prosper_error = prosper.commands.doSlow(open_file_command)
>>> prosper_error = prosper.commands.do("PROSPER.SHUTDOWN")
>>> print(f"Prosper error: {prosper_error.number}")

Contributing

Contributions are invited and welcome.

License

MIT

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

pyipsm-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

pyipsm-0.0.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pyipsm-0.0.3.tar.gz.

File metadata

  • Download URL: pyipsm-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for pyipsm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f10d4d38cc3d5fd2fcbae322f7c9f8f73fd0fc0c7b09e8d1697aa75c21ee588e
MD5 deb99736b83263012ac9419d39ae8fd4
BLAKE2b-256 065884543aa45180bf21d7f0c054469ca7031cf8bf8ae1ad808cb33d4702a11d

See more details on using hashes here.

File details

Details for the file pyipsm-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyipsm-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for pyipsm-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0dea17c041819c98deaf9da953053986debc5ab01d52e4756c0a55dab92f7feb
MD5 dc936339ed568067093774919a22bd8e
BLAKE2b-256 b2a7b1a4e8018634a4a742cba4d740e927c6d404d0218a33a996a3e30a547729

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