Coder Social home page Coder Social logo

ompython's Introduction

OMPython

OMPython is a Python interface that uses ZeroMQ or CORBA (omniORB) to communicate with OpenModelica.

Dependencies

Using ZeroMQ

  • Python 2.7 and 3.x supported
  • PyZMQ is required

Using omniORB

  • Currently, only Python 2.7 is supported
  • omniORB is required:
    • Windows: included in the OpenModelica installation
    • Linux: Install omniORB including Python 2 support (the omniidl command needs to be on the PATH). On Ubuntu, this is done by running sudo apt-get install omniorb python-omniorb omniidl omniidl-python

Installation

Installation using pip is recommended.

Linux

Install the latest OMPython master by running:

python -m pip install -U https://github.com/OpenModelica/OMPython/archive/master.zip

Windows

Install the version as packaged with your OpenModelica installation by running:

cd %OPENMODELICAHOME%\share\omc\scripts\PythonInterface
python -m pip install -U .

Instead, to Install the latest version of the OMPython master branch only, previously cloned into <OMPythonPath>, run:

cd <OMPythonPath>
python -m pip install -U .

Usage

Running the following commads should get you started

import OMPython
help(OMPython)

or read the OMPython documentation online.

Bug Reports

Contact

ompython's People

Contributors

adeas31 avatar adrpo avatar alchemyst avatar alkhwarizmi avatar arinomo avatar arun3688 avatar dietmarw avatar grantstephens avatar hkiel avatar jnettels avatar jsreid13 avatar kzscisoft avatar ne3x7 avatar openmodelica-hudson avatar sjoelund avatar tesshub avatar thorade avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.