SkillAgentSearch skills...

OMPython

A Python interface to OpenModelica communicating via ZeroMQ

Install / Use

/learn @OpenModelica/OMPython
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

OMPython License: OSMC-PL-RT

OMPython is a Python interface that uses ZeroMQ to communicate with OpenModelica.

Test

Dependencies

  • Python 3.x supported
  • PyZMQ is required

Installation

Installation using pip is recommended.

Via pip

pip install OMPython

Via source

Clone the repository and run:

cd <OMPythonPath>
python -m pip install -U .

Usage

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.

Bug Reports

Development

It is recommended to set up pre-commit to automatically run linters:

# cd to the root of the repository
pre-commit install

License

This project is licensed under the OSMC Public Runtime License. See LICENSE for details.

Contact

View on GitHub
GitHub Stars143
CategoryDevelopment
Updated9d ago
Forks66

Languages

Python

Security Score

80/100

Audited on Mar 24, 2026

No findings