Skip to main content

Circularity LCI

A Python package for circularity and life cycle assessment (LCA) analysis built on top of Brightway2.

It provides tools for analyzing burden-free activities, duplicating technosphere flows to biosphere flows, calculating circularity indicators (aligned with ISO 59020), building circularity LCIA methods, and running them across case studies and entire LCA databases. Long-running calculations can be tracked with a built-in progress tracker.

Installation

pip install circularitylci

The package depends on the Brightway2 ecosystem (bw2data, bw2calc, bw2io) plus numpy, pandas, matplotlib, lxml, and stats_arrays, which are installed automatically.

Usage

The canonical import name is circularity_lci (the package is also mirrored under the alias circularitylci, so import circularitylci works too).

import circularity_lci as clci
# or, equivalently:
import circularitylci as clci

from circularity_lci import (
    BurdenFreeAnalyzer,
    BiosphereFlowManager,
    CircularityCalculator,
    MultiLCACalculator,
    CircularityDatabaseAnalyzer,
    LCIAMethodBuilder,
    ProgressTracker,
)

Verbose progress output from long-running operations goes through the standard logging module; control it with the usual configuration, e.g. logging.basicConfig(level=logging.INFO).

Worked examples are available in the examples/ directory:

  • examples/simple_example.ipynb — minimal end-to-end run.
  • examples/case_study.ipynb — a full case study.
  • examples/main.ipynb — the main workflow walkthrough.

Features

  • Burden-free activity analysis — identify and handle burden-free exchanges.
  • Biosphere flow management — duplicate a list of technosphere flows to biosphere flows.
  • Circularity indicators — compute circularity efficiency variables and indicators.
  • LCIA method builder — create circularity LCIA methods (create_circularity_lcia_methods).
  • Multi-LCA calculator — run LCAs across many activities or databases.
  • Database analyzer — apply the workflow to a whole LCA database.
  • Progress tracking — persist progress for long-running LCA projects.

Development

git clone https://github.com/LouisFreboeuf/circularity_lci
cd circularity_lci
pip install -e ".[dev]"

Run tests with pytest from the repository root.

License

MIT — see LICENSE.

Citation

If you use this software, please cite it (see CITATION.cff).

Metadata

Release files for circularitylci 1.0.0

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

Source distribution (sdist)

Source distribution for circularitylci 1.0.0
File Size Uploaded
circularitylci-1.0.0.tar.gz 48.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for circularitylci 1.0.0
File Interpreter ABI Platform
circularitylci-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 100.1 kB

Release files / circularitylci-1.0.0.tar.gz

Download URL circularitylci-1.0.0.tar.gz
Size 48.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f976f400eb271c73b94824e7149d72e209be31175b270e589c2528154d09f0a1
BLAKE2b-256 checksum
How to use checksums
fdbb5ae72a354a2f7f871ba889d1e7560e5d267d088ac092611da99505b56ad7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / circularitylci-1.0.0-py3-none-any.whl

Download URL circularitylci-1.0.0-py3-none-any.whl
Size 51.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f46731339de807248c5197b3f0b30f06f9e1c583b29d94abbfc769da50c79d8b
BLAKE2b-256 checksum
How to use checksums
8c82cbab20d84bc7d38f52637bcddf4665b840ee2831d4ba23731bd44ccdb40c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.1

2 release files

This release

1.0.0 This release

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