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
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
nordpool-0.4.0.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file nordpool-0.4.0.tar.gz
.
File metadata
- Download URL: nordpool-0.4.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fae4d1f10f7fcd9f571c0921dfc6a9c96054095b68e9d7ddd5c3046e4dd771a |
|
MD5 | 72319057bfc194676786322d90d6f5a8 |
|
BLAKE2b-256 | c546a7133b689dd6426f0b2bef292f425a79fe9f7ed4de60218db17312c12a48 |
File details
Details for the file nordpool-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: nordpool-0.4.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2303d479b70ba50733a67ace464ae4e10dc5f5f92d43130283064fffdc28d828 |
|
MD5 | d74ec2dd45f22463950cc0b4a833da04 |
|
BLAKE2b-256 | 35bf2cb86a3fb425247ace0e9e8a73e6fe9306c02dede5beb7bbf0070d5a910a |