OMPython is a Python interface that uses ZeroMQ to communicate with OpenModelica.
- Python 2.7 and 3.x supported
- PyZMQ is required
Installation using pip
is recommended.
pip install OMPython
Clone the repository and run:
cd <OMPythonPath>
python -m pip install -U .
Running the following commands should get you started
import OMPython
help(OMPython)
from OMPython import OMCSessionZMQ
omc = OMCSessionZMQ()
omc.sendExpression("getVersion()")
or read the OMPython documentation online.
- Submit bugs through the OpenModelica GitHub issues.
- Pull requests are welcome.
- Adeel Asghar, adeel.asghar@liu.se
- Arunkumar Palanisamy, arunkumar.palanisamy@liu.se