def summoner_get_by_name(self, region, summoner_name):

        url = '{0}/{1}/{2}/summoner/by-name/{3}?api_key={4}'.format(
                self.base_url,
                region,
                SUMMONER_VERSION,
                summoner_name,
                self.api_key)

        response = requests.get(url)
        response.raise_for_status()
        content = response.json()

        return api_classes.Summoner(**content.get(summoner_name))
Get summoner by name
dataset/ETHPy150Open evangs/pyriot/pyriot/wrapper.py/PyRiot.summoner_get_by_name