Skip to main content

Circularity LCI

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

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

Installation

The package is published on PyPI as circularitylci — this repository is its source code, and every release is built and uploaded from here via GitHub Actions (Trusted Publishing).

pip install circularitylci

The package depends on the Brightway 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.1

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.1
File Size Uploaded
circularitylci-1.0.1.tar.gz 45.5 kB Details

Built distribution (wheel)

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

Total release size: 91.1 kB

Release files / circularitylci-1.0.1.tar.gz

Download URL circularitylci-1.0.1.tar.gz
Size 45.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2c4a9b2a13db61888392237f6936659b5848d7e9a9d57aec43d5c8fa7c96cc80
BLAKE2b-256 checksum
How to use checksums
3296ddfaf20a61d313cde7ab081b4f410d7e1a06f9f02709490e2fae9b7d50ae
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 26, 2026.

Transparency log

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

Download URL circularitylci-1.0.1-py3-none-any.whl
Size 45.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05cc1c66aeb76d186810304b61690da2b6e1c983b03e5b3c9f708218f8130ce6
BLAKE2b-256 checksum
How to use checksums
32d70082ecb97edd89a35234f956671d071a30bb05fcf46b8eb379cffb888003
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 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

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