A python3 library to read electricity price
Project description
Strømpris
Usage
Supported sources:
- Hvakosterstrommen
from strompris.strompris import Strompris
from strompris.const import SOURCE_HVAKOSTERSTROMMEN
strompris = Strompris(source=SOURCE_HVAKOSTERSTROMMEN, zone=1) # Can also be used with direct string # Zone 1-5
"""Returns pricing for today and tomorrow if available"""
priser = strompris.get_available_prices()
"""Returns pricing for current hour using GMT+1|+2"""
now = strompris.get_current_price()
"""Returns pricing for current hour along with extra info:
total (kwh + tax)
min
max
avg
tax
price_level
"""
nowAttrs = strompris.getPriceAttrs(zone=1)
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
pyStrompris-0.0.11.tar.gz
(8.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyStrompris-0.0.11.tar.gz.
File metadata
- Download URL: pyStrompris-0.0.11.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24430f62212fe5b7417148ccc629ca59c4f0928e8cd10db749e9021ab3ff714f
|
|
| MD5 |
8217a3e44f5020c1a6a52396adba89fc
|
|
| BLAKE2b-256 |
165cc6a6f57158cdd293aecbecb28bec7b42525ba3ee87b5e53d5f7b6036e67d
|
File details
Details for the file pyStrompris-0.0.11-py3-none-any.whl.
File metadata
- Download URL: pyStrompris-0.0.11-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b0f28638ef12f4591f43a4981e75722e506c98fee8f8e0188e4649ae640163d
|
|
| MD5 |
5dd48e850246a4ff74ab4e112b251adb
|
|
| BLAKE2b-256 |
3219e0cb75dfb93d83f62e279f09fc2a3f4ed54327c3cf87c99eb460a4fc6051
|