EPIAS Transparency Platform v2.0 Python client by Robokami Data
Project description
[!IMPORTANT]
🇬🇧 You will need username and password credentials from EPIAS to access Transparency Platform data. Register through EPIAS Registration Platform and get your username (your email) and password. English version is available.eptr2
is still in active development. Breaking changes can be expected. Fill an issue if you encounter any problem.
[!ÖNEMLİ]
🇹🇷 Şeffaflık Platformu verilerine erişmek için EPİAŞ üzerinden kayıt yaparak kullanıcı adı ve şifre almanız gerekmektedir. EPİAŞ Kayıt Platformu üzerinden kullanıcı adınızı (kayıt e-postası) ve şifrenizi alabilirsiniz.eptr2
hala aktif olarak geliştirilmektedir. Büyük değişiklikler beklenebilir. Herhangi bir sorunda, issue kısmından istek açabilirsiniz.
EPIAS Transparency Platform v2.0 Python client by Robokami Data
🇬🇧 eptr2
(EPIAS Transparency 2.0) package is a thin wrapper around EPIAS Transparency Platform v2.0 API brought to you by Robokami. It is an unofficial package with Apache License 2.0 (free and permissable use for commercial applications, see details). eptr2
accesses currently more than 175 services with convenience methods.
🇹🇷 eptr2
(EPİAŞ Transparency 2.0) paketi Robokami tarafından EPİAŞ Şeffaflık Platformu 2.0 API'si üzerine geliştirilmiş bir Python paketidir. Apache License 2.0 ile lisanslanmıştır (ücretsiz ve büyük ölçüde serbest kullanım). eptr2
175'ten fazla veri servisine erişim sağlar.
Installation
You can simply use PyPI to install eptr2
package or directly through GitHub. See eptr2demo page for available calls and examples.
pip install eptr2
NOTE: Starting from v0.4.0, data frame returns will be optional. If pandas is not installed, data frames will not be returned. You can install "dataframe" version with the following command. (Not implemented yet)
pip install "eptr2[dataframe]"
pip install git+https://github.com/Tideseed/eptr2.git
Usage
You can simply use EPTR2
class to call services with convenience methods.
from eptr2 import EPTR2
cred_d = {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"is_test": False, ## (optional) Default: False. Set only to True for transparency test servers.
}
eptr = EPTR2(
username=cred_d["username"], password=cred_d["password"], is_test=cred_d["is_test"]
)
res = eptr.call("mcp", start_date="2024-07-29", end_date="2024-07-29")
You can search for available calls with eptr.get_available_calls()
function. We plan to include all transparency services in the future.
available_calls = eptr.get_available_calls()
print(available_calls)
Aliases
Starting from v0.7.0
you can create aliases for your calls. Just prepare an alias dictionary and add it to the EPTR2
object.
custom_aliases = {"market-clearing-price": "mcp", "system-marginal-price": "smp"}
eptr = EPTR2(
username=cred_d["username"], password=cred_d["password"], is_test=cred_d["is_test"], custom_aliases=custom_aliases
)
As a warning aliases may overwrite the default keys and default aliases. For instance if your alias is "mcp" pointing to "smp", now default "mcp" call is overwritten with "mcp" alias pointing to "smp".
Library will also have default aliases. You can check aliases with eptr.get_aliases()
function. If you want to include custom aliases, you can get them with include_custom_aliases
parameter. eptr.get_available_calls()
function may also include aliases.
eptr.get_aliases(include_custom_aliases = True)
eptr.get_available_calls(include_aliases = True)
Notes
Main object call has some parameters to control the behavior of the package.
- You can set
ssl_verify
toFalse
if you have SSL verification problems. - You can set
postprocess
toFalse
if you don't want to get data frames as response. - You can set
get_raw_response
toTrue
if you want to get raw urllib3 response object.
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.
Source Distribution
Built Distribution
File details
Details for the file eptr2-0.7.0.tar.gz
.
File metadata
- Download URL: eptr2-0.7.0.tar.gz
- Upload date:
- Size: 45.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.6 Darwin/22.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83798facdb81674bf6efcd65706461dec3343e5c2fadb99e6e1784bf52c112e0 |
|
MD5 | f29b8e3fb8b94f4d8453fad9ec57ce08 |
|
BLAKE2b-256 | bab111b0e2d8692291fa2435fa87e0bf223cf17a28b37e111a1db9f171ae95a5 |
File details
Details for the file eptr2-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: eptr2-0.7.0-py3-none-any.whl
- Upload date:
- Size: 48.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.6 Darwin/22.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46bf60d9ec64bbea845aba8f2da249d113019b6feaed3a21e4f7475d71040e81 |
|
MD5 | 8c23f34b5c963641aaf2797c9527fd22 |
|
BLAKE2b-256 | 1c08daa3fee0716637a286ccb6bcf2e00eab2cd3437cb5741d8f71a174e9aafe |