Python package for querying nordpool for average daily and hourly prices per kWh. Prices can only be obtained for the current year and the previous year. Incremet is how much you need to add to the price if you chargeback someone per kWh. It's optional and the default is zero. Default timezone is "Europe/Stockholm"
| Supported areacode's | Suported currency's | Increment | Timezone |
|---|---|---|---|
"SE1" |
"SEK" |
"0.15" |
"Europe/Stockholm" |
"SE2" |
"EUR" |
||
"SE3" |
|||
"SE4" |
|||
"NO1" |
|||
"NO2" |
|||
"NO3" |
|||
"NO4" |
|||
"NO5" |
|||
"FI" |
|||
"DK1" |
|||
"DK2" |
| Environment variables | Usage | Required | Syntax | Comment |
|---|---|---|---|---|
| LOGLEVEL | stdout logging level | No | DEBUG | Defaults to INFO if not used |
Usage:
pip install nordpool-daily-averages
#Getting average price for 2024-08-30, for areacode SE3 and in Euro and 15 cents is added to the prices
from nordpool import Daily as daily
#instantiate class
price = daily("SE3", "EUR", "0.15")
#Get the price
price.get_prices_for_one_date("2024-08-30")
#Getting average price for 2024-08-29 for areacode SE3 in SEK and 15 öre is added to the prices
from nordpool import Daily as daily
#instantiate class
price = daily("SE3", "SEK", "0.15")
#Get the price
price.get_prices_for_one_date("2024-08-29")
#Getting average price for 2024-08-28 for areacode SE2 in SEK and no increment is added to the prices
from nordpool import Daily as daily
#instantiate class
price = daily("SE2", "SEK")
#Get the price
price.get_prices_for_one_date("2024-08-28")
#Getting all price's for current year and last year for areacode SE2 in SEK and no increment is added to the prices
from nordpool import Daily as daily
#instantiate class
price = daily("SE2", "SEK")
#Get all price's
price.get_all_prices()
import asyncio
from nordpool import Hourly as hour
#Getting hourly data prices for one date
async def main():
#instantiate class
daily_average = hour(areacode="SE3", currency="SEK")
usage = await daily_average.get_hourly_prices("2024-09-04")
print(usage)
asyncio.run(main())
Metadata
Release files for nordpool-daily-averages 1.1.42
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 | |
|---|---|---|---|---|
| nordpool_daily_averages-1.1.42.tar.gz | 5.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nordpool_daily_averages-1.1.42-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / nordpool_daily_averages-1.1.42.tar.gz
| Download URL | nordpool_daily_averages-1.1.42.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d98ec249a21f276fe25b827d0c900da44d8e07dc77a8f38ef50f48b1729c0e53
|
|
BLAKE2b-256 checksum How to use checksums |
64f2b92db8fb97efea86f4c05b5a15c7e9b95af272e3f9ab567dd7a2f51ad3cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Release files / nordpool_daily_averages-1.1.42-py3-none-any.whl
| Download URL | nordpool_daily_averages-1.1.42-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e1e37ea0141a757cc0ced1abf3218309112ed4e1bb7ff68a0b246f90234b29c
|
|
BLAKE2b-256 checksum How to use checksums |
15db02bfb31ca7d7d16bdf5e00fefdbec26e8cc0048ebd93d41e539521cdcc58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Security for nordpool-daily-averages 1.1.42
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.