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.1.5.tar.gz (4.1 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.1.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tenneteu_py-0.1.5.tar.gz.

File metadata

  • Download URL: tenneteu_py-0.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tenneteu_py-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1b035e6808cf0f05676941c49741b7ce9f083407ca6f4a3dbc2599a0e913846c
MD5 de567f1e44daa3c352f392bd06e5ea03
BLAKE2b-256 9fe13c0ce1d7c2278f6ed69b3229314d5afbea4fdcb27e3bc5903910c3c723f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenneteu_py-0.1.5.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.1.5-py3-none-any.whl.

File metadata

  • Download URL: tenneteu_py-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tenneteu_py-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a480540382172e1c587ce36c5718425b5c69b21a5661e9452050a56b848fa3
MD5 4e543f12e215db1515ace9599d965d7e
BLAKE2b-256 7f903c08c918427563eb8686a72d5ee7a4036b4b21b904ec69891e84af4ecac7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenneteu_py-0.1.5-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