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

Uploaded Python 3

File details

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

File metadata

  • Download URL: essent_dynamic_pricing-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 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.1.tar.gz
Algorithm Hash digest
SHA256 d5a3e1156deadcf60adcea76da0c40d3626f492ac9a7bb706762b129845d5fc4
MD5 03031ddada0d6fc74f899da10db00ea4
BLAKE2b-256 6fe8f512d6293419274fa8911f2dc553ece5922a4f2ddb2f5f48f86c399d9907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for essent_dynamic_pricing-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8901e82f80e58eb71bc3e961f113401e88a6ec443ec3e70a9116cf8e5c02b29c
MD5 20e31c221b0829e1ecf53a4825a0c8f8
BLAKE2b-256 303355df48b56e9ca78b2ef52dcec3a51c879cc4eec832ac0214df1a7ff0a8f3

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