Skip to main content

Supported Python versions Code style: Black Mypy: checked Imports: isort

data-rte-python-api is a Python API wrapper for the APIs of the RTE.

Installation

The library can be installed using pip (the library is not published on PyPI yet):

pip install data-rte-python-api

Usage

You will have to register an application to get a client_id and client_secret before using any of the APIs.

from datetime import datetime

from datarteapi import BigSubstations, BaseAPIException

client = BigSubstations(client_id="your_client_id", client_secret="your_client_secret")

try:
    apiresponse = client.get_pds_data(
        start_date=datetime.fromisoformat("2017-09-01T12:00:00"),
        end_date=datetime.fromisoformat("2017-09-01T23:00:00")
    )
except BaseAPIException as e:
    # Handle the exception

print(apiresponse.data, apiresponse.headers)

Currently, only the APIs working with OAuth are available.

Date entries

Depending on the API you are using, date timezones are handled differently. If all timezones are supported by the API server, the datetime will be used as is. If only UTC is supported, timezone aware dates will be converted to UTC. For unware dates, local timezone is used before being converted to UTC.

For more details, refer to the corresponding API documentation.

Metadata

Release files for data-rte-python-api 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for data-rte-python-api 0.0.1
File Size Uploaded Provenance Actions
data-rte-python-api-0.0.1.tar.gz 10.6 kB Without provenance Details for data-rte-python-api-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for data-rte-python-api 0.0.1
File Interpreter ABI Platform Actions
data_rte_python_api-0.0.1-py3-none-any.whl Python 3 none any Details for data_rte_python_api-0.0.1-py3-none-any.whl

Total release size: 26.6 kB

Release files / data-rte-python-api-0.0.1.tar.gz

Download URL data-rte-python-api-0.0.1.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2dc61e0b2028b58273ffb5c5d6709081031ccb967ff39b7cb26c52ab7bfccccc
BLAKE2b-256 checksum
How to use checksums
84343148df0025e896c2830365fac63c9f1f6c7222bb5450ccf6aaeb92b2dc67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Release files / data_rte_python_api-0.0.1-py3-none-any.whl

Download URL data_rte_python_api-0.0.1-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
936513c72deb8a6f09b64cafbffe9683713ad5335a1123df1f8807b9f3b21b07
BLAKE2b-256 checksum
How to use checksums
94e1395a53c4694c169d3db49860f1c6ea783f4cd7fa7e295d3883036353f145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Security for data-rte-python-api 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page