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 Pipsm
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyipsm-0.0.2.tar.gz.
File metadata
- Download URL: pyipsm-0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c93fb7f4155eab2ea3b452bf853c2597f7e29de41a358329dbca5b66b9a49076
|
|
| MD5 |
ef68ef0197adb86ac4cc5feb310b4857
|
|
| BLAKE2b-256 |
03a3f253da83a1cf79ad52b9bd255c823b5a533d93abc6c267a288c957345fe8
|
File details
Details for the file pyipsm-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pyipsm-0.0.2-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.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20ccd835a0e1d849c258dbb2f121cdee8d8d32142e1306b8cd0ebc1a3c2ccf35
|
|
| MD5 |
c8593a6e9d7f73d5f453bac461d069e9
|
|
| BLAKE2b-256 |
3dfb0896a2f376bdcbf52801d3e3b804cbf18babc0f9bc353389e6a20851f98b
|