Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 865 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 865 Bytes

openLCA Python Tutorial

This tutorial explains the usage of the openLCA API from Python ...

Content

Hello world!

Open the openLCA Python editor under Window > Developer tools > Python and execute the following script:

from org.openlca.app.util import UI, Dialog
from org.openlca.app import App

def say_hello():
    Dialog.showInfo(UI.shell(), 'Hello from Python (Jython)!')

if __name__ == '__main__':
    App.runInUI('say hello', say_hello)

License

This project is in the worldwide public domain, released under the CC0 1.0 Universal Public Domain Dedication.

Public Domain Dedication