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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for bw2parameters-0.6.2.tar.gz
Algorithm Hash digest
SHA256 8d010b7c13a0b02346612d1927dd8446eb6eebeacfece62a2a232fe49575323a
MD5 170eb0d2db4e40cddcb9a6607bb988d3
BLAKE2b-256 b9fc048346eb239b4920c127f48afbad387c6cdb45a79163414c320666305185

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bw2parameters-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee2ad4ff8190bd9b13d315a51a7cb5769c8fe012bea1020c5847da7944be4cf9
MD5 6c962bc226e304487cdb568cb63680c2
BLAKE2b-256 5804d502470dfe1108a5b2b663320f6d91db29c824ddad7e2615a4d042173013

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