OMPython is a Python interface that uses ZeroMQ or CORBA (omniORB) to communicate with OpenModelica.
- Python 2.7 and 3.x supported
- PyZMQ is required
- Currently, only Python 2.7 is supported
- omniORB is required:
- Windows: included in the OpenModelica installation
- Linux: Install omniORB including Python 2 support (the omniidl command needs to be on the PATH).
On Ubuntu, this is done by running
sudo apt-get install omniorb python-omniorb omniidl omniidl-python
Installation using pip
is recommended.
Install the latest OMPython master by running:
python -m pip install -U https://github.com/OpenModelica/OMPython/archive/master.zip
Install the version as packaged with your OpenModelica installation by running:
cd %OPENMODELICAHOME%\share\omc\scripts\PythonInterface python -m pip install -U .
Running the following commads should get you started
import OMPython
help(OMPython)
or read the OMPython documentation online.
- See OMPython bugs on the OpenModelica trac or submit a new ticket.
- Pull requests are welcome.
- Adeel Asghar, adeel.asghar@liu.se
- Arunkumar Palanisamy, arunkumar.palanisamy@liu.se