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

Uploaded Python 3

File details

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

File metadata

  • Download URL: essent_dynamic_pricing-0.2.3.tar.gz
  • Upload date:
  • Size: 5.7 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.3.tar.gz
Algorithm Hash digest
SHA256 586d12e0d8a368c0b195bea8c372a0aae804c11f94ea1c68ac8d32202902ac50
MD5 a825926a6c40cedf060de5397078678c
BLAKE2b-256 1a1aab99256cfd59b3dbb6530e7169b3b8483a69b725e78a22ece7497bef92c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for essent_dynamic_pricing-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4c8b593e106bf7b7cec847b1e865098f66a450ad0fb46a0829a01a043557aac
MD5 e589ac0358be6288dd4e2b3fb0fbd669
BLAKE2b-256 2eb56495fb8d4ea46c181e30793ab3ebbc1b6fd630729241eb27518bf3f3fb33

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