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.2.1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

bw2parameters-0.6.2.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for bw2parameters-0.6.2.1.tar.gz
Algorithm Hash digest
SHA256 60ccd6344fc9892edad35cd7fc93c8e3b44a5138033e94bae761493f4dc708f5
MD5 cddcd4f3a32d36f15bbb93b8f43dd60d
BLAKE2b-256 a3ed3e420067d6b0e092325d699bc68b9fc057cf9ee23b5f6be09255c2607f9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bw2parameters-0.6.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a81d8b53e272c65958f194b22c0279f2bdac428ae2bc87d25eb96f7f86fb3ccb
MD5 8c18bbbf834e58bea188f1b6a895c977
BLAKE2b-256 40a2cf8480089e1f04eb74bf305d5edb41e9567f1894ceb6b8db84acc2b11468

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