Skip to main content

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

Metadata

Release files for OMPython 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for OMPython 4.0.0
File Size Uploaded Provenance Actions
ompython-4.0.0.tar.gz 45.0 kB Without provenance Details for ompython-4.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for OMPython 4.0.0
File Interpreter ABI Platform Actions
ompython-4.0.0-py3-none-any.whl Python 3 none any Details for ompython-4.0.0-py3-none-any.whl

Total release size: 87.3 kB

Release files / ompython-4.0.0.tar.gz

Download URL ompython-4.0.0.tar.gz
Size 45.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3c048af806084181ede649de58fbad3464876d1aa0af8b5bc07eb9803fed49d4
BLAKE2b-256 checksum
How to use checksums
f81013c2f0f5c3f8062092b700fe5cb21face8176ed4829181d35152fe7e32d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / ompython-4.0.0-py3-none-any.whl

Download URL ompython-4.0.0-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3625bd8684b77c29eb888e17467889d87eff6ff34024b4b73d0bfead840a8b2e
BLAKE2b-256 checksum
How to use checksums
70a81f1f811d1a2f08d4215ff3938cb43ce397256af12ed407eb4034f7d56767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Security for OMPython 4.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page