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

Uploaded Source

Built Distribution

bw2parameters-0.6.5-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for bw2parameters-0.6.5.tar.gz
Algorithm Hash digest
SHA256 a7e013c9f20f052423ad7b3431b69dda6b7ad64e6803da94e07e82bdb427c159
MD5 4ad35a96391bfa32018105746c62feb8
BLAKE2b-256 7e4bfb15e2058bf10492c12be48af86aa4e2b5feae431cb8b48b483372192a9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bw2parameters-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6248795a9874b5330ec4898f31ca89602572a48f2fadb37fc147f5ebbeb1c793
MD5 8792c33cd23fc8ea18b7ddb18a9d0d04
BLAKE2b-256 2770f18cd4e9077662b14ac26b211325a7e8e767e291fb3dde1153b93245028e

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