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.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

tennet_py-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tennet-py-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for tennet-py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 282b54de9e1b36504542a8ae51c6d3584309c904600037b5651b6d505fd3b57a
MD5 e7e0819fe1c923695a5e9e20870e84dd
BLAKE2b-256 88811b2f985e5b97fc4e7bc0a65d294d89d746d60b80e6b839564d6bb9ec45bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tennet_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for tennet_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f524824169e8c104052cc919c6d7912ddd4795dc1f65f2359b7b05904a621c9b
MD5 5f131f5b95f65f54a851331c6ce27d4d
BLAKE2b-256 fbc591d4cee6085bae486fa69c8120d8b075e62f9a0043f2798ebe9a269111e7

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