Skip to 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 to interface with Petex software. It is intended for analysts\engineers who want to use Python for interfacing with Prosper, Gap or MBAL.

License

Notifications You must be signed in to change notification settings

kuriankattukaren/PyIpsm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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 to interface with Petex software. It is intended for analysts\engineers who want to use Python for interfacing with Prosper, Gap or MBAL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages