Skip to main content

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

tenneteu_py-0.2.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tenneteu_py-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for tenneteu_py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 791f9ecbb6ae2246c637c4ff760f205e1379b79b8a6d5ad74e5cd355c718f084
MD5 0f580b53788f543a3d96b98f17c5786f
BLAKE2b-256 df5f445c130fb6a308c5769a9ac3e0025dde922e4d325ab73369f07cc98cf701

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for tenneteu_py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e214ed903338e085f76d7fcc172095958fecc61e4ad7c45082e7a16d7f5f35a9
MD5 db266dd66ec99b1e580a08e06baa59ec
BLAKE2b-256 6a6e41664e83c129a71e2a6f6b6b7923b25d9e6f305dff57c0205da5ab54806e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page