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.4.tar.gz (5.8 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.4-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: essent_dynamic_pricing-0.2.4.tar.gz
  • Upload date:
  • Size: 5.8 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.4.tar.gz
Algorithm Hash digest
SHA256 6b6bdf96364922ff285e655ad87ae731cc60f695ecacd9fb913a9e3e03dd4e6c
MD5 9d27b2338793aa7d74be68db2e5ea647
BLAKE2b-256 5a10a4c02d56f916c3e1de3bab00f2d2d299a0585d2e18acf492df4cfaefc7b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for essent_dynamic_pricing-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3a1aca2ba98636aa538de6bc77236ae14669ad8b28409543364f307b45f2786c
MD5 db13f58d6601f8ddf27782b99d76cfa7
BLAKE2b-256 b242ad0174bffdc1bff200c75bb6265ea6540a51795d9db4aacde54bae876b75

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