OpenModelica-Python API Interface
Project description
OMPython
OMPython is a Python interface that uses ZeroMQ to communicate with OpenModelica.
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
- Submit bugs through the OpenModelica GitHub issues.
- Pull requests are welcome.
Development
It is recommended to set up pre-commit to
automatically run linters:
# cd to the root of the repository
pre-commit install
Contact
- Adeel Asghar, adeel.asghar@liu.se
- Arunkumar Palanisamy, arunkumar.palanisamy@liu.se
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c048af806084181ede649de58fbad3464876d1aa0af8b5bc07eb9803fed49d4
|
|
| MD5 |
e1e09486030be5cb228426c1328d3b01
|
|
| BLAKE2b-256 |
f81013c2f0f5c3f8062092b700fe5cb21face8176ed4829181d35152fe7e32d2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3625bd8684b77c29eb888e17467889d87eff6ff34024b4b73d0bfead840a8b2e
|
|
| MD5 |
f3392d1026985c9e2659adf72e411364
|
|
| BLAKE2b-256 |
70a81f1f811d1a2f08d4215ff3938cb43ce397256af12ed407eb4034f7d56767
|