Skip to main content

EPIAS Transparency Platform v2.0 Python client by Robokami Data

Project description

PyPI - Version PyPI - Downloads

[!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)

Notes

Main object call has some parameters to control the behavior of the package.

  • You can set ssl_verify to False if you have SSL verification problems.
  • You can set postprocess to False if you don't want to get data frames as response.
  • You can set get_raw_response to True if you want to get raw urllib3 response object.

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

eptr2-0.6.2.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

eptr2-0.6.2-py3-none-any.whl (45.9 kB view details)

Uploaded Python 3

File details

Details for the file eptr2-0.6.2.tar.gz.

File metadata

  • Download URL: eptr2-0.6.2.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.6 Darwin/22.1.0

File hashes

Hashes for eptr2-0.6.2.tar.gz
Algorithm Hash digest
SHA256 d1968f6957dd9519903696a025036c8ffc427c2ea830121a5e78d5ee716cdafc
MD5 2c4eba6a6171cf32d60dfd19c7415eb1
BLAKE2b-256 05c17e995053ad28386aeea3309b8f882776c4ca80c5116ae52177d72422816c

See more details on using hashes here.

File details

Details for the file eptr2-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: eptr2-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 45.9 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

Hashes for eptr2-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb0b53ddcd62880168309916c88d1601ee697c08095357effedef043a8ffaf82
MD5 4d58c51b95fadfc1a9c813ded95cdff8
BLAKE2b-256 0f87b667ef6c25861a098f4f1ada2f30c6b9cf6d7f1cf4ac5eb72a775fa249d0

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