nordpool
Python library for fetching Nord Pool Elspot prices.
Python version
The minimum supported Python version is 3.9, which receives security updates until 2025-10. The library won't install without trickery on older versions, so update your Python.
Installing
To install from PyPi, use
pip install nordpool
To upgrade
To upgrade installation from PyPi, use
pip install -U nordpool
Usage example
Below is a very basic example of the library usage. More advanced example(s) can be found in examples -directory.
from pprint import pprint
from nordpool import elspot
# Initialize class for fetching the prices.
# An optional currency parameter can be provided, default is EUR.
prices_spot = elspot.Prices()
# Fetch tomorrow's 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.fetch(areas=["FI"]))
Output:
{
"areas": {
"FI": {
"values": [
{
"end": datetime.datetime(2025, 5, 12, 23, 0, tzinfo=tzutc()),
"start": datetime.datetime(2025, 5, 12, 22, 0, tzinfo=tzutc()),
"value": 5.11,
},
{
"end": datetime.datetime(2025, 5, 13, 0, 0, tzinfo=tzutc()),
"start": datetime.datetime(2025, 5, 12, 23, 0, tzinfo=tzutc()),
"value": 5.8,
},
{
"end": datetime.datetime(2025, 5, 13, 1, 0, tzinfo=tzutc()),
"start": datetime.datetime(2025, 5, 13, 0, 0, tzinfo=tzutc()),
"value": 4.51,
},
# ... SNIP ...
{
"end": datetime.datetime(2025, 5, 13, 22, 0, tzinfo=tzutc()),
"start": datetime.datetime(2025, 5, 13, 21, 0, tzinfo=tzutc()),
"value": -10.24,
},
]
}
},
"currency": "EUR",
"end": datetime.datetime(2025, 5, 13, 22, 0, tzinfo=tzutc()),
"start": datetime.datetime(2025, 5, 12, 22, 0, tzinfo=tzutc()),
"updated": datetime.datetime(2025, 5, 12, 11, 26, 3, 811220, tzinfo=tzutc()),
}
Metadata
Release files for nordpool 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nordpool-0.5.1.tar.gz | 5.2 kB | Without provenance | Details for nordpool-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nordpool-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for nordpool-0.5.1-py3-none-any.whl |
Total release size: 11.1 kB
Release files / nordpool-0.5.1.tar.gz
| Download URL | nordpool-0.5.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00d2a9ef7c7f6f42fc33113fd4d76b543947d8702ef4092de5c1b683cebab81c
|
|
BLAKE2b-256 checksum How to use checksums |
3816813c3ea61efde06bb2386e8321d802cba581c9ff06e8e94ea73b69369654
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.1 CPython/3.12.1 Linux/6.11.0-1018-azure
|
Release files / nordpool-0.5.1-py3-none-any.whl
| Download URL | nordpool-0.5.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
baa27391505e9c27ee60a6336099cefdaf7fad153868d3359aba15dca2035b23
|
|
BLAKE2b-256 checksum How to use checksums |
00fcdc133c8324b6ae7d9e24dcfb3ca2453c157a1d884222bf25dd642a85df21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.1 CPython/3.12.1 Linux/6.11.0-1018-azure
|
Security for nordpool 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.