Skip to main content

REST api wrapper for nordpool average daily spot prices

Project description

Link to github repository

Python package for querying nordpool for average daily prices. 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

Supported areacode's Suported currency's Increment
"SE1" "SEK" "0.15"
"SE2" "EUR"
"SE3"
"SE4"
"NO1"
"NO2"
"NO3"
"NO4"
"NO5"
"FI"
"DK1"
"DK2"

#EMAIL_RECEIVERS is a list like this ["person1@domain.com","person2@gmail.com","person3@hotmail.com"] or it can be just one user

Environment variables Usage Required Syntax Comment
LOGLEVEL stdout logging level No DEBUG Defaults to INFO if not used
EMAIL_HOST host for outgoing emails No "myhost@acme.com" If not existing no email error sending, port is 25
EMAIL_SUBJECT Subject in email Yes if EMAIL_HOST "Something went wrong" What will in the subject for the email
EMAIL_SENDER Who will be sender Yes if EMAIL_HOST "first.last@acme.com" Which email address will be sender
EMAIL_RECEIVERS Who will reseive the mail Yes if EMAIL_HOST See above Who will receive the email(s)

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 Prices as p
#instantiate class
price = p("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 Prices as p
#instantiate class
price = p("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 Prices as p
#instantiate class
price = p("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 Prices as p
#instantiate class
price = p("SE2", "SEK")
#Get all price's
price.get_all_prices()

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_daily_averages-1.1.5.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

nordpool_daily_averages-1.1.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file nordpool_daily_averages-1.1.5.tar.gz.

File metadata

File hashes

Hashes for nordpool_daily_averages-1.1.5.tar.gz
Algorithm Hash digest
SHA256 dc20f52a58b1fb7103a461460501e13f93b0d14bd635ae2a4e5d3584fd43b050
MD5 93acb1fddd2cc58c85979f5cb4f39e54
BLAKE2b-256 17d60abecc336dca44e68d5c67d3756819307d18071f6d42193b0fed128ae767

See more details on using hashes here.

File details

Details for the file nordpool_daily_averages-1.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nordpool_daily_averages-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c47b034806da8417bc013bdd547d044a3cd0afd114e904732586b2ae1ffba740
MD5 a94848c75a2b8d6b6fa3e6e83c47fb0e
BLAKE2b-256 8d9efb71728f1bf69b35fcb6646f480cf490b992fc81216eddfe0218799fa7fa

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