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}')

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

Uploaded Source

Built Distribution

pybarry-0.0.6-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybarry-0.0.6.tar.gz
  • Upload date:
  • Size: 2.5 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.6.tar.gz
Algorithm Hash digest
SHA256 25783250cd5e0c4416e4c201e4c68b53641794d81ea914a340999e78f911f121
MD5 64382d93973fc939cdffcff18570cbbe
BLAKE2b-256 0869c2c2e887dd20e800d1eeb68bd45ed76b3ca971e43c96921a7f1757858a1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybarry-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2f1130638d25a870c77b49a1f02e6f7404898439bc219aacd276c4dc035cacd9
MD5 b07610dcdd09278aef2b0b047a6ff82a
BLAKE2b-256 b8791e8c28a37716b9cf3d7d38c59893b61b49393842e17d46f47bd55dde922c

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