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.1.0.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.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: essent_dynamic_pricing-0.1.0.tar.gz
  • Upload date:
  • Size: 6.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.1.0.tar.gz
Algorithm Hash digest
SHA256 1b26d4b9860cfb1523183e4f9465c7ad4f7282a7242c8120a9d8008299d81fd3
MD5 107b7377fd2090bbbb469e3fb19a5784
BLAKE2b-256 68947402269f4d72597f869199747f99cc6ee1dfa63a045fc2ee10b93135c8dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for essent_dynamic_pricing-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3e2b30d89e32efccb862ac569267e7a10e30a6c7c075bb17bada94333f9399c
MD5 0313494c2e1530ecd65a80b0237e0cfe
BLAKE2b-256 c825cf673ff83e3696ef5abf0e46b676e5434c1ae77bdcd0e9eeee8632edd2be

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