Skip to main content

An aio library to retrieve some Nordic countries current electricity price.

Project description

aioelpris

An aio library to retrieve current electricity price in (some parts) of the Nordics. Current supported regions are:

  • DK1: Denmark/west of the Great Belt
  • DK2: Denmark/east of the Great Belt
  • NO2: Norway/Kristiansand
  • SE3: Sweden/Stockholm
  • SE4: Sweden/Malmö

Prices are returned in DKK and EUR currencies.

Basic example

import asyncio

from aiohttp import ClientSession

from aioelpris import ElPris
from aioelpris.core.models import Price


async def example() -> Price:
    async with ClientSession() as session:
        pris = ElPris(session=session, price_area="SE3")
        price: Price = await pris.get_current_price()
        print(price.SpotPriceDKK)
        return price


asyncio.run(example())

Data sources

Energi Data Service.

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

aioelpris-0.2.0.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

aioelpris-0.2.0-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page