Metadata-Version: 2.1
Name: PyIpsm
Version: 0.0.2
Summary: 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-URL: Homepage, https://github.com/kuriankattukaren/PyIpsm
Project-URL: Bug Tracker, https://github.com/kuriankattukaren/PyIpsm/issues
Author-email: Kurian Joseph Kattukaren <kuriankattukaren@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# 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

```bash
$ pip install Pyipsm
```

Pyipsm requires [Pywin32](https://pypi.org/project/pywin32/) installed. If Pywin32 is not installed, install it using pip and then pip install Pyipsm.

```bash
$ pip install Pywin32
$ pip install Pipsm
```

## Example session:

```python
# 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

