Skip to main content

OpenModelica-Python API Interface

Project description

OMPython

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

FMITest 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 OMCSessionZMQ
omc = OMCSessionZMQ()
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

Contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ompython-4.0.0.tar.gz (45.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ompython-4.0.0-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

Details for the file ompython-4.0.0.tar.gz.

File metadata

  • Download URL: ompython-4.0.0.tar.gz
  • Upload date:
  • Size: 45.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ompython-4.0.0.tar.gz
Algorithm Hash digest
SHA256 3c048af806084181ede649de58fbad3464876d1aa0af8b5bc07eb9803fed49d4
MD5 e1e09486030be5cb228426c1328d3b01
BLAKE2b-256 f81013c2f0f5c3f8062092b700fe5cb21face8176ed4829181d35152fe7e32d2

See more details on using hashes here.

File details

Details for the file ompython-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: ompython-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 42.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ompython-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3625bd8684b77c29eb888e17467889d87eff6ff34024b4b73d0bfead840a8b2e
MD5 f3392d1026985c9e2659adf72e411364
BLAKE2b-256 70a81f1f811d1a2f08d4215ff3938cb43ce397256af12ed407eb4034f7d56767

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page