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.3.tar.gz (4.0 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.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tenneteu_py-0.1.3.tar.gz
Algorithm Hash digest
SHA256 910f5d19633e1a41c324026d2aabd68cc4988f6a1467574ad78cb84d2a28f531
MD5 a50dbd3cfec243248919c46b9f35298f
BLAKE2b-256 273025c21821eab726a62a2e2c3cf8ab83b9764f777067f35681126bc4a1fc53

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for tenneteu_py-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42239b89c0fa5e9205cb26811c394252b7480d8c4f9d211fbef015f7b8b5a029
MD5 47901142c3b419bc8e628653b56431be
BLAKE2b-256 888e0c44133be5788500a3f2db8ee8ca616659a06c077a5d496eac1395e9cc98

See more details on using hashes here.

Provenance

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