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 | |
|---|---|---|---|
| bw2parameters-1.1.0.tar.gz | 26.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bw2parameters-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|