Skip to main content

Async client for Essent dynamic energy prices

Project description

Essent dynamic pricing client

Async client for Essent's public dynamic price API, returning normalized electricity and gas tariffs ready for Home Assistant or other consumers.

Usage

import asyncio
from aiohttp import ClientSession
from essent_dynamic_pricing import EssentClient

async def main():
    async with ClientSession() as session:
        client = EssentClient(session=session)
        data = await client.async_get_prices()
        print(data["electricity"]["min_price"])

asyncio.run(main())

Development / tests

  1. Install dev deps (adds pytest and pytest-asyncio):
    pip install -e .[test]
  2. Run tests:
    pytest

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

essent_dynamic_pricing-0.2.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

essent_dynamic_pricing-0.2.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file essent_dynamic_pricing-0.2.1.tar.gz.

File metadata

  • Download URL: essent_dynamic_pricing-0.2.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for essent_dynamic_pricing-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9ea7b953d9a754a9888ff2dcbab669848429279890fd25e5b6f7554b2ded4926
MD5 6d679d8f83311af69c73fc06a7075f63
BLAKE2b-256 6ad68c6bb07c0a211a94207a290a581aa0bbbcd18b787c338b05a37dbd67fb25

See more details on using hashes here.

File details

Details for the file essent_dynamic_pricing-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for essent_dynamic_pricing-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8140ce0db63593d22c15c2e1411b939687dee6d7a33b17f610b0b7441f90b390
MD5 fcf83820ae50aad89693692966c27624
BLAKE2b-256 b95fbae110414ae4826755dfc5434573f99690e8163534d1f4342e53154ad2ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page