Last active
December 12, 2025 10:31
-
-
Save berkorbay/a41717245144c385cac49edc56524397 to your computer and use it in GitHub Desktop.
eptr2 Örnekleri
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Fiyat ve maliyet bilgisi alırken 2026 tahmini maliyetlerini de alma opsiyonu | |
| ## Bu opsiyon v1.3.2.dev0'dan itibaren geçerlidir ve 2026 yılı içerisinde değiştirilecektir | |
| from eptr2 import EPTR2 | |
| eptr = EPTR2(recycle_tgt=True) | |
| df = get_hourly_price_and_cost_data( | |
| eptr=eptr, | |
| start_date="2025-11-01", | |
| end_date="2025-11-30", | |
| include_contract_symbol=True, | |
| verbose=True, | |
| timeout=30, | |
| add_draft_2026_costs=True, ### 2026 maliyetlerini de ekle | |
| ) | |
| df[["contract","neg_imb_cost","neg_cost_2026","pos_imb_cost","pos_cost_2026"]] | |
| # contract neg_imb_cost neg_cost_2026 pos_imb_cost pos_cost_2026 | |
| # 0 PH25110100 226.99 509.19 98.2503 98.2503 | |
| # 1 PH25110101 291.99 574.19 96.3003 96.3003 | |
| # 2 PH25110102 302.00 584.20 96.0000 96.0000 | |
| # 3 PH25110103 402.00 684.20 93.0000 93.0000 | |
| # 4 PH25110104 607.99 890.19 86.8203 86.8203 | |
| # .. ... ... ... ... ... | |
| # 715 PH25113019 102.00 384.20 102.0000 102.0000 | |
| # 716 PH25113020 102.00 384.20 102.0000 102.0000 | |
| # 717 PH25113021 102.00 384.20 102.0000 102.0000 | |
| # 718 PH25113022 89.76 89.76 190.6400 277.2800 | |
| # 719 PH25113023 86.88 86.88 465.0733 540.2566 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from eptr2.composite.dabi_idm import get_dabi_idm_data | |
| from eptr2 import EPTR2 | |
| ### .env dosyasında email, şifre tanımlı olmalı | |
| eptr = EPTR2(recycle_tgt=True) | |
| ### GÖP, İA, GİP Alış/Satış hepsi tek bir fonksiyon | |
| res = get_dabi_idm_data( | |
| eptr=eptr, | |
| start_date="2025-11-18", | |
| end_date="2025-11-18", | |
| org_id=195, | |
| verbose=True, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Bu örnek bütün üretim verilerini tek bir fonksiyon ile toplamayı sağlar. | |
| """ | |
| from eptr2 import EPTR2 | |
| from eptr2.composite.production import wrapper_hourly_production_plan_and_realized | |
| ### .env dosyasında email, şifre tanımlı olmalı | |
| eptr = EPTR2(recycle_tgt=True) | |
| ## KGÜP v1, KGÜP, KUDÜP, GZÜ, UEVM hepsi tek bir fonksiyon | |
| df = wrapper_hourly_production_plan_and_realized( | |
| eptr, | |
| start_date="2025-09-01", | |
| end_date="2025-09-30", | |
| verbose=True, | |
| pp_id=120, ## BOZCAADA RES | |
| org_id=195, ## EÜAŞ | |
| uevcb_id=3204384, ## BOZCAADA RES | |
| uevm_pp_id=120, ## BOZCAADA RES | |
| rt_pp_id=1503, ## BORES | |
| ) | |
| ## ['dt', 'time', 'contract', 'toplam_kgup_v1', 'dogalgaz_kgup_v1', 'ruzgar_kgup_v1', 'linyit_kgup_v1', 'tasKomur_kgup_v1', 'ithalKomur_kgup_v1', 'fuelOil_kgup_v1', 'jeotermal_kgup_v1', 'barajli_kgup_v1', 'nafta_kgup_v1', 'biokutle_kgup_v1', 'akarsu_kgup_v1', 'gunes_kgup_v1', 'diger_kgup_v1', 'toplam_kgup', 'dogalgaz_kgup', 'ruzgar_kgup', 'linyit_kgup', 'tasKomur_kgup', 'ithalKomur_kgup', 'fuelOil_kgup', 'jeotermal_kgup', 'barajli_kgup', 'nafta_kgup', 'biokutle_kgup', 'akarsu_kgup', 'gunes_kgup', 'diger_kgup', 'toplam_kudup', 'dogalgaz_kudup', 'ruzgar_kudup', 'linyit_kudup', 'tasKomur_kudup', 'ithalKomur_kudup', 'fuelOil_kudup', 'jeotermal_kudup', 'barajli_kudup', 'nafta_kudup', 'biokutle_kudup', 'akarsu_kudup', 'gunes_kudup', 'diger_kudup', 'total_rt', 'naturalGas_rt', 'dammedHydro_rt', 'lignite_rt', 'river_rt', 'importCoal_rt', 'wind_rt', 'sun_rt', 'fueloil_rt', 'geothermal_rt', 'asphaltiteCoal_rt', 'blackCoal_rt', 'biomass_rt', 'naphta_rt', 'lng_rt', 'importExport_rt', 'wasteheat_rt', 'total_uevm', 'naturalGas_uevm', 'dam_uevm', 'lignite_uevm', 'river_uevm', 'importedCoal_uevm', 'sun_uevm', 'wind_uevm', 'fueloil_uevm', 'geothermal_uevm', 'asphaltite_uevm', 'stoneCoal_uevm', 'biomass_uevm', 'naphtha_uevm', 'lng_uevm', 'internationalImport_uevm', 'internationalExport_uevm', 'other_uevm'] | |
| print(df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment