Skip to main content

No project description provided

Project description

Coverage Status Build status Documentation Status

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, 3.3, and 3.4. 100% test coverage. Source code on bitbucket, documentation on Read the Docs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bw2parameters-0.6.3.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

bw2parameters-0.6.3-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file bw2parameters-0.6.3.tar.gz.

File metadata

File hashes

Hashes for bw2parameters-0.6.3.tar.gz
Algorithm Hash digest
SHA256 00ff96890e10ec62d662b4225e56d422d6004a5a198b180d4fb8b26b203aadda
MD5 e6508a245119e9e2d4e2790b25de8a54
BLAKE2b-256 8eec7b2f8ae2dec89075975a0a6714daadab9485efacf1300e2a835737c66209

See more details on using hashes here.

File details

Details for the file bw2parameters-0.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for bw2parameters-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e39680edd1dbb9be58a03607a827d67ed7c86556a58867e25d9663c9bc1b4dad
MD5 42d89be79df92e8e937e142cfc9868d1
BLAKE2b-256 dee5b019f14373b939c0ab00a34f02be77c9f448f6e4ba59277879f0b2a6cb2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page