A package for calling openLCA functions from Python.


Keywords
openLCA, life, cycle, assessment, LCA, ipc, python
License
MPL-2.0
Install
pip install olca-ipc==2.0.2

Documentation

olca-ipc

olca-ipc is a Python package for inter-process communication (IPC) with openLCA. With this, it is possible to call functions of openLCA and processing their results in Python. It implements the unified IPC protocol of openLCA for JSON-RPC and REST APIs. The documentation of these protocols and examples can be found in the openLCA IPC documentation.

Note that this version only works with the openLCA >= 2 and requires Python >= 3.11. The last stable version for openLCA 1.x is 0.0.12:

# for openLCA 1.x
pip install olca-ipc==0.0.12

The source code and API documentation of the version for openLCA 1.x is in the v1 branch of this repository. For openLCA >=2, you should install the latest version from pypi.org.

# for openLCA >= 2
pip install -U olca-ipc

If you just want to read and write data for openLCA 2, you can also directly use the olca-schema package, which is a dependency of olca-ipc.