Python library for fetching Nord Pool spot prices.
Project description
nordpool
Python library for fetching Nord Pool Elspot and Elbas prices.
Installing
To install from PyPi, use
pip install nordpool
To upgrade
To upgrade installation from PyPi, use
pip install -U nordpool
Example
# Import library for fetching Elspot data
from nordpool import elspot
from pprint import pprint
# Initialize class for fetching Elspot prices
prices_spot = elspot.Prices()
# Fetch hourly Elspot prices for Finland and print the resulting dictionary
# If the prices are reported as None, it means that the prices fetched aren't yet available.
# The library by default tries to fetch prices for tomorrow and they're released ~13:00 Swedish time.
pprint(prices_spot.hourly(areas=['FI']))
Output
{u'areas': {
u'FI': {
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.2.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file nordpool-0.4.2.tar.gz
.
File metadata
- Download URL: nordpool-0.4.2.tar.gz
- Upload date:
- Size: 5.7 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 | bc7ad3a589f89a8e2601d176873c9bebc018608b4d62ff30de26071cab51d249 |
|
MD5 | 0a34064c02bd549dedbd5ec1bf22a3b1 |
|
BLAKE2b-256 | 307e6dc564de2099661d504a37d9890be95e907ac816b34d3e8c7f8da40cc50c |
File details
Details for the file nordpool-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: nordpool-0.4.2-py3-none-any.whl
- Upload date:
- Size: 7.3 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 | 8be89152424cbf42b8e2024abaad3887e4c47e6586b14b62d7543aff69298225 |
|
MD5 | 04132a85b9c4933d1082c78b45074ba9 |
|
BLAKE2b-256 | 2eb231a3e9f14d1a5512ffe56e87e6dc42eb44e844071498d10c4b1d3490fff3 |