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.2.tar.gz (1.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.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: essent_dynamic_pricing-0.2.2.tar.gz
  • Upload date:
  • Size: 1.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.2.tar.gz
Algorithm Hash digest
SHA256 943901d829a79f803ae90add78b2e83a6a3d4ca30917203716a5b8fe18da37b3
MD5 2a7954f82b52131104a98c9feb75ae8c
BLAKE2b-256 fe1658b4d3e1d40aa9f526b13bfb14b94f8a536ccb723c775af8b6b118f2415f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for essent_dynamic_pricing-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0bbf5134b0447d2eb0380a172e41706d6d7c1568baf6669bfc51129206aec3be
MD5 2de2cb558ded63e5a4fafa7e61878a76
BLAKE2b-256 e14b5eb5bbf8dc4ec7330c93409546c7c7853eb81374a4458cddec872add8c52

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