| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
OMPython is a Python interface that uses ZeroMQ to communicate with OpenModelica.
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.
It is recommended to set up pre-commit to automatically run linters:
# cd to the root of the repository
pre-commit installThis project is licensed under the OSMC Public Runtime License. See LICENSE for details.
| Back | FazBrowse Home | New Git URL |