Skip to main content

OMPython License: OSMC-PL-RT

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

Test PyPI Version Conda Version

Dependencies

  • Python >= 3.10; Python >= 3.12 for OMPath functionality (handle file system access via OMC using a pathlib.Path compatible abstraction layer)
  • Additional packages: numpy, psutil, pyparsing and pyzmq

Installation

Installation using pip is recommended.

Via pip

pip install OMPython

Via conda

OMPython is also available as a conda package via conda-forge

conda install -c conda-forge ompython

See the ompython-feedstock for details.

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)
import OMPython
omc = OMPython.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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ompython-4.1.0.tar.gz
  • Upload date:
  • Size: 65.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.21

File hashes

Hashes for ompython-4.1.0.tar.gz
Algorithm Hash digest
SHA256 5105d38e6449b642eed6633ebf3b6046d6a16e469130f7396f168b0b0e3a0063
MD5 3d74ed356b1274fed93564e6eb2183f2
BLAKE2b-256 03ec7e7292823f76648aad0c40e4bffec9e5a37b02f13a96bb152edda9cd3ecf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ompython-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 65.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.21

File hashes

Hashes for ompython-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 151f5e0706c10cdd9a04731c34762bb7fa30f694305c0f8be19402f187dba534
MD5 e20d57899ccdfa5226b377c781dcba99
BLAKE2b-256 2327704c191d4b9049481097b67301ee674b4248351abd7a275cdb6cad63a789

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.1.0 This release

2 files

4.0.1

2 files

4.0.0

2 files

3.6.0

1 file

3.5.2

1 file

3.5.1

1 file

3.5.0

2 files

3.4.0

2 files

3.3.0

1 file

3.2.0

1 file

3.1.2

1 file

3.1.1

1 file

3.1.0

1 file

3.0.3

1 file

3.0.2

1 file

3.0.1

1 file

3.0.0

1 file

2.0.7

1 file

2.0.6

1 file

2.0.5

1 file

2.0.4

1 file

2.0.3

1 file

2.0.2

1 file

2.0.1

1 file

2.0

1 file

1.0

1 file

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