| 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 OMPythonOMPython is also available as a conda package via conda-forge
conda install -c conda-forge ompythonSee the ompython-feedstock for details.
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 OMCSessionLocal
omc = OMCSessionLocal()
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 |