Skip to main content

No project description provided

Project description

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

Neither the name of Paul Scherrer Institut nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Description-Content-Type: UNKNOWN
Description: Brightway2 parameters
=====================

|Coverage Status| |Build status| |Documentation Status|

Library for storing, validating, and calculating with parameters.
Designed to work with the `Brightway2 life cycle assessment
framework <https://brightwaylca.org>`__, 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 <https://bitbucket.org/cmutel/brightway2-parameters>`__,
documentation on `Read the
Docs <https://brightway2-parameters.readthedocs.io/>`__.

.. |Coverage Status| image:: https://coveralls.io/repos/bitbucket/cmutel/brightway2-parameters/badge.svg?branch=master
:target: https://coveralls.io/bitbucket/cmutel/brightway2-parameters?branch=master
.. |Build status| image:: https://ci.appveyor.com/api/projects/status/9ynu6gd9nk26mx2i?svg=true
:target: https://ci.appveyor.com/project/cmutel/brightway2-parameters
.. |Documentation Status| image:: https://readthedocs.org/projects/brightway2-parameters/badge/?version=latest
:target: http://brightway2-parameters.readthedocs.io/?badge=latest

Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bw2parameters-0.6.6.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for bw2parameters-0.6.6.tar.gz
Algorithm Hash digest
SHA256 7dc2415bf66101fba23a34e245fd6e67d58fe395e52bf1c4899d19710a905678
MD5 e895afbf702562722af69dce867b7d08
BLAKE2b-256 0e0020eb83c0844a47b844ec036397bc54a3b35c781b08817865e18c4075e375

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bw2parameters-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for bw2parameters-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ede3340402a065811bfbca8f40770aa89d323e6f47f20a5eaaf43437b4b91191
MD5 5c38716c3bfe0eaa40e11c178d48ec59
BLAKE2b-256 65be3cde428e9f602d7fbeaed21b65e290924a7146f036f85c5819c7a706fc5a

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