Skip to main content

Bidgely

A Python library for getting historical and forecasted usage/cost from utilities that use Bidgely such as Hydro Ottawa.

Supported utilities:

  • Hydro Ottawa
  • Avista

Possible Supports:

  • BC Hydro
  • NS Power
  • Hydro One
  • Public Service Electric and Gas (PSE&G)

More here

Support a new utility

To add support for a new utility that uses the Bidgely API (you can tell if the energy dashboard of your utility makes network requests to a *.bidgely.com host in the network tab of your browser's developer tools -- naapi-read.bidgely.com for Hydro Ottawa, avista-prodapi.bidgely.com for Avista) add a file similar to hydroottawa.py

Name the file after the utility , e.g. hydroottawa.py for Hydro Ottawa or bchydro.py for BC Hydro.

Since this library is planned to be used by Home Assistant, then per https://github.com/home-assistant/architecture/blob/master/adr/0004-webscraping.md we cannot have a dependency on a headless browser and we can only parse HTML during login.

An exception is made for the authentication phase. An integration is allowed to extract fields from forms. To make it more robust, data should not be gathered by scraping individual fields but instead scrape all fields at once.

Example

See demo.py

Thank you

Inspired by opower by @tronikos

Async pycognito sign in from @dotKrad

Metadata

Release files for bidgely-avista 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bidgely-avista 0.2.1
File Size Uploaded Provenance Actions
bidgely_avista-0.2.1.tar.gz 16.6 kB Without provenance Details for bidgely_avista-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bidgely-avista 0.2.1
File Interpreter ABI Platform Actions
bidgely_avista-0.2.1-py3-none-any.whl Python 3 none any Details for bidgely_avista-0.2.1-py3-none-any.whl

Total release size: 36.1 kB

Release files / bidgely_avista-0.2.1.tar.gz

Download URL bidgely_avista-0.2.1.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d77fee8d795ce5dfa32b0fbe8b152fe70e5cf2c09e57e16ad1acdcc32ebd9b4f
BLAKE2b-256 checksum
How to use checksums
484f5e66f966e9cf800cf824797c5142f384b0601327079a0345d459befdc2f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.7 Darwin/27.0.0

Release files / bidgely_avista-0.2.1-py3-none-any.whl

Download URL bidgely_avista-0.2.1-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db61caa37600d40f36788eb520b222decad76bc85b5243c4dcb076640533ae77
BLAKE2b-256 checksum
How to use checksums
7b7fe46eabdfa6752fbd77972a3f3764732dfc28a1e922be4aefa9ebf63665a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.7 Darwin/27.0.0

Security for bidgely-avista 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page