EPIAS Transparency Platform v2.0 Python client by Robokami Data
Reason this release was yanked:
readme missing
Project description
EPIAS Transparency Platform v2.0 Python client by Robokami Data
eptr2
package is a thin wrapper around EPIAS Transparency Platform v2.0 API.
[!IMPORTANT]
EPIAS Transparency Platform v2.0 is still in "simulation" mode and expected to go live on Dec. 4, 2023. Breaking changes can be expected. A url change is expected at the minimum (https://seffaflik-prp.epias.com.tr to https://seffaflik.epias.com.tr)
Installation
You can simply use PyPI to install eptr2
package.
pip install eptr2
or directly through GitHub.
pip install git+https://github.com/Tideseed/eptr2.git
Usage
There are two types of calls. For instance, let's try to get MCP (PTF) of 2023-10-10.
- First type is limited with a number of services, but with a better interface.
from eptr2 import EPTR2
eptr = EPTR2()
mcp = eptr.mcp(start_date="2023-10-10T00:00:00+03:00",end_date="2023-10-10T00:00:00+03:00")
print(mcp.json())
## or directly with the call function
mcp_call = eptr.call("mcp",start_date="2023-10-10T00:00:00+03:00",end_date="2023-10-10T00:00:00+03:00")
print(mcp.json())
You can search for available calls with eptr.services
attribute. We plan to include all transparency services in the future.
available_calls = eptr.get_available_calls()
print(available_calls)
- Second type is more flexible, but you need to know the API endpoints and parameters.
from eptr2 import transparency_call
mcp = transparency_call(
call_path="electricity-service/v1/markets/dam/data/mcp",
call_method="POST",
call_body={"startDate":"2023-10-10T00:00:00+03:00","endDate":"2023-10-10T00:00:00+03:00"}
)
print(mcp.json())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.