Barry Electricity Price Consumption Data
Project description
pybarry
Python3 library for Barry.
Get electricity consumption price.
Install
pip3 install pybarry
Example:
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}')
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
pybarry-0.0.8.tar.gz
(2.7 kB
view details)
File details
Details for the file pybarry-0.0.8.tar.gz
.
File metadata
- Download URL: pybarry-0.0.8.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c51be3f6b655a7cfabd0163a1d9ac9ea694ab3dbb7e1143980725d2c275b9910 |
|
MD5 | be694c731ef79f493eddbf682fca3a4e |
|
BLAKE2b-256 | 1de5e7b9434fc65ea62ff63deb527be00a6b4d1aa5e029b518159fb27d869b56 |