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.

Download files

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

Source Distribution

lca_algebraic-1.4.1.dev1.tar.gz (75.2 kB view details)

Uploaded Source

Built Distribution

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

lca_algebraic-1.4.1.dev1-py3-none-any.whl (75.9 kB view details)

Uploaded Python 3

File details

Details for the file lca_algebraic-1.4.1.dev1.tar.gz.

File metadata

  • Download URL: lca_algebraic-1.4.1.dev1.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for lca_algebraic-1.4.1.dev1.tar.gz
Algorithm Hash digest
SHA256 56dd8831d858c1cd2b8e1ed29d6c1ebc9d7f382b083f3857eb81fbec1933d136
MD5 0010520479d53f3bd7a39d819309db08
BLAKE2b-256 9ae08b5c2837f645e4747d170724335876c4e14eef3af4bb50890763251212da

See more details on using hashes here.

File details

Details for the file lca_algebraic-1.4.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for lca_algebraic-1.4.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 87ec7f452ee86ec1a200d499836b94a4c7e6b0b37fd1a23c636b8e23b5ee942f
MD5 9288271b317a1222979b3e9d2fce33a3
BLAKE2b-256 78a85bccf3ac535bc122acaaddfea0963adafea9cc9fde4b276c98f8def57239

See more details on using hashes here.

Release history Release notifications | RSS feed

1.4.1

2 files

This release

1.4.1.dev1 This release

2 files

1.4

2 files

1.3.2

2 files

1.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2

2 files

1.1.2

2 files

1.1

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.2

2 files

0.0.1

3 files

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