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.1

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.1
File Size Uploaded Provenance Actions
ompython-4.0.1.tar.gz 45.3 kB Without provenance Details for ompython-4.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 87.9 kB

Release files / ompython-4.0.1.tar.gz

Download URL ompython-4.0.1.tar.gz
Size 45.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5d28b5f276b646ca947a8f0fb41029fdac329f49d4e96b335d01a8ad7ed897de
BLAKE2b-256 checksum
How to use checksums
c25e8ab0391480397f47d86178587c13120f50ddc0b9fcfdc4111ad6c0796d1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

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

Download URL ompython-4.0.1-py3-none-any.whl
Size 42.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfd0261f66c109d0a846a4df64306db5161a57f9bd8cdad5df0038316303101c
BLAKE2b-256 checksum
How to use checksums
51d002c7ba116cd98292de97b4fc413db99523cd92bbccbd7a2301de672d8ffa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Security for OMPython 4.0.1

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