Skip to main content

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

Uploaded Source

Built Distribution

pybarry-0.0.7-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file pybarry-0.0.7.tar.gz.

File metadata

  • Download URL: pybarry-0.0.7.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

Hashes for pybarry-0.0.7.tar.gz
Algorithm Hash digest
SHA256 dda9e405230ee4b5ee5530bb91cde767b2abaa4dc16d5d859dae2c7709b8e9a1
MD5 551a7ef29c3795e809792a025a4dcd5b
BLAKE2b-256 f678ace59959e878704e208a06107feca6e359a974215b4e9089fcf948f2e735

See more details on using hashes here.

File details

Details for the file pybarry-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: pybarry-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • 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

Hashes for pybarry-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d8abcfdd7389721c8f00a211fe036edf24e2a1f42eb868898258098af93fd400
MD5 9e46a7b9f199c11e29e51023410477f6
BLAKE2b-256 092a388c215f60d928a3cd0c3c828bd22114e7463f13b5327e98c56771ac68ab

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