Brightway2 parameters
Library for storing, validating, and calculating with parameters. Designed to work with the Brightway2 life cycle assessment framework, but is generic enough to work in other use cases.
In [1]: from bw2parameters import ParameterSet
In [2]: parameters = {
...: 'Deep_Thought': {'amount': 42},
...: 'East_River_Creature': {'formula': '2 * Deep_Thought + 16'},
...: 'Elders_of_Krikkit': {'formula': 'sqrt(East_River_Creature)'},
...: }
In [3]: ParameterSet(parameters).evaluate()
Out[3]: {'Deep_Thought': 42, 'East_River_Creature': 100, 'Elders_of_Krikkit': 10.0}
Compatible with Python 2.7 and 3.3+. 100% test coverage. Source code on Github, documentation on Read the Docs.
Metadata
Release files for bw2parameters 1.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 | Actions |
|---|---|---|---|---|
| bw2parameters-1.1.0.tar.gz | 26.9 kB | Without provenance | Details for bw2parameters-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bw2parameters-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for bw2parameters-1.1.0-py3-none-any.whl |
Total release size: 42.1 kB
Release files / bw2parameters-1.1.0.tar.gz
| Download URL | bw2parameters-1.1.0.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37d2e242334c7c688444296048257616e4b03580929c18faf6c2286e122b2b79
|
|
BLAKE2b-256 checksum How to use checksums |
72b6c57ebdbe3026187e409aedf4903e8c5d2a17fd010f9cd093dd0fb791bb60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / bw2parameters-1.1.0-py3-none-any.whl
| Download URL | bw2parameters-1.1.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea32c262a45a58f51cc97bc88595d4d23e6a936a476087b3fbf22a0227ebd1d8
|
|
BLAKE2b-256 checksum How to use checksums |
15163ceaa904610155a49cc984dc575c93437d6f69757f4ebf05decc19ed88e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for bw2parameters 1.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.