Metadata-Version: 2.1
Name: epdnorway
Version: 0.2
Summary: Extract and organize datapoints from Epd Norway DataSet
Home-page: https://bitbucket.com/knakk/epdnorway
Author: Knakk AS
Author-email: benjamin@knakk.no
License: MIT
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"])
        ```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
