Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

logo

Python 3.10 Python 3.11 Python 3.12 Python 3.13

Brightway 2.4 Brightway 2.5

main status dev status

lca_algebraic is a layer above Brightway designed for the definition of parametric inventories with fast computation of LCA impacts, suitable for monte-carlo / global sensitivity analysis

It integrates the magic of Sympy in order to write parametric formulas as regular Python expressions.

lca-algebraic provides a set of helper functions for :

  • compact & human readable definition of activities :
    • search background (tech and biosphere) activities
    • create new foreground activities with parametrized amounts
    • parametrize / update existing background activities (extending the class Activity)
  • Definition of parameters
  • Fast computation of LCAs
  • Computation of monte carlo method and global sensitivity analysis (Sobol indices)
  • Support for automatic check of homogeneity of physical units

⚙ Installation

lca_algebraic supports both Brightway 2.4 (legacy) and Brightway 2.5 via optional pip extras.

1) Setup separate environment

First create a python environment, with Python [>=3.10, <3.14] :

With Conda (or mamba)

conda create -n lca python==3.12
conda activate lca

With virtual env

python3.12 -m venv .venv
source .venv/bin/activate

2) Install lca_algebraic

Install for Brightway2 :

pip install lca_algebraic[bw2]

Or for Brightway25 :

pip install lca_algebraic[bw25]

For development (tests, pre-commit, etc.) :

pip install lca_algebraic[bw2,dev]
# or
pip install lca_algebraic[bw25,dev]

3) [Optional] Install Jupyter & Activity Browser

You may also install Jupyter and Activity Browser on the same environment.

Jupyter :

pip install jupyter

Activity Browser can only be installed via conda/mamba. Note that it can also be installed on a separate Python env and will still be able to access and browse the projects created programmatically with lca_algebraic / Brightway.

conda install activity-browser

NOTE While the inventories created in lca_algebraic are stored in the Brightway project, the formulas and parameters are not compatible with Activity Browser Before computing impacts with vanilla Brightway2 or Activity Browser, you may use the function freezeParams() to update the amounts in your database for a given scenario / set of parameter values.

📚 Documentation & resources

Full documentation is hosted on readthedocs

We provide some notebooks :

  • Example notebook : Basic functionalities
  • Handbook : More examples, also showing the usage of the Brightway functions.
  • Workshop : A "real life" exercise used as a short training on lca_algebraic

📧 Mailing list

Please register to this dedicated mailing list to discuss the evolutions of this library and be informed of future releases :

lca_algebraic@groupes.mines-paristech.fr

© Licence & Copyright

This library has been developed by MinesParis - PSL - O.I.E team, for the project INCER-ACV, lead by ADEME.

It is distributed under the BSD License

Logo

Please use the following logo to advertise about this librairy.

Metadata

Release files for lca-algebraic 1.4.1.dev4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lca-algebraic 1.4.1.dev4
File Size Uploaded
lca_algebraic-1.4.1.dev4.tar.gz 78.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lca-algebraic 1.4.1.dev4
File Interpreter ABI Platform
lca_algebraic-1.4.1.dev4-py3-none-any.whl Python 3 none any Details

Total release size: 156.9 kB

Release files / lca_algebraic-1.4.1.dev4.tar.gz

Download URL lca_algebraic-1.4.1.dev4.tar.gz
Size 78.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d065dd2ab34a7b9b30302bff95de8ff7d4360cf74efdbe8f62e26f6edec9054f
BLAKE2b-256 checksum
How to use checksums
ab750f3bf70e3e37ec5d7f528b28933b2d6041ca516b5aef50997a72575d5775
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.18

Release files / lca_algebraic-1.4.1.dev4-py3-none-any.whl

Download URL lca_algebraic-1.4.1.dev4-py3-none-any.whl
Size 78.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6409653c22689cb3df6881cd57956cdc321d1e1172a67c8967a72f9a815fc73c
BLAKE2b-256 checksum
How to use checksums
22f6720f45d4b0368eb07ec0162999fa6c1104869b37850e0729c96e458fe04d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.18
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page