This release is a pre-release and may not be stable for production use.
CLIC for Activity Browser 3
Browse published life cycle inventories from the Curated Life cycle Inventory Collection (CLIC) and import them into your active Brightway project.
Install from PyPI
Install ab-plugin-clic 0.1.0a2 and the pinned plugin-enabled Activity Browser build in the same Python environment. Python 3.12 on macOS is the tested setup. Activity Browser 3.0.0 and its standalone installers lack the plugin loader.
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install \
'activity-browser @ git+https://github.com/LCA-ActivityBrowser/activity-browser.git@aa164283a3a171ccdeed7fba1fc431a89b9d5c12' \
'ab-plugin-clic==0.1.0a2'
activity-browser
If you already have the pinned Activity Browser build, activate its environment and run python -m pip install 'ab-plugin-clic==0.1.0a2'.
In Activity Browser, open Settings → Plugins, enable CLIC, save, and restart. Then open Plugins → CLIC → Browse and import.
Browse and import
- Search by dataset name, reference product, location, unit, author, project name or acronym, keyword, classification code, source publication year, or inventory reference year. Click a result to preview its metadata. Use Paste CLIC link to open a dataset or a specific published version.
- Check the datasets to import. The Selected versions list follows you across pages and searches. Exclude non-commercial licenses hides versions with Creative Commons NonCommercial terms and removes them from the selection. Datasets with undisclosed licenses stay visible. CLIC license guide
- Choose the local technosphere and biosphere databases and the matching ecoinvent target. The plugin suggests a pair when it recognizes the ecoinvent release and finds one linked biosphere database.
- Select Get your token to create a CLIC API token with inventory download access. The plugin remembers it in your operating system’s credential store when available. Use Forget token to remove it.
- Under Import destination, choose Create a new database (the default), or Add to an existing foreground database and select a writable classic SQLite foreground database. Select Prepare import to request an export for up to 100 selected versions and their connected suppliers. Review the included datasets, licenses, conversion warnings, and any unresolved links. When adding to an existing database, the review counts new and identical activities. If the same activity code has different data, choose another destination or review the existing activity before importing.
Earlier CLIC databases without a saved read-only setting can also receive imports. If you explicitly locked a database, double-click its padlock in Activity Browser’s Databases pane to make it editable, then reopen the destination dropdown.
Use Replace matching activities to update activities whose Brightway codes match the incoming package. The review lists the replacements and asks you to confirm them. The import keeps their activity IDs and incoming links and replaces their data and outgoing exchanges. It also adds new activities and reuses identical ones.
The catalog shows the latest published version of each dataset. Click a column header to sort the current page, drag its borders to resize it, or right-click the header to filter across pages.
Hover over an import field label for guidance, or activate its ? button to keep the help open as you edit.
If CLIC is still preparing an export, select Continue later and resume through Pending exports in the same Brightway project. After import, Activity Browser’s Description tab shows the available CLIC metadata for each version, including publication details and technology readiness level. The destination database stores its first receipt in Brightway metadata under clic_import and any subsequent receipts under clic_import_history.
Backgrounds and unresolved links
The alpha supports classic single-output ecoinvent cutoff and consequential databases using CLIC Brightway JSON schema 1.2. It imports the exported exchange amounts and retains parameter declarations as metadata. Parameter groups for recalculating formulas, product-node and multifunctional backgrounds, and UVEK backgrounds are outside the scope of this alpha.
An unresolved link prevents the import. Check the exchange and database shown in the review. If the review says CLIC omitted a supplier ID, prepare smaller batches. For the battery-pack datasets, separate NMC622 and NMC811. The fix for combined exports is on the CLIC server side.
Development
Use the same environment as the pinned Activity Browser build. From the repository root, install the plugin with python -m pip install -e . and install ruff for the lint checks.
python -m unittest discover -s tests -v
ruff check src tests
ruff format --check src tests
The tests use simulated CLIC responses and an isolated Brightway project. To build and check the source distribution and wheel, install build and a current twine.
python -m build
python -m twine check --strict dist/*
Issue tracker · Activity Browser plugin API · CLIC API
Releases
Use a Git tag that matches the version in pyproject.toml, such as v0.1.0a2.
Run Publish to PyPI manually on the tag to build and check both distributions.
Publishing the corresponding draft GitHub release starts the PyPI upload workflow.
For the first release, set up a pending Trusted Publisher on PyPI with project name ab-plugin-clic, owner romainsacchi, repository ab-plugin-clic, workflow publish-pypi.yml, and environment pypi. GitHub Actions exchanges its identity for short-lived PyPI upload credentials.
License
The plugin is licensed under LGPL-3.0-or-later. See LICENSE and the accompanying GPL text. Imported datasets retain their individual licenses.
Metadata
Release files for ab-plugin-clic 0.1.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ab_plugin_clic-0.1.0a2.tar.gz | 60.0 kB | With provenance | Details for ab_plugin_clic-0.1.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ab_plugin_clic-0.1.0a2-py3-none-any.whl | Python 3 | none | any | Details for ab_plugin_clic-0.1.0a2-py3-none-any.whl |
Total release size: 114.7 kB
Release files / ab_plugin_clic-0.1.0a2.tar.gz
| Download URL | ab_plugin_clic-0.1.0a2.tar.gz |
|---|---|
| Size | 60.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2f648a5e619a526e68b815fdac01b2a9f58027c9f4b3d3ad3ed3607d1ec71e0
|
|
BLAKE2b-256 checksum How to use checksums |
f63240656180b2b0b4d4fd04973d7f16185301a75ce0ec9b1602c9c5db7cb21d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 26, 2026.
Transparency logRelease files / ab_plugin_clic-0.1.0a2-py3-none-any.whl
| Download URL | ab_plugin_clic-0.1.0a2-py3-none-any.whl |
|---|---|
| Size | 54.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85b728ca3480962405923bd05b786727880e8526996bd6fe5c7785059d9d05fd
|
|
BLAKE2b-256 checksum How to use checksums |
63237e957cb32a42341e043779b400564a02b6688ef3ba7c61e31049fe74aa48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 26, 2026.
Transparency logSecurity for ab-plugin-clic 0.1.0a2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ab_plugin_clic-0.1.0a2.tar.gz
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 Nov 26, 2026.
Transparency logA 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.