# TenneTeu-py
Python client for the official TenneT.eu api. Register for an API key go to the [API Develop Portal](https://developer.tennet.eu/).
If you want to mass download TenneT data, then don't do it through the API, you **will** hit rate limiters. Instead use the download page [here](https://www.tennet.eu/nl-en/grids-and-markets/transparency-data-netherlands/download-page-transparency) on the TenneT site.
DISCLAIMER: this is an _unofficial package_, do not contact TenneT about issues with the package, instead open an issue on this repo.
## Installation
`python3 -m pip install tenneteu-py`
## Usage
```python
from tenneteu import TenneTeuClient
from secret import apikey
import pandas as pd
client = TenneTeuClient(api_key=apikey)
d_from = pd.Timestamp('2024-01-01', tz='europe/amsterdam')
d_to = pd.Timestamp('2024-01-01 23:59', tz='europe/amsterdam')
# all possible queries listed below, name should be self explanatory
# from, to queries:
df = client.query_balance_delta(d_from=d_from, d_to=d_to)
df = client.query_settlement_prices(d_from=d_from, d_to=d_to)
df = client.query_merit_order_list(d_from=d_from, d_to=d_to)
#returns last 30 minutes like in tennet-py with the old api
df = client.query_current_imbalance()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/fboerman/TenneTeu-py",
"name": "tenneteu-py",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "TenneT data api energy",
"author": "Frank Boerman",
"author_email": "frank@fboerman.nl",
"download_url": "https://files.pythonhosted.org/packages/71/6a/9634a5cd110e4539532e78896ca42d37368ce69831d6d1c0f1f152b8b6f1/tenneteu_py-0.1.4.tar.gz",
"platform": null,
"description": "# TenneTeu-py\nPython client for the official TenneT.eu api. Register for an API key go to the [API Develop Portal](https://developer.tennet.eu/).\n\nIf you want to mass download TenneT data, then don't do it through the API, you **will** hit rate limiters. Instead use the download page [here](https://www.tennet.eu/nl-en/grids-and-markets/transparency-data-netherlands/download-page-transparency) on the TenneT site.\n\nDISCLAIMER: this is an _unofficial package_, do not contact TenneT about issues with the package, instead open an issue on this repo.\n\n## Installation\n`python3 -m pip install tenneteu-py`\n\n## Usage\n```python\nfrom tenneteu import TenneTeuClient\nfrom secret import apikey\nimport pandas as pd\n\nclient = TenneTeuClient(api_key=apikey)\nd_from = pd.Timestamp('2024-01-01', tz='europe/amsterdam')\nd_to = pd.Timestamp('2024-01-01 23:59', tz='europe/amsterdam')\n# all possible queries listed below, name should be self explanatory\n# from, to queries:\ndf = client.query_balance_delta(d_from=d_from, d_to=d_to)\ndf = client.query_settlement_prices(d_from=d_from, d_to=d_to)\ndf = client.query_merit_order_list(d_from=d_from, d_to=d_to)\n\n#returns last 30 minutes like in tennet-py with the old api\ndf = client.query_current_imbalance() \n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A python API wrapper for tennet.eu API",
"version": "0.1.4",
"project_urls": {
"Homepage": "https://github.com/fboerman/TenneTeu-py"
},
"split_keywords": [
"tennet",
"data",
"api",
"energy"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "af15add71e1d156d745a7bc50e1e24fd00ca5a7e4bf451c08cc7993753603484",
"md5": "226371fa29043c2224a18a60558fda78",
"sha256": "658216c630e0d7f5205714477354eae59bf239045c31e7d314a0a7e0f7663ad8"
},
"downloads": -1,
"filename": "tenneteu_py-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "226371fa29043c2224a18a60558fda78",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4467,
"upload_time": "2025-07-17T14:52:42",
"upload_time_iso_8601": "2025-07-17T14:52:42.025896Z",
"url": "https://files.pythonhosted.org/packages/af/15/add71e1d156d745a7bc50e1e24fd00ca5a7e4bf451c08cc7993753603484/tenneteu_py-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "716a9634a5cd110e4539532e78896ca42d37368ce69831d6d1c0f1f152b8b6f1",
"md5": "87ed8a2617beccc520a52b55fa7cce7b",
"sha256": "5ca19ef23d2546339dc6c25ed2d901a4933d229a0a62c2955d5249959568216e"
},
"downloads": -1,
"filename": "tenneteu_py-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "87ed8a2617beccc520a52b55fa7cce7b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4113,
"upload_time": "2025-07-17T14:52:43",
"upload_time_iso_8601": "2025-07-17T14:52:43.303430Z",
"url": "https://files.pythonhosted.org/packages/71/6a/9634a5cd110e4539532e78896ca42d37368ce69831d6d1c0f1f152b8b6f1/tenneteu_py-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-17 14:52:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fboerman",
"github_project": "TenneTeu-py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": []
},
{
"name": "pandas",
"specs": []
},
{
"name": "setuptools",
"specs": []
}
],
"lcname": "tenneteu-py"
}