# ScenarioLink: An Activity Browser Plugin for Scenario-Based LCA Databases
ScenarioLink is a specialized plugin for the [Activity Browser](https://github.com/LCA-ActivityBrowser/activity-browser), an open-source software for Life Cycle Assessment (LCA). This plugin enables you to seamlessly fetch and reproduce scenario-based LCA databases, such as those generated by [premise](https://github.com/polca/premise), using [unfold](https://github.com/polca/unfold) datapackages.
## Features
Reproduce individual or multiple scenario-based databases within Activity Browser.
Merge multiple databases into a unified superstructure database containing various scenarios.
Leverage the capabilities of the unfold library to recreate databases with the necessary scaling factors.
## Overview
The Activity Browser builds upon the [Brightway2](https://brightway.dev) LCA framework. ScenarioLink aims to simplify the use of scenario-based LCA databases within the Activity Browser by:
Eliminating the need for separate tools required to generate these databases (e.g., premise).
Utilizing unfold datapackages that contain scaling factors essential for reproducing scenario-based LCA databases, assuming a consistent source database (e.g., ecoinvent 3.7.1).

## Requirements
activty-browser >= 2.9.7, < 2.10.0
## Installation
Activate your existing Activity Browser conda environment.
Install the ScenarioLink plugin using conda (preferred) or Pypi (may create conflicts with activity-browser dependencies):
`bash conda install -c romainsacchi ab-plugin-scenariolink `
or
`bash pip install ab-plugin-scenariolink `
Launch the Activity Browser.
Navigate to Tools > Plugins and select ScenarioLink from the plugin list.
## Usage
### Reproduce a scenario-based database
Activate the plugin by selecting it from the plugin list.

After activating the plugin, select the ScenarioLink tab.

Select (double-click) the desired datapackage from the table.

If the datapackage selected is not present in the local cache, it will be downloaded from the remote repository.
Once the download is complete, a second table presents the scenarios contained in the datapackage.

Select the desired scenario(s) by checking the corresponding checkboxes.
Choose whether to merge the selected scenarios into a single database (superstructure database) or reproduce them individually.
Click Import to start the process.
The plugin will ask you to select the databases in your project that will be used as source databases.

The plugin will then reproduce the selected scenario(s) and add them to your project.
## Contributing
You can make your own scenario-based LCA databases available to the community. To do so, you need to create a unfold datapackage and upload it to a remote repository. We will then add it to the list of available datapackages in the ScenarioLink plugin.
## Maintainers
For questions, issues, or contributions, you can reach out to:
Marc van der Meide: [Email](mailto:m.t.van.der.meide@cml.leidenuniv.nl)
Romain Sacchi: [Email](mailto:romain.sacchi@psi.ch)
Alternatively, you can open an issue on this GitHub repository.
Metadata
Release files for ab-plugin-scenariolink 0.1.0
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 | |
|---|---|---|---|---|
| ab_plugin_scenariolink-0.1.0.tar.gz | 20.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ab_plugin_scenariolink-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.3 kB
Release files / ab_plugin_scenariolink-0.1.0.tar.gz
| Download URL | ab_plugin_scenariolink-0.1.0.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d9c88d331dbc8c629d799aa153ae747cce8df5f787dfd052150d0d6bcf3247e
|
|
BLAKE2b-256 checksum How to use checksums |
5434be94755795fa71e77c8f5a4e037da4359b03524933b7d243568f692d5bc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Release files / ab_plugin_scenariolink-0.1.0-py3-none-any.whl
| Download URL | ab_plugin_scenariolink-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb7153ae38b2292a2265621fc634f595c792fb1addc1f425df5a0e5ff1e2f928
|
|
BLAKE2b-256 checksum How to use checksums |
d0e870b2c378185b8465f04eb7a6a03ea8ced5d1a1ea16aef6594099a0d24062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Security for ab-plugin-scenariolink 0.1.0
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.