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.1.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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tenneteu_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d6239415bc8ab6c80ba515ff89fc578e9c517b504c3c891c953ce0078d630cf8
MD5 8b63bcb9a8ff79c024e13763c0ce3170
BLAKE2b-256 5b6dcea2c7a073345678c4aaf3eff4f924dbd7c9cc1bd8a1499cfab4dce84078

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for tenneteu_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15d03c63f6f9a59502f34c3fa6bf3734cce63275576fad8ec7a630e4b0019aca
MD5 c455f29771565fd8514a424886a803d9
BLAKE2b-256 4613c3e7b667597fc9329eb067cbf1bd80509b7634222006164a71557397e471

See more details on using hashes here.

Provenance

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