Skip to main content

No project description provided

Project description

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for bw2parameters-0.5.3.tar.gz
Algorithm Hash digest
SHA256 c761bafc0ecc59a67a602a08e5eaa9fe2969b545cb4e75199a4bca9361ec2fc3
MD5 33e9f10c207abc056b7c2d5cb70e5284
BLAKE2b-256 f2beac128c91b95b023ef50c05bba92018355c788c7da602227bb971df6467fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bw2parameters-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76a6a4acda2f2d00cbea355f3d42fbba0fbbfadb508368c7afcadc64f5c2ab53
MD5 31c411b928b16e5eeb5fff8a3696a8cf
BLAKE2b-256 47d496c85736812d29e7cdfefbcc1d74324727c63fcae30d9d69e704c489e988

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