Skip to main content

Contains all the python boilerplate you need to create a Brightway ecosystem package.

Project description

Brightway2 parameters

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 and 3.3+. 100% test coverage. Source code on Github, 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-1.1.0.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

bw2parameters-1.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bw2parameters-1.1.0.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for bw2parameters-1.1.0.tar.gz
Algorithm Hash digest
SHA256 37d2e242334c7c688444296048257616e4b03580929c18faf6c2286e122b2b79
MD5 7a9c693e829c245c4255240dfffb44d6
BLAKE2b-256 72b6c57ebdbe3026187e409aedf4903e8c5d2a17fd010f9cd093dd0fb791bb60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bw2parameters-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea32c262a45a58f51cc97bc88595d4d23e6a936a476087b3fbf22a0227ebd1d8
MD5 1ff0e7107b9c0589c0f0fc9f9719f877
BLAKE2b-256 15163ceaa904610155a49cc984dc575c93437d6f69757f4ebf05decc19ed88e2

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