transparency_epias/production/productionClient.py
def availability(self, startDate, endDate, orgEic=None, uevcbEic=None):

        '''
        This function returns a dictionary including following information;
            -Date (tarih)
            -Total (toplam)
            -Natural Gas (dogalgaz)
            -Wind (ruzgar)
            -Brown Coal (linyit)
            -Bituminous Coal (tasKomur)
            -Import Coal (ithalKomur)
            -Fuel (fuelOil)
            -Geothermal (jeotermal)
            -Dam (barajli)
            -Naphtha-based (nafta)
            -Biomass (biokutle)
            -River (akarsu)
            -Other (diger)

        Parameters:

        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.
        orgEic (Optional): Organization EIC Code information e.g: 40X000000003585Y.
        uevcbEic (Optional): Organization EIC Code information e.g: 40W000000026808R.

        Note: For certain power plant availability information, both orgEic and uevcbEic parameters should pass as an argument.

        '''
        val.date_check(startDate, endDate)

        if orgEic == None and uevcbEic != None:
            raise Exception('Please provide organization eic cide with uevbEic code to get plant availability informaton' )
        else:
            pass

        val.uevcb_eic_check(uevcbEic)
        val.org_eic_check(orgEic)

        query = "production/aic?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&organizationEIC="+f'{orgEic}'+"&uevcbEIC="+f'{uevcbEic}'

        json_result = self.get_request_result(query)

        key_list = list(json_result['body'].keys())

        key_name = key_list[0]

        response_list = json_result['body'][f'{key_name}']

        return response_list

        This function returns a dictionary including following information;
            -Date (tarih)
            -Total (toplam)
            -Natural Gas (dogalgaz)
            -Wind (ruzgar)
            -Brown Coal (linyit)
            -Bituminous Coal (tasKomur)
            -Import Coal (ithalKomur)
            -Fuel (fuelOil)
            -Geothermal (jeotermal)
            -Dam (barajli)
            -Naphtha-based (nafta)
            -Biomass (biokutle)
            -River (akarsu)
            -Other (diger)

        Parameters:

        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.
        orgEic (Optional): Organization EIC Code information e.g: 40X000000003585Y.
        uevcbEic (Optional): Organization EIC Code information e.g: 40W000000026808R.

        Note: For certain power plant availability information, both orgEic and uevcbEic parameters should pass as an argument.

        




Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
orgEic (Optional): Organization EIC Code information e.g: 40X000000003585Y.
uevcbEic (Optional): Organization EIC Code information e.g: 40W000000026808R.

For certain power plant availability information, both orgEic and uevcbEic parameters should pass as an argument.
Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format . orgEic ( Optional ) : Organization EIC Code information e . g : 40X000000003585Y . uevcbEic ( Optional ) : Organization EIC Code information e . g : 40W000000026808R . For certain power plant availability information both orgEic and uevcbEic parameters should pass as an argument .
def availability(self, startDate, endDate, orgEic=None, uevcbEic=None):
        val.date_check(startDate, endDate)
        if orgEic == None and uevcbEic != None:
            raise Exception('Please provide organization eic cide with uevbEic code to get plant availability informaton' )
        else:
            pass
        val.uevcb_eic_check(uevcbEic)
        val.org_eic_check(orgEic)
        query = "production/aic?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&organizationEIC="+f'{orgEic}'+"&uevcbEIC="+f'{uevcbEic}'
        json_result = self.get_request_result(query)
        key_list = list(json_result['body'].keys())
        key_name = key_list[0]
        response_list = json_result['body'][f'{key_name}']
        return response_list
def availability ( self , startDate , endDate , orgEic = None , uevcbEic = None ) : val . date_check ( startDate , endDate ) if orgEic == None and uevcbEic != None : raise Exception ( 'Please provide organization eic cide with uevbEic code to get plant availability informaton' ) else : pass val . uevcb_eic_check ( uevcbEic ) val . org_eic_check ( orgEic ) query = "production/aic?startDate=" + f'{startDate}' + "&endDate=" + f'{endDate}' + "&organizationEIC=" + f'{orgEic}' + "&uevcbEIC=" + f'{uevcbEic}' json_result = self . get_request_result ( query ) key_list = list ( json_result [ 'body' ] . keys ( ) ) key_name = key_list [ 0 ] response_list = json_result [ 'body' ] [ f'{key_name}' ] return response_list
This function returns a dictionary including following information;
Date (tarih)
Total (toplam)
Natural Gas (dogalgaz)
Wind (ruzgar)
Brown Coal (linyit)
Bituminous Coal (tasKomur)
Import Coal (ithalKomur)
Fuel (fuelOil)
Geothermal (jeotermal)
Dam (barajli)
Naphtha-based (nafta)
Biomass (biokutle)
River (akarsu)
Other (diger)
This function returns a dictionary including following information ; Date ( tarih ) Total ( toplam ) Natural Gas ( dogalgaz ) Wind ( ruzgar ) Brown Coal ( linyit ) Bituminous Coal ( tasKomur ) Import Coal ( ithalKomur ) Fuel ( fuelOil ) Geothermal ( jeotermal ) Dam ( barajli ) Naphtha - based ( nafta ) Biomass ( biokutle ) River ( akarsu ) Other ( diger )
'''
        This function returns a dictionary including following information;
            -Date (tarih)
            -Total (toplam)
            -Natural Gas (dogalgaz)
            -Wind (ruzgar)
            -Brown Coal (linyit)
            -Bituminous Coal (tasKomur)
            -Import Coal (ithalKomur)
            -Fuel (fuelOil)
            -Geothermal (jeotermal)
            -Dam (barajli)
            -Naphtha-based (nafta)
            -Biomass (biokutle)
            -River (akarsu)
            -Other (diger)

        Parameters:

        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.
        orgEic (Optional): Organization EIC Code information e.g: 40X000000003585Y.
        uevcbEic (Optional): Organization EIC Code information e.g: 40W000000026808R.

        Note: For certain power plant availability information, both orgEic and uevcbEic parameters should pass as an argument.

        '''
self
startDate
endDate
orgEic
uevcbEic