Metadata-Version: 2.1
Name: pybarry
Version: 0.0.8
Summary: Barry Electricity Price Consumption Data
Home-page: https://bitbucket.org/getbarry/pybarry
Author: Barry
Author-email: yash.khatri@barry.energy
License: MIT
Description: # pybarry
        
        Python3 library for [Barry](https://barry.energy/dk).
        
        Get electricity consumption price.
        
        ## Install
        
        ```
        pip3 install pybarry
        ```
        
        ## Example:
        
        ```python
        from pybarry import Barry
        
        access_token = '<your barry token>'
        barry_connection = Barry(access_token=access_token)
        # Get price_code from where your metering point is located
        spot_price, currency = barry_connection.update_spot_price(price_code=price_code)
        print(f'Spot_price: {spot_price} {currency}')
        # Get your mpid from selected metering point
        total_price, currency = barry_connection.update_total_price(mpid=mpid)
        print(f'Total_price: {total_price} {currency}')
        # Get your mpid from selected metering point
        co2_emission, unit = barry_connection.update_co2_emission(price_code=price_code)
        print(f'CO2 Emission of Current Hour: {co2_emission} {unit}')
        ```
Platform: any
Description-Content-Type: text/markdown
