A PowSyBl and Python integration based on GraalVM native image

PyPowSyBl

The PyPowSyBl project gives access PowSyBl Java framework to Python developers. This Python integration relies on GraalVM to compile Java code to a native library.

Installation

PyPowSyBl is released on PyPi.

First, make sure you have an up-to-date version of pip and setuptools:

pip3 install --upgrade setuptools pip --user

Then you can install PyPowSyBl using pip:

pip3 install pypowsybl --user

Build from sources

Requirements:

To build from sources and install PyPowSyBl package:

git clone --recursive https://github.com/powsybl/pypowsybl.git
export JAVA_HOME=
pip3 install --upgrade setuptools pip --user
pip3 install . --user

To run unit tests:

python3 -m unittest tests/test.py

Usage

First, we have to import pypowsybl:

import pypowsybl as pp

Then we can display the

 

 

 

To finish reading, please visit source site