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 OMPythonClone 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.
It is recommended to set up pre-commit to
automatically run linters:
# cd to the root of the repository
pre-commit install- Adeel Asghar, [email protected]
- Arunkumar Palanisamy, [email protected]