Skip to main content

Python library for fetching Nord Pool spot prices.

Project description

nordpool

Python library for fetching Nord Pool Elspot and Elbas prices.

Installing bleeding edge version from GitHub

Installation

pip install git+https://github.com/kipe/nordpool.git

Upgrading

pip install -U git+https://github.com/kipe/nordpool.git

Example

# Import library for fetching Elspot data
from nordpool import elspot, elbas
from pprint import pprint

# Initialize class for fetching Elspot prices
prices_spot = elspot.Prices()

# Initialize class for fetching Elsbas prices
prices_bas = elbas.Prices()

# Fetch hourly Elspot prices for Finland and print the resulting dictionary
pprint(prices_spot.hourly(areas=['FI']))

# Fetch hourly Elbas prices for Finland and print the resulting dictionary
pprint(prices_bas.hourly(areas=['FI']))

Output
{u'areas': {
    u'FI': {
        u'Average': 32.54,
        u'Max': 37.31,
        u'Min': 30.04,
        u'Off-peak 1': 30.74,
        u'Off-peak 2': 32.07,
        u'Peak': 33.9,
        u'values': [
            {u'end': datetime.datetime(2014, 10, 3, 23, 0, tzinfo=<UTC>),
             u'start': datetime.datetime(2014, 10, 3, 22, 0, tzinfo=<UTC>),
             u'value': 31.2},
            {u'end': datetime.datetime(2014, 10, 4, 0, 0, tzinfo=<UTC>),
             u'start': datetime.datetime(2014, 10, 3, 23, 0, tzinfo=<UTC>),
             u'value': 30.68},
            ... SNIP ...
            {u'end': datetime.datetime(2014, 10, 4, 22, 0, tzinfo=<UTC>),
             u'start': datetime.datetime(2014, 10, 4, 21, 0, tzinfo=<UTC>),
             u'value': 30.82}]}},
 u'currency': u'EUR',
 u'end': datetime.datetime(2014, 10, 4, 22, 0, tzinfo=<UTC>),
 u'start': datetime.datetime(2014, 10, 3, 22, 0, tzinfo=<UTC>),
 u'updated': datetime.datetime(2014, 10, 3, 10, 42, 42, 110000, tzinfo=<UTC>)}
 ...

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

nordpool-0.4.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

nordpool-0.4.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file nordpool-0.4.1.tar.gz.

File metadata

  • Download URL: nordpool-0.4.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure

File hashes

Hashes for nordpool-0.4.1.tar.gz
Algorithm Hash digest
SHA256 15f5067b1bedf1ac51ebfbd7b41a12203fcb970f77eed2b0ffef8cc0eb886f0d
MD5 1b40a7466aad1973e59fab146655fcf6
BLAKE2b-256 9b978041fb1844f29e311804f9f380441e2e61fd83ea8032e9ef87724d4e71ab

See more details on using hashes here.

File details

Details for the file nordpool-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: nordpool-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure

File hashes

Hashes for nordpool-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11b22dfca0be87be65e4ea7a641fe75f8959f2b25c3a143d84ad50fdb4fa0b1a
MD5 601902334358941aa934eb656f74ec4f
BLAKE2b-256 88b7b64ebfbd643a8353adea938c0b4d97d79c83dd3941339c205895c01bbebb

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