Skip to main content

Extract and organize datapoints from Epd Norway DataSet

Project description

epdnorway

Python module (pypi.org) to consume XML data from https://digi.epd-norge.no/ into any python project.

Requirements

python v3.7

Usage

pip install epdnorway

Example usage:

	from epdnorway import *
	import pprint as pp

query dataset and show a json list result

	res = epdnorway.list_query("limtre")
	pp.pprint(res)

get a specific dataset, e.g. first of results

	dataset = epdnorway.DataSet(res[0]["uuid"])

Data Points are now accessible as dataset.impactAssessments and dataset.exchangeFlows

	pp.pprint(dataset.impactAssessments)

List of possible datapoints are in

	pp.pprint(dataset.EXCHANGE_FLOWS)
	pp.pprint(dataset.LIFE_CYCLE_METHODS)

Data Points are stored as keys, and values in secondary keys in amounts
List possible amounts for modules:

    pp.pprint(dataset.KNOWN_MODULES)

Get specific datapoints

Example: get the numbers for Global warming potential

	gwp = dataset.exchangeFlows["GWP"]
	pp.print(gwp)
	pp.print(gwp["amounts"]["A1-A3"])

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

epdnorway-0.2.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distributions

epdnorway-0.2-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

epdnorway-0.2-py2-none-any.whl (5.5 kB view hashes)

Uploaded Python 2

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