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. Tariff start/end values are returned as timezone-aware datetimes in the Europe/Amsterdam timezone.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: essent_dynamic_pricing-0.2.7.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for essent_dynamic_pricing-0.2.7.tar.gz
Algorithm Hash digest
SHA256 d580def8d29a8edb7a4111a8fc716f346e7163c999d95c3e04d787fbc4da064d
MD5 8ff4dc5331d4ca33a371d318f5c7bd08
BLAKE2b-256 ab3e862c13c41e9fc7128b8a2cb8fbe96fb9387123c3ed93329008a115c02f75

See more details on using hashes here.

Provenance

The following attestation bundles were made for essent_dynamic_pricing-0.2.7.tar.gz:

Publisher: publish.yml on jaapp/py-essent-dynamic-pricing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for essent_dynamic_pricing-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d028978a4554f5a3852c97a0c018a0f99d3a54483cdaae1560fc48149f003fd3
MD5 2db3c226b2484077f4142ce100cc9913
BLAKE2b-256 488b6e38e296c38acf4c70a9b1461d77797153a96abe145874f66bfda04f5218

See more details on using hashes here.

Provenance

The following attestation bundles were made for essent_dynamic_pricing-0.2.7-py3-none-any.whl:

Publisher: publish.yml on jaapp/py-essent-dynamic-pricing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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