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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file aioelpris-0.2.0.tar.gz.

File metadata

  • Download URL: aioelpris-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for aioelpris-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6f24d27a6b54401deea0e05127946aea8d1078d260bbbc0c67929f3f1b7418f2
MD5 05a140c0d6d136aea44a612892861195
BLAKE2b-256 9868532d903fd8b15f0e053245c143a096593bf4665b61283bf942856d2889e2

See more details on using hashes here.

File details

Details for the file aioelpris-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: aioelpris-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for aioelpris-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6b885efd547c64b0b201c06042fcb54878cc13fd66ff3226e15f08821e37707
MD5 8e3687555298a86e5615b8b12b2355d3
BLAKE2b-256 5374aa65a77e4ba8ac2503ac5857a1e6e96d1adcafd92ca85a558757644d40d6

See more details on using hashes here.

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