# 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](https://devguide.python.org/versions/).
The library won't install without trickery on older versions, so update your Python.
## Installing
To install from [PyPi](https://pypi.org/project/nordpool/), use
`pip install nordpool`
### To upgrade
To upgrade installation from PyPi, use
`pip install -U nordpool`
#### Example
```python
# 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
```python
{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>)}
...
```
Raw data
{
"_id": null,
"home_page": "https://github.com/kipe/nordpool",
"name": "nordpool",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Kimmo Huoman",
"author_email": "kipenroskaposti@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ed/ed/e962f16199aa016c9411f14979081e6f81cb0f3fa26f8aee3013ef71f368/nordpool-0.4.5.tar.gz",
"platform": null,
"description": "# nordpool\n\n\n\nPython library for fetching Nord Pool Elspot prices.\n\n## Python version\n\nThe minimum supported Python version is 3.9, which receives security updates until [2025-10](https://devguide.python.org/versions/).\nThe library won't install without trickery on older versions, so update your Python.\n\n## Installing\n\nTo install from [PyPi](https://pypi.org/project/nordpool/), use\n\n`pip install nordpool`\n\n### To upgrade\n\nTo upgrade installation from PyPi, use\n\n`pip install -U nordpool`\n\n#### Example\n\n```python\n# Import library for fetching Elspot data\nfrom nordpool import elspot\nfrom pprint import pprint\n\n# Initialize class for fetching Elspot prices\nprices_spot = elspot.Prices()\n\n# Fetch hourly Elspot prices for Finland and print the resulting dictionary\n# If the prices are reported as None, it means that the prices fetched aren't yet available.\n# The library by default tries to fetch prices for tomorrow and they're released ~13:00 Swedish time.\npprint(prices_spot.hourly(areas=['FI']))\n```\n\n###### Output\n\n```python\n{u'areas': {\n u'FI': {\n u'values': [\n {u'end': datetime.datetime(2014, 10, 3, 23, 0, tzinfo=<UTC>),\n u'start': datetime.datetime(2014, 10, 3, 22, 0, tzinfo=<UTC>),\n u'value': 31.2},\n {u'end': datetime.datetime(2014, 10, 4, 0, 0, tzinfo=<UTC>),\n u'start': datetime.datetime(2014, 10, 3, 23, 0, tzinfo=<UTC>),\n u'value': 30.68},\n ... SNIP ...\n {u'end': datetime.datetime(2014, 10, 4, 22, 0, tzinfo=<UTC>),\n u'start': datetime.datetime(2014, 10, 4, 21, 0, tzinfo=<UTC>),\n u'value': 30.82}]}},\n u'currency': u'EUR',\n u'end': datetime.datetime(2014, 10, 4, 22, 0, tzinfo=<UTC>),\n u'start': datetime.datetime(2014, 10, 3, 22, 0, tzinfo=<UTC>),\n u'updated': datetime.datetime(2014, 10, 3, 10, 42, 42, 110000, tzinfo=<UTC>)}\n ...\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library for fetching Nord Pool spot prices.",
"version": "0.4.5",
"project_urls": {
"Homepage": "https://github.com/kipe/nordpool",
"Repository": "https://github.com/kipe/nordpool"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0c17716b8386dcb27b5380448b9f42828f853d4e11291305671622c42f18740b",
"md5": "cfde8a1c8ee620be1804391b84b9007e",
"sha256": "8751a92b6f970f76f488d8fac1480cf39baf1eb1a0ff45b07fbd1d92cfb2ed09"
},
"downloads": -1,
"filename": "nordpool-0.4.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cfde8a1c8ee620be1804391b84b9007e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 5146,
"upload_time": "2025-02-07T20:03:22",
"upload_time_iso_8601": "2025-02-07T20:03:22.761915Z",
"url": "https://files.pythonhosted.org/packages/0c/17/716b8386dcb27b5380448b9f42828f853d4e11291305671622c42f18740b/nordpool-0.4.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "edede962f16199aa016c9411f14979081e6f81cb0f3fa26f8aee3013ef71f368",
"md5": "c1a893c293422cb6afca5190daad456c",
"sha256": "ab6daef7277bda809d5e12c04f812df852706f3222fe197563b2914dbf5bef27"
},
"downloads": -1,
"filename": "nordpool-0.4.5.tar.gz",
"has_sig": false,
"md5_digest": "c1a893c293422cb6afca5190daad456c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 4527,
"upload_time": "2025-02-07T20:03:24",
"upload_time_iso_8601": "2025-02-07T20:03:24.499224Z",
"url": "https://files.pythonhosted.org/packages/ed/ed/e962f16199aa016c9411f14979081e6f81cb0f3fa26f8aee3013ef71f368/nordpool-0.4.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-07 20:03:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kipe",
"github_project": "nordpool",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "nordpool"
}