A python API wrapper for tennet.eu API
Project description
TenneTeu-py
Python client for the official TenneT.eu api. Register for an API key go to the API Develop Portal.
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 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
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()
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
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 tenneteu_py-0.2.0.tar.gz.
File metadata
- Download URL: tenneteu_py-0.2.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
791f9ecbb6ae2246c637c4ff760f205e1379b79b8a6d5ad74e5cd355c718f084
|
|
| MD5 |
0f580b53788f543a3d96b98f17c5786f
|
|
| BLAKE2b-256 |
df5f445c130fb6a308c5769a9ac3e0025dde922e4d325ab73369f07cc98cf701
|
Provenance
The following attestation bundles were made for tenneteu_py-0.2.0.tar.gz:
Publisher:
publish-to-test-pypi.yml on fboerman/TenneTeu-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tenneteu_py-0.2.0.tar.gz -
Subject digest:
791f9ecbb6ae2246c637c4ff760f205e1379b79b8a6d5ad74e5cd355c718f084 - Sigstore transparency entry: 1582701052
- Sigstore integration time:
-
Permalink:
fboerman/TenneTeu-py@ec655912944beb1e89ce04a6a22e4c3df7dc584d -
Branch / Tag:
refs/tags/V0.2.0 - Owner: https://github.com/fboerman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@ec655912944beb1e89ce04a6a22e4c3df7dc584d -
Trigger Event:
release
-
Statement type:
File details
Details for the file tenneteu_py-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tenneteu_py-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e214ed903338e085f76d7fcc172095958fecc61e4ad7c45082e7a16d7f5f35a9
|
|
| MD5 |
db266dd66ec99b1e580a08e06baa59ec
|
|
| BLAKE2b-256 |
6a6e41664e83c129a71e2a6f6b6b7923b25d9e6f305dff57c0205da5ab54806e
|
Provenance
The following attestation bundles were made for tenneteu_py-0.2.0-py3-none-any.whl:
Publisher:
publish-to-test-pypi.yml on fboerman/TenneTeu-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tenneteu_py-0.2.0-py3-none-any.whl -
Subject digest:
e214ed903338e085f76d7fcc172095958fecc61e4ad7c45082e7a16d7f5f35a9 - Sigstore transparency entry: 1582701238
- Sigstore integration time:
-
Permalink:
fboerman/TenneTeu-py@ec655912944beb1e89ce04a6a22e4c3df7dc584d -
Branch / Tag:
refs/tags/V0.2.0 - Owner: https://github.com/fboerman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@ec655912944beb1e89ce04a6a22e4c3df7dc584d -
Trigger Event:
release
-
Statement type: