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()
# Electricity data is always available
print(f"Electricity: {data.electricity.min_price} - {data.electricity.max_price} €/{data.electricity.unit}")
# Gas data may be None if unavailable from API
if data.gas:
print(f"Gas: {data.gas.min_price} - {data.gas.max_price} €/{data.gas.unit}")
else:
print("Gas data not available")
asyncio.run(main())
Breaking Changes in v0.3.0
The gas field in EssentPrices is now Optional[EnergyData] instead of required. This handles cases where the Essent API temporarily doesn't provide gas data. Electricity data is still required.
Before (v0.2.x):
data = await client.async_get_prices()
print(data.gas.min_price) # Always worked
After (v0.3.0):
data = await client.async_get_prices()
if data.gas:
print(data.gas.min_price) # Check for None first
Development / tests
- Install dev deps (adds pytest and pytest-asyncio):
pip install -e .[test] - Run tests:
pytest
Metadata
Release files for essent-dynamic-pricing 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| essent_dynamic_pricing-0.3.1.tar.gz | 8.6 kB | With provenance | Details for essent_dynamic_pricing-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| essent_dynamic_pricing-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for essent_dynamic_pricing-0.3.1-py3-none-any.whl |
Total release size: 15.2 kB
Release files / essent_dynamic_pricing-0.3.1.tar.gz
| Download URL | essent_dynamic_pricing-0.3.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97dc4ed328e3122e1e55469b90c4babeaffcc8064936371d337e86a2daacff16
|
|
BLAKE2b-256 checksum How to use checksums |
496fea01c88aaafcffbbf13b6a5e81fcdebfa363a430ac6fd436ba10a4f72d4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 14, 2026.
Transparency logRelease files / essent_dynamic_pricing-0.3.1-py3-none-any.whl
| Download URL | essent_dynamic_pricing-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a332d2e9404c387c719591ec12ceb160aad1ed3c1b5a14da937aef9090ac3cf
|
|
BLAKE2b-256 checksum How to use checksums |
ce096fdb34b83c5d534a4fdbf7fc2918454e7b13f62690a86e967817606f0d69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 14, 2026.
Transparency logSecurity for essent-dynamic-pricing 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for essent_dynamic_pricing-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.