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.1.tar.gz (45.3 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.1-py3-none-any.whl (42.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ompython-4.0.1.tar.gz
Algorithm Hash digest
SHA256 5d28b5f276b646ca947a8f0fb41029fdac329f49d4e96b335d01a8ad7ed897de
MD5 771537e57eeb8941ce7313dc51d061f6
BLAKE2b-256 c25e8ab0391480397f47d86178587c13120f50ddc0b9fcfdc4111ad6c0796d1b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ompython-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd0261f66c109d0a846a4df64306db5161a57f9bd8cdad5df0038316303101c
MD5 6aebdd4c79ba90605d800340cabd5344
BLAKE2b-256 51d002c7ba116cd98292de97b4fc413db99523cd92bbccbd7a2301de672d8ffa

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