OMPython is a Python interface that uses ZeroMQ to communicate with OpenModelica.
- Python 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, [email protected]
- Arunkumar Palanisamy, [email protected]