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.0.tar.gz (5.5 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.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: essent_dynamic_pricing-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 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.0.tar.gz
Algorithm Hash digest
SHA256 8b697d8e89af1050d47bb371d76e2c2fd1d57a94d154980bdff154ea6eb94abf
MD5 f50407c22bf19c0720bf232803228b17
BLAKE2b-256 0ab212431e3a5b7686d8f36c1fae16edfa5a924292594da0403eb4f17484a635

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for essent_dynamic_pricing-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70e0d51b3eb0211c0a46338b5b4f32c0e1c423c39306fc51feea88e9dfd7c657
MD5 6ef1cf7c23fabcbb18aa7557c76b2950
BLAKE2b-256 df4bd7eb4a163db91a6a93572ee7d321ff553619d374f6a0298427bfde8be120

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