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

Uploaded Python 3

File details

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

File metadata

  • Download URL: essent_dynamic_pricing-0.2.5.tar.gz
  • Upload date:
  • Size: 6.1 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.5.tar.gz
Algorithm Hash digest
SHA256 31a0c3596167c92c6e871d2bf1291dca7410f0359852f1f0b991d2f3ce67fa76
MD5 76faa240c6a09a9669db670bb28b80ec
BLAKE2b-256 df133bd4ec39ae79083d03c773ab2c366769b4a0a0b95e553074c749a34763ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for essent_dynamic_pricing-0.2.5.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.5-py3-none-any.whl.

File metadata

File hashes

Hashes for essent_dynamic_pricing-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 15b39be9b59c7ecb102b90168a97e908ecac625dbb43cb9256770e80160720cc
MD5 9c16da212ba7a4873148cd7cf1e9b0a9
BLAKE2b-256 bbe968e70e96cb0b5e87237dcc1b191b8f2d38d3eb024d7a8f451c76c158b9b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for essent_dynamic_pricing-0.2.5-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