transparency_epias/consumption/consumptionClient.py
def consumption_all(self, date):

        '''
        This function returns 4 lists including;
            -Date list for specified date as first item.
            -Total consumption amount as second item.
            -Eligible Customer consumption amount for specified date as third item.
            -Under Supply Liability consumption amount for specified date as third item.

        Parameters:

        Date: Specific date in YYYY-MM-DD format.

        '''
        val.date_format_check(date)

        query = "consumption/consumption?period="+f'{date}'

        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}']

        date_list = []
        consumption_list = []
        consumption_elig_list = []
        consumption_underSupply_list = []

        for item in response_list:
            date_list.append(item['period'])
            consumption_list.append(item['consumption'])
            consumption_elig_list.append(item['eligibleCustomerConsumption'])
            consumption_underSupply_list.append(item['underSupplyLiabilityConsumption'])

        return date_list, consumption_list, consumption_elig_list, consumption_underSupply_list

        This function returns 4 lists including;
            -Date list for specified date as first item.
            -Total consumption amount as second item.
            -Eligible Customer consumption amount for specified date as third item.
            -Under Supply Liability consumption amount for specified date as third item.

        Parameters:

        Date: Specific date in YYYY-MM-DD format.

        
This function returns 4 lists including;
Date list for specified date as first item.
Total consumption amount as second item.
Eligible Customer consumption amount for specified date as third item.
Under Supply Liability consumption amount for specified date as third item.



Specific date in YYYY-MM-DD format.
This function returns 4 lists including ; Date list for specified date as first item . Total consumption amount as second item . Eligible Customer consumption amount for specified date as third item . Under Supply Liability consumption amount for specified date as third item . Specific date in YYYY - MM - DD format .
def consumption_all(self, date):
        val.date_format_check(date)
        query = "consumption/consumption?period="+f'{date}'
        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}']
        date_list = []
        consumption_list = []
        consumption_elig_list = []
        consumption_underSupply_list = []
        for item in response_list:
            date_list.append(item['period'])
            consumption_list.append(item['consumption'])
            consumption_elig_list.append(item['eligibleCustomerConsumption'])
            consumption_underSupply_list.append(item['underSupplyLiabilityConsumption'])
        return date_list, consumption_list, consumption_elig_list, consumption_underSupply_list
def consumption_all ( self , date ) : val . date_format_check ( date ) query = "consumption/consumption?period=" + f'{date}' 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}' ] date_list = [ ] consumption_list = [ ] consumption_elig_list = [ ] consumption_underSupply_list = [ ] for item in response_list : date_list . append ( item [ 'period' ] ) consumption_list . append ( item [ 'consumption' ] ) consumption_elig_list . append ( item [ 'eligibleCustomerConsumption' ] ) consumption_underSupply_list . append ( item [ 'underSupplyLiabilityConsumption' ] ) return date_list , consumption_list , consumption_elig_list , consumption_underSupply_list
This function returns 4 lists including;
Date list for specified date as first item.
This function returns 4 lists including ; Date list for specified date as first item .
'''
        This function returns 4 lists including;
            -Date list for specified date as first item.
            -Total consumption amount as second item.
            -Eligible Customer consumption amount for specified date as third item.
            -Under Supply Liability consumption amount for specified date as third item.

        Parameters:

        Date: Specific date in YYYY-MM-DD format.

        '''
self
date