Skip to main content

A python API wrapper for TenneT System & transmission data

Project description

TenneT-py

Python client for ingesting the TenneT System & transmission data API which can be found here. It is a public API for which no API key is needed.

The library currently supports four data items:

  • Measurement data
  • Imbalance price
  • Balance delta with prices
  • Available capacity

Data can be retrieved as raw text or a Pandas DataFrame.

The client currently has two methods:

  • base_request: retrieves specified data in csv or xml text format
  • query_df: retrieves specified data and returnes a Pandas DataFrame

Installation

pip install tennet-py

Example Usages

from tennet import TenneTClient, DataType, OutputType
import pandas as pd

start = pd.Timestamp("2021-01-01")
end = pd.Timestamp("2021-01-31")

# initiate the client, you can specify a default output to not always specify it per call
client = TenneTClient(default_output=OutputType.CSV)
# retrieve data as text in default output (in this case csv)
data = client.base_request(DataType.settlementprices, d_from=start, d_to=end)
# retrieve data as xml
data = client.base_request(DataType.settlementprices, d_from=start, d_to=end, output_type=OutputType.XML)

# retrieve same data as a dataframe
df = client.query_df(DataType.settlementprices, d_from=start, d_to=end)

Disclaimer

This is an unoffical package which is not supported or endorsed in any way by TenneT TSO.

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

tennet-py-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

tennet_py-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file tennet-py-0.1.0.tar.gz.

File metadata

  • Download URL: tennet-py-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for tennet-py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d48f8ecf25b0acfd6da46d7ffe0351c85823aa10b2750d53ec29886a99f867b8
MD5 a466327a012e1c301d7d8af14d84cd69
BLAKE2b-256 4ef4cb0a6e50c6e6266f9914e70b29d01bea3b323c140ed868e74dde57edc4c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tennet_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for tennet_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8149e27ee826cfde16d2a41675b33fdc358ab7e1c4de3adf43c42d448d84b9df
MD5 b5b3e495b6779b0269d50dd3893e8486
BLAKE2b-256 14be6a250b6872ee4c927b70f2433c61d0d7a1de43bddff980d8b367f7b4e032

See more details on using hashes here.

Supported by

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