Skip to main content

A package for calling openLCA functions from Python.

Project description

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 here:

https://greendelta.github.io/openLCA-ApiDoc.

This package is available on pypi.org and can be installed / updated like this:

pip install -U olca-ipc

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

Tests and packaging

If you want to run the test suite, make sure you have a server running and configured in tests/config.py. Then you can run the tests with pytest, e.g. with uv:

cd olca-ipc.py
# create a virtual environment
uv venv [-p 3.12]
# install the test dependencies
uv sync --extra test
# run all tests
uv run pytest tests

Build and validate a release package with:

# install the packaging dependencies
uv sync --extra packaging
# build the source and wheel distributions
uv run python -m build
# validate the generated artifacts
uv run twine check dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

olca_ipc-2.6.3.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

olca_ipc-2.6.3-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file olca_ipc-2.6.3.tar.gz.

File metadata

  • Download URL: olca_ipc-2.6.3.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for olca_ipc-2.6.3.tar.gz
Algorithm Hash digest
SHA256 a5ab8d4ddfe1e47e07fbff0640812b6e55a3ebb9aaf3487a73f71eef9e862328
MD5 38beb151a49a6f2c32af80867a0db3b4
BLAKE2b-256 1f54faa0aae173a2b61f033d49fd0aef29645400cdb367064e2c96acd1fa95f8

See more details on using hashes here.

File details

Details for the file olca_ipc-2.6.3-py3-none-any.whl.

File metadata

  • Download URL: olca_ipc-2.6.3-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for olca_ipc-2.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 863d2dd5facbc3b1a30a7e3ae12762c17db06cf62004bc93acf34b4ef0c729b7
MD5 9a46a3b520ab0c0465fcf8d460f034aa
BLAKE2b-256 a6296d411e6953d05661c4cf1b747e4645f094b48f9bc883be68e7a9d73db271

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page