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.dev7

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.dev7
File Size Uploaded Provenance Actions
lca_algebraic-1.4.1.dev7.tar.gz 88.2 kB Without provenance Details for lca_algebraic-1.4.1.dev7.tar.gz

Built distribution (wheel)

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

Total release size: 172.4 kB

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

Download URL lca_algebraic-1.4.1.dev7.tar.gz
Size 88.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2e17a6395d543ea9ffa9a14d1bdfe7b894154efe174ad6ea9525a18d95e1bb6d
BLAKE2b-256 checksum
How to use checksums
7916ca344b2924b44ea1366ffafe361e2bc3fad22195c9a0ac14a28fd2bc67aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"LMDE","version":"7","id":"gigi","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL lca_algebraic-1.4.1.dev7-py3-none-any.whl
Size 84.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
813e24334f3de77e4a3a6364925a21411aa9228e9e4c613b66a6895739ec11ff
BLAKE2b-256 checksum
How to use checksums
d12655acbb07717c4cbf1a8a49c31329478426e73170caf33482c8d8e8ceb2e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"LMDE","version":"7","id":"gigi","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for lca-algebraic 1.4.1.dev7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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