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
- Install dev deps (adds pytest and pytest-asyncio):
pip install -e .[test] - Run tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5a3e1156deadcf60adcea76da0c40d3626f492ac9a7bb706762b129845d5fc4
|
|
| MD5 |
03031ddada0d6fc74f899da10db00ea4
|
|
| BLAKE2b-256 |
6fe8f512d6293419274fa8911f2dc553ece5922a4f2ddb2f5f48f86c399d9907
|
File details
Details for the file essent_dynamic_pricing-0.1.1-py3-none-any.whl.
File metadata
- Download URL: essent_dynamic_pricing-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8901e82f80e58eb71bc3e961f113401e88a6ec443ec3e70a9116cf8e5c02b29c
|
|
| MD5 |
20e31c221b0829e1ecf53a4825a0c8f8
|
|
| BLAKE2b-256 |
303355df48b56e9ca78b2ef52dcec3a51c879cc4eec832ac0214df1a7ff0a8f3
|