Skip to main content

A python API wrapper for tennet.eu API

Project description

TenneTeu-py

Python client for the official tennet.eu api. Currently the API is only open for accredited parties, please contact Customer Contact Center (tennetccc@tennet.eu) for access.

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.0.tar.gz (3.5 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.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tenneteu_py-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tenneteu_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe5e443798ccf4a5d81e3712b1c0554bd05ab2d4bfa9b6d5d7cf16d91f38265c
MD5 fda67a3d235364c31e85db4b7de59d42
BLAKE2b-256 d320dcaff72d8b8e0c404c1997662d6b60734dbb5abdb789d831302796f8e63d

See more details on using hashes here.

File details

Details for the file tenneteu_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tenneteu_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tenneteu_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8404b29502f11eaf934104b291cac96f8054d527cb7ad9a5f02cc981c5e6a10e
MD5 55baa1002d75eaa38d1e5bb15bec99b9
BLAKE2b-256 7afe6d8dcbd9e707225102e0d5d5b2e08396145e263109ba6fb4d91e32b594c0

See more details on using hashes here.

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