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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file olca_ipc-2.6.2.tar.gz.
File metadata
- Download URL: olca_ipc-2.6.2.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4da5b9d19fc4c911ebd0b4a42f008c2dc854d84382884309330503e4973ab14
|
|
| MD5 |
78928b50ff08253d252c1d76350471b4
|
|
| BLAKE2b-256 |
164fb15498a60b7fddc13c46e7548afc97155c9fd977d4fe08cf8b847fd80f08
|
File details
Details for the file olca_ipc-2.6.2-py3-none-any.whl.
File metadata
- Download URL: olca_ipc-2.6.2-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cbe0288f450425bb270e5d84d0d277d171f31a616d0fb04e1ca2b52c3c89bc9
|
|
| MD5 |
8b773c755d03cc2cb3869a2a33762cfd
|
|
| BLAKE2b-256 |
0814b4357a6a5b9f54c48d990037c2f8f8af83f3610966d71858be122ccefb53
|